Release 4.14 arch/blackfin/include/asm/dma-mapping.h
/*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BLACKFIN_DMA_MAPPING_H
#define _BLACKFIN_DMA_MAPPING_H
#include <asm/cacheflush.h>
extern void
__dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir);
static inline void
__dma_sync_inline(dma_addr_t addr, size_t size, enum dma_data_direction dir)
{
switch (dir) {
case DMA_NONE:
BUG();
case DMA_TO_DEVICE: /* writeback only */
flush_dcache_range(addr, addr + size);
break;
case DMA_FROM_DEVICE: /* invalidate only */
case DMA_BIDIRECTIONAL: /* flush and invalidate */
/* Blackfin has no dedicated invalidate (it includes a flush) */
invalidate_dcache_range(addr, addr + size);
break;
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Barry Song | 61 | 98.39% | 1 | 50.00% |
Sonic Zhang | 1 | 1.61% | 1 | 50.00% |
Total | 62 | 100.00% | 2 | 100.00% |
static inline void
_dma_sync(dma_addr_t addr, size_t size, enum dma_data_direction dir)
{
if (__builtin_constant_p(dir))
__dma_sync_inline(addr, size, dir);
else
__dma_sync(addr, size, dir);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sonic Zhang | 41 | 95.35% | 1 | 50.00% |
Barry Song | 2 | 4.65% | 1 | 50.00% |
Total | 43 | 100.00% | 2 | 100.00% |
extern const struct dma_map_ops bfin_dma_ops;
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
{
return &bfin_dma_ops;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bryan Wu | 8 | 42.11% | 2 | 33.33% |
Christoph Hellwig | 5 | 26.32% | 1 | 16.67% |
Bart Van Assche | 4 | 21.05% | 2 | 33.33% |
Barry Song | 2 | 10.53% | 1 | 16.67% |
Total | 19 | 100.00% | 6 | 100.00% |
#endif /* _BLACKFIN_DMA_MAPPING_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Barry Song | 81 | 51.27% | 1 | 12.50% |
Sonic Zhang | 42 | 26.58% | 1 | 12.50% |
Bryan Wu | 20 | 12.66% | 2 | 25.00% |
Christoph Hellwig | 9 | 5.70% | 1 | 12.50% |
Bart Van Assche | 5 | 3.16% | 2 | 25.00% |
Robin Getz | 1 | 0.63% | 1 | 12.50% |
Total | 158 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.