Release 4.10 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 | barry song | 61 | 98.39% | 1 | 50.00% |
sonic zhang | 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 | sonic zhang | 41 | 95.35% | 1 | 50.00% |
barry song | barry song | 2 | 4.65% | 1 | 50.00% |
| Total | 43 | 100.00% | 2 | 100.00% |
extern struct dma_map_ops bfin_dma_ops;
static inline struct dma_map_ops *get_dma_ops(struct device *dev)
{
return &bfin_dma_ops;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
bryan wu | bryan wu | 12 | 66.67% | 2 | 50.00% |
christoph hellwig | christoph hellwig | 4 | 22.22% | 1 | 25.00% |
barry song | barry song | 2 | 11.11% | 1 | 25.00% |
| Total | 18 | 100.00% | 4 | 100.00% |
#endif /* _BLACKFIN_DMA_MAPPING_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
barry song | barry song | 81 | 51.92% | 1 | 16.67% |
sonic zhang | sonic zhang | 42 | 26.92% | 1 | 16.67% |
bryan wu | bryan wu | 23 | 14.74% | 2 | 33.33% |
christoph hellwig | christoph hellwig | 9 | 5.77% | 1 | 16.67% |
robin getz | robin getz | 1 | 0.64% | 1 | 16.67% |
| Total | 156 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.