Home
last modified time | relevance | path

Searched refs:dma_sgt (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-sg.c47 struct sg_table *dma_sgt; member
122 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
137 ret = sg_alloc_table_from_pages(buf->dma_sgt, buf->pages, in vb2_dma_sg_alloc()
167 sg_free_table(buf->dma_sgt); in vb2_dma_sg_alloc()
192 sg_free_table(buf->dma_sgt); in vb2_dma_sg_put()
204 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
215 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
242 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
256 if (sg_alloc_table_from_pages(buf->dma_sgt, buf->pages, in vb2_dma_sg_get_userptr()
295 sg_free_table(buf->dma_sgt); in vb2_dma_sg_put_userptr()
[all …]
H A Dvideobuf2-dma-contig.c34 struct sg_table *dma_sgt; member
112 buf->dma_sgt); in vb2_dc_vaddr()
126 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_prepare()
146 struct sg_table *sgt = buf->dma_sgt; in vb2_dc_finish()
178 buf->dma_sgt, buf->dma_dir); in vb2_dc_put()
214 buf->dma_sgt = dma_alloc_noncontiguous(buf->dev, in vb2_dc_alloc_non_coherent()
219 if (!buf->dma_sgt) in vb2_dc_alloc_non_coherent()
222 buf->dma_addr = sg_dma_address(buf->dma_sgt->sgl); in vb2_dc_alloc_non_coherent()
287 buf->dma_sgt); in vb2_dc_mmap()
480 return buf->dma_sgt; in vb2_dc_get_base_sgt()
[all …]
/linux/drivers/spi/
H A Dspi-stm32.c1536 struct sg_table dma_sgt, mdma_sgt; in stm32_spi_prepare_rx_dma_mdma_chaining() local
1558 ret = sg_alloc_table(&dma_sgt, nents, GFP_ATOMIC); in stm32_spi_prepare_rx_dma_mdma_chaining()
1565 for_each_sg(dma_sgt.sgl, s, dma_sgt.nents, i) { in stm32_spi_prepare_rx_dma_mdma_chaining()
1584 _dma_desc = dmaengine_prep_slave_sg(spi->dma_rx, dma_sgt.sgl, in stm32_spi_prepare_rx_dma_mdma_chaining()
1585 dma_sgt.nents, rx_dma_conf->direction, in stm32_spi_prepare_rx_dma_mdma_chaining()
1587 sg_free_table(&dma_sgt); in stm32_spi_prepare_rx_dma_mdma_chaining()