*参照元 [#ae80cfc3] #backlinks *説明 [#v21e17d1] -パス: [[linux-2.6.33/arch/arm/include/asm/dma-mapping.h]] -FIXME: これは何? --説明 **引数 [#tefdea49] -struct device *dev -- --[[linux-2.6.33/device]] -dma_addr_t handle -- --[[linux-2.6.33/dma_addr_t]] -unsigned long offset -- -size_t size -- -enum dma_data_direction dir -- --[[linux-2.6.33/dma_data_direction]] **返り値 [#pcb01754] -なし **参考 [#o17a4c06] *実装 [#a20b9506] static inline void dma_sync_single_range_for_device(struct device *dev, dma_addr_t handle, unsigned long offset, size_t size, enum dma_data_direction dir) { BUG_ON(!valid_dma_direction(dir)); - --[[linux-2.6.33/BUG_ON()]] - --[[linux-2.6.33/valid_dma_direction()]] if (!dmabounce_sync_for_device(dev, handle, offset, size, dir)) return; - --[[linux-2.6.33/dmabounce_sync_for_device()]] if (!arch_is_coherent()) dma_cache_maint(dma_to_virt(dev, handle) + offset, size, dir); - --[[linux-2.6.33/arch_is_coherent()]] - --[[linux-2.6.33/dma_cache_maint()]] - --[[linux-2.6.33/dma_to_virt()]] } *コメント [#x43adeaf]