Home
last modified time | relevance | path

Searched refs:dmadev (Results 1 – 15 of 15) sorted by relevance

/drivers/dma/
Ddma-jz4740.c151 static inline uint32_t jz4740_dma_read(struct jz4740_dma_dev *dmadev, in jz4740_dma_read() argument
154 return readl(dmadev->base + reg); in jz4740_dma_read()
157 static inline void jz4740_dma_write(struct jz4740_dma_dev *dmadev, in jz4740_dma_write() argument
160 writel(val, dmadev->base + reg); in jz4740_dma_write()
163 static inline void jz4740_dma_write_mask(struct jz4740_dma_dev *dmadev, in jz4740_dma_write_mask() argument
168 tmp = jz4740_dma_read(dmadev, reg); in jz4740_dma_write_mask()
171 jz4740_dma_write(dmadev, reg, tmp); in jz4740_dma_write_mask()
212 struct jz4740_dma_dev *dmadev = jz4740_dma_chan_get_dev(chan); in jz4740_dma_slave_config() local
262 jz4740_dma_write(dmadev, JZ_REG_DMA_CMD(chan->id), cmd); in jz4740_dma_slave_config()
263 jz4740_dma_write(dmadev, JZ_REG_DMA_STATUS_CTRL(chan->id), 0); in jz4740_dma_slave_config()
[all …]
Dsa11x0-dma.c135 static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) in to_sa11x0_dma() argument
137 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
826 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument
831 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev()
832 dmadev->dev = dev; in sa11x0_dma_init_dmadev()
833 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev()
834 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev()
835 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev()
836 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev()
837 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev()
[all …]
Dvirt-dma.c106 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev) in vchan_init() argument
117 vc->chan.device = dmadev; in vchan_init()
118 list_add_tail(&vc->chan.device_node, &dmadev->channels); in vchan_init()
Ds3c24xx-dma.c1094 struct dma_device *dmadev, unsigned int channels, bool slave) in s3c24xx_dma_init_virtual_channels() argument
1099 INIT_LIST_HEAD(&dmadev->channels); in s3c24xx_dma_init_virtual_channels()
1107 chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL); in s3c24xx_dma_init_virtual_channels()
1109 dev_err(dmadev->dev, in s3c24xx_dma_init_virtual_channels()
1128 dev_dbg(dmadev->dev, in s3c24xx_dma_init_virtual_channels()
1133 vchan_init(&chan->vc, dmadev); in s3c24xx_dma_init_virtual_channels()
1135 dev_info(dmadev->dev, "initialized %d virtual %s channels\n", in s3c24xx_dma_init_virtual_channels()
1140 static void s3c24xx_dma_free_virtual_channels(struct dma_device *dmadev) in s3c24xx_dma_free_virtual_channels() argument
1146 next, &dmadev->channels, vc.chan.device_node) in s3c24xx_dma_free_virtual_channels()
Dvirt-dma.h45 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev);
Dmv_xor.c48 ((chan)->dmadev.dev)
948 struct device *dev = mv_chan->dmadev.dev; in mv_xor_channel_remove()
950 dma_async_device_unregister(&mv_chan->dmadev); in mv_xor_channel_remove()
959 list_for_each_entry_safe(chan, _chan, &mv_chan->dmadev.channels, in mv_xor_channel_remove()
986 dma_dev = &mv_chan->dmadev; in mv_xor_channel_add()
Dmv_xor.h121 struct dma_device dmadev; member
Damba-pl08x.c1886 struct dma_device *dmadev, unsigned int channels, bool slave) in pl08x_dma_init_virtual_channels() argument
1891 INIT_LIST_HEAD(&dmadev->channels); in pl08x_dma_init_virtual_channels()
1926 vchan_init(&chan->vc, dmadev); in pl08x_dma_init_virtual_channels()
1933 static void pl08x_free_virtual_channels(struct dma_device *dmadev) in pl08x_free_virtual_channels() argument
1939 next, &dmadev->channels, vc.chan.device_node) { in pl08x_free_virtual_channels()
Dpxa_dma.c140 #define to_pxad_dev(dmadev) \ argument
141 container_of(dmadev, struct pxad_device, slave)
1252 static void pxad_free_channels(struct dma_device *dmadev) in pxad_free_channels() argument
1256 list_for_each_entry_safe(c, cn, &dmadev->channels, in pxad_free_channels()
Dk3dma.c107 #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave) argument
Dzx296702_dma.c134 #define to_zx_dma(dmadev) container_of(dmadev, struct zx_dma_dev, slave) argument
Dmmp_pdma.c140 #define to_mmp_pdma_dev(dmadev) \ argument
141 container_of(dmadev, struct mmp_pdma_device, device)
/drivers/spi/
Dspi-pxa2xx-dma.c28 struct device *dmadev; in pxa2xx_spi_map_dma_buffer() local
33 dmadev = drv_data->tx_chan->device->dev; in pxa2xx_spi_map_dma_buffer()
38 dmadev = drv_data->rx_chan->device->dev; in pxa2xx_spi_map_dma_buffer()
67 nents = dma_map_sg(dmadev, sgt->sgl, sgt->nents, dir); in pxa2xx_spi_map_dma_buffer()
77 struct device *dmadev; in pxa2xx_spi_unmap_dma_buffer() local
81 dmadev = drv_data->tx_chan->device->dev; in pxa2xx_spi_unmap_dma_buffer()
84 dmadev = drv_data->rx_chan->device->dev; in pxa2xx_spi_unmap_dma_buffer()
88 dma_unmap_sg(dmadev, sgt->sgl, sgt->nents, dir); in pxa2xx_spi_unmap_dma_buffer()
/drivers/net/wireless/brcm80211/brcmsmac/
Ddma.c213 struct device *dmadev; member
451 return dma_alloc_coherent(di->dmadev, size, pap, GFP_ATOMIC); in dma_alloc_consistent()
486 dma_free_coherent(di->dmadev, size, va, *descpa); in dma_ringalloc()
590 di->dmadev = core->dma_dev; in dma_attach()
755 dma_free_coherent(di->dmadev, di->txdalloc, in dma_detach()
759 dma_free_coherent(di->dmadev, di->rxdalloc, in dma_detach()
897 dma_unmap_single(di->dmadev, pa, di->rxbufsize, DMA_FROM_DEVICE); in dma64_getnextrxp()
1080 pa = dma_map_single(di->dmadev, p->data, di->rxbufsize, in dma_rxfill()
1082 if (dma_mapping_error(di->dmadev, pa)) { in dma_rxfill()
1291 pa = dma_map_single(di->dmadev, data, len, DMA_TO_DEVICE); in dma_txenq()
[all …]
/drivers/media/platform/
Dm2m-deinterlace.c231 struct dma_device *dmadev = chan->device; in deinterlace_issue_dma() local
350 tx = dmadev->device_prep_interleaved_dma(chan, ctx->xt, flags); in deinterlace_issue_dma()