XilinxProcessorIPLib/drivers/dpdma/src/xdpdma.c
static u32 XDpDma_GetPendingTransaction(XDpDma *InstancePtr, u32 ChannelNum)
{
	u32 RegVal;
	RegVal = XDpDma_ReadReg(InstancePtr->Config.BaseAddr,
				XDPDMA_CH0_STATUS +
				XDPDMA_CH_OFFSET * ChannelNum);
	return (RegVal & XDPDMA_CH_STATUS_OTRAN_CNT_MASK);
}
/*************************************************************************/
/**
 *
 * This function returns the number of outstanding transactions on a given
 * channel.
 *
 * @param    InstancePtr is a pointer to the driver instance.
 * @param    ChannelNum is the channel number on which the operation is
 *	     being carried out.
 *
 * @return   Number of pending transactions.
 *
 * @note     None.
 *
 * **************************************************************************/
This function returns the number of outstanding transactions on a given
channel.

@param    InstancePtr is a pointer to the driver instance.
@param    ChannelNum is the channel number on which the operation is
being carried out.

@return   Number of pending transactions.

@note     None.
This function returns the number of outstanding transactions on a given channel . @param InstancePtr is a pointer to the driver instance . @param ChannelNum is the channel number on which the operation is being carried out . @return Number of pending transactions . @note None .
static u32 XDpDma_GetPendingTransaction(XDpDma *InstancePtr, u32 ChannelNum)
{
	u32 RegVal;
	RegVal = XDpDma_ReadReg(InstancePtr->Config.BaseAddr,
				XDPDMA_CH0_STATUS +
				XDPDMA_CH_OFFSET * ChannelNum);
	return (RegVal & XDPDMA_CH_STATUS_OTRAN_CNT_MASK);
}
static u32 XDpDma_GetPendingTransaction ( XDpDma * InstancePtr , u32 ChannelNum ) { u32 RegVal ; RegVal = XDpDma_ReadReg ( InstancePtr -> Config . BaseAddr , XDPDMA_CH0_STATUS + XDPDMA_CH_OFFSET * ChannelNum ) ; return ( RegVal & XDPDMA_CH_STATUS_OTRAN_CNT_MASK ) ; }
This function returns the number of outstanding transactions on a given
 channel.
This function returns the number of outstanding transactions on a given channel .