XilinxProcessorIPLib/drivers/dpdma/src/xdpdma.c
static void XDpDma_UpdateVideoDescriptor(XDpDma_Channel *Channel)
{
	Xil_AssertVoid((Channel->Current == NULL) ||
		       (Channel->Current == &Channel->Descriptor0) ||
		       (Channel->Current == &Channel->Descriptor1));
	if(Channel->Current == NULL) {
		Channel->Current = &Channel->Descriptor0;
	}
	else if(Channel->Current == &Channel->Descriptor0) {
		Channel->Current = &Channel->Descriptor1;
	}
	else if(Channel->Current == &Channel->Descriptor1) {
		Channel->Current = &Channel->Descriptor0;
	} else {
		/* This will never occurs for XDpDma_Channel(Video/Graphics) */
	}
}
/*************************************************************************/
/**
 *
 * This function updates the descriptor that is not currently active on a
 * Video/Graphics channel.
 *
 * @param    InstancePtr is a pointer to the driver instance.
 * @param    Channel is a pointer to the channel on which the operation is
 *	     to be carried out.
 *
 * @return   None.
 *
 * @note     None.
 *
 * **************************************************************************/
This function updates the descriptor that is not currently active on a
Video/Graphics channel.

@param    InstancePtr is a pointer to the driver instance.
@param    Channel is a pointer to the channel on which the operation is
to be carried out.

@return   None.

@note     None.
This function updates the descriptor that is not currently active on a Video / Graphics channel . @param InstancePtr is a pointer to the driver instance . @param Channel is a pointer to the channel on which the operation is to be carried out . @return None . @note None .
static void XDpDma_UpdateVideoDescriptor(XDpDma_Channel *Channel)
{
	Xil_AssertVoid((Channel->Current == NULL) ||
		       (Channel->Current == &Channel->Descriptor0) ||
		       (Channel->Current == &Channel->Descriptor1));
	if(Channel->Current == NULL) {
		Channel->Current = &Channel->Descriptor0;
	}
	else if(Channel->Current == &Channel->Descriptor0) {
		Channel->Current = &Channel->Descriptor1;
	}
	else if(Channel->Current == &Channel->Descriptor1) {
		Channel->Current = &Channel->Descriptor0;
	} else {
	}
}
static void XDpDma_UpdateVideoDescriptor ( XDpDma_Channel * Channel ) { Xil_AssertVoid ( ( Channel -> Current == NULL ) || ( Channel -> Current == & Channel -> Descriptor0 ) || ( Channel -> Current == & Channel -> Descriptor1 ) ) ; if ( Channel -> Current == NULL ) { Channel -> Current = & Channel -> Descriptor0 ; } else if ( Channel -> Current == & Channel -> Descriptor0 ) { Channel -> Current = & Channel -> Descriptor1 ; } else if ( Channel -> Current == & Channel -> Descriptor1 ) { Channel -> Current = & Channel -> Descriptor0 ; } else { } }
This function updates the descriptor that is not currently active on a
 Video/Graphics channel.
This function updates the descriptor that is not currently active on a Video / Graphics channel .
/* This will never occurs for XDpDma_Channel(Video/Graphics) */