Lines Matching refs:enqd_len
3442 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, in xhci_align_td() argument
3452 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td()
3473 new_buff_len = max_pkt - (enqd_len % max_pkt); in xhci_align_td()
3475 if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) in xhci_align_td()
3476 new_buff_len = (urb->transfer_buffer_length - enqd_len); in xhci_align_td()
3482 seg->bounce_buf, new_buff_len, enqd_len); in xhci_align_td()
3487 memcpy(seg->bounce_buf, urb->transfer_buffer + enqd_len, new_buff_len); in xhci_align_td()
3504 seg->bounce_offs = enqd_len; in xhci_align_td()
3525 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local
3571 for (enqd_len = 0; first_trb || enqd_len < full_len; in xhci_queue_bulk_tx()
3572 enqd_len += trb_buff_len) { in xhci_queue_bulk_tx()
3579 if (enqd_len + trb_buff_len > full_len) in xhci_queue_bulk_tx()
3580 trb_buff_len = full_len - enqd_len; in xhci_queue_bulk_tx()
3593 if (enqd_len + trb_buff_len < full_len) { in xhci_queue_bulk_tx()
3596 if (xhci_align_td(xhci, urb, enqd_len, in xhci_queue_bulk_tx()
3605 if (enqd_len + trb_buff_len >= full_len) { in xhci_queue_bulk_tx()
3624 remainder = xhci_td_remainder(xhci, enqd_len, trb_buff_len, in xhci_queue_bulk_tx()
3666 check_trb_math(urb, enqd_len); in xhci_queue_bulk_tx()