1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/debugfs.h>
7 #define CMA_MAX_NAME 64
10 unsigned long base_pfn;
12 unsigned long *bitmap;
13 unsigned int order_per_bit; /* Order of pages represented by one bit */
15 #ifdef CONFIG_CMA_DEBUGFS
16 struct hlist_head mem_head;
17 spinlock_t mem_head_lock;
18 struct debugfs_u32_array dfs_bitmap;
20 char name[CMA_MAX_NAME];
23 extern struct cma cma_areas[MAX_CMA_AREAS];
24 extern unsigned cma_area_count;
26 static inline unsigned long cma_bitmap_maxno(struct cma *cma)
28 return cma->count >> cma->order_per_bit;