/openbmc/linux/drivers/scsi/aic94xx/ |
H 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()
|
/openbmc/linux/drivers/crypto/ |
H 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()
|
/openbmc/linux/drivers/staging/rts5208/ |
H 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()
|
/openbmc/linux/drivers/misc/bcm-vk/ |
H 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()
|
/openbmc/linux/tools/virtio/ |
H 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()
|
/openbmc/linux/drivers/misc/cardreader/ |
H 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()
|
H 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()
|
/openbmc/linux/include/linux/ |
H A D | agp_backend.h | 86 int num_sg; member
|
H 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);
|
/openbmc/linux/drivers/mmc/host/ |
H 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()
|
H 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()
|
H A D | wbsd.h | 152 unsigned int num_sg; /* Number of entries left */ member
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 593 unsigned num_sg = *p_num_sg; in vduse_queue_map_single_desc() local 596 assert(num_sg <= max_num_sg); in vduse_queue_map_single_desc() 606 if (num_sg == max_num_sg) { in vduse_queue_map_single_desc() 612 iov[num_sg].iov_base = iova_to_va(dev, &len, pa); in vduse_queue_map_single_desc() 613 if (iov[num_sg].iov_base == NULL) { in vduse_queue_map_single_desc() 617 iov[num_sg++].iov_len = len; in vduse_queue_map_single_desc() 622 *p_num_sg = num_sg; in vduse_queue_map_single_desc()
|
/openbmc/linux/drivers/block/ |
H 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() 811 rinfo->shadow[extra_id].num_sg = 0; in blkif_queue_rw_req() 828 for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) { in blkif_queue_rw_req() 1389 int num_sg, num_grant; in blkif_completion() local 1423 if (s2->num_sg != 0) { in blkif_completion() 1439 num_sg = s->num_sg; in blkif_completion() [all …]
|
/openbmc/linux/drivers/char/agp/ |
H 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()
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | ldc.h | 107 struct scatterlist *sg, int num_sg,
|
/openbmc/linux/drivers/scsi/be2iscsi/ |
H 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() 4283 if (io_task->num_sg) in beiscsi_cleanup_task() 4756 int num_sg; in beiscsi_task_xmit() local 4775 io_task->num_sg = 0; in beiscsi_task_xmit() 4776 num_sg = scsi_dma_map(sc); in beiscsi_task_xmit() 4777 if (num_sg < 0) { in beiscsi_task_xmit() 4785 return num_sg; in beiscsi_task_xmit() [all …]
|
H A D | be_main.h | 374 uint32_t num_sg, uint32_t xferlen, 461 int num_sg; member
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.h | 155 int num_sg; member 168 int num_sg; member
|
/openbmc/linux/drivers/usb/storage/ |
H 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()
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 2731 unsigned num_sg = *p_num_sg; in virtqueue_map_desc() local 2733 assert(num_sg <= max_num_sg); in virtqueue_map_desc() 2743 if (num_sg == max_num_sg) { in virtqueue_map_desc() 2748 iov[num_sg].iov_base = vu_gpa_to_va(dev, &len, pa); in virtqueue_map_desc() 2749 if (iov[num_sg].iov_base == NULL) { in virtqueue_map_desc() 2753 iov[num_sg].iov_len = len; in virtqueue_map_desc() 2754 num_sg++; in virtqueue_map_desc() 2759 *p_num_sg = num_sg; in virtqueue_map_desc()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio.c | 1561 unsigned num_sg = *p_num_sg; in virtqueue_map_desc() local 1562 assert(num_sg <= max_num_sg); in virtqueue_map_desc() 1572 if (num_sg == max_num_sg) { in virtqueue_map_desc() 1578 iov[num_sg].iov_base = dma_memory_map(vdev->dma_as, pa, &len, in virtqueue_map_desc() 1583 if (!iov[num_sg].iov_base) { in virtqueue_map_desc() 1588 iov[num_sg].iov_len = len; in virtqueue_map_desc() 1589 addr[num_sg] = pa; in virtqueue_map_desc() 1593 num_sg++; in virtqueue_map_desc() 1598 *p_num_sg = num_sg; in virtqueue_map_desc() 1620 hwaddr *addr, unsigned int num_sg, in virtqueue_map_iovec() argument [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | esp_scsi.h | 259 int num_sg; member
|
H 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()
|
/openbmc/linux/arch/sparc/kernel/ |
H 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()
|