Home
last modified time | relevance | path

Searched refs:chan_dev (Results 1 – 5 of 5) sorted by relevance

/drivers/dma/ti/
Dk3-udma-glue.c26 struct device chan_dev; member
296 tx_chn->common.chan_dev.class = &k3_udma_glue_devclass; in k3_udma_glue_request_tx_chn()
297 tx_chn->common.chan_dev.parent = xudma_get_device(tx_chn->common.udmax); in k3_udma_glue_request_tx_chn()
298 dev_set_name(&tx_chn->common.chan_dev, "tchan%d-0x%04x", in k3_udma_glue_request_tx_chn()
300 ret = device_register(&tx_chn->common.chan_dev); in k3_udma_glue_request_tx_chn()
303 put_device(&tx_chn->common.chan_dev); in k3_udma_glue_request_tx_chn()
304 tx_chn->common.chan_dev.parent = NULL; in k3_udma_glue_request_tx_chn()
310 tx_chn->common.chan_dev.dma_coherent = true; in k3_udma_glue_request_tx_chn()
311 dma_coerce_mask_and_coherent(&tx_chn->common.chan_dev, in k3_udma_glue_request_tx_chn()
394 if (tx_chn->common.chan_dev.parent) { in k3_udma_glue_release_tx_chn()
[all …]
Dk3-udma.c425 struct device *chan_dev = &chan->dev->device; in k3_configure_chan_coherency() local
431 chan_dev->dma_coherent = false; in k3_configure_chan_coherency()
432 chan_dev->dma_parms = NULL; in k3_configure_chan_coherency()
436 chan_dev->dma_coherent = true; in k3_configure_chan_coherency()
437 dma_coerce_mask_and_coherent(chan_dev, DMA_BIT_MASK(48)); in k3_configure_chan_coherency()
438 chan_dev->dma_parms = chan_dev->parent->dma_parms; in k3_configure_chan_coherency()
442 chan_dev->dma_coherent = false; in k3_configure_chan_coherency()
443 chan_dev->dma_parms = NULL; in k3_configure_chan_coherency()
/drivers/i2c/busses/
Di2c-stm32.c105 struct device *chan_dev; in stm32_i2c_prep_dma_xfer() local
119 chan_dev = dma->chan_using->device->dev; in stm32_i2c_prep_dma_xfer()
121 dma->dma_buf = dma_map_single(chan_dev, buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
123 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in stm32_i2c_prep_dma_xfer()
153 dma_unmap_single(chan_dev, dma->dma_buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
Di2c-imx.c430 struct device *chan_dev = dma->chan_using->device->dev; in i2c_imx_dma_xfer() local
432 dma->dma_buf = dma_map_single(chan_dev, msgs->buf, in i2c_imx_dma_xfer()
434 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in i2c_imx_dma_xfer()
461 dma_unmap_single(chan_dev, dma->dma_buf, in i2c_imx_dma_xfer()
/drivers/dma/
Ddmaengine.c156 struct dma_chan_dev *chan_dev; in dev_to_dma_chan() local
158 chan_dev = container_of(dev, typeof(*chan_dev), device); in dev_to_dma_chan()
159 return chan_dev->chan; in dev_to_dma_chan()
234 struct dma_chan_dev *chan_dev; in chan_dev_release() local
236 chan_dev = container_of(dev, typeof(*chan_dev), device); in chan_dev_release()
237 kfree(chan_dev); in chan_dev_release()