Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/i2c/busses/
Di2c-stm32.c102 struct device *chan_dev; in stm32_i2c_prep_dma_xfer() local
116 chan_dev = dma->chan_using->device->dev; in stm32_i2c_prep_dma_xfer()
118 dma->dma_buf = dma_map_single(chan_dev, buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
120 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in stm32_i2c_prep_dma_xfer()
150 dma_unmap_single(chan_dev, dma->dma_buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
Di2c-imx.c354 struct device *chan_dev = dma->chan_using->device->dev; in i2c_imx_dma_xfer() local
356 dma->dma_buf = dma_map_single(chan_dev, msgs->buf, in i2c_imx_dma_xfer()
358 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in i2c_imx_dma_xfer()
385 dma_unmap_single(chan_dev, dma->dma_buf, in i2c_imx_dma_xfer()
/Linux-v4.19/drivers/dma/
Ddmaengine.c82 struct dma_chan_dev *chan_dev; in dev_to_dma_chan() local
84 chan_dev = container_of(dev, typeof(*chan_dev), device); in dev_to_dma_chan()
85 return chan_dev->chan; in dev_to_dma_chan()
160 struct dma_chan_dev *chan_dev; in chan_dev_release() local
162 chan_dev = container_of(dev, typeof(*chan_dev), device); in chan_dev_release()
163 if (atomic_dec_and_test(chan_dev->idr_ref)) { in chan_dev_release()
164 ida_free(&dma_ida, chan_dev->dev_id); in chan_dev_release()
165 kfree(chan_dev->idr_ref); in chan_dev_release()
167 kfree(chan_dev); in chan_dev_release()