Lines Matching refs:trb_buff_len

2644 	int trb_buff_len, this_sg_len, running_total;  in queue_bulk_sg_tx()  local
2659 trb_buff_len = prepare_transfer(xhci, xhci->devs[slot_id], in queue_bulk_sg_tx()
2662 if (trb_buff_len < 0) in queue_bulk_sg_tx()
2663 return trb_buff_len; in queue_bulk_sg_tx()
2689 trb_buff_len = TRB_MAX_BUFF_SIZE - (addr & (TRB_MAX_BUFF_SIZE - 1)); in queue_bulk_sg_tx()
2690 trb_buff_len = min_t(int, trb_buff_len, this_sg_len); in queue_bulk_sg_tx()
2691 if (trb_buff_len > urb->transfer_buffer_length) in queue_bulk_sg_tx()
2692 trb_buff_len = urb->transfer_buffer_length; in queue_bulk_sg_tx()
2694 trb_buff_len); in queue_bulk_sg_tx()
2723 (unsigned int) addr, trb_buff_len, trb_buff_len, in queue_bulk_sg_tx()
2725 (unsigned int) addr + trb_buff_len); in queue_bulk_sg_tx()
2727 (addr & (TRB_MAX_BUFF_SIZE - 1)) < trb_buff_len) { in queue_bulk_sg_tx()
2731 (unsigned int) addr + trb_buff_len); in queue_bulk_sg_tx()
2735 length_field = TRB_LEN(trb_buff_len) | in queue_bulk_sg_tx()
2753 running_total += trb_buff_len; in queue_bulk_sg_tx()
2758 this_sg_len -= trb_buff_len; in queue_bulk_sg_tx()
2767 addr += trb_buff_len; in queue_bulk_sg_tx()
2770 trb_buff_len = TRB_MAX_BUFF_SIZE - in queue_bulk_sg_tx()
2772 trb_buff_len = min_t(int, trb_buff_len, this_sg_len); in queue_bulk_sg_tx()
2773 if (running_total + trb_buff_len > urb->transfer_buffer_length) in queue_bulk_sg_tx()
2774 trb_buff_len = in queue_bulk_sg_tx()
2798 int running_total, trb_buff_len, ret; in xhci_queue_bulk_tx() local
2855 trb_buff_len = TRB_MAX_BUFF_SIZE - in xhci_queue_bulk_tx()
2857 if (trb_buff_len > urb->transfer_buffer_length) in xhci_queue_bulk_tx()
2858 trb_buff_len = urb->transfer_buffer_length; in xhci_queue_bulk_tx()
2887 length_field = TRB_LEN(trb_buff_len) | in xhci_queue_bulk_tx()
2905 running_total += trb_buff_len; in xhci_queue_bulk_tx()
2908 addr += trb_buff_len; in xhci_queue_bulk_tx()
2909 trb_buff_len = urb->transfer_buffer_length - running_total; in xhci_queue_bulk_tx()
2910 if (trb_buff_len > TRB_MAX_BUFF_SIZE) in xhci_queue_bulk_tx()
2911 trb_buff_len = TRB_MAX_BUFF_SIZE; in xhci_queue_bulk_tx()
3060 int running_total, trb_buff_len, td_len, td_remain_len, ret; in xhci_queue_isoc_tx() local
3140 trb_buff_len = TRB_MAX_BUFF_SIZE - in xhci_queue_isoc_tx()
3142 if (trb_buff_len > td_remain_len) in xhci_queue_isoc_tx()
3143 trb_buff_len = td_remain_len; in xhci_queue_isoc_tx()
3146 length_field = TRB_LEN(trb_buff_len) | in xhci_queue_isoc_tx()
3159 running_total += trb_buff_len; in xhci_queue_isoc_tx()
3161 addr += trb_buff_len; in xhci_queue_isoc_tx()
3162 td_remain_len -= trb_buff_len; in xhci_queue_isoc_tx()