LCOV - code coverage report
Current view: top level - arch/arm/include/asm - dma-direct.h (source / functions) Hit Total Coverage
Test: Real Lines: 0 4 0.0 %
Date: 2020-10-17 15:46:16 Functions: 0 0 -
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : #ifndef ASM_ARM_DMA_DIRECT_H
       3                 :            : #define ASM_ARM_DMA_DIRECT_H 1
       4                 :            : 
       5                 :            : static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
       6                 :            : {
       7                 :          0 :         unsigned int offset = paddr & ~PAGE_MASK;
       8                 :          0 :         return pfn_to_dma(dev, __phys_to_pfn(paddr)) + offset;
       9                 :            : }
      10                 :            : 
      11                 :            : static inline phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t dev_addr)
      12                 :            : {
      13                 :          0 :         unsigned int offset = dev_addr & ~PAGE_MASK;
      14                 :          0 :         return __pfn_to_phys(dma_to_pfn(dev, dev_addr)) + offset;
      15                 :            : }
      16                 :            : 
      17                 :            : #endif /* ASM_ARM_DMA_DIRECT_H */
    

Generated by: LCOV version 1.14