• Home
  • Raw
  • Download

Lines Matching +full:cpu +full:- +full:viewed

1 /* SPDX-License-Identifier: GPL-2.0 */
9 #include <linux/dma-debug.h>
30 * functions used internally by the DMA-mapping API to provide DMA
37 pfn -= dev->dma_pfn_offset; in pfn_to_dma()
46 pfn += dev->dma_pfn_offset; in dma_to_pfn()
95 return dma_to_pfn(dev, *dev->dma_mask); in dma_max_pfn()
109 return dev->archdata.dma_coherent; in is_device_dma_coherent()
113 * arm_dma_alloc - allocate consistent memory for DMA
114 * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
116 * @handle: bus-specific DMA address
120 * allocates pages, and will return the CPU-viewed address, and sets @handle
121 * to be the device-viewed address.
127 * arm_dma_free - free memory allocated by arm_dma_alloc
128 * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
130 * @cpu_addr: CPU-view address returned from dma_alloc_coherent
131 * @handle: device-view address returned from dma_alloc_coherent
144 * arm_dma_mmap - map a coherent DMA allocation into user space
145 * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
147 * @cpu_addr: kernel CPU-view address returned from dma_alloc_coherent
148 * @handle: device-view address returned from dma_alloc_coherent
161 * For SA-1111, IXP425, and ADI systems the dma-mapping functions are "magic"
164 * On the SA-1111, a bug limits DMA to only certain regions of RAM.
180 * This function should be called by low-level platform code to register
192 * This function should be called by low-level platform code when device