ops_helpers.c (0b1abd1fb7efafc25231c54a67c6fbb3d3127efd) ops_helpers.c (9f4df96b8781e40d0cb0e32eb3d1f6d87375adf9)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Helpers for DMA ops implementations. These generally rely on the fact that
4 * the allocated memory contains normal pages in the direct kernel mapping.
5 */
6#include <linux/dma-map-ops.h>
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Helpers for DMA ops implementations. These generally rely on the fact that
4 * the allocated memory contains normal pages in the direct kernel mapping.
5 */
6#include <linux/dma-map-ops.h>
7#include <linux/dma-noncoherent.h>
8
9/*
10 * Create scatter-list for the already allocated DMA buffer.
11 */
12int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
13 void *cpu_addr, dma_addr_t dma_addr, size_t size,
14 unsigned long attrs)
15{

--- 71 unchanged lines hidden ---
7
8/*
9 * Create scatter-list for the already allocated DMA buffer.
10 */
11int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
12 void *cpu_addr, dma_addr_t dma_addr, size_t size,
13 unsigned long attrs)
14{

--- 71 unchanged lines hidden ---