/* The index should never point to the link TRB. After incrementing, if it is point to the link TRB, wrap around to the beginning and revert cycle state bit The link TRB is always at the last TRB entry.  */
static void cdns3_ep_inc_trb(int *index, u8 *cs, int trb_in_seg)
/* The index should never point to the link TRB. After incrementing, if it is point to the link TRB, wrap around to the beginning and revert cycle state bit The link TRB is always at the last TRB entry.  */
static void cdns3_ep_inc_trb(int *index, u8 *cs, int trb_in_seg)
{
	(*index)++;
	if (*index == (trb_in_seg - 1)) {
		*index = 0;
		*cs ^=  1;
	}
}