Lines Matching defs:memory_bitmap
340 * struct memory_bitmap contains a pointer to the main list of zone
413 struct memory_bitmap {
588 static void memory_bm_position_reset(struct memory_bitmap *bm)
599 static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free);
684 static int memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask,
727 static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free)
748 static int memory_bm_find_bit(struct memory_bitmap *bm, unsigned long pfn,
815 static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn)
826 static int mem_bm_set_bit_check(struct memory_bitmap *bm, unsigned long pfn)
839 static void memory_bm_clear_bit(struct memory_bitmap *bm, unsigned long pfn)
850 static void memory_bm_clear_current(struct memory_bitmap *bm)
858 static unsigned long memory_bm_get_current(struct memory_bitmap *bm)
863 static int memory_bm_test_bit(struct memory_bitmap *bm, unsigned long pfn)
874 static bool memory_bm_pfn_present(struct memory_bitmap *bm, unsigned long pfn)
892 static bool rtree_next_node(struct memory_bitmap *bm)
929 static unsigned long memory_bm_next_pfn(struct memory_bitmap *bm)
974 static void memory_bm_recycle(struct memory_bitmap *bm)
1029 static struct memory_bitmap *forbidden_pages_map;
1032 static struct memory_bitmap *free_pages_map;
1082 static void mark_nosave_pages(struct memory_bitmap *bm)
1120 struct memory_bitmap *bm1, *bm2;
1128 bm1 = kzalloc(sizeof(struct memory_bitmap), GFP_KERNEL);
1136 bm2 = kzalloc(sizeof(struct memory_bitmap), GFP_KERNEL);
1170 struct memory_bitmap *bm1, *bm2;
1197 struct memory_bitmap *bm = free_pages_map;
1521 static unsigned long copy_data_pages(struct memory_bitmap *copy_bm,
1522 struct memory_bitmap *orig_bm,
1523 struct memory_bitmap *zero_bm)
1572 static struct memory_bitmap orig_bm;
1581 static struct memory_bitmap copy_bm;
1584 static struct memory_bitmap zero_bm;
2046 static inline unsigned int alloc_highmem_pages(struct memory_bitmap *bm,
2066 static inline unsigned int alloc_highmem_pages(struct memory_bitmap *bm,
2081 static int swsusp_alloc(struct memory_bitmap *copy_bm,
2208 static inline void pack_pfns(unsigned long *buf, struct memory_bitmap *bm,
2209 struct memory_bitmap *zero_bm)
2285 static void duplicate_memory_bitmap(struct memory_bitmap *dst,
2286 struct memory_bitmap *src)
2304 static void mark_unsafe_pages(struct memory_bitmap *bm)
2362 static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm,
2363 struct memory_bitmap *zero_bm)
2418 static unsigned int count_highmem_image_pages(struct memory_bitmap *bm)
2436 static struct memory_bitmap *safe_highmem_bm;
2451 static int prepare_highmem_image(struct memory_bitmap *bm,
2585 static unsigned int count_highmem_image_pages(struct memory_bitmap *bm) { return 0; }
2587 static inline int prepare_highmem_image(struct memory_bitmap *bm,
2622 static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm,
2623 struct memory_bitmap *zero_bm)
2626 struct memory_bitmap tmp;
2718 static void *get_buffer(struct memory_bitmap *bm, struct chain_allocator *ca)