Home
last modified time | relevance | path

Searched refs:sgl (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/linux-6.3-rc2/drivers/misc/genwqe/
A Dcard_utils.c304 sgl->fpage_offs, sgl->fpage_size, sgl->lpage_size); in genwqe_alloc_sync_sgl()
317 sgl->sgl = __genwqe_alloc_consistent(cd, sgl->sgl_size, in genwqe_alloc_sync_sgl()
319 if (sgl->sgl == NULL) { in genwqe_alloc_sync_sgl()
347 sgl->lpage_size, sgl->lpage_size)) { in genwqe_alloc_sync_sgl()
365 __genwqe_free_consistent(cd, sgl->sgl_size, sgl->sgl, in genwqe_alloc_sync_sgl()
367 sgl->sgl = NULL; in genwqe_alloc_sync_sgl()
386 s = &sgl->sgl[0]; /* first set of 8 entries */ in genwqe_setup_sgl()
483 sgl->fpage + sgl->fpage_offs, sgl->fpage_size); in genwqe_free_sync_sgl()
498 offset = sgl->user_size - sgl->lpage_size; in genwqe_free_sync_sgl()
513 __genwqe_free_consistent(cd, sgl->sgl_size, sgl->sgl, in genwqe_free_sync_sgl()
[all …]
/linux-6.3-rc2/drivers/crypto/hisilicon/
A Dsgl.c37 struct hisi_acc_hw_sgl *sgl; member
95 if (!block[i].sgl) { in hisi_acc_create_sgl_pool()
107 if (!block[i].sgl) { in hisi_acc_create_sgl_pool()
178 hw_sge->buf = sg_dma_address(sgl); in sg_map_to_hw_sg()
180 hw_sge->page_ctrl = sg_virt(sgl); in sg_map_to_hw_sg()
221 struct scatterlist *sgl, in hisi_acc_sg_buf_map_to_hw_sgl() argument
231 if (!dev || !sgl || !pool || !hw_sgl_dma) in hisi_acc_sg_buf_map_to_hw_sgl()
234 sg_n = sg_nents(sgl); in hisi_acc_sg_buf_map_to_hw_sgl()
256 for_each_sg(sgl, sg, sg_n_mapped, i) { in hisi_acc_sg_buf_map_to_hw_sgl()
280 if (!dev || !sgl || !hw_sgl) in hisi_acc_sg_buf_unmap()
[all …]
/linux-6.3-rc2/mm/
A Dpage_reporting.c108 struct scatterlist *sg = sgl; in page_reporting_drain()
137 sg_init_table(sgl, nents); in page_reporting_drain()
208 sg_set_page(&sgl[*offset], page, page_len, 0); in page_reporting_cycle()
286 sgl, &offset); in page_reporting_process_zone()
295 sgl = &sgl[offset]; in page_reporting_process_zone()
296 err = prdev->report(prdev, sgl, leftover); in page_reporting_process_zone()
313 struct scatterlist *sgl; in page_reporting_process() local
325 sgl = kmalloc_array(PAGE_REPORTING_CAPACITY, sizeof(*sgl), GFP_KERNEL); in page_reporting_process()
326 if (!sgl) in page_reporting_process()
329 sg_init_table(sgl, PAGE_REPORTING_CAPACITY); in page_reporting_process()
[all …]
/linux-6.3-rc2/lib/
A Dscatterlist.c126 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table()
127 sg_init_marker(sgl, nents); in sg_init_table()
203 sgl = table->sgl; in __sg_free_table()
228 sgl = next; in __sg_free_table()
232 table->sgl = NULL; in __sg_free_table()
343 table->sgl = sg; in __sg_alloc_table()
630 if (!sgl) in sgl_alloc_order()
634 sg = sgl; in sgl_alloc_order()
650 return sgl; in sgl_alloc_order()
695 kfree(sgl); in sgl_free_n_order()
[all …]
A Dkfifo.c295 static int setup_sgl_buf(struct scatterlist *sgl, void *buf, in setup_sgl_buf() argument
321 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf()
322 sgl = sg_next(sgl); in setup_sgl_buf()
323 if (++n == nents || sgl == NULL) in setup_sgl_buf()
330 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
350 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl()
351 n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); in setup_sgl()
357 struct scatterlist *sgl, int nents, unsigned int len) in __kfifo_dma_in_prepare() argument
365 return setup_sgl(fifo, sgl, nents, len, fifo->in); in __kfifo_dma_in_prepare()
370 struct scatterlist *sgl, int nents, unsigned int len) in __kfifo_dma_out_prepare() argument
[all …]
/linux-6.3-rc2/include/linux/
A Dscatterlist.h40 struct scatterlist *sgl; /* the list */ member
178 for_each_sg((sgt)->sgl, sg, (sgt)->orig_nents, i)
186 for_each_sg((sgt)->sgl, sg, (sgt)->nents, i)
189 struct scatterlist *sgl) in __sg_chain() argument
201 chain_sg->page_link = ((unsigned long) sgl | SG_CHAIN) & ~SG_END; in __sg_chain()
215 struct scatterlist *sgl) in sg_chain() argument
217 __sg_chain(&prv[prv_nents - 1], sgl); in sg_chain()
353 static inline void sg_init_marker(struct scatterlist *sgl, in sg_init_marker() argument
356 sg_mark_end(&sgl[nents - 1]); in sg_init_marker()
428 void sgl_free_order(struct scatterlist *sgl, int order);
[all …]
/linux-6.3-rc2/crypto/
A Daf_alg.c553 sg_set_page(sgl->sg + i, sgl->pages[i], plen, off); in af_alg_make_sg()
636 sg = sgl->sg; in af_alg_alloc_tsgl()
642 if (!sgl) in af_alg_alloc_tsgl()
1024 sg = sgl->sg + sgl->cur - 1; in af_alg_sendmsg()
1090 sgl->cur++; in af_alg_sendmsg()
1153 if (sgl->cur) in af_alg_sendpage()
1154 sg_unmark_end(sgl->sg + sgl->cur - 1); in af_alg_sendpage()
1156 sg_mark_end(sgl->sg + sgl->cur); in af_alg_sendpage()
1159 sg_set_page(sgl->sg + sgl->cur, page, size, offset); in af_alg_sendpage()
1160 sgl->cur++; in af_alg_sendpage()
[all …]
/linux-6.3-rc2/drivers/target/iscsi/cxgbit/
A Dcxgbit_ddp.c133 struct scatterlist *sg = ttinfo->sgl; in cxgbit_ddp_set_map()
176 struct scatterlist *sgl = ttinfo->sgl; in cxgbit_ddp_reserve() local
178 unsigned int sg_offset = sgl->offset; in cxgbit_ddp_reserve()
188 if (cxgbit_ddp_sgl_check(sgl, sgcnt) < 0) in cxgbit_ddp_reserve()
191 ttinfo->nr_pages = (xferlen + sgl->offset + in cxgbit_ddp_reserve()
203 sgl->offset = 0; in cxgbit_ddp_reserve()
205 sgl->offset = sg_offset; in cxgbit_ddp_reserve()
245 ttinfo->sgl = cmd->se_cmd.t_data_sg; in cxgbit_get_r2t_ttt()
253 ttinfo->sgl = NULL; in cxgbit_get_r2t_ttt()
284 if (unlikely(ttinfo->sgl)) { in cxgbit_unmap_cmd()
[all …]
/linux-6.3-rc2/drivers/crypto/qat/qat_common/
A Dqat_bl.c51 struct scatterlist *sgl, in __qat_bl_sgl_to_bufl() argument
62 int n = sg_nents(sgl); in __qat_bl_sgl_to_bufl()
96 for_each_sg(sgl, sg, n, i) { in __qat_bl_sgl_to_bufl()
126 if (sgl != sglout) { in __qat_bl_sgl_to_bufl()
215 n = sg_nents(sgl); in __qat_bl_sgl_to_bufl()
267 struct scatterlist *sgl, in qat_bl_sgl_map() argument
277 n = sg_nents(sgl); in qat_bl_sgl_map()
331 if (sgl) in qat_bl_sgl_free_unmap()
332 sgl_free(sgl); in qat_bl_sgl_free_unmap()
354 *sgl = dst; in qat_bl_sgl_alloc_map()
[all …]
/linux-6.3-rc2/tools/virtio/linux/
A Dscatterlist.h92 struct scatterlist *sgl) in sg_chain() argument
104 prv[prv_nents - 1].page_link = ((unsigned long) sgl | 0x01) & ~0x02; in sg_chain()
150 static inline void sg_init_table(struct scatterlist *sgl, unsigned int nents) in sg_init_table() argument
152 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table()
153 sg_mark_end(&sgl[nents - 1]); in sg_init_table()
/linux-6.3-rc2/drivers/scsi/lpfc/
A Dlpfc_scsi.c106 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_sli4_set_rsp_sgl_last()
108 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_sli4_set_rsp_sgl_last()
663 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_get_scsi_buf_s4()
665 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_get_scsi_buf_s4()
673 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_get_scsi_buf_s4()
675 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_get_scsi_buf_s4()
2265 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_bg_setup_sgl_prot()
3096 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3098 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
3227 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_scsi_prep_dma_buf_s4()
[all …]
A Dlpfc_nvme.c850 sgl->addr_hi = 0; in lpfc_nvme_adj_fcp_sgls()
851 sgl->addr_lo = 0; in lpfc_nvme_adj_fcp_sgls()
904 sgl++; in lpfc_nvme_adj_fcp_sgls()
909 sgl->word2 = le32_to_cpu(sgl->word2); in lpfc_nvme_adj_fcp_sgls()
914 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_nvme_adj_fcp_sgls()
1362 sgl += 2; in lpfc_nvme_prep_io_dma()
1397 sgl->word2 = 0; in lpfc_nvme_prep_io_dma()
1444 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_nvme_prep_io_dma()
1450 sgl++; in lpfc_nvme_prep_io_dma()
1454 sgl->word2 = cpu_to_le32(sgl->word2); in lpfc_nvme_prep_io_dma()
[all …]
/linux-6.3-rc2/kernel/dma/
A Ddirect.h21 int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl, int nents,
27 void dma_direct_sync_sg_for_device(struct device *dev, struct scatterlist *sgl,
31 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument
39 void dma_direct_unmap_sg(struct device *dev, struct scatterlist *sgl,
42 struct scatterlist *sgl, int nents, enum dma_data_direction dir);
45 struct scatterlist *sgl, int nents, enum dma_data_direction dir, in dma_direct_unmap_sg() argument
50 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument
/linux-6.3-rc2/drivers/spi/
A Dspi-bcm2835.c493 if (bs->tx_buf && !sg_is_last(&tfr->tx_sg.sgl[0])) in bcm2835_spi_transfer_prologue()
505 !(sg_dma_len(&tfr->tx_sg.sgl[0]) & ~3); in bcm2835_spi_transfer_prologue()
527 sg_dma_address(&tfr->rx_sg.sgl[0]), in bcm2835_spi_transfer_prologue()
556 sg_dma_len(&tfr->tx_sg.sgl[0]) = 0; in bcm2835_spi_transfer_prologue()
557 sg_dma_address(&tfr->tx_sg.sgl[1]) += 4; in bcm2835_spi_transfer_prologue()
558 sg_dma_len(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_transfer_prologue()
590 sg_dma_address(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_undo_prologue()
591 sg_dma_len(&tfr->tx_sg.sgl[1]) += 4; in bcm2835_spi_undo_prologue()
674 struct scatterlist *sgl; in bcm2835_spi_prepare_sg() local
686 sgl = tfr->tx_sg.sgl; in bcm2835_spi_prepare_sg()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/core/
A Dfirmware.c124 .sgl = &fw->mem.sgl, in nvkm_firmware_mem_map()
136 return sg_dma_len(&nvkm_firmware_mem(memory)->mem.sgl); in nvkm_firmware_mem_size()
190 dma_free_coherent(fw->device->dev, sg_dma_len(&fw->mem.sgl), fw->img, fw->phys); in nvkm_firmware_dtor()
224 sg_init_one(&fw->mem.sgl, fw->img, len); in nvkm_firmware_ctor()
225 sg_dma_address(&fw->mem.sgl) = fw->phys; in nvkm_firmware_ctor()
226 sg_dma_len(&fw->mem.sgl) = len; in nvkm_firmware_ctor()
/linux-6.3-rc2/drivers/xen/
A Dswiotlb-xen.c311 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in xen_swiotlb_unmap_sg() argument
319 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg()
326 xen_swiotlb_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, in xen_swiotlb_map_sg() argument
334 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg()
344 xen_swiotlb_unmap_sg(dev, sgl, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); in xen_swiotlb_map_sg()
345 sg_dma_len(sgl) = 0; in xen_swiotlb_map_sg()
350 xen_swiotlb_sync_sg_for_cpu(struct device *dev, struct scatterlist *sgl, in xen_swiotlb_sync_sg_for_cpu() argument
356 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_cpu()
363 xen_swiotlb_sync_sg_for_device(struct device *dev, struct scatterlist *sgl, in xen_swiotlb_sync_sg_for_device() argument
369 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_device()
/linux-6.3-rc2/drivers/media/platform/
A Dm2m-deinterlace.c236 ctx->xt->sgl[0].size = s_width; in deinterlace_issue_dma()
237 ctx->xt->sgl[0].icg = s_width; in deinterlace_issue_dma()
243 ctx->xt->sgl[0].size = s_width; in deinterlace_issue_dma()
244 ctx->xt->sgl[0].icg = s_width; in deinterlace_issue_dma()
251 ctx->xt->sgl[0].icg = s_width / 2; in deinterlace_issue_dma()
258 ctx->xt->sgl[0].icg = s_width / 2; in deinterlace_issue_dma()
265 ctx->xt->sgl[0].icg = s_width / 2; in deinterlace_issue_dma()
272 ctx->xt->sgl[0].icg = s_width / 2; in deinterlace_issue_dma()
278 ctx->xt->sgl[0].size = s_width; in deinterlace_issue_dma()
279 ctx->xt->sgl[0].icg = s_width; in deinterlace_issue_dma()
[all …]
/linux-6.3-rc2/drivers/media/platform/rockchip/rga/
A Drga-buf.c118 struct scatterlist *sgl; in rga_buf_map() local
131 for_each_sg(sgt->sgl, sgl, sgt->nents, i) { in rga_buf_map()
132 len = sg_dma_len(sgl) >> PAGE_SHIFT; in rga_buf_map()
133 address = sg_phys(sgl); in rga_buf_map()
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_fcoe.c29 ddp->sgl = NULL; in ixgbe_fcoe_clear_ddp()
110 if (ddp->sgl) in ixgbe_fcoe_ddp_put()
134 struct scatterlist *sgl, unsigned int sgc, in ixgbe_fcoe_ddp_setup() argument
153 if (!netdev || !sgl) in ixgbe_fcoe_ddp_setup()
169 if (ddp->sgl) { in ixgbe_fcoe_ddp_setup()
171 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
202 ddp->sgl = sgl; in ixgbe_fcoe_ddp_setup()
206 for_each_sg(sgl, sg, dmacount, i) { in ixgbe_fcoe_ddp_setup()
366 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_target() argument
442 dma_unmap_sg(&adapter->pdev->dev, ddp->sgl, in ixgbe_fcoe_ddp()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/
A Di915_scatterlist.h31 } __sgt_iter(struct scatterlist *sgl, bool dma) { in __sgt_iter() argument
32 struct sgt_iter s = { .sgp = sgl }; in __sgt_iter()
90 for ((__iter) = __sgt_iter((__sgt)->sgl, true); \
102 for ((__iter) = __sgt_iter((__sgt)->sgl, false); \
216 rsgt->table.sgl = NULL; in __i915_refct_sgt_init()
/linux-6.3-rc2/drivers/scsi/esas2r/
A Desas2r_io.c224 struct esas2r_mem_desc *sgl; in esas2r_build_sg_list_sge() local
231 sgl = esas2r_alloc_sgl(a); in esas2r_build_sg_list_sge()
233 if (unlikely(sgl == NULL)) in esas2r_build_sg_list_sge()
253 (struct atto_vda_sge *)((u8 *)sgl->virt_addr in esas2r_build_sg_list_sge()
260 cpu_to_le64(sgl->phys_addr); in esas2r_build_sg_list_sge()
302 list_add(&sgl->next_desc, &rq->sg_table_head); in esas2r_build_sg_list_sge()
376 struct esas2r_mem_desc *sgl; in esas2r_build_prd_iblk() local
449 sgl = esas2r_alloc_sgl(a); in esas2r_build_prd_iblk()
451 if (unlikely(sgl == NULL)) in esas2r_build_prd_iblk()
458 list_add(&sgl->next_desc, &rq->sg_table_head); in esas2r_build_prd_iblk()
[all …]
/linux-6.3-rc2/drivers/scsi/qedf/
A Ddrv_scsi_fw_funcs.c34 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_addr.lo); in init_scsi_sgl_context()
36 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_addr.hi); in init_scsi_sgl_context()
38 val = cpu_to_le32(sgl_task_params->sgl[sge_index].sge_len); in init_scsi_sgl_context()
/linux-6.3-rc2/drivers/dma/
A Dmilbeaut-hdmac.c61 struct scatterlist *sgl; member
122 sg = &md->sgl[md->sg_cur]; in milbeaut_chan_start()
256 milbeaut_hdmac_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, in milbeaut_hdmac_prep_slave_sg() argument
272 md->sgl = kcalloc(sg_len, sizeof(*sgl), GFP_NOWAIT); in milbeaut_hdmac_prep_slave_sg()
273 if (!md->sgl) { in milbeaut_hdmac_prep_slave_sg()
279 md->sgl[i] = sgl[i]; in milbeaut_hdmac_prep_slave_sg()
350 sg = &md->sgl[md->sg_cur]; in milbeaut_hdmac_tx_status()
372 txstate->residue += sg_dma_len(&md->sgl[i]); in milbeaut_hdmac_tx_status()
398 kfree(md->sgl); in milbeaut_hdmac_desc_free()
/linux-6.3-rc2/drivers/dma/sh/
A Dshdma-base.c571 for_each_sg(sgl, sg, sg_len, i) in shdma_prep_sg()
588 for_each_sg(sgl, sg, sg_len, i) { in shdma_prep_sg()
685 return shdma_prep_sg(schan, sgl, sg_len, &slave_addr, in shdma_prep_slave_sg()
703 struct scatterlist *sgl; in shdma_prep_dma_cyclic() local
731 sgl = kmalloc_array(sg_len, sizeof(*sgl), GFP_KERNEL); in shdma_prep_dma_cyclic()
732 if (!sgl) in shdma_prep_dma_cyclic()
735 sg_init_table(sgl, sg_len); in shdma_prep_dma_cyclic()
742 sg_dma_address(&sgl[i]) = src; in shdma_prep_dma_cyclic()
743 sg_dma_len(&sgl[i]) = period_len; in shdma_prep_dma_cyclic()
746 desc = shdma_prep_sg(schan, sgl, sg_len, &slave_addr, in shdma_prep_dma_cyclic()
[all …]
/linux-6.3-rc2/arch/sparc/mm/
A Diommu.c248 static int __sbus_iommu_map_sg(struct device *dev, struct scatterlist *sgl, in __sbus_iommu_map_sg() argument
255 for_each_sg(sgl, sg, nents, j) { in __sbus_iommu_map_sg()
266 static int sbus_iommu_map_sg_gflush(struct device *dev, struct scatterlist *sgl, in sbus_iommu_map_sg_gflush() argument
270 return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, false); in sbus_iommu_map_sg_gflush()
273 static int sbus_iommu_map_sg_pflush(struct device *dev, struct scatterlist *sgl, in sbus_iommu_map_sg_pflush() argument
276 return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, true); in sbus_iommu_map_sg_pflush()
298 static void sbus_iommu_unmap_sg(struct device *dev, struct scatterlist *sgl, in sbus_iommu_unmap_sg() argument
304 for_each_sg(sgl, sg, nents, i) { in sbus_iommu_unmap_sg()

Completed in 70 milliseconds

12345678910>>...20