cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/include/asm/mach-jazz/dma-coherence.h

/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2006  Ralf Baechle <ralf@linux-mips.org>
 */
#ifndef __ASM_MACH_JAZZ_DMA_COHERENCE_H

#define __ASM_MACH_JAZZ_DMA_COHERENCE_H

#include <asm/jazzdma.h>

struct device;


static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) { return vdma_alloc(virt_to_phys(addr), size); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle2996.67%150.00%
David Daney13.33%150.00%
Total30100.00%2100.00%


static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page) { return vdma_alloc(page_to_phys(page), PAGE_SIZE); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle2796.43%150.00%
David Daney13.57%150.00%
Total28100.00%2100.00%


static inline unsigned long plat_dma_addr_to_phys(struct device *dev, dma_addr_t dma_addr) { return vdma_log2phys(dma_addr); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle1672.73%133.33%
Kevin Cernekee522.73%133.33%
David Daney14.55%133.33%
Total22100.00%3100.00%


static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction direction) { vdma_free(dma_addr); }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle1451.85%125.00%
Kevin Cernekee725.93%125.00%
David Daney622.22%250.00%
Total27100.00%4100.00%


static inline int plat_dma_supported(struct device *dev, u64 mask) { /* * we fall back to GFP_DMA when the mask isn't all 1s, * so we can't guarantee allocations that must be * within a tighter range than GFP_DMA.. */ if (mask < DMA_BIT_MASK(24)) return 0; return 1; }

Contributors

PersonTokensPropCommitsCommitProp
David Daney31100.00%1100.00%
Total31100.00%1100.00%


static inline void plat_post_dma_flush(struct device *dev) { }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle11100.00%1100.00%
Total11100.00%1100.00%


static inline int plat_device_is_coherent(struct device *dev) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle15100.00%1100.00%
Total15100.00%1100.00%

#endif /* __ASM_MACH_JAZZ_DMA_COHERENCE_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Ralf Bächle12871.11%233.33%
David Daney4022.22%233.33%
Kevin Cernekee126.67%233.33%
Total180100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.