cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/include/asm/mach-generic/dma-coherence.h

/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2006  Ralf Baechle <ralf@linux-mips.org>
 *
 */
#ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H

#define __ASM_MACH_GENERIC_DMA_COHERENCE_H

struct device;


static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) { return virt_to_phys(addr); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle25100.00%2100.00%
Total25100.00%2100.00%


static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page) { return page_to_phys(page); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle23100.00%2100.00%
Total23100.00%2100.00%


static inline unsigned long plat_dma_addr_to_phys(struct device *dev, dma_addr_t dma_addr) { return dma_addr; }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle1473.68%266.67%
Kevin Cernekee526.32%133.33%
Total19100.00%3100.00%


static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction direction) { }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle942.86%250.00%
Kevin Cernekee733.33%125.00%
David Daney523.81%125.00%
Total21100.00%4100.00%


static inline int plat_dma_supported(struct device *dev, u64 mask) { /* * we fall back to GFP_DMA when the mask isn't all 1s, * so we can't guarantee allocations that must be * within a tighter range than GFP_DMA.. */ if (mask < DMA_BIT_MASK(24)) return 0; return 1; }

Contributors

PersonTokensPropCommitsCommitProp
David Daney31100.00%1100.00%
Total31100.00%1100.00%


static inline int plat_device_is_coherent(struct device *dev) { #ifdef CONFIG_DMA_PERDEV_COHERENT return dev->archdata.dma_coherent; #else switch (coherentio) { default: case IO_COHERENCE_DEFAULT: return hw_coherentio; case IO_COHERENCE_ENABLED: return 1; case IO_COHERENCE_DISABLED: return 0; } #endif }

Contributors

PersonTokensPropCommitsCommitProp
Paul Burton3772.55%250.00%
Ralf Bächle1325.49%125.00%
Steven J. Hill11.96%125.00%
Total51100.00%4100.00%

#ifndef plat_post_dma_flush
static inline void plat_post_dma_flush(struct device *dev) { }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle11100.00%1100.00%
Total11100.00%1100.00%

#endif #ifdef CONFIG_SWIOTLB
static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { return paddr; }

Contributors

PersonTokensPropCommitsCommitProp
Jayachandran C18100.00%1100.00%
Total18100.00%1100.00%


static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) { return daddr; }

Contributors

PersonTokensPropCommitsCommitProp
Jayachandran C18100.00%1100.00%
Total18100.00%1100.00%

#endif #endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle10845.00%327.27%
Jayachandran C4117.08%19.09%
Paul Burton3715.42%218.18%
David Daney3615.00%19.09%
Kevin Cernekee125.00%218.18%
Florian Fainelli52.08%19.09%
Steven J. Hill10.42%19.09%
Total240100.00%11100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.