Lines Matching refs:enqd_len
3055 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, in xhci_align_td() argument
3064 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td()
3085 new_buff_len = max_pkt - (enqd_len % max_pkt); in xhci_align_td()
3087 if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) in xhci_align_td()
3088 new_buff_len = (urb->transfer_buffer_length - enqd_len); in xhci_align_td()
3093 seg->bounce_buf, new_buff_len, enqd_len); in xhci_align_td()
3108 seg->bounce_offs = enqd_len; in xhci_align_td()
3129 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local
3175 for (enqd_len = 0; first_trb || enqd_len < full_len; in xhci_queue_bulk_tx()
3176 enqd_len += trb_buff_len) { in xhci_queue_bulk_tx()
3183 if (enqd_len + trb_buff_len > full_len) in xhci_queue_bulk_tx()
3184 trb_buff_len = full_len - enqd_len; in xhci_queue_bulk_tx()
3197 if (enqd_len + trb_buff_len < full_len) { in xhci_queue_bulk_tx()
3200 if (xhci_align_td(xhci, urb, enqd_len, in xhci_queue_bulk_tx()
3209 if (enqd_len + trb_buff_len >= full_len) { in xhci_queue_bulk_tx()
3221 remainder = xhci_td_remainder(xhci, enqd_len, trb_buff_len, in xhci_queue_bulk_tx()
3261 check_trb_math(urb, enqd_len); in xhci_queue_bulk_tx()