Searched refs:enqd_len (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-ring.c | 1798 struct cdnsp_request *preq, u32 enqd_len, in cdnsp_align_td() argument 1807 unalign = (enqd_len + *trb_buff_len) % max_pkt; in cdnsp_align_td() 1817 enqd_len, 0, unalign); in cdnsp_align_td() 1826 new_buff_len = max_pkt - (enqd_len % max_pkt); in cdnsp_align_td() 1828 if (new_buff_len > (preq->request.length - enqd_len)) in cdnsp_align_td() 1829 new_buff_len = (preq->request.length - enqd_len); in cdnsp_align_td() 1835 seg->bounce_buf, new_buff_len, enqd_len); in cdnsp_align_td() 1852 seg->bounce_offs = enqd_len; in cdnsp_align_td() 1854 trace_cdnsp_bounce_map(preq, new_buff_len, enqd_len, seg->bounce_dma, in cdnsp_align_td() 1866 unsigned int enqd_len, block_len, trb_buff_len, full_len; in cdnsp_queue_bulk_tx() local [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-ring.c | 3541 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, in xhci_align_td() argument 3551 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td() 3572 new_buff_len = max_pkt - (enqd_len % max_pkt); in xhci_align_td() 3574 if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) in xhci_align_td() 3575 new_buff_len = (urb->transfer_buffer_length - enqd_len); in xhci_align_td() 3581 seg->bounce_buf, new_buff_len, enqd_len); in xhci_align_td() 3586 memcpy(seg->bounce_buf, urb->transfer_buffer + enqd_len, new_buff_len); in xhci_align_td() 3603 seg->bounce_offs = enqd_len; in xhci_align_td() 3624 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local 3670 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()
|