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
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 25 | 100.00% | 2 | 100.00% |
| Total | 25 | 100.00% | 2 | 100.00% |
static inline dma_addr_t plat_map_dma_mem_page(struct device *dev,
struct page *page)
{
return page_to_phys(page);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 23 | 100.00% | 2 | 100.00% |
| Total | 23 | 100.00% | 2 | 100.00% |
static inline unsigned long plat_dma_addr_to_phys(struct device *dev,
dma_addr_t dma_addr)
{
return dma_addr;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 14 | 73.68% | 2 | 66.67% |
| kevin cernekee | kevin cernekee | 5 | 26.32% | 1 | 33.33% |
| Total | 19 | 100.00% | 3 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 9 | 42.86% | 2 | 50.00% |
| kevin cernekee | kevin cernekee | 7 | 33.33% | 1 | 25.00% |
| david daney | david daney | 5 | 23.81% | 1 | 25.00% |
| Total | 21 | 100.00% | 4 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
| david daney | david daney | 31 | 100.00% | 1 | 100.00% |
| Total | 31 | 100.00% | 1 | 100.00% |
static inline int plat_device_is_coherent(struct device *dev)
{
return coherentio;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 14 | 93.33% | 1 | 50.00% |
| steven j. hill | steven j. hill | 1 | 6.67% | 1 | 50.00% |
| Total | 15 | 100.00% | 2 | 100.00% |
#ifndef plat_post_dma_flush
static inline void plat_post_dma_flush(struct device *dev)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 11 | 100.00% | 1 | 100.00% |
| Total | 11 | 100.00% | 1 | 100.00% |
#endif
#ifdef CONFIG_SWIOTLB
static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
{
return paddr;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| jayachandran c | jayachandran c | 18 | 100.00% | 1 | 100.00% |
| Total | 18 | 100.00% | 1 | 100.00% |
static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)
{
return daddr;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| jayachandran c | jayachandran c | 18 | 100.00% | 1 | 100.00% |
| Total | 18 | 100.00% | 1 | 100.00% |
#endif
#endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| ralf baechle | ralf baechle | 109 | 53.43% | 3 | 33.33% |
| jayachandran c | jayachandran c | 41 | 20.10% | 1 | 11.11% |
| david daney | david daney | 36 | 17.65% | 1 | 11.11% |
| kevin cernekee | kevin cernekee | 12 | 5.88% | 2 | 22.22% |
| florian fainelli | florian fainelli | 5 | 2.45% | 1 | 11.11% |
| steven j. hill | steven j. hill | 1 | 0.49% | 1 | 11.11% |
| Total | 204 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.