cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
barry songbarry song6198.39%150.00%
sonic zhangsonic zhang11.61%150.00%
Total62100.00%2100.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

PersonTokensPropCommitsCommitProp
sonic zhangsonic zhang4195.35%150.00%
barry songbarry song24.65%150.00%
Total43100.00%2100.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

PersonTokensPropCommitsCommitProp
bryan wubryan wu1266.67%250.00%
christoph hellwigchristoph hellwig422.22%125.00%
barry songbarry song211.11%125.00%
Total18100.00%4100.00%

#endif /* _BLACKFIN_DMA_MAPPING_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
barry songbarry song8151.92%116.67%
sonic zhangsonic zhang4226.92%116.67%
bryan wubryan wu2314.74%233.33%
christoph hellwigchristoph hellwig95.77%116.67%
robin getzrobin getz10.64%116.67%
Total156100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.