Searched refs:num_sg (Results 1 - 32 of 32) sorted by relevance

/linux-4.4.14/drivers/scsi/
H A Djazz_esp.c48 int num_sg, int dir) jazz_esp_map_sg()
50 return dma_map_sg(esp->dev, sg, num_sg, dir); jazz_esp_map_sg()
60 int num_sg, int dir) jazz_esp_unmap_sg()
62 dma_unmap_sg(esp->dev, sg, num_sg, dir); jazz_esp_unmap_sg()
47 jazz_esp_map_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) jazz_esp_map_sg() argument
59 jazz_esp_unmap_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) jazz_esp_unmap_sg() argument
H A Dsun3x_esp.c70 int num_sg, int dir) sun3x_esp_map_sg()
72 return dma_map_sg(esp->dev, sg, num_sg, dir); sun3x_esp_map_sg()
82 int num_sg, int dir) sun3x_esp_unmap_sg()
84 dma_unmap_sg(esp->dev, sg, num_sg, dir); sun3x_esp_unmap_sg()
69 sun3x_esp_map_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) sun3x_esp_map_sg() argument
81 sun3x_esp_unmap_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) sun3x_esp_unmap_sg() argument
H A Dmac_esp.c84 int num_sg, int dir) mac_esp_map_sg()
88 for (i = 0; i < num_sg; i++) mac_esp_map_sg()
90 return num_sg; mac_esp_map_sg()
100 int num_sg, int dir) mac_esp_unmap_sg()
83 mac_esp_map_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) mac_esp_map_sg() argument
99 mac_esp_unmap_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) mac_esp_unmap_sg() argument
H A Dsun_esp.c224 int num_sg, int dir) sbus_esp_map_sg()
228 return dma_map_sg(&op->dev, sg, num_sg, dir); sbus_esp_map_sg()
240 int num_sg, int dir) sbus_esp_unmap_sg()
244 dma_unmap_sg(&op->dev, sg, num_sg, dir); sbus_esp_unmap_sg()
223 sbus_esp_map_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) sbus_esp_map_sg() argument
239 sbus_esp_unmap_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) sbus_esp_unmap_sg() argument
H A Dam53c974.c126 int num_sg, int dir) pci_esp_map_sg()
128 return pci_map_sg(esp->dev, sg, num_sg, dir); pci_esp_map_sg()
138 int num_sg, int dir) pci_esp_unmap_sg()
140 pci_unmap_sg(esp->dev, sg, num_sg, dir); pci_esp_unmap_sg()
125 pci_esp_map_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) pci_esp_map_sg() argument
137 pci_esp_unmap_sg(struct esp *esp, struct scatterlist *sg, int num_sg, int dir) pci_esp_unmap_sg() argument
H A Desp_scsi.h253 int num_sg; member in union:esp_cmd_priv::__anon9371
373 int num_sg, int dir);
377 int num_sg, int dir);
H A Desp_scsi.c378 spriv->u.num_sg = esp->ops->map_sg(esp, sg, scsi_sg_count(cmd), dir); esp_map_dma()
383 for (i = 0; i < spriv->u.num_sg; i++) esp_map_dma()
450 esp->ops->unmap_sg(esp, scsi_sglist(cmd), spriv->u.num_sg, dir); esp_unmap_dma()
1372 ptr = scsi_kmap_atomic_sg(p->cur_sg, p->u.num_sg, esp_data_bytes_sent()
H A Dpmcraid.h543 u32 num_sg; member in struct:pmcraid_sglist
H A Dpmcraid.c3251 for (i = 0; i < sglist->num_sg; i++) pmcraid_free_sglist()
3299 sglist->num_sg = num_elem; pmcraid_alloc_sglist()
3590 sglist->num_sg, direction); pmcraid_build_passthrough_ioadls()
3639 sglist->num_sg, pmcraid_release_passthrough_ioadls()
H A Dipr.h1452 u32 num_sg; member in struct:ipr_sglist
H A Dipr.c3774 sglist->num_sg = num_elem; ipr_alloc_ucode_buffer()
3809 for (i = 0; i < sglist->num_sg; i++) ipr_free_ucode_buffer()
3963 sglist->scatterlist, sglist->num_sg, ipr_update_ioa_ucode()
8860 sglist->num_sg, DMA_TO_DEVICE); ipr_reset_ucode_download_done()
/linux-4.4.14/drivers/scsi/aic94xx/
H A Daic94xx_task.c61 int num_sg, res; asd_map_scatterlist() local
80 num_sg = task->num_scatter; asd_map_scatterlist()
82 num_sg = pci_map_sg(asd_ha->pcidev, task->scatter, asd_map_scatterlist()
84 if (num_sg == 0) asd_map_scatterlist()
87 if (num_sg > 3) { asd_map_scatterlist()
91 num_sg*sizeof(struct sg_el), asd_map_scatterlist()
97 for_each_sg(task->scatter, sc, num_sg, i) { asd_map_scatterlist()
102 if (i == num_sg-1) asd_map_scatterlist()
118 for_each_sg(task->scatter, sc, num_sg, i) { asd_map_scatterlist()
/linux-4.4.14/drivers/staging/rts5208/
H A Drtsx_transport.c324 struct scatterlist *sg, int num_sg, unsigned int *index, rtsx_transfer_sglist_adma_partial()
337 if ((sg == NULL) || (num_sg <= 0) || !offset || !index) rtsx_transfer_sglist_adma_partial()
366 sg_cnt = dma_map_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir); rtsx_transfer_sglist_adma_partial()
479 dma_unmap_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir); rtsx_transfer_sglist_adma_partial()
488 struct scatterlist *sg, int num_sg, rtsx_transfer_sglist_adma()
499 if ((sg == NULL) || (num_sg <= 0)) rtsx_transfer_sglist_adma()
528 buf_cnt = dma_map_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir); rtsx_transfer_sglist_adma()
626 dma_unmap_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir); rtsx_transfer_sglist_adma()
323 rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card, struct scatterlist *sg, int num_sg, unsigned int *index, unsigned int *offset, int size, enum dma_data_direction dma_dir, int timeout) rtsx_transfer_sglist_adma_partial() argument
487 rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card, struct scatterlist *sg, int num_sg, enum dma_data_direction dma_dir, int timeout) rtsx_transfer_sglist_adma() argument
/linux-4.4.14/drivers/mmc/host/
H A Dmoxart-mmc.c138 u32 num_sg; member in struct:moxart_host
155 host->num_sg = data->sg_len; moxart_init_sg()
168 host->num_sg--; moxart_next_sg()
170 if (host->num_sg > 0) { moxart_next_sg()
177 return host->num_sg; moxart_next_sg()
H A Dwbsd.h156 unsigned int num_sg; /* Number of entries left */ member in struct:wbsd_host
H A Dwbsd.c246 host->num_sg = data->sg_len; wbsd_init_sg()
258 host->num_sg--; wbsd_next_sg()
263 if (host->num_sg > 0) { wbsd_next_sg()
268 return host->num_sg; wbsd_next_sg()
426 if (host->num_sg == 0) wbsd_empty_fifo()
489 if (host->num_sg == 0) wbsd_fill_fifo()
1074 if (host->num_sg == 0) { wbsd_tasklet_fifo()
/linux-4.4.14/tools/virtio/
H A Dvringh_test.c327 unsigned int num_sg, len; parallel_test() local
351 sg_init_table(sg, num_sg = 3); parallel_test()
357 sg_init_table(sg, num_sg = 2); parallel_test()
362 sg_init_table(sg, num_sg = 1); parallel_test()
366 sg_init_table(sg, num_sg = 4); parallel_test()
378 err = virtqueue_add_outbuf(vq, sg, num_sg, dbuf, parallel_test()
381 err = virtqueue_add_inbuf(vq, sg, num_sg, parallel_test()
/linux-4.4.14/drivers/mfd/
H A Drtsx_pcr.c367 int num_sg, bool read, int timeout) rtsx_pci_transfer_data()
371 pcr_dbg(pcr, "--> %s: num_sg = %d\n", __func__, num_sg); rtsx_pci_transfer_data()
372 count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read); rtsx_pci_transfer_data()
379 rtsx_pci_dma_unmap_sg(pcr, sglist, num_sg, read); rtsx_pci_transfer_data()
386 int num_sg, bool read) rtsx_pci_dma_map_sg()
393 if ((sglist == NULL) || (num_sg <= 0)) rtsx_pci_dma_map_sg()
396 return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir); rtsx_pci_dma_map_sg()
401 int num_sg, bool read) rtsx_pci_dma_unmap_sg()
405 dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir); rtsx_pci_dma_unmap_sg()
366 rtsx_pci_transfer_data(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read, int timeout) rtsx_pci_transfer_data() argument
385 rtsx_pci_dma_map_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) rtsx_pci_dma_map_sg() argument
400 rtsx_pci_dma_unmap_sg(struct rtsx_pcr *pcr, struct scatterlist *sglist, int num_sg, bool read) rtsx_pci_dma_unmap_sg() argument
H A Drtsx_usb.c55 unsigned int pipe, struct scatterlist *sg, int num_sg, rtsx_usb_bulk_transfer_sglist()
61 __func__, length, num_sg); rtsx_usb_bulk_transfer_sglist()
63 sg, num_sg, length, GFP_NOIO); rtsx_usb_bulk_transfer_sglist()
79 void *buf, unsigned int len, int num_sg, rtsx_usb_transfer_data()
85 if (num_sg) rtsx_usb_transfer_data()
87 (struct scatterlist *)buf, num_sg, len, act_len, rtsx_usb_transfer_data()
54 rtsx_usb_bulk_transfer_sglist(struct rtsx_ucr *ucr, unsigned int pipe, struct scatterlist *sg, int num_sg, unsigned int length, unsigned int *act_len, int timeout) rtsx_usb_bulk_transfer_sglist() argument
78 rtsx_usb_transfer_data(struct rtsx_ucr *ucr, unsigned int pipe, void *buf, unsigned int len, int num_sg, unsigned int *act_len, int timeout) rtsx_usb_transfer_data() argument
/linux-4.4.14/include/linux/
H A Dagp_backend.h86 int num_sg; member in struct:agp_memory
/linux-4.4.14/arch/sparc/include/asm/
H A Dldc.h98 struct scatterlist *sg, int num_sg,
/linux-4.4.14/drivers/block/
H A Dxen-blkfront.c81 unsigned int num_sg; member in struct:blk_shadow
589 int num_sg, max_grefs, num_grant; blkif_queue_rw_req() local
625 num_sg = blk_rq_map_sg(req->q, req, info->shadow[id].sg); blkif_queue_rw_req()
628 for_each_sg(info->shadow[id].sg, sg, num_sg, i) blkif_queue_rw_req()
632 info->shadow[id].num_sg = num_sg; blkif_queue_rw_req()
677 for_each_sg(info->shadow[id].sg, sg, num_sg, i) { blkif_queue_rw_req()
1217 int num_sg, num_grant; blkif_completion() local
1225 num_sg = s->num_sg; blkif_completion()
1228 for_each_sg(s->sg, sg, num_sg, i) { blkif_completion()
/linux-4.4.14/drivers/char/agp/
H A Dintel-gtt.c123 static void intel_gtt_unmap_memory(struct scatterlist *sg_list, int num_sg) intel_gtt_unmap_memory() argument
129 num_sg, PCI_DMA_BIDIRECTIONAL); intel_gtt_unmap_memory()
132 st.orig_nents = st.nents = num_sg; intel_gtt_unmap_memory()
920 mem->num_sg = st.nents; intel_fake_agp_insert_entries()
955 intel_gtt_unmap_memory(mem->sg_list, mem->num_sg); intel_fake_agp_remove_entries()
957 mem->num_sg = 0; intel_fake_agp_remove_entries()
/linux-4.4.14/drivers/scsi/be2iscsi/
H A Dbe_main.c2321 unsigned int num_sg, struct beiscsi_io_task *io_task) hwi_write_sgl_v2()
2336 for (index = 0; (index < num_sg) && (index < 2); index++, hwi_write_sgl_v2()
2377 if (num_sg == 1) { hwi_write_sgl_v2()
2382 } else if (num_sg == 2) { hwi_write_sgl_v2()
2398 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) { hwi_write_sgl_v2()
2416 unsigned int num_sg, struct beiscsi_io_task *io_task) hwi_write_sgl()
2431 for (index = 0; (index < num_sg) && (index < 2); index++, hwi_write_sgl()
2466 if (num_sg == 1) { hwi_write_sgl()
2471 } else if (num_sg == 2) { hwi_write_sgl()
2486 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) { hwi_write_sgl()
4896 unsigned int num_sg, unsigned int xferlen, beiscsi_iotask_v2()
4936 hwi_write_sgl_v2(pwrb, sg, num_sg, io_task); beiscsi_iotask_v2()
4958 unsigned int num_sg, unsigned int xferlen, beiscsi_iotask()
4997 hwi_write_sgl(pwrb, sg, num_sg, io_task); beiscsi_iotask()
5140 int num_sg; beiscsi_task_xmit() local
5149 num_sg = scsi_dma_map(sc); beiscsi_task_xmit()
5150 if (num_sg < 0) { beiscsi_task_xmit()
5162 return num_sg; beiscsi_task_xmit()
5171 return phba->iotask_fn(task, sg, num_sg, xferlen, writedir); beiscsi_task_xmit()
2320 hwi_write_sgl_v2(struct iscsi_wrb *pwrb, struct scatterlist *sg, unsigned int num_sg, struct beiscsi_io_task *io_task) hwi_write_sgl_v2() argument
2415 hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg, unsigned int num_sg, struct beiscsi_io_task *io_task) hwi_write_sgl() argument
4895 beiscsi_iotask_v2(struct iscsi_task *task, struct scatterlist *sg, unsigned int num_sg, unsigned int xferlen, unsigned int writedir) beiscsi_iotask_v2() argument
4957 beiscsi_iotask(struct iscsi_task *task, struct scatterlist *sg, unsigned int num_sg, unsigned int xferlen, unsigned int writedir) beiscsi_iotask() argument
H A Dbe_main.h439 uint32_t num_sg, uint32_t xferlen,
/linux-4.4.14/net/sunrpc/xprtrdma/
H A Dsvc_rdma_transport.c795 u32 num_sg; rdma_alloc_frmr() local
801 num_sg = min_t(u32, RPCSVC_MAXPAGES, xprt->sc_frmr_pg_list_len); rdma_alloc_frmr()
802 mr = ib_alloc_mr(xprt->sc_pd, IB_MR_TYPE_MEM_REG, num_sg); rdma_alloc_frmr()
/linux-4.4.14/include/linux/mfd/
H A Drtsx_pci.h993 int num_sg, bool read, int timeout);
995 int num_sg, bool read);
997 int num_sg, bool read);
/linux-4.4.14/arch/sparc/kernel/
H A Dldc.c2063 static int sg_count_pages(struct scatterlist *sg, int num_sg) sg_count_pages() argument
2069 for (i = 0; i < num_sg; i++) { sg_count_pages()
2080 struct scatterlist *sg, int num_sg, ldc_map_sg()
2094 err = sg_count_pages(sg, num_sg); ldc_map_sg()
2116 for_each_sg(sg, s, num_sg, i) { for_each_sg()
2079 ldc_map_sg(struct ldc_channel *lp, struct scatterlist *sg, int num_sg, struct ldc_trans_cookie *cookies, int ncookies, unsigned int map_perm) ldc_map_sg() argument
/linux-4.4.14/drivers/usb/storage/
H A Dtransport.c418 struct scatterlist *sg, int num_sg, unsigned int length, usb_stor_bulk_transfer_sglist()
428 usb_stor_dbg(us, "xfer %u bytes, %d entries\n", length, num_sg); usb_stor_bulk_transfer_sglist()
430 sg, num_sg, length, GFP_NOIO); usb_stor_bulk_transfer_sglist()
417 usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe, struct scatterlist *sg, int num_sg, unsigned int length, unsigned int *act_len) usb_stor_bulk_transfer_sglist() argument
/linux-4.4.14/drivers/net/
H A Dvirtio_net.c853 unsigned num_sg; xmit_skb() local
905 num_sg = skb_to_sgvec(skb, sq->sg, 0, skb->len); xmit_skb()
910 num_sg = skb_to_sgvec(skb, sq->sg + 1, 0, skb->len) + 1; xmit_skb()
912 return virtqueue_add_outbuf(sq->vq, sq->sg, num_sg, skb, GFP_ATOMIC); xmit_skb()
/linux-4.4.14/drivers/scsi/qla2xxx/
H A Dqla_iocb.c861 uint32_t num_sg; member in struct:qla2_sgx
899 sgx->num_sg++; qla24xx_get_one_block_sg()
/linux-4.4.14/drivers/infiniband/ulp/isert/
H A Dib_isert.c2410 isert_dbg("Set outgoing sg_list: %p num_sg: %u from TCM SGLs\n",

Completed in 1230 milliseconds