Release 4.14 arch/x86/include/asm/xen/page-coherent.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_XEN_PAGE_COHERENT_H
#define _ASM_X86_XEN_PAGE_COHERENT_H
#include <asm/page.h>
#include <linux/dma-mapping.h>
static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size,
dma_addr_t *dma_handle, gfp_t flags,
unsigned long attrs)
{
void *vstart = (void*)__get_free_pages(flags, get_order(size));
*dma_handle = virt_to_phys(vstart);
return vstart;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 54 | 96.43% | 1 | 50.00% |
Krzysztof Kozlowski | 2 | 3.57% | 1 | 50.00% |
Total | 56 | 100.00% | 2 | 100.00% |
static inline void xen_free_coherent_pages(struct device *hwdev, size_t size,
void *cpu_addr, dma_addr_t dma_handle,
unsigned long attrs)
{
free_pages((unsigned long) cpu_addr, get_order(size));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 38 | 95.00% | 1 | 50.00% |
Krzysztof Kozlowski | 2 | 5.00% | 1 | 50.00% |
Total | 40 | 100.00% | 2 | 100.00% |
static inline void xen_dma_map_page(struct device *hwdev, struct page *page,
dma_addr_t dev_addr, unsigned long offset, size_t size,
enum dma_data_direction dir, unsigned long attrs) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 32 | 94.12% | 2 | 66.67% |
Krzysztof Kozlowski | 2 | 5.88% | 1 | 33.33% |
Total | 34 | 100.00% | 3 | 100.00% |
static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle,
size_t size, enum dma_data_direction dir,
unsigned long attrs) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 23 | 92.00% | 1 | 50.00% |
Krzysztof Kozlowski | 2 | 8.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
static inline void xen_dma_sync_single_for_cpu(struct device *hwdev,
dma_addr_t handle, size_t size, enum dma_data_direction dir) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
static inline void xen_dma_sync_single_for_device(struct device *hwdev,
dma_addr_t handle, size_t size, enum dma_data_direction dir) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
#endif /* _ASM_X86_XEN_PAGE_COHERENT_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stefano Stabellini | 204 | 95.77% | 3 | 60.00% |
Krzysztof Kozlowski | 8 | 3.76% | 1 | 20.00% |
Greg Kroah-Hartman | 1 | 0.47% | 1 | 20.00% |
Total | 213 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.