Lines Matching refs:enqd_len
3477 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, in xhci_align_td() argument
3487 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td()
3508 new_buff_len = max_pkt - (enqd_len % max_pkt); in xhci_align_td()
3510 if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) in xhci_align_td()
3511 new_buff_len = (urb->transfer_buffer_length - enqd_len); in xhci_align_td()
3517 seg->bounce_buf, new_buff_len, enqd_len); in xhci_align_td()
3522 memcpy(seg->bounce_buf, urb->transfer_buffer + enqd_len, new_buff_len); in xhci_align_td()
3539 seg->bounce_offs = enqd_len; in xhci_align_td()
3560 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local
3606 for (enqd_len = 0; first_trb || enqd_len < full_len; in xhci_queue_bulk_tx()
3607 enqd_len += trb_buff_len) { in xhci_queue_bulk_tx()
3614 if (enqd_len + trb_buff_len > full_len) in xhci_queue_bulk_tx()
3615 trb_buff_len = full_len - enqd_len; in xhci_queue_bulk_tx()
3628 if (enqd_len + trb_buff_len < full_len) { in xhci_queue_bulk_tx()
3631 if (xhci_align_td(xhci, urb, enqd_len, in xhci_queue_bulk_tx()
3640 if (enqd_len + trb_buff_len >= full_len) { in xhci_queue_bulk_tx()
3659 remainder = xhci_td_remainder(xhci, enqd_len, trb_buff_len, in xhci_queue_bulk_tx()
3699 check_trb_math(urb, enqd_len); in xhci_queue_bulk_tx()