Home
last modified time | relevance | path

Searched refs:num_sg (Results 1 – 24 of 24) sorted by relevance

/drivers/scsi/aic94xx/
Daic94xx_task.c43 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/
Drtsx_transport.c314 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/
Domap-crypto.c92 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/cardreader/
Drtsx_usb.c41 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()
Drtsx_pcr.c416 int num_sg, bool read, int timeout) in rtsx_pci_transfer_data() argument
420 pcr_dbg(pcr, "--> %s: num_sg = %d\n", __func__, num_sg); in rtsx_pci_transfer_data()
421 count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read); in rtsx_pci_transfer_data()
428 rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read); in rtsx_pci_transfer_data()
435 int num_sg, bool read) in rtsx_pci_dma_map_sg() argument
442 if ((sglist == NULL) || (num_sg <= 0)) in rtsx_pci_dma_map_sg()
445 return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir); in rtsx_pci_dma_map_sg()
450 int num_sg, bool read) in rtsx_pci_dma_unmap_sg() argument
454 dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir); in rtsx_pci_dma_unmap_sg()
/drivers/mmc/host/
Dmoxart-mmc.c138 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()
Dwbsd.c243 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()
Dwbsd.h152 unsigned int num_sg; /* Number of entries left */ member
/drivers/block/
Dxen-blkfront.c106 unsigned int num_sg; member
736 int num_sg, max_grefs, num_grant; in blkif_queue_rw_req() local
766 num_sg = blk_rq_map_sg(req->q, req, rinfo->shadow[id].sg); in blkif_queue_rw_req()
769 for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) in blkif_queue_rw_req()
776 rinfo->shadow[id].num_sg = num_sg; in blkif_queue_rw_req()
823 rinfo->shadow[extra_id].num_sg = 0; in blkif_queue_rw_req()
840 for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) { in blkif_queue_rw_req()
1462 int num_sg, num_grant; in blkif_completion() local
1496 if (s2->num_sg != 0) { in blkif_completion()
1512 num_sg = s->num_sg; in blkif_completion()
[all …]
/drivers/char/agp/
Dintel-gtt.c124 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/
Dbe_main.c2075 unsigned int num_sg, struct beiscsi_io_task *io_task) in hwi_write_sgl_v2() argument
2090 for (index = 0; (index < num_sg) && (index < 2); index++, in hwi_write_sgl_v2()
2131 if (num_sg == 1) { in hwi_write_sgl_v2()
2136 } else if (num_sg == 2) { in hwi_write_sgl_v2()
2152 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) { in hwi_write_sgl_v2()
2170 unsigned int num_sg, struct beiscsi_io_task *io_task) in hwi_write_sgl() argument
2185 for (index = 0; (index < num_sg) && (index < 2); index++, in hwi_write_sgl()
2220 if (num_sg == 1) { in hwi_write_sgl()
2225 } else if (num_sg == 2) { in hwi_write_sgl()
2240 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) { in hwi_write_sgl()
[all …]
Dbe_main.h375 uint32_t num_sg, uint32_t xferlen,
462 int num_sg; member
/drivers/usb/storage/
Dtransport.c412 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/
Dvirtio_net.c1634 int num_sg; in xmit_skb() local
1661 num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len); in xmit_skb()
1662 if (unlikely(num_sg < 0)) in xmit_skb()
1663 return num_sg; in xmit_skb()
1668 num_sg = skb_to_sgvec(skb, sq->sg + 1, 0, skb->len); in xmit_skb()
1669 if (unlikely(num_sg < 0)) in xmit_skb()
1670 return num_sg; in xmit_skb()
1671 num_sg++; in xmit_skb()
1673 return virtqueue_add_outbuf(sq->vq, sq->sg, num_sg, skb, GFP_ATOMIC); in xmit_skb()
/drivers/scsi/
Desp_scsi.h259 int num_sg; member
Desp_scsi.c387 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()
977 spriv->num_sg = 0; in esp_queuecommand_lck()
1366 ptr = scsi_kmap_atomic_sg(p->cur_sg, p->num_sg, in esp_data_bytes_sent()
Dpmcraid.h530 u32 num_sg; member
Dpmcraid.c3232 GFP_KERNEL | GFP_DMA | __GFP_ZERO, &sglist->num_sg); in pmcraid_alloc_sglist()
3502 sglist->num_sg, direction); in pmcraid_build_passthrough_ioadls()
3551 sglist->num_sg, in pmcraid_release_passthrough_ioadls()
Dipr.h1449 u32 num_sg; member
Dipr.c3874 &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/
Ddpaa2-eth.c750 int num_sg; in dpaa2_eth_build_sg_fd() local
767 num_sg = skb_to_sgvec(skb, scl, 0, skb->len); in dpaa2_eth_build_sg_fd()
768 if (unlikely(num_sg < 0)) { in dpaa2_eth_build_sg_fd()
772 num_dma_bufs = dma_map_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL); in dpaa2_eth_build_sg_fd()
814 swa->sg.num_sg = num_sg; in dpaa2_eth_build_sg_fd()
834 dma_unmap_sg(dev, scl, num_sg, DMA_BIDIRECTIONAL); in dpaa2_eth_build_sg_fd()
1007 dma_unmap_sg(dev, swa->sg.scl, swa->sg.num_sg, in dpaa2_eth_free_tx_fd()
Ddpaa2-eth.h138 int num_sg; member
/drivers/scsi/qla2xxx/
Dqla_def.h4899 uint32_t num_sg; member
Dqla_iocb.c880 sgx->num_sg++; in qla24xx_get_one_block_sg()