Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/dma/ti/
Dk3-udma-glue.c25 struct device chan_dev; member
295 tx_chn->common.chan_dev.class = &k3_udma_glue_devclass; in k3_udma_glue_request_tx_chn()
296 tx_chn->common.chan_dev.parent = xudma_get_device(tx_chn->common.udmax); in k3_udma_glue_request_tx_chn()
297 dev_set_name(&tx_chn->common.chan_dev, "tchan%d-0x%04x", in k3_udma_glue_request_tx_chn()
299 ret = device_register(&tx_chn->common.chan_dev); in k3_udma_glue_request_tx_chn()
302 put_device(&tx_chn->common.chan_dev); in k3_udma_glue_request_tx_chn()
303 tx_chn->common.chan_dev.parent = NULL; in k3_udma_glue_request_tx_chn()
309 tx_chn->common.chan_dev.dma_coherent = true; in k3_udma_glue_request_tx_chn()
310 dma_coerce_mask_and_coherent(&tx_chn->common.chan_dev, in k3_udma_glue_request_tx_chn()
393 if (tx_chn->common.chan_dev.parent) { in k3_udma_glue_release_tx_chn()
[all …]
Dk3-udma.c422 struct device *chan_dev = &chan->dev->device; in k3_configure_chan_coherency() local
428 chan_dev->dma_coherent = false; in k3_configure_chan_coherency()
429 chan_dev->dma_parms = NULL; in k3_configure_chan_coherency()
433 chan_dev->dma_coherent = true; in k3_configure_chan_coherency()
434 dma_coerce_mask_and_coherent(chan_dev, DMA_BIT_MASK(48)); in k3_configure_chan_coherency()
435 chan_dev->dma_parms = chan_dev->parent->dma_parms; in k3_configure_chan_coherency()
439 chan_dev->dma_coherent = false; in k3_configure_chan_coherency()
440 chan_dev->dma_parms = NULL; in k3_configure_chan_coherency()
/linux-6.1.9/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.c431 struct device *chan_dev = dma->chan_using->device->dev; in i2c_imx_dma_xfer() local
433 dma->dma_buf = dma_map_single(chan_dev, msgs->buf, in i2c_imx_dma_xfer()
435 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in i2c_imx_dma_xfer()
462 dma_unmap_single(chan_dev, dma->dma_buf, in i2c_imx_dma_xfer()
/linux-6.1.9/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()