XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
static void XHdcp1x_TxEnableEncryptionState(XHdcp1x *InstancePtr)
{
	/* Check for encryption enabled */
	if (InstancePtr->Tx.EncryptionMap != 0) {
		u64 StreamMap = 0;

		/* Determine StreamMap */
		StreamMap =
			XHdcp1x_CipherGetEncryption(InstancePtr);

		/* Check if there is something to do */
		if (StreamMap != InstancePtr->Tx.EncryptionMap) {
			/* Wait a bit */
			XHdcp1x_TxBusyDelay(InstancePtr, XVPHY_TMO_5MS);

			/* Enable it */
			XHdcp1x_CipherEnableEncryption(InstancePtr,
					InstancePtr->Tx.EncryptionMap);

		}
	}
}
/*****************************************************************************/
/**
* This function enables encryption for a state machine.
*
* @param	InstancePtr is the HDCP state machine.
*
* @return	None.
*
* @note		This function inserts a 5ms delay for things to settle when
*		encryption is actually being disabled.
*
******************************************************************************/
This function enables encryption for a state machine.
This function enables encryption for a state machine .
static void XHdcp1x_TxEnableEncryptionState(XHdcp1x *InstancePtr)
{
	if (InstancePtr->Tx.EncryptionMap != 0) {
		u64 StreamMap = 0;
		StreamMap =
			XHdcp1x_CipherGetEncryption(InstancePtr);
		if (StreamMap != InstancePtr->Tx.EncryptionMap) {
			XHdcp1x_TxBusyDelay(InstancePtr, XVPHY_TMO_5MS);
			XHdcp1x_CipherEnableEncryption(InstancePtr,
					InstancePtr->Tx.EncryptionMap);
		}
	}
}
static void XHdcp1x_TxEnableEncryptionState ( XHdcp1x * InstancePtr ) { if ( InstancePtr -> Tx . EncryptionMap != 0 ) { u64 StreamMap = 0 ; StreamMap = XHdcp1x_CipherGetEncryption ( InstancePtr ) ; if ( StreamMap != InstancePtr -> Tx . EncryptionMap ) { XHdcp1x_TxBusyDelay ( InstancePtr , XVPHY_TMO_5MS ) ; XHdcp1x_CipherEnableEncryption ( InstancePtr , InstancePtr -> Tx . EncryptionMap ) ; } } }
This function enables encryption for a state machine.
This function enables encryption for a state machine .
/* Check for encryption enabled */ /* Determine StreamMap */ /* Check if there is something to do */ /* Wait a bit */ /* Enable it */