/* Generic function for queueing a TRB on a ring. The caller must have checked to make sure there's room on the ring.  */
static void queue_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, bool consumer, u32 field1, u32 field2, u32 field3, u32 field4)
/* Generic function for queueing a TRB on a ring. The caller must have checked to make sure there's room on the ring.  */
static void queue_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, bool consumer, u32 field1, u32 field2, u32 field3, u32 field4)
{
	struct xhci_generic_trb *trb;
	trb = &ring->enqueue->generic;
	trb->field[0] = field1;
	trb->field[1] = field2;
	trb->field[2] = field3;
	trb->field[3] = field4;
	inc_enq(xhci, ring, consumer);
}