cregit-Linux how code gets into the kernel

Release 4.16 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 #endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle10854.27%330.00%
Paul Burton3718.59%220.00%
David Daney3618.09%110.00%
Kevin Cernekee126.03%220.00%
Florian Fainelli52.51%110.00%
Steven J. Hill10.50%110.00%
Total199100.00%10100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.