Home
last modified time | relevance | path

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

/linux/drivers/usb/host/
H A Dxhci-ring.c3520 int trb_buff_len, unsigned int td_total_len, in xhci_td_remainder() argument
3530 if (!more_trbs_coming || (transferred == 0 && trb_buff_len == 0) || in xhci_td_remainder()
3531 trb_buff_len == td_total_len) in xhci_td_remainder()
3536 trb_buff_len = 0; in xhci_td_remainder()
3542 return (total_packet_count - ((transferred + trb_buff_len) / maxp)); in xhci_td_remainder()
3547 u32 *trb_buff_len, struct xhci_segment *seg) in xhci_align_td() argument
3556 unalign = (enqd_len + *trb_buff_len) % max_pkt; in xhci_align_td()
3563 unalign, *trb_buff_len); in xhci_align_td()
3566 if (*trb_buff_len > unalign) { in xhci_align_td()
3567 *trb_buff_len -= unalign; in xhci_align_td()
[all …]
/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-gadget.c508 u32 trb_buff_len; in cdns2_ep_tx_isoc() local
542 enqd_len += trb_buff_len) { in cdns2_ep_tx_isoc()
550 trb_buff_len = TRB_BUFF_LEN_UP_TO_BOUNDARY(trb_dma); in cdns2_ep_tx_isoc()
551 trb_buff_len = min(trb_buff_len, remaining_packet_size); in cdns2_ep_tx_isoc()
552 trb_buff_len = min(trb_buff_len, block_length); 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()
584 length = TRB_LEN(trb_buff_len) | in cdns2_ep_tx_isoc()
[all …]