*参照元 [#j5e451e5] #backlinks *説明 [#z1ae6afb] -パス: [[linux-4.4.1/arch/arm/include/asm/dma-mapping.h]] -FIXME: これは何? --説明 **引数 [#q66b31a8] -struct device *dev -- --[[linux-4.4.1/device]] -phys_addr_t paddr - --[[linux-4.4.1/phys_addr_t]] **返り値 [#c74ef35e] -dma_addr_t -- --[[linux-4.4.1/dma_addr_t]] **参考 [#c6181f26] *実装 [#mcce5eb9] static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { unsigned int offset = paddr & ~PAGE_MASK; return pfn_to_dma(dev, __phys_to_pfn(paddr)) + offset; - --[[linux-4.4.1/pfn_to_dma()]] --[[linux-4.4.1/__phys_to_pfn()]] } *コメント [#o3224f25]