Lines Matching refs:enqd_len
3238 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, in xhci_align_td() argument
3248 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td()
3269 new_buff_len = max_pkt - (enqd_len % max_pkt); in xhci_align_td()
3271 if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) in xhci_align_td()
3272 new_buff_len = (urb->transfer_buffer_length - enqd_len); in xhci_align_td()
3277 seg->bounce_buf, new_buff_len, enqd_len); in xhci_align_td()
3296 seg->bounce_offs = enqd_len; in xhci_align_td()
3317 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local
3363 for (enqd_len = 0; first_trb || enqd_len < full_len; in xhci_queue_bulk_tx()
3364 enqd_len += trb_buff_len) { in xhci_queue_bulk_tx()
3371 if (enqd_len + trb_buff_len > full_len) in xhci_queue_bulk_tx()
3372 trb_buff_len = full_len - enqd_len; in xhci_queue_bulk_tx()
3385 if (enqd_len + trb_buff_len < full_len) { in xhci_queue_bulk_tx()
3388 if (xhci_align_td(xhci, urb, enqd_len, in xhci_queue_bulk_tx()
3397 if (enqd_len + trb_buff_len >= full_len) { in xhci_queue_bulk_tx()
3416 remainder = xhci_td_remainder(xhci, enqd_len, trb_buff_len, in xhci_queue_bulk_tx()
3456 check_trb_math(urb, enqd_len); in xhci_queue_bulk_tx()