Blame view
mm/cma.h
646 Bytes
b24413180 License cleanup: ... |
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
28b24c1fc mm: cma: debugfs ... |
2 3 |
#ifndef __MM_CMA_H__ #define __MM_CMA_H__ |
a2b992c82 debugfs: make sur... |
4 |
#include <linux/debugfs.h> |
28b24c1fc mm: cma: debugfs ... |
5 6 7 8 9 10 |
struct cma { unsigned long base_pfn; unsigned long count; unsigned long *bitmap; unsigned int order_per_bit; /* Order of pages represented by one bit */ struct mutex lock; |
26b02a1f9 mm: cma: allocati... |
11 12 13 |
#ifdef CONFIG_CMA_DEBUGFS struct hlist_head mem_head; spinlock_t mem_head_lock; |
a2b992c82 debugfs: make sur... |
14 |
struct debugfs_u32_array dfs_bitmap; |
26b02a1f9 mm: cma: allocati... |
15 |
#endif |
18e98e56f mm: cma: fix the ... |
16 |
char name[CMA_MAX_NAME]; |
28b24c1fc mm: cma: debugfs ... |
17 18 19 20 |
}; extern struct cma cma_areas[MAX_CMA_AREAS]; extern unsigned cma_area_count; |
f21838e05 mm: cma: mark cma... |
21 |
static inline unsigned long cma_bitmap_maxno(struct cma *cma) |
28b24c1fc mm: cma: debugfs ... |
22 23 24 25 26 |
{ return cma->count >> cma->order_per_bit; } #endif |