Lines Matching refs:trb_buff_len

1770 			      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()
1863 unsigned int enqd_len, block_len, trb_buff_len, full_len; in cdnsp_queue_bulk_tx() local
1937 enqd_len += trb_buff_len) { in cdnsp_queue_bulk_tx()
1941 trb_buff_len = TRB_BUFF_LEN_UP_TO_BOUNDARY(addr); in cdnsp_queue_bulk_tx()
1942 trb_buff_len = min(trb_buff_len, block_len); in cdnsp_queue_bulk_tx()
1943 if (enqd_len + trb_buff_len > full_len) in cdnsp_queue_bulk_tx()
1944 trb_buff_len = full_len - enqd_len; in cdnsp_queue_bulk_tx()
1959 if (enqd_len + trb_buff_len < full_len || need_zero_pkt) { in cdnsp_queue_bulk_tx()
1963 &trb_buff_len, in cdnsp_queue_bulk_tx()
1972 if (enqd_len + trb_buff_len >= full_len) { in cdnsp_queue_bulk_tx()
1990 remainder = cdnsp_td_remainder(pdev, enqd_len, trb_buff_len, in cdnsp_queue_bulk_tx()
1995 length_field = TRB_LEN(trb_buff_len) | TRB_TD_SIZE(remainder) | in cdnsp_queue_bulk_tx()
2004 addr += trb_buff_len; in cdnsp_queue_bulk_tx()
2005 sent_len = trb_buff_len; in cdnsp_queue_bulk_tx()
2220 unsigned int trb_buff_len, td_len, td_remain_len, block_len; in cdnsp_queue_isoc_tx() local
2287 trb_buff_len = TRB_BUFF_LEN_UP_TO_BOUNDARY(addr); in cdnsp_queue_isoc_tx()
2288 trb_buff_len = min(trb_buff_len, block_len); in cdnsp_queue_isoc_tx()
2289 if (trb_buff_len > td_remain_len) in cdnsp_queue_isoc_tx()
2290 trb_buff_len = td_remain_len; in cdnsp_queue_isoc_tx()
2294 trb_buff_len, td_len, preq, in cdnsp_queue_isoc_tx()
2297 length_field = TRB_LEN(trb_buff_len) | TRB_TD_SIZE(remainder) | in cdnsp_queue_isoc_tx()
2326 running_total += trb_buff_len; in cdnsp_queue_isoc_tx()
2327 addr += trb_buff_len; in cdnsp_queue_isoc_tx()
2328 td_remain_len -= trb_buff_len; in cdnsp_queue_isoc_tx()
2330 sent_len = trb_buff_len; in cdnsp_queue_isoc_tx()