Searched refs:enqd_len (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/usb/host/ |
| H A D | xhci-ring.c | 3546 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, in xhci_align_td() argument 3556 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td() 3577 new_buff_len = max_pkt - (enqd_len % max_pkt); in xhci_align_td() 3579 if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) in xhci_align_td() 3580 new_buff_len = (urb->transfer_buffer_length - enqd_len); in xhci_align_td() 3586 seg->bounce_buf, new_buff_len, enqd_len); in xhci_align_td() 3591 memcpy(seg->bounce_buf, urb->transfer_buffer + enqd_len, new_buff_len); in xhci_align_td() 3608 seg->bounce_offs = enqd_len; in xhci_align_td() 3629 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local 3675 for (enqd_len = 0; first_trb || enqd_len < full_len; in xhci_queue_bulk_tx() [all …]
|
| /linux/drivers/usb/gadget/udc/cdns2/ |
| H A D | cdns2-gadget.c | 513 int enqd_len; in cdns2_ep_tx_isoc() local 541 for (enqd_len = 0; enqd_len < full_len; in cdns2_ep_tx_isoc() 542 enqd_len += trb_buff_len) { in cdns2_ep_tx_isoc() 554 if (trb_buff_len > full_len - enqd_len) in cdns2_ep_tx_isoc() 555 trb_buff_len = full_len - enqd_len; in cdns2_ep_tx_isoc() 565 if (enqd_len + trb_buff_len >= full_len || !pep->dir) in cdns2_ep_tx_isoc() 581 if (enqd_len + trb_buff_len < full_len) in cdns2_ep_tx_isoc()
|