Lines Matching refs:running_total
326 static u32 xhci_v1_0_td_remainder(int running_total, in xhci_v1_0_td_remainder() argument
335 if (num_trbs_left == 0 || (running_total == 0 && trb_buff_len == 0)) in xhci_v1_0_td_remainder()
342 packets_transferred = (running_total + trb_buff_len) / maxpacketsize; in xhci_v1_0_td_remainder()
571 int running_total, trb_buff_len; in xhci_bulk_tx() local
597 running_total = TRB_MAX_BUFF_SIZE - in xhci_bulk_tx()
599 trb_buff_len = running_total; in xhci_bulk_tx()
600 running_total &= TRB_MAX_BUFF_SIZE - 1; in xhci_bulk_tx()
606 if (running_total != 0 || length == 0) in xhci_bulk_tx()
610 while (running_total < length) { in xhci_bulk_tx()
612 running_total += TRB_MAX_BUFF_SIZE; in xhci_bulk_tx()
633 running_total = 0; in xhci_bulk_tx()
683 remainder = xhci_td_remainder(length - running_total); in xhci_bulk_tx()
685 remainder = xhci_v1_0_td_remainder(running_total, in xhci_bulk_tx()
705 running_total += trb_buff_len; in xhci_bulk_tx()
709 trb_buff_len = min((length - running_total), TRB_MAX_BUFF_SIZE); in xhci_bulk_tx()
710 } while (running_total < length); in xhci_bulk_tx()