Home
last modified time | relevance | path

Searched refs:trb_buff_len (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-ring.c1770 int trb_buff_len, in cdnsp_td_remainder() argument
1783 if (!more_trbs_coming || (transferred == 0 && trb_buff_len == 0) || in cdnsp_td_remainder()
1784 trb_buff_len == td_total_len) in cdnsp_td_remainder()
1791 return (total_packet_count - ((transferred + trb_buff_len) / maxp)); in cdnsp_td_remainder()
1796 u32 *trb_buff_len, struct cdnsp_segment *seg) in cdnsp_align_td() argument
1804 unalign = (enqd_len + *trb_buff_len) % max_pkt; in cdnsp_align_td()
1811 if (*trb_buff_len > unalign) { in cdnsp_align_td()
1812 *trb_buff_len -= unalign; in cdnsp_align_td()
1813 trace_cdnsp_bounce_align_td_split(preq, *trb_buff_len, in cdnsp_align_td()
1847 *trb_buff_len = new_buff_len; in cdnsp_align_td()
[all …]
/linux-6.12.1/drivers/usb/host/
Dxhci-ring.c3451 int trb_buff_len, unsigned int td_total_len, in xhci_td_remainder() argument
3461 if (!more_trbs_coming || (transferred == 0 && trb_buff_len == 0) || in xhci_td_remainder()
3462 trb_buff_len == td_total_len) in xhci_td_remainder()
3467 trb_buff_len = 0; in xhci_td_remainder()
3473 return (total_packet_count - ((transferred + trb_buff_len) / maxp)); in xhci_td_remainder()
3478 u32 *trb_buff_len, struct xhci_segment *seg) in xhci_align_td() argument
3487 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td()
3494 unalign, *trb_buff_len); in xhci_align_td()
3497 if (*trb_buff_len > unalign) { in xhci_align_td()
3498 *trb_buff_len -= unalign; in xhci_align_td()
[all …]
/linux-6.12.1/drivers/usb/gadget/udc/cdns2/
Dcdns2-gadget.c507 u32 trb_buff_len; in cdns2_ep_tx_isoc() local
541 enqd_len += trb_buff_len) { in cdns2_ep_tx_isoc()
549 trb_buff_len = TRB_BUFF_LEN_UP_TO_BOUNDARY(trb_dma); in cdns2_ep_tx_isoc()
550 trb_buff_len = min(trb_buff_len, remaining_packet_size); in cdns2_ep_tx_isoc()
551 trb_buff_len = min(trb_buff_len, block_length); 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()
583 length = TRB_LEN(trb_buff_len) | in cdns2_ep_tx_isoc()
[all …]