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
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 29 | 96.67% | 1 | 50.00% |
David Daney | 1 | 3.33% | 1 | 50.00% |
Total | 30 | 100.00% | 2 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 27 | 96.43% | 1 | 50.00% |
David Daney | 1 | 3.57% | 1 | 50.00% |
Total | 28 | 100.00% | 2 | 100.00% |
static inline unsigned long plat_dma_addr_to_phys(struct device *dev,
dma_addr_t dma_addr)
{
return vdma_log2phys(dma_addr);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 16 | 72.73% | 1 | 33.33% |
Kevin Cernekee | 5 | 22.73% | 1 | 33.33% |
David Daney | 1 | 4.55% | 1 | 33.33% |
Total | 22 | 100.00% | 3 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 14 | 51.85% | 1 | 25.00% |
Kevin Cernekee | 7 | 25.93% | 1 | 25.00% |
David Daney | 6 | 22.22% | 2 | 50.00% |
Total | 27 | 100.00% | 4 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
static inline void plat_post_dma_flush(struct device *dev)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
static inline int plat_device_is_coherent(struct device *dev)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
#endif /* __ASM_MACH_JAZZ_DMA_COHERENCE_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 128 | 71.11% | 2 | 33.33% |
David Daney | 40 | 22.22% | 2 | 33.33% |
Kevin Cernekee | 12 | 6.67% | 2 | 33.33% |
Total | 180 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.