XilinxProcessorIPLib/drivers/aienginev2/src/dma/xaie_dma_aieml.c
AieRC _XAieMl_DmaSetLock(XAie_DmaDesc *DmaDesc, XAie_Lock Acq, XAie_Lock Rel,
		u8 AcqEn, u8 RelEn)
{
	DmaDesc->LockDesc.LockAcqId = Acq.LockId;
	DmaDesc->LockDesc.LockRelId = Rel.LockId;
	DmaDesc->LockDesc.LockAcqEn = AcqEn;
	DmaDesc->LockDesc.LockRelEn = RelEn;
	DmaDesc->LockDesc.LockRelVal = Rel.LockVal;
	DmaDesc->LockDesc.LockAcqVal = Acq.LockVal;

	return XAIE_OK;
}
/*****************************************************************************/
/**
*
* This API initializes the Acquire and Release Locks for a a Dma for AIEML
* descriptor.
*
* @param	DmaDesc: Initialized Dma Descriptor.
* @param	Acq: Lock object with acquire lock ID and lock value.
* @param	Rel: Lock object with release lock ID and lock value.
* @param 	AcqEn: XAIE_ENABLE/XAIE_DISABLE for enable or disable acquire
*		lock.
* @param 	RelEn: XAIE_ENABLE/XAIE_DISABLE for enable or disable release
*		lock.
*
* @return	XAIE_OK on success, Error code on failure.
*
* @note		Internal Only. Should not be called directly. This function is
*		called from the internal Dma Module data structure.
*
******************************************************************************/
This API initializes the Acquire and Release Locks for a a Dma for AIEML
descriptor.
This API initializes the Acquire and Release Locks for a a Dma for AIEML descriptor .
AieRC _XAieMl_DmaSetLock(XAie_DmaDesc *DmaDesc, XAie_Lock Acq, XAie_Lock Rel,
		u8 AcqEn, u8 RelEn)
{
	DmaDesc->LockDesc.LockAcqId = Acq.LockId;
	DmaDesc->LockDesc.LockRelId = Rel.LockId;
	DmaDesc->LockDesc.LockAcqEn = AcqEn;
	DmaDesc->LockDesc.LockRelEn = RelEn;
	DmaDesc->LockDesc.LockRelVal = Rel.LockVal;
	DmaDesc->LockDesc.LockAcqVal = Acq.LockVal;
	return XAIE_OK;
}
AieRC _XAieMl_DmaSetLock ( XAie_DmaDesc * DmaDesc , XAie_Lock Acq , XAie_Lock Rel , u8 AcqEn , u8 RelEn ) { DmaDesc -> LockDesc . LockAcqId = Acq . LockId ; DmaDesc -> LockDesc . LockRelId = Rel . LockId ; DmaDesc -> LockDesc . LockAcqEn = AcqEn ; DmaDesc -> LockDesc . LockRelEn = RelEn ; DmaDesc -> LockDesc . LockRelVal = Rel . LockVal ; DmaDesc -> LockDesc . LockAcqVal = Acq . LockVal ; return XAIE_OK ; }
This API initializes the Acquire and Release Locks for a a Dma for AIEML
descriptor.
This API initializes the Acquire and Release Locks for a a Dma for AIEML descriptor .