/drivers/scsi/aic94xx/ |
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()
|
/drivers/staging/rts5208/ |
D | rtsx_transport.c | 314 struct scatterlist *sg, int num_sg, in rtsx_transfer_sglist_adma_partial() argument 329 if (!sg || (num_sg <= 0) || !offset || !index) in rtsx_transfer_sglist_adma_partial() 358 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 471 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 480 struct scatterlist *sg, int num_sg, in rtsx_transfer_sglist_adma() argument 492 if (!sg || (num_sg <= 0)) in rtsx_transfer_sglist_adma() 521 buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma() 618 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma()
|
/drivers/crypto/ |
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()
|
/drivers/misc/bcm-vk/ |
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()
|
/drivers/misc/cardreader/ |
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()
|
D | rtsx_pcr.c | 430 int num_sg, bool read, int timeout) in rtsx_pci_transfer_data() argument 434 pcr_dbg(pcr, "--> %s: num_sg = %d\n", __func__, num_sg); in rtsx_pci_transfer_data() 435 count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read); in rtsx_pci_transfer_data() 442 rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read); in rtsx_pci_transfer_data() 449 int num_sg, bool read) in rtsx_pci_dma_map_sg() argument 456 if ((sglist == NULL) || (num_sg <= 0)) in rtsx_pci_dma_map_sg() 459 return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir); in rtsx_pci_dma_map_sg() 464 int num_sg, bool read) in rtsx_pci_dma_unmap_sg() argument 468 dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir); in rtsx_pci_dma_unmap_sg()
|
/drivers/mmc/host/ |
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()
|
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()
|
D | wbsd.h | 152 unsigned int num_sg; /* Number of entries left */ member
|
/drivers/block/ |
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() 1401 int num_sg, num_grant; in blkif_completion() local 1435 if (s2->num_sg != 0) { in blkif_completion() 1451 num_sg = s->num_sg; in blkif_completion() [all …]
|
/drivers/char/agp/ |
D | intel-gtt.c | 124 static void intel_gtt_unmap_memory(struct scatterlist *sg_list, int num_sg) in intel_gtt_unmap_memory() argument 130 num_sg, PCI_DMA_BIDIRECTIONAL); in intel_gtt_unmap_memory() 133 st.orig_nents = st.nents = num_sg; in intel_gtt_unmap_memory() 938 mem->num_sg = st.nents; in intel_fake_agp_insert_entries() 973 intel_gtt_unmap_memory(mem->sg_list, mem->num_sg); in intel_fake_agp_remove_entries() 975 mem->num_sg = 0; in intel_fake_agp_remove_entries()
|
/drivers/scsi/be2iscsi/ |
D | be_main.c | 2072 unsigned int num_sg, struct beiscsi_io_task *io_task) in hwi_write_sgl_v2() argument 2087 for (index = 0; (index < num_sg) && (index < 2); index++, in hwi_write_sgl_v2() 2128 if (num_sg == 1) { in hwi_write_sgl_v2() 2133 } else if (num_sg == 2) { in hwi_write_sgl_v2() 2149 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) { in hwi_write_sgl_v2() 2167 unsigned int num_sg, struct beiscsi_io_task *io_task) in hwi_write_sgl() argument 2182 for (index = 0; (index < num_sg) && (index < 2); index++, in hwi_write_sgl() 2217 if (num_sg == 1) { in hwi_write_sgl() 2222 } else if (num_sg == 2) { in hwi_write_sgl() 2237 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) { in hwi_write_sgl() [all …]
|
D | be_main.h | 375 uint32_t num_sg, uint32_t xferlen, 462 int num_sg; member
|
/drivers/usb/storage/ |
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()
|
/drivers/net/ |
D | virtio_net.c | 1719 int num_sg; in xmit_skb() local 1746 num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len); in xmit_skb() 1747 if (unlikely(num_sg < 0)) in xmit_skb() 1748 return num_sg; in xmit_skb() 1753 num_sg = skb_to_sgvec(skb, sq->sg + 1, 0, skb->len); in xmit_skb() 1754 if (unlikely(num_sg < 0)) in xmit_skb() 1755 return num_sg; in xmit_skb() 1756 num_sg++; in xmit_skb() 1758 return virtqueue_add_outbuf(sq->vq, sq->sg, num_sg, skb, GFP_ATOMIC); in xmit_skb()
|
/drivers/scsi/ |
D | esp_scsi.h | 259 int num_sg; member
|
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() 971 spriv->num_sg = 0; in esp_queuecommand_lck() 1360 ptr = scsi_kmap_atomic_sg(p->cur_sg, p->num_sg, in esp_data_bytes_sent()
|
D | pmcraid.h | 530 u32 num_sg; member
|
D | pmcraid.c | 3225 GFP_KERNEL | GFP_DMA | __GFP_ZERO, &sglist->num_sg); in pmcraid_alloc_sglist() 3495 sglist->num_sg, direction); in pmcraid_build_passthrough_ioadls() 3544 sglist->num_sg, in pmcraid_release_passthrough_ioadls()
|
D | ipr.h | 1450 u32 num_sg; member
|
D | ipr.c | 3874 &sglist->num_sg); in ipr_alloc_ucode_buffer() 4050 sglist->scatterlist, sglist->num_sg, in ipr_update_ioa_ucode() 9114 sglist->num_sg, DMA_TO_DEVICE); in ipr_reset_ucode_download_done()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.c | 775 int num_sg; in dpaa2_eth_build_sg_fd() local 792 num_sg = skb_to_sgvec(skb, scl, 0, skb->len); in dpaa2_eth_build_sg_fd() 793 if (unlikely(num_sg < 0)) { in dpaa2_eth_build_sg_fd() 797 num_dma_bufs = dma_map_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL); in dpaa2_eth_build_sg_fd() 838 swa->sg.num_sg = num_sg; in dpaa2_eth_build_sg_fd() 858 dma_unmap_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL); in dpaa2_eth_build_sg_fd() 1031 dma_unmap_sg(dev, swa->sg.scl, swa->sg.num_sg, in dpaa2_eth_free_tx_fd()
|
D | dpaa2-eth.h | 138 int num_sg; member
|
/drivers/scsi/qla2xxx/ |
D | qla_def.h | 5100 uint32_t num_sg; member
|
D | qla_iocb.c | 831 sgx->num_sg++; in qla24xx_get_one_block_sg()
|