Release 4.14 arch/mips/include/asm/dma-mapping.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_DMA_MAPPING_H
#define _ASM_DMA_MAPPING_H
#include <linux/scatterlist.h>
#include <asm/dma-coherence.h>
#include <asm/cache.h>
#ifndef CONFIG_SGI_IP27 /* Kludge to fix 2.6.39 build for IP27 */
#include <dma-coherence.h>
#endif
extern const struct dma_map_ops *mips_dma_map_ops;
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
{
return mips_dma_map_ops;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 8 | 44.44% | 1 | 25.00% |
Ralf Bächle | 6 | 33.33% | 1 | 25.00% |
Bart Van Assche | 4 | 22.22% | 2 | 50.00% |
Total | 18 | 100.00% | 4 | 100.00% |
static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
{
if (!dev->dma_mask)
return false;
return addr + size <= *dev->dma_mask;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 20 | 52.63% | 1 | 25.00% |
Ralf Bächle | 11 | 28.95% | 1 | 25.00% |
Atsushi Nemoto | 6 | 15.79% | 1 | 25.00% |
Joe Perches | 1 | 2.63% | 1 | 25.00% |
Total | 38 | 100.00% | 4 | 100.00% |
static inline void dma_mark_clean(void *addr, size_t size) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 7 | 53.85% | 1 | 33.33% |
Ralf Bächle | 5 | 38.46% | 1 | 33.33% |
Andrew Morton | 1 | 7.69% | 1 | 33.33% |
Total | 13 | 100.00% | 3 | 100.00% |
extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction);
#define arch_setup_dma_ops arch_setup_dma_ops
static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base,
u64 size, const struct iommu_ops *iommu,
bool coherent)
{
#ifdef CONFIG_DMA_PERDEV_COHERENT
dev->archdata.dma_coherent = coherent;
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 40 | 100.00% | 1 | 100.00% |
Total | 40 | 100.00% | 1 | 100.00% |
#endif /* _ASM_DMA_MAPPING_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 55 | 32.54% | 3 | 20.00% |
Paul Burton | 44 | 26.04% | 1 | 6.67% |
David Daney | 42 | 24.85% | 1 | 6.67% |
Andrew Morton | 9 | 5.33% | 2 | 13.33% |
Atsushi Nemoto | 6 | 3.55% | 1 | 6.67% |
Bart Van Assche | 5 | 2.96% | 2 | 13.33% |
Steven J. Hill | 3 | 1.78% | 1 | 6.67% |
James Bottomley | 2 | 1.18% | 1 | 6.67% |
Greg Kroah-Hartman | 1 | 0.59% | 1 | 6.67% |
Joe Perches | 1 | 0.59% | 1 | 6.67% |
Christoph Hellwig | 1 | 0.59% | 1 | 6.67% |
Total | 169 | 100.00% | 15 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.