/kernel/linux/linux-5.10/drivers/usb/usbip/ |
D | vhci_tx.c | 80 if (urb->num_sgs && usb_pipeout(urb->pipe)) in vhci_send_cmd_submit() 81 iovnum = 2 + urb->num_sgs; in vhci_send_cmd_submit() 91 if (urb->num_sgs) in vhci_send_cmd_submit() 106 if (urb->num_sgs && in vhci_send_cmd_submit() 108 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in vhci_send_cmd_submit()
|
D | stub_tx.c | 176 !urb->num_sgs) { in stub_send_ret_submit() 186 urb->num_sgs) in stub_send_ret_submit() 187 iovnum = 1 + urb->num_sgs; in stub_send_ret_submit() 240 if (urb->num_sgs) { in stub_send_ret_submit() 244 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in stub_send_ret_submit()
|
D | stub_main.c | 312 if (urb->num_sgs) { in stub_free_priv_and_urb() 315 urb->num_sgs = 0; in stub_free_priv_and_urb()
|
D | vhci_rx.c | 98 if (urb->num_sgs) in vhci_recv_ret_submit()
|
D | usbip_common.c | 712 if (urb->num_sgs) { in usbip_recv_xbuff() 714 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in usbip_recv_xbuff()
|
D | stub_rx.c | 542 priv->urbs[0]->num_sgs = nents; in stub_recv_cmd_submit()
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | dma-axi-dmac.c | 115 unsigned int num_sgs; member 234 if (desc->num_submitted == desc->num_sgs || in axi_dmac_start_transfer() 263 desc->num_sgs == 1) in axi_dmac_start_transfer() 304 for (i = 0; i < desc->num_sgs; i++) { in axi_dmac_dequeue_partial_xfers() 351 for (i = start; i < active->num_sgs; i++) { in axi_dmac_compute_residue() 392 if (active->num_completed == active->num_sgs || in axi_dmac_transfer_done() 475 static struct axi_dmac_desc *axi_dmac_alloc_desc(unsigned int num_sgs) in axi_dmac_alloc_desc() argument 480 desc = kzalloc(struct_size(desc, sg, num_sgs), GFP_NOWAIT); in axi_dmac_alloc_desc() 484 for (i = 0; i < num_sgs; i++) in axi_dmac_alloc_desc() 487 desc->num_sgs = num_sgs; in axi_dmac_alloc_desc() [all …]
|
D | stm32-dma.c | 192 u32 num_sgs; member 557 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_start_transfer() 602 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_configure_next_sg() 630 if (chan->next_sg == chan->desc->num_sgs) { in stm32_dma_handle_chan_done() 896 desc->num_sgs = sg_len; in stm32_dma_prep_slave_sg() 981 desc->num_sgs = num_periods; in stm32_dma_prep_dma_cyclic() 995 u32 num_sgs, best_burst, dma_burst, threshold; in stm32_dma_prep_dma_memcpy() local 998 num_sgs = DIV_ROUND_UP(len, STM32_DMA_ALIGNED_MAX_DATA_ITEMS); in stm32_dma_prep_dma_memcpy() 999 desc = kzalloc(struct_size(desc, sg_req, num_sgs), GFP_NOWAIT); in stm32_dma_prep_dma_memcpy() 1033 desc->num_sgs = num_sgs; in stm32_dma_prep_dma_memcpy() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
D | usb.c | 396 for (j = nsgs; j < urb->num_sgs; j++) in mt76u_fill_rx_sg() 398 urb->num_sgs = i; in mt76u_fill_rx_sg() 401 urb->num_sgs = max_t(int, i, urb->num_sgs); in mt76u_fill_rx_sg() 402 urb->transfer_buffer_length = urb->num_sgs * q->buf_size; in mt76u_fill_rx_sg() 403 sg_init_marker(urb->sg, urb->num_sgs); in mt76u_fill_rx_sg() 463 for (i = 0; i < urb->num_sgs; i++) in mt76u_urb_free() 570 u8 *data = urb->num_sgs ? sg_virt(&urb->sg[0]) : urb->transfer_buffer; in mt76u_process_rx_entry() 571 int data_len = urb->num_sgs ? urb->sg[0].length : urb->actual_length; in mt76u_process_rx_entry() 589 while (len > 0 && nsgs < urb->num_sgs) { in mt76u_process_rx_entry() 882 urb->num_sgs = skb_to_sgvec(skb, urb->sg, 0, skb->len); in mt76u_tx_setup_buffers() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
D | trace.h | 220 __field(unsigned, num_sgs) 234 __entry->num_sgs = req->num_sgs; 246 __entry->num_mapped_sgs, __entry->num_sgs, __entry->stream_id,
|
D | core.c | 823 if (req->num_sgs) { in usb_gadget_map_request_by_dev() 826 mapped = dma_map_sg(dev, req->sg, req->num_sgs, in usb_gadget_map_request_by_dev() 872 dma_unmap_sg(dev, req->sg, req->num_sgs, in usb_gadget_unmap_request_by_dev()
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
D | devio.c | 400 for (i = 0; i < as->urb->num_sgs; i++) { in free_async() 519 if (urb->num_sgs == 0) { in snoop_urb_data() 525 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data() 542 if (urb->num_sgs == 0) { in copy_urb_data_to_user() 548 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user() 1522 int i, ret, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local 1617 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb() 1618 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb() 1619 num_sgs = 0; in proc_do_submiturb() 1691 num_sgs = 0; in proc_do_submiturb() [all …]
|
D | urb.c | 472 } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && in usb_submit_urb() 477 for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) in usb_submit_urb()
|
D | hcd.c | 1369 urb->num_sgs, in usb_hcd_unmap_urb_for_dma() 1461 if (urb->num_sgs) { in usb_hcd_map_urb_for_dma() 1473 urb->num_sgs, in usb_hcd_map_urb_for_dma() 1480 if (n != urb->num_sgs) in usb_hcd_map_urb_for_dma()
|
/kernel/linux/linux-5.10/drivers/staging/mt7621-dma/ |
D | hsdma-mt7621.c | 139 unsigned int num_sgs; member 326 chan->desc->num_sgs = DIV_ROUND_UP(len, HSDMA_MAX_PLEN); in mtk_hsdma_start_transfer() 330 for (i = 0; i < chan->desc->num_sgs; i++) { in mtk_hsdma_start_transfer() 361 for (i = 0; i < chan->desc->num_sgs; i++) { in mtk_hsdma_start_transfer() 410 if (chan->next_sg == desc->num_sgs) { in mtk_hsdma_chan_done()
|
/kernel/linux/linux-5.10/drivers/staging/ralink-gdma/ |
D | ralink-gdma.c | 103 unsigned int num_sgs; member 441 if (chan->next_sg == desc->num_sgs) in gdma_dma_chan_irq() 446 if (chan->next_sg == desc->num_sgs) { in gdma_dma_chan_irq() 550 desc->num_sgs = sg_len; in gdma_dma_prep_slave_sg() 597 desc->num_sgs = num_periods; in gdma_dma_prep_dma_memcpy() 644 desc->num_sgs = num_periods; in gdma_dma_prep_dma_cyclic()
|
/kernel/linux/linux-5.10/net/rds/ |
D | send.c | 889 static int rds_rm_size(struct msghdr *msg, int num_sgs, in rds_rm_size() argument 899 if (num_sgs < 0) in rds_rm_size() 962 size += num_sgs * sizeof(struct scatterlist); in rds_rm_size() 1120 int num_sgs = DIV_ROUND_UP(payload_len, PAGE_SIZE); in rds_sendmsg() local 1262 num_sgs = iov_iter_npages(&msg->msg_iter, INT_MAX); in rds_sendmsg() 1265 ret = rds_rm_size(msg, num_sgs, &vct); in rds_sendmsg() 1277 rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); in rds_sendmsg()
|
D | message.c | 338 int num_sgs = DIV_ROUND_UP(total_len, PAGE_SIZE); in rds_message_map_pages() local 339 int extra_bytes = num_sgs * sizeof(struct scatterlist); in rds_message_map_pages() 348 rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); in rds_message_map_pages()
|
/kernel/linux/linux-5.10/drivers/net/usb/ |
D | usbnet.c | 1290 unsigned num_sgs, total_len = 0; in build_dma_sg() local 1293 num_sgs = skb_shinfo(skb)->nr_frags + 1; in build_dma_sg() 1294 if (num_sgs == 1) in build_dma_sg() 1298 urb->sg = kmalloc_array(num_sgs + 1, sizeof(struct scatterlist), in build_dma_sg() 1303 urb->num_sgs = num_sgs; in build_dma_sg() 1304 sg_init_table(urb->sg, urb->num_sgs + 1); in build_dma_sg() 1376 if (skb_tailroom(skb) && !urb->num_sgs) { in usbnet_start_xmit() 1379 } else if (urb->num_sgs) in usbnet_start_xmit() 1380 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | xhci-trace.h | 266 __field(int, num_sgs) 281 __entry->num_sgs = urb->num_sgs; 298 __entry->num_sgs, __entry->stream, __entry->flags
|
D | xhci-ring.c | 762 if (urb->num_sgs) { in xhci_unmap_td_bounce_buffer() 763 len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, in xhci_unmap_td_bounce_buffer() 3353 if (urb->num_sgs) { in xhci_align_td() 3354 len = sg_pcopy_to_buffer(urb->sg, urb->num_sgs, in xhci_align_td() 3397 unsigned int start_cycle, num_sgs = 0; in xhci_queue_bulk_tx() local 3409 if (urb->num_sgs) { in xhci_queue_bulk_tx() 3410 num_sgs = urb->num_mapped_sgs; in xhci_queue_bulk_tx() 3515 --num_sgs; in xhci_queue_bulk_tx() 3518 if (num_sgs != 0 && sg) { in xhci_queue_bulk_tx()
|
D | ehci-tegra.c | 318 if (urb->num_sgs || urb->sg || in alloc_dma_aligned_buffer()
|
/kernel/linux/linux-5.10/drivers/dma/mediatek/ |
D | mtk-hsdma.c | 418 u16 reserved, prev, tlen, num_sgs; in mtk_hsdma_issue_pending_vdesc() local 428 num_sgs = DIV_ROUND_UP(hvd->len, MTK_HSDMA_MAX_LEN); in mtk_hsdma_issue_pending_vdesc() 429 reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); in mtk_hsdma_issue_pending_vdesc()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | f_tcm.c | 228 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response() 267 fu->bot_req_out->num_sgs = se_cmd->t_data_nents; in bot_send_write_request() 530 stream->req_in->num_sgs = se_cmd->t_data_nents; in uasp_prepare_r_request() 965 if (req->num_sgs == 0) { in usbg_data_write_cmpl() 993 req->num_sgs = se_cmd->t_data_nents; in usbg_prepare_w_request()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
D | gadget.h | 106 unsigned num_sgs; member
|