XilinxProcessorIPLib/drivers/aienginev2/src/dma/xaie_dma_aieml.c
AieRC _XAieMl_ShimDmaUpdateBdLen(XAie_DevInst *DevInst,
		const XAie_DmaMod *DmaMod, XAie_LocType Loc, u32 Len, u8 BdNum)
{
	u64 RegAddr;
	u32 RegVal;

	RegAddr = DmaMod->BaseAddr + BdNum * DmaMod->IdxOffset +
		_XAie_GetTileAddr(DevInst, Loc.Row, Loc.Col) +
		DmaMod->BdProp->Buffer->ShimDmaBuff.BufferLen.Idx * 4U;

	RegVal = XAie_SetField(Len,
			DmaMod->BdProp->Buffer->ShimDmaBuff.BufferLen.Lsb,
			DmaMod->BdProp->Buffer->ShimDmaBuff.BufferLen.Mask);

	/* BD length register does not have other parameters */
	return XAie_Write32(DevInst, RegAddr, RegVal);
}
/*****************************************************************************/
/**
*
* This API updates the address of the buffer descriptor in the shim dma module.
*
* @param	DevInst: Device Instance.
* @param	DmaMod: Dma module pointer
* @param	Loc: Location of AIE Tile
* @param	Len: Length of BD in bytes.
* @param	BdNum: Hardware BD number to be written to.
*
* @return	XAIE_OK on success, Error code on failure.
*
* @note		Internal only. This API accesses the hardware directly and does
*		not operate on software descriptor.
******************************************************************************/
This API updates the address of the buffer descriptor in the shim dma module.
This API updates the address of the buffer descriptor in the shim dma module .
AieRC _XAieMl_ShimDmaUpdateBdLen(XAie_DevInst *DevInst,
		const XAie_DmaMod *DmaMod, XAie_LocType Loc, u32 Len, u8 BdNum)
{
	u64 RegAddr;
	u32 RegVal;
	RegAddr = DmaMod->BaseAddr + BdNum * DmaMod->IdxOffset +
		_XAie_GetTileAddr(DevInst, Loc.Row, Loc.Col) +
		DmaMod->BdProp->Buffer->ShimDmaBuff.BufferLen.Idx * 4U;
	RegVal = XAie_SetField(Len,
			DmaMod->BdProp->Buffer->ShimDmaBuff.BufferLen.Lsb,
			DmaMod->BdProp->Buffer->ShimDmaBuff.BufferLen.Mask);
	return XAie_Write32(DevInst, RegAddr, RegVal);
}
AieRC _XAieMl_ShimDmaUpdateBdLen ( XAie_DevInst * DevInst , const XAie_DmaMod * DmaMod , XAie_LocType Loc , u32 Len , u8 BdNum ) { u64 RegAddr ; u32 RegVal ; RegAddr = DmaMod -> BaseAddr + BdNum * DmaMod -> IdxOffset + _XAie_GetTileAddr ( DevInst , Loc . Row , Loc . Col ) + DmaMod -> BdProp -> Buffer -> ShimDmaBuff . BufferLen . Idx * 4U ; RegVal = XAie_SetField ( Len , DmaMod -> BdProp -> Buffer -> ShimDmaBuff . BufferLen . Lsb , DmaMod -> BdProp -> Buffer -> ShimDmaBuff . BufferLen . Mask ) ; return XAie_Write32 ( DevInst , RegAddr , RegVal ) ; }
This API updates the address of the buffer descriptor in the shim dma module.
This API updates the address of the buffer descriptor in the shim dma module .
/* BD length register does not have other parameters */