/linux-6.6.21/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 | 308 if (urb->num_sgs) { in stub_free_priv_and_urb() 311 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 | 793 if (urb->num_sgs) { in usbip_recv_xbuff() 795 for_each_sg(urb->sg, sg, urb->num_sgs, i) { in usbip_recv_xbuff()
|
/linux-6.6.21/drivers/dma/ |
D | dma-axi-dmac.c | 119 unsigned int num_sgs; member 238 if (desc->num_submitted == desc->num_sgs || in axi_dmac_start_transfer() 267 desc->num_sgs == 1) in axi_dmac_start_transfer() 308 for (i = 0; i < desc->num_sgs; i++) { in axi_dmac_dequeue_partial_xfers() 355 for (i = start; i < active->num_sgs; i++) { in axi_dmac_compute_residue() 396 if (active->num_completed == active->num_sgs || in axi_dmac_transfer_done() 479 static struct axi_dmac_desc *axi_dmac_alloc_desc(unsigned int num_sgs) in axi_dmac_alloc_desc() argument 484 desc = kzalloc(struct_size(desc, sg, num_sgs), GFP_NOWAIT); in axi_dmac_alloc_desc() 488 for (i = 0; i < num_sgs; i++) in axi_dmac_alloc_desc() 491 desc->num_sgs = num_sgs; in axi_dmac_alloc_desc() [all …]
|
D | stm32-dma.c | 193 u32 num_sgs; member 551 if (chan->desc->cyclic && (chan->next_sg == chan->desc->num_sgs)) in stm32_dma_sg_inc() 581 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_start_transfer() 660 if (chan->desc->num_sgs == 1) in stm32_dma_handle_chan_paused() 698 sg_req = &chan->desc->sg_req[chan->desc->num_sgs - 1]; in stm32_dma_post_resume_reconfigure() 753 if (chan->next_sg == chan->desc->num_sgs) { in stm32_dma_handle_chan_done() 871 sg_req = &chan->desc->sg_req[chan->desc->num_sgs - 1]; in stm32_dma_resume() 1147 desc->num_sgs = sg_len; in stm32_dma_prep_slave_sg() 1238 desc->num_sgs = num_periods; in stm32_dma_prep_dma_cyclic() 1252 u32 num_sgs, best_burst, threshold; in stm32_dma_prep_dma_memcpy() local [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/ |
D | usb.c | 340 for (j = nsgs; j < urb->num_sgs; j++) in mt76u_fill_rx_sg() 342 urb->num_sgs = i; in mt76u_fill_rx_sg() 345 urb->num_sgs = max_t(int, i, urb->num_sgs); in mt76u_fill_rx_sg() 346 urb->transfer_buffer_length = urb->num_sgs * q->buf_size; in mt76u_fill_rx_sg() 347 sg_init_marker(urb->sg, urb->num_sgs); in mt76u_fill_rx_sg() 408 for (i = 0; i < urb->num_sgs; i++) in mt76u_urb_free() 515 u8 *data = urb->num_sgs ? sg_virt(&urb->sg[0]) : urb->transfer_buffer; in mt76u_process_rx_entry() 516 int data_len = urb->num_sgs ? urb->sg[0].length : urb->actual_length; in mt76u_process_rx_entry() 539 while (len > 0 && nsgs < urb->num_sgs) { in mt76u_process_rx_entry() 845 urb->num_sgs = skb_to_sgvec(skb, urb->sg, 0, skb->len); in mt76u_tx_setup_buffers() [all …]
|
/linux-6.6.21/drivers/usb/gadget/udc/ |
D | trace.h | 225 __field(unsigned, num_sgs) 239 __entry->num_sgs = req->num_sgs; 251 __entry->num_mapped_sgs, __entry->num_sgs, __entry->stream_id,
|
D | core.c | 906 if (req->num_sgs) { in usb_gadget_map_request_by_dev() 909 mapped = dma_map_sg(dev, req->sg, req->num_sgs, in usb_gadget_map_request_by_dev() 955 dma_unmap_sg(dev, req->sg, req->num_sgs, in usb_gadget_unmap_request_by_dev()
|
/linux-6.6.21/drivers/usb/cdns3/ |
D | cdnsp-ring.c | 623 len = sg_pcopy_from_buffer(preq->request.sg, preq->request.num_sgs, in cdnsp_unmap_td_bounce_buffer() 1727 for_each_sg(preq->request.sg, sg, preq->request.num_sgs, i) { in count_sg_trbs_needed() 1862 unsigned int start_cycle, num_sgs = 0; in cdnsp_queue_bulk_tx() local 1882 if (preq->request.num_sgs) { in cdnsp_queue_bulk_tx() 1883 num_sgs = preq->request.num_sgs; in cdnsp_queue_bulk_tx() 1989 --num_sgs; in cdnsp_queue_bulk_tx() 1991 if (num_sgs != 0) { in cdnsp_queue_bulk_tx() 2210 unsigned int num_sgs = 0; in cdnsp_queue_isoc_tx() local 2222 if (preq->request.num_sgs) { in cdnsp_queue_isoc_tx() 2223 num_sgs = preq->request.num_sgs; in cdnsp_queue_isoc_tx() [all …]
|
D | cdnsp-trace.h | 468 __field(unsigned int, num_sgs) 486 __entry->num_sgs = req->request.num_sgs; 498 __entry->sg, __entry->num_sgs, __entry->num_mapped_sgs
|
/linux-6.6.21/drivers/usb/core/ |
D | devio.c | 420 for (i = 0; i < as->urb->num_sgs; i++) { in free_async() 539 if (urb->num_sgs == 0) { in snoop_urb_data() 545 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data() 562 if (urb->num_sgs == 0) { in copy_urb_data_to_user() 568 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user() 1625 int i, ret, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local 1720 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb() 1721 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb() 1722 num_sgs = 0; in proc_do_submiturb() 1794 num_sgs = 0; in proc_do_submiturb() [all …]
|
D | urb.c | 483 } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint) { in usb_submit_urb() 487 for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) in usb_submit_urb()
|
/linux-6.6.21/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 1261 num_sgs = iov_iter_npages(&msg->msg_iter, INT_MAX); in rds_sendmsg() 1264 ret = rds_rm_size(msg, num_sgs, &vct); in rds_sendmsg() 1276 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()
|
/linux-6.6.21/drivers/usb/host/ |
D | xhci-trace.h | 261 __field(int, num_sgs) 276 __entry->num_sgs = urb->num_sgs; 293 __entry->num_sgs, __entry->stream, __entry->flags
|
D | xhci-ring.c | 818 if (urb->num_sgs) { in xhci_unmap_td_bounce_buffer() 819 len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, in xhci_unmap_td_bounce_buffer() 3559 if (urb->num_sgs) { in xhci_align_td() 3560 len = sg_pcopy_to_buffer(urb->sg, urb->num_sgs, in xhci_align_td() 3603 unsigned int start_cycle, num_sgs = 0; in xhci_queue_bulk_tx() local 3615 if (urb->num_sgs && !(urb->transfer_flags & URB_DMA_MAP_SINGLE)) { in xhci_queue_bulk_tx() 3616 num_sgs = urb->num_mapped_sgs; in xhci_queue_bulk_tx() 3721 --num_sgs; in xhci_queue_bulk_tx() 3724 if (num_sgs != 0 && sg) { in xhci_queue_bulk_tx()
|
/linux-6.6.21/drivers/usb/gadget/udc/cdns2/ |
D | cdns2-trace.h | 285 __field(unsigned int, num_sgs) 303 __entry->num_sgs = preq->request.num_sgs; 317 __entry->sg, __entry->num_sgs, __entry->num_mapped_sgs,
|
D | cdns2-gadget.c | 421 for_each_sg(req->sg, sg, req->num_sgs, i) { in cdns2_count_sg_trbs() 524 split_size = preq->request.num_sgs ? 1024 : 3072; in cdns2_ep_tx_isoc() 527 if (preq->request.num_sgs) { in cdns2_ep_tx_isoc() 537 sg_iter = preq->request.num_sgs ? preq->request.num_sgs : 1; in cdns2_ep_tx_isoc() 626 if (preq->request.num_sgs) { in cdns2_ep_tx_bulk()
|
/linux-6.6.21/drivers/net/usb/ |
D | usbnet.c | 1317 unsigned num_sgs, total_len = 0; in build_dma_sg() local 1320 num_sgs = skb_shinfo(skb)->nr_frags + 1; in build_dma_sg() 1321 if (num_sgs == 1) in build_dma_sg() 1325 urb->sg = kmalloc_array(num_sgs + 1, sizeof(struct scatterlist), in build_dma_sg() 1330 urb->num_sgs = num_sgs; in build_dma_sg() 1331 sg_init_table(urb->sg, urb->num_sgs + 1); in build_dma_sg() 1403 if (skb_tailroom(skb) && !urb->num_sgs) { in usbnet_start_xmit() 1406 } else if (urb->num_sgs) in usbnet_start_xmit() 1407 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
|
/linux-6.6.21/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 806 u32 len, num_sgs = 0; in dw_axi_dma_chan_prep_slave_sg() local 824 num_sgs += DIV_ROUND_UP(sg_dma_len(sg), axi_block_len); in dw_axi_dma_chan_prep_slave_sg() 826 desc = axi_desc_alloc(num_sgs); in dw_axi_dma_chan_prep_slave_sg() 853 set_desc_last(&desc->hw_desc[num_sgs - 1]); in dw_axi_dma_chan_prep_slave_sg() 857 hw_desc = &desc->hw_desc[--num_sgs]; in dw_axi_dma_chan_prep_slave_sg() 860 } while (num_sgs); in dw_axi_dma_chan_prep_slave_sg()
|
/linux-6.6.21/drivers/dma/mediatek/ |
D | mtk-hsdma.c | 417 u16 reserved, prev, tlen, num_sgs; in mtk_hsdma_issue_pending_vdesc() local 427 num_sgs = DIV_ROUND_UP(hvd->len, MTK_HSDMA_MAX_LEN); in mtk_hsdma_issue_pending_vdesc() 428 reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); in mtk_hsdma_issue_pending_vdesc()
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/media/platform/st/stm32/ |
D | stm32-dcmi.c | 527 unsigned int num_sgs = 1; in dcmi_buf_prepare() local 546 num_sgs = DIV_ROUND_UP(buf->size, dcmi->dma_max_burst); in dcmi_buf_prepare() 548 ret = sg_alloc_table(&buf->sgt, num_sgs, GFP_ATOMIC); in dcmi_buf_prepare() 559 for_each_sg(buf->sgt.sgl, sg, num_sgs, i) { in dcmi_buf_prepare()
|