aboutsummaryrefslogtreecommitdiff
path: root/arch/csky
diff options
context:
space:
mode:
authorAlexander Lobakin2024-04-18 13:36:12 +0200
committerTony Nguyen2024-04-24 11:06:25 -0700
commitce230f4f8981e2a7f06b71c22cc742cfe91a525d (patch)
tree5490ded8ed8aa2aff4a0f5ce9f04429be88ae590 /arch/csky
parentef9226cd56b718c79184a3466d32984a51cb449c (diff)
page_pool: add DMA-sync-for-CPU inline helper
Each driver is responsible for syncing buffers written by HW for CPU before accessing them. Almost each PP-enabled driver uses the same pattern, which could be shorthanded into a static inline to make driver code a little bit more compact. Introduce a simple helper which performs DMA synchronization for the size passed from the driver. It can be used even when the pool doesn't manage DMA-syncs-for-device, just make sure the page has a correct DMA address set via page_pool_set_dma_addr(). Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'arch/csky')
0 files changed, 0 insertions, 0 deletions