XilinxProcessorIPLib/drivers/axicdma/src/xaxicdma_bdring.c
static void StubCallBackFn(void *CallBackRef, u32 IrqMask, int *NumBdPtr)
{
	XAxiCdma *InstancePtr;
	XAxiCdma_Bd *BdPtr;
	int TargetNum;
	int BdCount;

	InstancePtr = (XAxiCdma *)CallBackRef;
	TargetNum = *NumBdPtr;
	(void) (IrqMask);

	BdCount = XAxiCdma_BdRingFromHw(InstancePtr, TargetNum, &BdPtr);

	if (BdCount > 0) {
		int Status;
		Status = XAxiCdma_BdRingFree(InstancePtr, BdCount, BdPtr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_ERROR, "CallBack: BdRingFree()"
					"failed with %08x", Status);
		}
	}

	*NumBdPtr = TargetNum - BdCount;

	return;
}
/*****************************************************************************/
/*
 * Stub call back function.
 *
 * This is used in case the user does not provide a callback function.
 * This function only releases the resources.
 *
 * @param	CallBackRef is the call back reference passed in by
 *			application,A NULL pointer is acceptable.
 * @param	IrqMask is the interrupt mask regarding this completion
 * @param	NumBdPtr is the pointer to number of BDs this handler should
 *			handle
 *
 * @return	None
 *
 * @note	None.
 *
 *****************************************************************************/
Stub call back function.
This is used in case the user does not provide a callback function.
This function only releases the resources.

@param       CallBackRef is the call back reference passed in by
application,A NULL pointer is acceptable.
@param       IrqMask is the interrupt mask regarding this completion
@param       NumBdPtr is the pointer to number of BDs this handler should
handle

@return      None

@note        None.
Stub call back function . This is used in case the user does not provide a callback function . This function only releases the resources . @param CallBackRef is the call back reference passed in by application A NULL pointer is acceptable . @param IrqMask is the interrupt mask regarding this completion @param NumBdPtr is the pointer to number of BDs this handler should handle @return None @note None .
static void StubCallBackFn(void *CallBackRef, u32 IrqMask, int *NumBdPtr)
{
	XAxiCdma *InstancePtr;
	XAxiCdma_Bd *BdPtr;
	int TargetNum;
	int BdCount;
	InstancePtr = (XAxiCdma *)CallBackRef;
	TargetNum = *NumBdPtr;
	(void) (IrqMask);
	BdCount = XAxiCdma_BdRingFromHw(InstancePtr, TargetNum, &BdPtr);
	if (BdCount > 0) {
		int Status;
		Status = XAxiCdma_BdRingFree(InstancePtr, BdCount, BdPtr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_ERROR, "CallBack: BdRingFree()"
					"failed with %08x", Status);
		}
	}
	*NumBdPtr = TargetNum - BdCount;
	return;
}
static void StubCallBackFn ( void * CallBackRef , u32 IrqMask , int * NumBdPtr ) { XAxiCdma * InstancePtr ; XAxiCdma_Bd * BdPtr ; int TargetNum ; int BdCount ; InstancePtr = ( XAxiCdma * ) CallBackRef ; TargetNum = * NumBdPtr ; ( void ) ( IrqMask ) ; BdCount = XAxiCdma_BdRingFromHw ( InstancePtr , TargetNum , & BdPtr ) ; if ( BdCount > 0 ) { int Status ; Status = XAxiCdma_BdRingFree ( InstancePtr , BdCount , BdPtr ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_ERROR , " " " " , Status ) ; } } * NumBdPtr = TargetNum - BdCount ; return ; }
Stub call back function.
Stub call back function .