Home
last modified time | relevance | path

Searched refs:sglist (Results 1 – 25 of 77) sorted by relevance

1234

/linux-6.3-rc2/drivers/misc/bcm-vk/
A Dbcm_vk_sg.c91 dma->sglist = dma_alloc_coherent(dev, in bcm_vk_dma_alloc()
95 if (!dma->sglist) in bcm_vk_dma_alloc()
98 dma->sglist[SGLIST_NUM_SG] = 0; in bcm_vk_dma_alloc()
99 dma->sglist[SGLIST_TOTALSIZE] = vkdata->size; in bcm_vk_dma_alloc()
142 dma->sglist[SGLIST_NUM_SG]++; in bcm_vk_dma_alloc()
153 dma->sglist[SGLIST_NUM_SG]++; in bcm_vk_dma_alloc()
163 (u64)dma->sglist, in bcm_vk_dma_alloc()
220 if (dma[i].sglist) in bcm_vk_sg_alloc()
237 num_sg = dma->sglist[SGLIST_NUM_SG]; in bcm_vk_dma_free()
255 dma->sglist = NULL; in bcm_vk_dma_free()
[all …]
/linux-6.3-rc2/drivers/media/v4l2-core/
A Dvideobuf-dma-sg.c69 sglist = vzalloc(array_size(nr_pages, sizeof(*sglist))); in videobuf_vmalloc_to_sg()
70 if (NULL == sglist) in videobuf_vmalloc_to_sg()
80 return sglist; in videobuf_vmalloc_to_sg()
83 vfree(sglist); in videobuf_vmalloc_to_sg()
100 sglist = vmalloc(array_size(nr_pages, sizeof(*sglist))); in videobuf_pages_to_sg()
101 if (NULL == sglist) in videobuf_pages_to_sg()
119 return sglist; in videobuf_pages_to_sg()
123 vfree(sglist); in videobuf_pages_to_sg()
128 vfree(sglist); in videobuf_pages_to_sg()
295 dma->sglist = vmalloc(sizeof(*dma->sglist)); in videobuf_dma_map()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeon_ep/
A Doctep_tx.c71 dma_unmap_single(iq->dev, tx_buffer->sglist[0].dma_ptr[0], in octep_iq_process_completions()
72 tx_buffer->sglist[0].len[0], DMA_TO_DEVICE); in octep_iq_process_completions()
77 tx_buffer->sglist[i >> 2].len[i & 3], DMA_TO_DEVICE); in octep_iq_process_completions()
133 tx_buffer->sglist[0].dma_ptr[0], in octep_iq_free_pending()
134 tx_buffer->sglist[0].len[0], in octep_iq_free_pending()
211 iq->sglist = dma_alloc_coherent(iq->dev, sglist_size, in octep_setup_iq()
213 if (unlikely(!iq->sglist)) { in octep_setup_iq()
234 tx_buffer->sglist = in octep_setup_iq()
235 &iq->sglist[i * OCTEP_SGLIST_ENTRIES_PER_PKT]; in octep_setup_iq()
281 if (iq->sglist) in octep_free_iq()
[all …]
A Doctep_main.c623 struct octep_tx_sglist_desc *sglist; in octep_start_xmit() local
671 sglist = tx_buffer->sglist; in octep_start_xmit()
685 memset(sglist, 0, OCTEP_SGLIST_SIZE_PER_PKT); in octep_start_xmit()
686 sglist[0].len[3] = len; in octep_start_xmit()
687 sglist[0].dma_ptr[0] = dma; in octep_start_xmit()
698 sglist[si >> 2].len[3 - (si & 3)] = len; in octep_start_xmit()
699 sglist[si >> 2].dma_ptr[si & 3] = dma; in octep_start_xmit()
729 dma_unmap_single(iq->dev, sglist[0].dma_ptr[0], in octep_start_xmit()
730 sglist[0].len[0], DMA_TO_DEVICE); in octep_start_xmit()
731 sglist[0].len[0] = 0; in octep_start_xmit()
[all …]
A Doctep_tx.h39 struct octep_tx_sglist_desc *sglist; member
173 struct octep_tx_sglist_desc *sglist; member
/linux-6.3-rc2/drivers/firmware/efi/
A Dcapsule.c246 efi_capsule_block_desc_t *sglist; in efi_capsule_update() local
248 sglist = kmap_atomic(sg_pages[i]); in efi_capsule_update()
254 sglist[j].length = sz; in efi_capsule_update()
255 sglist[j].data = *pages++; in efi_capsule_update()
262 sglist[j].length = 0; in efi_capsule_update()
265 sglist[j].data = 0; in efi_capsule_update()
267 sglist[j].data = page_to_phys(sg_pages[i + 1]); in efi_capsule_update()
278 efi_capsule_flush_cache_range(sglist, PAGE_SIZE); in efi_capsule_update()
280 kunmap_atomic(sglist); in efi_capsule_update()
/linux-6.3-rc2/drivers/media/pci/cx23885/
A Dcx23885-alsa.c90 buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); in cx23885_alsa_dma_init()
91 if (NULL == buf->sglist) in cx23885_alsa_dma_init()
94 sg_init_table(buf->sglist, buf->nr_pages); in cx23885_alsa_dma_init()
99 sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); in cx23885_alsa_dma_init()
104 vfree(buf->sglist); in cx23885_alsa_dma_init()
105 buf->sglist = NULL; in cx23885_alsa_dma_init()
116 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx23885_alsa_dma_map()
133 dma_unmap_sg(&dev->pci->dev, buf->sglist, buf->nr_pages, DMA_FROM_DEVICE); in cx23885_alsa_dma_unmap()
140 vfree(buf->sglist); in cx23885_alsa_dma_free()
141 buf->sglist = NULL; in cx23885_alsa_dma_free()
[all …]
/linux-6.3-rc2/drivers/media/pci/cx25821/
A Dcx25821-alsa.c55 struct scatterlist *sglist; member
153 buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); in cx25821_alsa_dma_init()
154 if (NULL == buf->sglist) in cx25821_alsa_dma_init()
157 sg_init_table(buf->sglist, buf->nr_pages); in cx25821_alsa_dma_init()
162 sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); in cx25821_alsa_dma_init()
167 vfree(buf->sglist); in cx25821_alsa_dma_init()
168 buf->sglist = NULL; in cx25821_alsa_dma_init()
179 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx25821_alsa_dma_map()
203 vfree(buf->sglist); in cx25821_alsa_dma_free()
204 buf->sglist = NULL; in cx25821_alsa_dma_free()
[all …]
/linux-6.3-rc2/drivers/media/pci/tw68/
A Dtw68-risc.c33 static __le32 *tw68_risc_field(__le32 *rp, struct scatterlist *sglist, in tw68_risc_field() argument
54 sg = sglist; in tw68_risc_field()
130 struct scatterlist *sglist, in tw68_risc_buffer() argument
162 rp = tw68_risc_field(rp, sglist, top_offset, 1, in tw68_risc_buffer()
165 rp = tw68_risc_field(rp, sglist, bottom_offset, 2, in tw68_risc_buffer()
/linux-6.3-rc2/drivers/parisc/
A Dccio-dma.c927 sg_dma_address(sglist) = ccio_map_single(dev, in ccio_map_sg()
928 sg_virt(sglist), sglist->length, in ccio_map_sg()
930 sg_dma_len(sglist) = sglist->length; in ccio_map_sg()
935 prev_len += sglist[i].length; in ccio_map_sg()
970 current_len += sg_dma_len(sglist + i); in ccio_map_sg()
1000 __func__, nents, sg_virt(sglist), sglist->length); in ccio_unmap_sg()
1006 while (nents && sg_dma_len(sglist)) { in ccio_unmap_sg()
1009 ioc->usg_pages += sg_dma_len(sglist) >> PAGE_SHIFT; in ccio_unmap_sg()
1011 ccio_unmap_page(dev, sg_dma_address(sglist), in ccio_unmap_sg()
1012 sg_dma_len(sglist), direction, 0); in ccio_unmap_sg()
[all …]
A Dsba_iommu.c960 sg_dma_address(sglist) = sba_map_single(dev, sg_virt(sglist), in sba_map_sg()
961 sglist->length, direction); in sba_map_sg()
962 sg_dma_len(sglist) = sglist->length; in sba_map_sg()
971 sba_dump_sg(ioc, sglist, nents); in sba_map_sg()
998 filled = iommu_fill_pdir(ioc, sglist, nents, 0, sba_io_pdir_entry); in sba_map_sg()
1006 sba_dump_sg(ioc, sglist, nents); in sba_map_sg()
1038 __func__, nents, sg_virt(sglist), sglist->length); in sba_unmap_sg()
1056 while (nents && sg_dma_len(sglist)) { in sba_unmap_sg()
1058 sba_unmap_page(dev, sg_dma_address(sglist), sg_dma_len(sglist), in sba_unmap_sg()
1061 …ioc->usg_pages += ((sg_dma_address(sglist) & ~IOVP_MASK) + sg_dma_len(sglist) + IOVP_SIZE - 1) >> … in sba_unmap_sg()
[all …]
/linux-6.3-rc2/drivers/media/pci/bt8xx/
A Dbttv-risc.c36 struct scatterlist *sglist, in bttv_risc_packed() argument
68 sg = sglist; in bttv_risc_packed()
115 struct scatterlist *sglist, in bttv_risc_planar() argument
146 ysg = sglist; in bttv_risc_planar()
147 usg = sglist; in bttv_risc_planar()
148 vsg = sglist; in bttv_risc_planar()
716 bttv_risc_packed(btv,&buf->top,dma->sglist, in bttv_buffer_risc()
789 dma->sglist, in bttv_buffer_risc()
796 dma->sglist, in bttv_buffer_risc()
812 dma->sglist, in bttv_buffer_risc()
[all …]
/linux-6.3-rc2/include/linux/
A Dscatterlist.h171 #define for_each_sg(sglist, sg, nr, __i) \ argument
172 for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg))
514 struct scatterlist *sglist, unsigned int nents,
547 #define for_each_sg_page(sglist, piter, nents, pgoffset) \ argument
548 for (__sg_page_iter_start((piter), (sglist), (nents), (pgoffset)); \
562 #define for_each_sg_dma_page(sglist, dma_iter, dma_nents, pgoffset) \ argument
563 for (__sg_page_iter_start(&(dma_iter)->base, sglist, dma_nents, \
/linux-6.3-rc2/drivers/media/pci/cx88/
A Dcx88-alsa.c48 struct scatterlist *sglist; member
292 buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf->nr_pages)); in cx88_alsa_dma_init()
293 if (!buf->sglist) in cx88_alsa_dma_init()
296 sg_init_table(buf->sglist, buf->nr_pages); in cx88_alsa_dma_init()
301 sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); in cx88_alsa_dma_init()
306 vfree(buf->sglist); in cx88_alsa_dma_init()
307 buf->sglist = NULL; in cx88_alsa_dma_init()
318 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx88_alsa_dma_map()
335 dma_unmap_sg(&dev->pci->dev, buf->sglist, buf->nr_pages, in cx88_alsa_dma_unmap()
343 vfree(buf->sglist); in cx88_alsa_dma_free()
[all …]
/linux-6.3-rc2/arch/ia64/hp/common/
A Dsba_iommu.c1449 for_each_sg(sglist, sg, nents, filled) { in sba_map_sg_attrs()
1458 sglist->dma_length = sglist->length; in sba_map_sg_attrs()
1459 sglist->dma_address = sba_map_page(dev, sg_page(sglist), in sba_map_sg_attrs()
1460 sglist->offset, sglist->length, dir, attrs); in sba_map_sg_attrs()
1470 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs()
1500 filled = sba_fill_pdir(ioc, sglist, nents); in sba_map_sg_attrs()
1506 sba_dump_sg(ioc, sglist, nents); in sba_map_sg_attrs()
1538 __func__, nents, sba_sg_address(sglist), sglist->length); in sba_unmap_sg_attrs()
1549 while (nents && sglist->dma_length) { in sba_unmap_sg_attrs()
1551 sba_unmap_page(dev, sglist->dma_address, sglist->dma_length, in sba_unmap_sg_attrs()
[all …]
/linux-6.3-rc2/arch/powerpc/kernel/
A Ddma-iommu.c118 static int dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, in dma_iommu_map_sg() argument
122 return ppc_iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems, in dma_iommu_map_sg()
126 static void dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, in dma_iommu_unmap_sg() argument
130 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg()
/linux-6.3-rc2/arch/sparc/kernel/
A Diommu.c432 static int dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, in dma_4u_map_sg() argument
466 outs = s = segstart = &sglist[0]; in dma_4u_map_sg()
477 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
555 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
605 static void dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, in dma_4u_unmap_sg() argument
619 ctx = fetch_sg_ctx(iommu, sglist); in dma_4u_unmap_sg()
623 sg = sglist; in dma_4u_unmap_sg()
696 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument
720 iopte = iommu->page_table + ((sglist[0].dma_address - in dma_4u_sync_sg_for_cpu()
726 bus_addr = sglist[0].dma_address & IO_PAGE_MASK; in dma_4u_sync_sg_for_cpu()
[all …]
/linux-6.3-rc2/block/
A Dblk-merge.c446 struct scatterlist *sglist) in blk_next_sg() argument
449 return sglist; in blk_next_sg()
463 struct bio_vec *bvec, struct scatterlist *sglist, in blk_bvec_map_sg() argument
486 *sg = blk_next_sg(sg, sglist); in blk_bvec_map_sg()
498 struct scatterlist *sglist, struct scatterlist **sg) in __blk_bvec_map_sg() argument
500 *sg = blk_next_sg(sg, sglist); in __blk_bvec_map_sg()
528 struct scatterlist *sglist, in __blk_bios_map_sg() argument
548 nsegs += __blk_bvec_map_sg(bvec, sglist, sg); in __blk_bios_map_sg()
550 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); in __blk_bios_map_sg()
568 struct scatterlist *sglist, struct scatterlist **last_sg) in __blk_rq_map_sg() argument
[all …]
/linux-6.3-rc2/drivers/media/common/saa7146/
A Dsaa7146_core.c139 struct scatterlist *sglist; in vmalloc_to_sg() local
143 sglist = kmalloc_array(nr_pages, sizeof(struct scatterlist), GFP_KERNEL); in vmalloc_to_sg()
144 if (NULL == sglist) in vmalloc_to_sg()
146 sg_init_table(sglist, nr_pages); in vmalloc_to_sg()
152 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); in vmalloc_to_sg()
154 return sglist; in vmalloc_to_sg()
157 kfree(sglist); in vmalloc_to_sg()
/linux-6.3-rc2/drivers/media/pci/saa7134/
A Dsaa7134-alsa.c274 dma->sglist = vzalloc(array_size(sizeof(*dma->sglist), dma->nr_pages)); in saa7134_alsa_dma_init()
275 if (NULL == dma->sglist) in saa7134_alsa_dma_init()
278 sg_init_table(dma->sglist, dma->nr_pages); in saa7134_alsa_dma_init()
283 sg_set_page(&dma->sglist[i], pg, PAGE_SIZE, 0); in saa7134_alsa_dma_init()
288 vfree(dma->sglist); in saa7134_alsa_dma_init()
289 dma->sglist = NULL; in saa7134_alsa_dma_init()
300 dma->sglen = dma_map_sg(&dev->pci->dev, dma->sglist, in saa7134_alsa_dma_map()
317 dma_unmap_sg(&dev->pci->dev, dma->sglist, dma->nr_pages, DMA_FROM_DEVICE); in saa7134_alsa_dma_unmap()
324 vfree(dma->sglist); in saa7134_alsa_dma_free()
325 dma->sglist = NULL; in saa7134_alsa_dma_free()
[all …]
/linux-6.3-rc2/tools/virtio/linux/
A Dscatterlist.h78 #define for_each_sg(sglist, sg, nr, __i) \ argument
79 for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg))
/linux-6.3-rc2/drivers/staging/media/ipu3/
A Dipu3-dmamap.c184 int imgu_dmamap_map_sg(struct imgu_device *imgu, struct scatterlist *sglist, in imgu_dmamap_map_sg() argument
193 for_each_sg(sglist, sg, nents, i) { in imgu_dmamap_map_sg()
216 sglist, nents) < size) in imgu_dmamap_map_sg()
/linux-6.3-rc2/kernel/dma/
A Ddebug.h24 extern void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist,
77 struct scatterlist *sglist, in debug_dma_unmap_sg() argument
/linux-6.3-rc2/net/rds/
A Dib.h326 struct scatterlist *sglist, in rds_ib_dma_sync_sg_for_cpu() argument
333 for_each_sg(sglist, sg, sg_dma_len, i) { in rds_ib_dma_sync_sg_for_cpu()
341 struct scatterlist *sglist, in rds_ib_dma_sync_sg_for_device() argument
348 for_each_sg(sglist, sg, sg_dma_len, i) { in rds_ib_dma_sync_sg_for_device()
/linux-6.3-rc2/arch/mips/jazz/
A Djazzdma.c543 static int jazz_dma_map_sg(struct device *dev, struct scatterlist *sglist, in jazz_dma_map_sg() argument
549 for_each_sg(sglist, sg, nents, i) { in jazz_dma_map_sg()
562 static void jazz_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, in jazz_dma_unmap_sg() argument
568 for_each_sg(sglist, sg, nents, i) { in jazz_dma_unmap_sg()

Completed in 54 milliseconds

1234