cregit-Linux how code gets into the kernel

Release 4.8 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 baechleralf baechle25100.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 baechleralf baechle23100.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 baechleralf baechle1473.68%266.67%
kevin cernekeekevin 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 baechleralf baechle942.86%250.00%
kevin cernekeekevin cernekee733.33%125.00%
david daneydavid 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 daneydavid daney31100.00%1100.00%
Total31100.00%1100.00%


static inline int plat_device_is_coherent(struct device *dev) { return coherentio; }

Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle1493.33%150.00%
steven j. hillsteven j. hill16.67%150.00%
Total15100.00%2100.00%

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

Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle11100.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 cjayachandran 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 cjayachandran c18100.00%1100.00%
Total18100.00%1100.00%

#endif #endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
ralf baechleralf baechle10953.43%333.33%
jayachandran cjayachandran c4120.10%111.11%
david daneydavid daney3617.65%111.11%
kevin cernekeekevin cernekee125.88%222.22%
florian fainelliflorian fainelli52.45%111.11%
steven j. hillsteven j. hill10.49%111.11%
Total204100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.