Home
last modified time | relevance | path

Searched refs:this_sg_len (Results 1 – 6 of 6) sorted by relevance

/drivers/usb/host/
Dohci-q.c602 int i, this_sg_len, n; in td_submit_urb() local
626 this_sg_len = min_t(int, sg_dma_len(sg), data_len); in td_submit_urb()
633 this_sg_len = data_len; in td_submit_urb()
656 n = min(this_sg_len, 4096); in td_submit_urb()
659 if (n >= data_len || (i == 1 && n >= this_sg_len)) { in td_submit_urb()
664 this_sg_len -= n; in td_submit_urb()
669 if (this_sg_len <= 0) { in td_submit_urb()
674 this_sg_len = min_t(int, sg_dma_len(sg), in td_submit_urb()
Dehci-q.c592 int len, this_sg_len, maxpacket; in qh_urb_transaction() local
645 this_sg_len = min_t(int, sg_dma_len(sg), len); in qh_urb_transaction()
649 this_sg_len = len; in qh_urb_transaction()
666 this_qtd_len = qtd_fill(ehci, qtd, buf, this_sg_len, token, in qh_urb_transaction()
668 this_sg_len -= this_qtd_len; in qh_urb_transaction()
684 if (likely(this_sg_len <= 0)) { in qh_urb_transaction()
689 this_sg_len = min_t(int, sg_dma_len(sg), len); in qh_urb_transaction()
Duhci-q.c923 int this_sg_len; in uhci_submit_common() local
954 this_sg_len = min_t(int, sg_dma_len(sg), len); in uhci_submit_common()
958 this_sg_len = len; in uhci_submit_common()
990 this_sg_len -= pktsze; in uhci_submit_common()
992 if (this_sg_len <= 0) { in uhci_submit_common()
997 this_sg_len = min_t(int, sg_dma_len(sg), len); in uhci_submit_common()
Dohci-hcd.c116 int len, i, num, this_sg_len; in number_of_tds() local
126 this_sg_len = min_t(int, sg_dma_len(sg), len); in number_of_tds()
127 num += DIV_ROUND_UP(this_sg_len, 4096); in number_of_tds()
128 len -= this_sg_len; in number_of_tds()
Dxhci-ring.c3142 int trb_buff_len, this_sg_len, running_total, ret; in queue_bulk_sg_tx() local
3205 this_sg_len = sg_dma_len(sg); in queue_bulk_sg_tx()
3207 trb_buff_len = min_t(int, trb_buff_len, this_sg_len); in queue_bulk_sg_tx()
3277 this_sg_len -= trb_buff_len; in queue_bulk_sg_tx()
3278 if (this_sg_len == 0) { in queue_bulk_sg_tx()
3284 this_sg_len = sg_dma_len(sg); in queue_bulk_sg_tx()
3291 trb_buff_len = min_t(int, trb_buff_len, this_sg_len); in queue_bulk_sg_tx()
Dfotg210-hcd.c2571 int len, this_sg_len, maxpacket; in qh_urb_transaction() local
2624 this_sg_len = min_t(int, sg_dma_len(sg), len); in qh_urb_transaction()
2628 this_sg_len = len; in qh_urb_transaction()
2645 this_qtd_len = qtd_fill(fotg210, qtd, buf, this_sg_len, token, in qh_urb_transaction()
2647 this_sg_len -= this_qtd_len; in qh_urb_transaction()
2663 if (likely(this_sg_len <= 0)) { in qh_urb_transaction()
2668 this_sg_len = min_t(int, sg_dma_len(sg), len); in qh_urb_transaction()