cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
Barry Song6198.39%150.00%
Sonic 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 Zhang4195.35%150.00%
Barry Song24.65%150.00%
Total43100.00%2100.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

PersonTokensPropCommitsCommitProp
Bryan Wu842.11%233.33%
Christoph Hellwig526.32%116.67%
Bart Van Assche421.05%233.33%
Barry Song210.53%116.67%
Total19100.00%6100.00%

#endif /* _BLACKFIN_DMA_MAPPING_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Barry Song8151.27%112.50%
Sonic Zhang4226.58%112.50%
Bryan Wu2012.66%225.00%
Christoph Hellwig95.70%112.50%
Bart Van Assche53.16%225.00%
Robin Getz10.63%112.50%
Total158100.00%8100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.