参照元†
- struct device *dev
- struct scatterlist *sg
- int nelems
- enum dma_data_direction dir
返り値†
CONFIG_HAS_DMA 有効: include/asm-generic/dma-mapping-common.h†
static inline void
dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
int nelems, enum dma_data_direction dir)
{
struct dma_map_ops *ops = get_dma_ops(dev);
BUG_ON(!valid_dma_direction(dir));
if (ops->sync_sg_for_device)
ops->sync_sg_for_device(dev, sg, nelems, dir);
debug_dma_sync_sg_for_device(dev, sg, nelems, dir);
}
CONFIG_HAS_DMA 無効: include/asm-generic/dma-mapping-broken.h†
#define dma_sync_sg_for_device dma_sync_sg_for_cpu
コメント†