/linux-6.3-rc2/drivers/scsi/aic94xx/ |
A D | aic94xx_task.c | 43 int num_sg, res; in asd_map_scatterlist() local 65 num_sg = task->num_scatter; in asd_map_scatterlist() 67 num_sg = dma_map_sg(&asd_ha->pcidev->dev, task->scatter, in asd_map_scatterlist() 69 if (num_sg == 0) in asd_map_scatterlist() 72 if (num_sg > 3) { in asd_map_scatterlist() 76 num_sg*sizeof(struct sg_el), in asd_map_scatterlist() 82 for_each_sg(task->scatter, sc, num_sg, i) { in asd_map_scatterlist() 87 if (i == num_sg-1) in asd_map_scatterlist() 103 for_each_sg(task->scatter, sc, num_sg, i) { in asd_map_scatterlist()
|
/linux-6.3-rc2/drivers/staging/rts5208/ |
A D | rtsx_transport.c | 312 struct scatterlist *sg, int num_sg, in rtsx_transfer_sglist_adma_partial() argument 327 if (!sg || num_sg <= 0 || !offset || !index) in rtsx_transfer_sglist_adma_partial() 356 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 469 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 478 struct scatterlist *sg, int num_sg, in rtsx_transfer_sglist_adma() argument 490 if (!sg || num_sg <= 0) in rtsx_transfer_sglist_adma() 519 buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma() 616 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma()
|
/linux-6.3-rc2/drivers/crypto/ |
A D | omap-crypto.c | 92 int num_sg = 0; in omap_crypto_check_sg() local 98 num_sg++; in omap_crypto_check_sg() 116 if ((flags & OMAP_CRYPTO_FORCE_SINGLE_ENTRY) && num_sg > 1) in omap_crypto_check_sg()
|
/linux-6.3-rc2/drivers/misc/bcm-vk/ |
A D | bcm_vk_sg.c | 230 int num_sg; in bcm_vk_dma_free() local 237 num_sg = dma->sglist[SGLIST_NUM_SG]; in bcm_vk_dma_free() 239 for (i = 0; i < num_sg; i++) { in bcm_vk_dma_free()
|
/linux-6.3-rc2/tools/virtio/ |
A D | vringh_test.c | 331 unsigned int num_sg, len; in parallel_test() local 355 sg_init_table(sg, num_sg = 3); in parallel_test() 361 sg_init_table(sg, num_sg = 2); in parallel_test() 366 sg_init_table(sg, num_sg = 1); in parallel_test() 370 sg_init_table(sg, num_sg = 4); in parallel_test() 382 err = virtqueue_add_outbuf(vq, sg, num_sg, dbuf, in parallel_test() 385 err = virtqueue_add_inbuf(vq, sg, num_sg, in parallel_test()
|
/linux-6.3-rc2/drivers/misc/cardreader/ |
A D | rtsx_usb.c | 41 unsigned int pipe, struct scatterlist *sg, int num_sg, in rtsx_usb_bulk_transfer_sglist() argument 47 __func__, length, num_sg); in rtsx_usb_bulk_transfer_sglist() 49 sg, num_sg, length, GFP_NOIO); in rtsx_usb_bulk_transfer_sglist() 68 void *buf, unsigned int len, int num_sg, in rtsx_usb_transfer_data() argument 74 if (num_sg) in rtsx_usb_transfer_data() 76 (struct scatterlist *)buf, num_sg, len, act_len, in rtsx_usb_transfer_data()
|
A D | rtsx_pcr.c | 422 int num_sg, bool read, int timeout) in rtsx_pci_transfer_data() argument 426 pcr_dbg(pcr, "--> %s: num_sg = %d\n", __func__, num_sg); in rtsx_pci_transfer_data() 427 count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read); in rtsx_pci_transfer_data() 434 rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read); in rtsx_pci_transfer_data() 441 int num_sg, bool read) in rtsx_pci_dma_map_sg() argument 448 if ((sglist == NULL) || (num_sg <= 0)) in rtsx_pci_dma_map_sg() 451 return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir); in rtsx_pci_dma_map_sg() 456 int num_sg, bool read) in rtsx_pci_dma_unmap_sg() argument 460 dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir); in rtsx_pci_dma_unmap_sg()
|
/linux-6.3-rc2/drivers/mmc/host/ |
A D | moxart-mmc.c | 138 u32 num_sg; member 155 host->num_sg = data->sg_len; in moxart_init_sg() 168 host->num_sg--; in moxart_next_sg() 170 if (host->num_sg > 0) { in moxart_next_sg() 177 return host->num_sg; in moxart_next_sg()
|
A D | wbsd.c | 243 host->num_sg = data->sg_len; in wbsd_init_sg() 255 host->num_sg--; in wbsd_next_sg() 260 if (host->num_sg > 0) { in wbsd_next_sg() 265 return host->num_sg; in wbsd_next_sg() 409 if (host->num_sg == 0) in wbsd_empty_fifo() 475 if (host->num_sg == 0) in wbsd_fill_fifo() 1061 if (host->num_sg == 0) { in wbsd_tasklet_fifo()
|
A D | wbsd.h | 152 unsigned int num_sg; /* Number of entries left */ member
|
/linux-6.3-rc2/include/linux/ |
A D | agp_backend.h | 86 int num_sg; member
|
A D | rtsx_pci.h | 1308 int num_sg, bool read, int timeout); 1310 int num_sg, bool read); 1312 int num_sg, bool read);
|
/linux-6.3-rc2/drivers/block/ |
A D | xen-blkfront.c | 107 unsigned int num_sg; member 724 int num_sg, max_grefs, num_grant; in blkif_queue_rw_req() local 754 num_sg = blk_rq_map_sg(req->q, req, rinfo->shadow[id].sg); in blkif_queue_rw_req() 757 for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) in blkif_queue_rw_req() 764 rinfo->shadow[id].num_sg = num_sg; in blkif_queue_rw_req() 810 rinfo->shadow[extra_id].num_sg = 0; in blkif_queue_rw_req() 827 for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) { in blkif_queue_rw_req() 1388 int num_sg, num_grant; in blkif_completion() local 1422 if (s2->num_sg != 0) { in blkif_completion() 1438 num_sg = s->num_sg; in blkif_completion() [all …]
|
/linux-6.3-rc2/drivers/char/agp/ |
A D | intel-gtt.c | 125 static void intel_gtt_unmap_memory(struct scatterlist *sg_list, int num_sg) in intel_gtt_unmap_memory() argument 130 dma_unmap_sg(&intel_private.pcidev->dev, sg_list, num_sg, in intel_gtt_unmap_memory() 134 st.orig_nents = st.nents = num_sg; in intel_gtt_unmap_memory() 936 mem->num_sg = st.nents; in intel_fake_agp_insert_entries() 971 intel_gtt_unmap_memory(mem->sg_list, mem->num_sg); in intel_fake_agp_remove_entries() 973 mem->num_sg = 0; in intel_fake_agp_remove_entries()
|
/linux-6.3-rc2/arch/sparc/include/asm/ |
A D | ldc.h | 107 struct scatterlist *sg, int num_sg,
|
/linux-6.3-rc2/drivers/scsi/be2iscsi/ |
A D | be_main.c | 2147 if (num_sg == 1) { in hwi_write_sgl_v2() 2152 } else if (num_sg == 2) { in hwi_write_sgl_v2() 2236 if (num_sg == 1) { in hwi_write_sgl() 2241 } else if (num_sg == 2) { in hwi_write_sgl() 4282 if (io_task->num_sg) in beiscsi_cleanup_task() 4755 int num_sg; in beiscsi_task_xmit() local 4774 io_task->num_sg = 0; in beiscsi_task_xmit() 4775 num_sg = scsi_dma_map(sc); in beiscsi_task_xmit() 4776 if (num_sg < 0) { in beiscsi_task_xmit() 4784 return num_sg; in beiscsi_task_xmit() [all …]
|
A D | be_main.h | 375 uint32_t num_sg, uint32_t xferlen, 462 int num_sg; member
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-eth.h | 154 int num_sg; member 167 int num_sg; member
|
A D | dpaa2-eth.c | 907 int num_sg; in dpaa2_eth_build_sg_fd() local 924 num_sg = skb_to_sgvec(skb, scl, 0, skb->len); in dpaa2_eth_build_sg_fd() 925 if (unlikely(num_sg < 0)) { in dpaa2_eth_build_sg_fd() 929 num_dma_bufs = dma_map_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL); in dpaa2_eth_build_sg_fd() 969 swa->sg.num_sg = num_sg; in dpaa2_eth_build_sg_fd() 990 dma_unmap_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL); in dpaa2_eth_build_sg_fd() 1157 dma_unmap_sg(dev, swa->sg.scl, swa->sg.num_sg, in dpaa2_eth_free_tx_fd() 1181 for (i = 1; i < swa->tso.num_sg; i++) in dpaa2_eth_free_tx_fd() 1341 swa->tso.num_sg = num_sge; in dpaa2_eth_build_gso_fd()
|
/linux-6.3-rc2/drivers/usb/storage/ |
A D | transport.c | 412 struct scatterlist *sg, int num_sg, unsigned int length, in usb_stor_bulk_transfer_sglist() argument 422 usb_stor_dbg(us, "xfer %u bytes, %d entries\n", length, num_sg); in usb_stor_bulk_transfer_sglist() 424 sg, num_sg, length, GFP_NOIO); in usb_stor_bulk_transfer_sglist()
|
/linux-6.3-rc2/drivers/scsi/ |
A D | esp_scsi.h | 259 int num_sg; member
|
A D | esp_scsi.c | 387 spriv->num_sg = scsi_sg_count(cmd); in esp_map_dma() 389 scsi_for_each_sg(cmd, s, spriv->num_sg, i) { in esp_map_dma() 394 spriv->num_sg = scsi_dma_map(cmd); in esp_map_dma() 395 scsi_for_each_sg(cmd, s, spriv->num_sg, i) in esp_map_dma() 969 spriv->num_sg = 0; in esp_queuecommand_lck() 1358 ptr = scsi_kmap_atomic_sg(p->cur_sg, p->num_sg, in esp_data_bytes_sent()
|
A D | pmcraid.h | 530 u32 num_sg; member
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | ldc.c | 2131 static int sg_count_pages(struct scatterlist *sg, int num_sg) in sg_count_pages() argument 2137 for (i = 0; i < num_sg; i++) { in sg_count_pages() 2148 struct scatterlist *sg, int num_sg, in ldc_map_sg() argument 2162 err = sg_count_pages(sg, num_sg); in ldc_map_sg() 2184 for_each_sg(sg, s, num_sg, i) { in ldc_map_sg()
|
/linux-6.3-rc2/drivers/net/ |
A D | virtio_net.c | 1906 int num_sg; in xmit_skb() local 1933 num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len); in xmit_skb() 1934 if (unlikely(num_sg < 0)) in xmit_skb() 1935 return num_sg; in xmit_skb() 1940 num_sg = skb_to_sgvec(skb, sq->sg + 1, 0, skb->len); in xmit_skb() 1941 if (unlikely(num_sg < 0)) in xmit_skb() 1942 return num_sg; in xmit_skb() 1943 num_sg++; in xmit_skb() 1945 return virtqueue_add_outbuf(sq->vq, sq->sg, num_sg, skb, GFP_ATOMIC); in xmit_skb()
|