--- zzzz-none-000/linux-5.4.213/arch/arm64/mm/flush.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/arch/arm64/mm/flush.c 2024-08-14 09:01:29.000000000 +0000 @@ -92,3 +92,39 @@ } EXPORT_SYMBOL_GPL(arch_invalidate_pmem); #endif + +void dmac_flush_range(const void *start, const void *end) +{ + __dma_flush_area(start, (void *)(end) - (void *)(start)); +} +EXPORT_SYMBOL(dmac_flush_range); + +void dmac_inv_range(const void *start, const void *end) +{ + __dma_inv_area(start, (void *)(end) - (void *)(start)); +} +EXPORT_SYMBOL(dmac_inv_range); + +void dmac_clean_range(const void *start, const void *end) +{ + __dma_clean_area(start, (void *)(end) - (void *)(start)); +} +EXPORT_SYMBOL(dmac_clean_range); + +void dmac_flush_range_no_dsb(const void *start, const void *end) +{ + __dma_flush_area_no_dsb(start, (void *)(end) - (void *)(start)); +} +EXPORT_SYMBOL(dmac_flush_range_no_dsb); + +void dmac_inv_range_no_dsb(const void *start, const void *end) +{ + __dma_inv_area_no_dsb(start, (void *)(end) - (void *)(start)); +} +EXPORT_SYMBOL(dmac_inv_range_no_dsb); + +void dmac_clean_range_no_dsb(const void *start, const void *end) +{ + __dma_clean_area_no_dsb(start, (void *)(end) - (void *)(start)); +} +EXPORT_SYMBOL(dmac_clean_range_no_dsb);