Searched refs:coherent (Results 1 - 7 of 7) sorted by relevance
/device/soc/rockchip/common/sdk_linux/drivers/iommu/ |
H A D | dma-iommu.c | 436 * @coherent: Is the DMA master cache-coherent? 441 static int dma_info_to_prot(enum dma_data_direction dir, bool coherent, unsigned long attrs) in dma_info_to_prot() argument 443 int prot = coherent ? IOMMU_CACHE : 0; in dma_info_to_prot() 659 bool coherent = dev_is_dma_coherent(dev); in iommu_dma_alloc_remap() local 660 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs); in iommu_dma_alloc_remap() 801 bool coherent = dev_is_dma_coherent(dev); in iommu_dma_map_page() local 802 int prot = dma_info_to_prot(dir, coherent, attrs); in iommu_dma_map_page() 806 if (!coherent && !(attrs & DMA_ATTR_SKIP_CPU_SYNC) && dma_handle != DMA_MAPPING_ERROR) { in iommu_dma_map_page() 1035 /* Non-coherent atomi in iommu_dma_free_ext() 1071 bool coherent = dev_is_dma_coherent(dev); iommu_dma_alloc_pages() local 1110 bool coherent = dev_is_dma_coherent(dev); iommu_dma_alloc() local [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/ |
H A D | rga_dma_buf.c | 19 * @coherent: Is the DMA master cache-coherent? 24 static int rga_dma_info_to_prot(enum dma_data_direction dir, bool coherent, in rga_dma_info_to_prot() argument 27 int prot = coherent ? IOMMU_CACHE : 0; in rga_dma_info_to_prot() 438 bool coherent; in rga_iommu_map_virt_addr() local 447 coherent = dev_is_dma_coherent(rga_dev); in rga_iommu_map_virt_addr() 448 ioprot = rga_dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, 0); in rga_iommu_map_virt_addr() 512 bool coherent; in rga_viraddr_get_channel_info() local 536 coherent = dev_is_dma_coherent(scheduler->dev); in rga_viraddr_get_channel_info() 537 ioprot = rga_dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, in rga_viraddr_get_channel_info() [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | dma-map-ops.h | 280 * pgprot, as the expectation is that the device is not coherent. 344 const struct iommu_ops *iommu, bool coherent); 348 bool coherent) in arch_setup_dma_ops() 346 arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, const struct iommu_ops *iommu, bool coherent) arch_setup_dma_ops() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_mem_linux.c | 127 dev_warn(dev, "kbase_mem_alloc call required coherent mem when unavailable"); in kbase_mem_alloc() 132 /* Remove COHERENT_SYSTEM flag if coherent mem is unavailable */ in kbase_mem_alloc() 937 /* Force coherent system required flag, import will in kbase_mem_from_user_buffer() 1010 /* If the region is coherent with the CPU then the memory is imported in kbase_mem_from_user_buffer() 1110 bool coherent; local 1128 coherent = (*flags & BASE_MEM_COHERENT_SYSTEM) != 0 || 1211 if (coherent != ((aliasing_reg->flags & KBASE_REG_SHARE_BOTH) != 0)) 1213 /* Non-coherent memory cannot alias 1214 coherent memory, and vice versa.*/ 1318 "kbase_mem_import call required coherent me [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_mem_linux.c | 118 dev_warn(dev, "kbase_mem_alloc call required coherent mem when unavailable");
in kbase_mem_alloc() 122 /* Remove COHERENT_SYSTEM flag if coherent mem is unavailable */
in kbase_mem_alloc() 945 /* Force coherent system required flag, import will
in kbase_mem_from_user_buffer() 1020 /* If the region is coherent with the CPU then the memory is imported
in kbase_mem_from_user_buffer() 1113 bool coherent;
local 1128 coherent = (*flags & BASE_MEM_COHERENT_SYSTEM) != 0 || (*flags & BASE_MEM_COHERENT_SYSTEM_REQUIRED) != 0;
1220 if (coherent != ((aliasing_reg->flags & KBASE_REG_SHARE_BOTH) != 0)) {
1223 /* Non-coherent memory cannot alias
1224 coherent memory, and vice versa. */
1328 dev_warn(kctx->kbdev->dev, "kbase_mem_import call required coherent me [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_linux.c | 362 "kbase_mem_alloc call required coherent mem when unavailable"); in kbase_mem_alloc() 367 /* Remove COHERENT_SYSTEM flag if coherent mem is unavailable */ in kbase_mem_alloc() 1594 /* Force coherent system required flag, import will in kbase_mem_from_user_buffer() 1685 /* If the region is coherent with the CPU then the memory is imported in kbase_mem_from_user_buffer() 1787 bool coherent; local 1805 coherent = (*flags & BASE_MEM_COHERENT_SYSTEM) != 0 || 1903 if (coherent != 1907 /* Non-coherent memory cannot alias 1908 coherent memory, and vice versa. */ 2024 "kbase_mem_import call required coherent me [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem_linux.c | 348 dev_warn(dev, "kbase_mem_alloc call required coherent mem when unavailable"); in kbase_mem_alloc() 353 /* Remove COHERENT_SYSTEM flag if coherent mem is unavailable */ in kbase_mem_alloc() 1543 /* Force coherent system required flag, import will in kbase_mem_from_user_buffer() 1626 /* If the region is coherent with the CPU then the memory is imported in kbase_mem_from_user_buffer() 1732 bool coherent; local 1755 coherent = (*flags & BASE_MEM_COHERENT_SYSTEM) != 0 || 1852 if (coherent != ((aliasing_reg->flags & KBASE_REG_SHARE_BOTH) != 0)) 1853 goto bad_handle; /* Non-coherent memory cannot 1854 * alias coherent memory, and 1987 "kbase_mem_import call required coherent me [all...] |
Completed in 14 milliseconds