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
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 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 Bächle | 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 Bächle | 14 | 73.68% | 2 | 66.67% |
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 Bächle | 9 | 42.86% | 2 | 50.00% |
Kevin Cernekee | 7 | 33.33% | 1 | 25.00% |
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 | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 37 | 72.55% | 2 | 50.00% |
Ralf Bächle | 13 | 25.49% | 1 | 25.00% |
Steven J. Hill | 1 | 1.96% | 1 | 25.00% |
Total | 51 | 100.00% | 4 | 100.00% |
#ifndef plat_post_dma_flush
static inline void plat_post_dma_flush(struct device *dev)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 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 | 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 | 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 Bächle | 108 | 45.00% | 3 | 27.27% |
Jayachandran C | 41 | 17.08% | 1 | 9.09% |
Paul Burton | 37 | 15.42% | 2 | 18.18% |
David Daney | 36 | 15.00% | 1 | 9.09% |
Kevin Cernekee | 12 | 5.00% | 2 | 18.18% |
Florian Fainelli | 5 | 2.08% | 1 | 9.09% |
Steven J. Hill | 1 | 0.42% | 1 | 9.09% |
Total | 240 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.