Lines Matching refs:trb_buff_len
3451 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()
3499 xhci_dbg(xhci, "split align, new buff len %d\n", *trb_buff_len); in xhci_align_td()
3537 *trb_buff_len = new_buff_len; in xhci_align_td()
3541 xhci_dbg(xhci, "Bounce align, new buff len %d\n", *trb_buff_len); in xhci_align_td()
3560 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local
3607 enqd_len += trb_buff_len) { in xhci_queue_bulk_tx()
3611 trb_buff_len = TRB_BUFF_LEN_UP_TO_BOUNDARY(addr); in xhci_queue_bulk_tx()
3612 trb_buff_len = min_t(unsigned int, trb_buff_len, block_len); in xhci_queue_bulk_tx()
3614 if (enqd_len + trb_buff_len > full_len) in xhci_queue_bulk_tx()
3615 trb_buff_len = full_len - enqd_len; in xhci_queue_bulk_tx()
3628 if (enqd_len + trb_buff_len < full_len) { in xhci_queue_bulk_tx()
3632 &trb_buff_len, in xhci_queue_bulk_tx()
3640 if (enqd_len + trb_buff_len >= full_len) { in xhci_queue_bulk_tx()
3648 trb_buff_len); in xhci_queue_bulk_tx()
3659 remainder = xhci_td_remainder(xhci, enqd_len, trb_buff_len, in xhci_queue_bulk_tx()
3662 length_field = TRB_LEN(trb_buff_len) | in xhci_queue_bulk_tx()
3671 addr += trb_buff_len; in xhci_queue_bulk_tx()
3672 sent_len = trb_buff_len; in xhci_queue_bulk_tx()
4011 int running_total, trb_buff_len, td_len, td_remain_len, ret; in xhci_queue_isoc_tx() local
4111 trb_buff_len = TRB_BUFF_LEN_UP_TO_BOUNDARY(addr); in xhci_queue_isoc_tx()
4112 if (trb_buff_len > td_remain_len) in xhci_queue_isoc_tx()
4113 trb_buff_len = td_remain_len; in xhci_queue_isoc_tx()
4117 trb_buff_len, td_len, in xhci_queue_isoc_tx()
4120 length_field = TRB_LEN(trb_buff_len) | in xhci_queue_isoc_tx()
4135 running_total += trb_buff_len; in xhci_queue_isoc_tx()
4137 addr += trb_buff_len; in xhci_queue_isoc_tx()
4138 td_remain_len -= trb_buff_len; in xhci_queue_isoc_tx()