Searched refs:enqd_len (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/usb/cdns3/ |
H A D | cdnsp-ring.c | 1795 struct cdnsp_request *preq, u32 enqd_len, in cdnsp_align_td() argument 1804 unalign = (enqd_len + *trb_buff_len) % max_pkt; in cdnsp_align_td() 1814 enqd_len, 0, unalign); in cdnsp_align_td() 1823 new_buff_len = max_pkt - (enqd_len % max_pkt); in cdnsp_align_td() 1825 if (new_buff_len > (preq->request.length - enqd_len)) in cdnsp_align_td() 1826 new_buff_len = (preq->request.length - enqd_len); in cdnsp_align_td() 1832 seg->bounce_buf, new_buff_len, enqd_len); in cdnsp_align_td() 1849 seg->bounce_offs = enqd_len; in cdnsp_align_td() 1851 trace_cdnsp_bounce_map(preq, new_buff_len, enqd_len, seg->bounce_dma, in cdnsp_align_td() 1863 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 | 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() [all …]
|
/linux/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-gadget.c | 512 int enqd_len; in cdns2_ep_tx_isoc() local 540 for (enqd_len = 0; enqd_len < full_len; in cdns2_ep_tx_isoc() 541 enqd_len += trb_buff_len) { in cdns2_ep_tx_isoc() 553 if (trb_buff_len > full_len - enqd_len) in cdns2_ep_tx_isoc() 554 trb_buff_len = full_len - enqd_len; in cdns2_ep_tx_isoc() 564 if (enqd_len + trb_buff_len >= full_len || !pep->dir) in cdns2_ep_tx_isoc() 580 if (enqd_len + trb_buff_len < full_len) in cdns2_ep_tx_isoc()
|