XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static int XHdcp22Rx_InitializeMmult(XHdcp22_Rx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	int Status = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_mmult_Config *MmultConfigPtr;

	MmultConfigPtr = XHdcp22_mmult_LookupConfig(InstancePtr->Config.MontMultDeviceId);
	if(MmultConfigPtr == NULL)
	{
		return XST_FAILURE;
	}

	Status = XHdcp22Rx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, MmultConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Status |= XHdcp22_mmult_CfgInitialize(&InstancePtr->MmultInst, MmultConfigPtr, SubcoreBaseAddr);

	return Status;
}
/*****************************************************************************/
/**
* This function is called to initialize the modular multiplier.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return	XST_SUCCESS or XST_FAILURE.
*
* @note		None.
******************************************************************************/
This function is called to initialize the modular multiplier.
This function is called to initialize the modular multiplier .
static int XHdcp22Rx_InitializeMmult(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	int Status = XST_SUCCESS;
	UINTPTR SubcoreBaseAddr;
	XHdcp22_mmult_Config *MmultConfigPtr;
	MmultConfigPtr = XHdcp22_mmult_LookupConfig(InstancePtr->Config.MontMultDeviceId);
	if(MmultConfigPtr == NULL)
	{
		return XST_FAILURE;
	}
	Status = XHdcp22Rx_ComputeBaseAddress(InstancePtr->Config.BaseAddress, MmultConfigPtr->BaseAddress, &SubcoreBaseAddr);
	Status |= XHdcp22_mmult_CfgInitialize(&InstancePtr->MmultInst, MmultConfigPtr, SubcoreBaseAddr);
	return Status;
}
static int XHdcp22Rx_InitializeMmult ( XHdcp22_Rx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = XST_SUCCESS ; UINTPTR SubcoreBaseAddr ; XHdcp22_mmult_Config * MmultConfigPtr ; MmultConfigPtr = XHdcp22_mmult_LookupConfig ( InstancePtr -> Config . MontMultDeviceId ) ; if ( MmultConfigPtr == NULL ) { return XST_FAILURE ; } Status = XHdcp22Rx_ComputeBaseAddress ( InstancePtr -> Config . BaseAddress , MmultConfigPtr -> BaseAddress , & SubcoreBaseAddr ) ; Status |= XHdcp22_mmult_CfgInitialize ( & InstancePtr -> MmultInst , MmultConfigPtr , SubcoreBaseAddr ) ; return Status ; }
This function is called to initialize the modular multiplier.
This function is called to initialize the modular multiplier .
/* Verify arguments */