XilinxProcessorIPLib/drivers/vphy/src/xvphy_gtpe2.c
static u16 XVphy_NToDrpEncoding(XVphy *InstancePtr, u8 QuadId,
		XVphy_ChannelId ChId, u8 NId)
{
	u8 NFbDiv;
	u16 DrpEncode;

	if (NId == 1) {
		NFbDiv = InstancePtr->Quads[QuadId].Plls[XVPHY_CH2IDX(ChId)].
				PllParams.N1FbDiv;
		DrpEncode = XVphy_DrpEncodePllN1(NFbDiv);
	}
	else {
		NFbDiv = InstancePtr->Quads[QuadId].Plls[XVPHY_CH2IDX(ChId)].
			PllParams.N2FbDiv;
		DrpEncode = XVphy_DrpEncodePllMN2(NFbDiv);
	}

	return DrpEncode;
}
/*****************************************************************************/
/**
* This function will translate the configured N1/N2 value to DRP encoding.
*
* @param	InstancePtr is a pointer to the XVphy core instance.
* @param	QuadId is the GT quad ID to operate on.
* @param	ChId is the channel ID to operate on.
* @param	NId specified to operate on N1 (if == 1) or N2 (if == 2).
*
* @return	The DRP encoding for N1/N2.
*
* @note		None.
*
******************************************************************************/
This function will translate the configured N1/N2 value to DRP encoding.
This function will translate the configured N1 / N2 value to DRP encoding .
static u16 XVphy_NToDrpEncoding(XVphy *InstancePtr, u8 QuadId,
		XVphy_ChannelId ChId, u8 NId)
{
	u8 NFbDiv;
	u16 DrpEncode;
	if (NId == 1) {
		NFbDiv = InstancePtr->Quads[QuadId].Plls[XVPHY_CH2IDX(ChId)].
				PllParams.N1FbDiv;
		DrpEncode = XVphy_DrpEncodePllN1(NFbDiv);
	}
	else {
		NFbDiv = InstancePtr->Quads[QuadId].Plls[XVPHY_CH2IDX(ChId)].
			PllParams.N2FbDiv;
		DrpEncode = XVphy_DrpEncodePllMN2(NFbDiv);
	}
	return DrpEncode;
}
static u16 XVphy_NToDrpEncoding ( XVphy * InstancePtr , u8 QuadId , XVphy_ChannelId ChId , u8 NId ) { u8 NFbDiv ; u16 DrpEncode ; if ( NId == 1 ) { NFbDiv = InstancePtr -> Quads [ QuadId ] . Plls [ XVPHY_CH2IDX ( ChId ) ] . PllParams . N1FbDiv ; DrpEncode = XVphy_DrpEncodePllN1 ( NFbDiv ) ; } else { NFbDiv = InstancePtr -> Quads [ QuadId ] . Plls [ XVPHY_CH2IDX ( ChId ) ] . PllParams . N2FbDiv ; DrpEncode = XVphy_DrpEncodePllMN2 ( NFbDiv ) ; } return DrpEncode ; }
This function will translate the configured N1/N2 value to DRP encoding.
This function will translate the configured N1 / N2 value to DRP encoding .