Lines Matching refs:pages_per_area
75 static debug_info_t *debug_info_create(const char *name, int pages_per_area,
179 static debug_entry_t ***debug_areas_alloc(int pages_per_area, int nr_areas) in debug_areas_alloc() argument
189 areas[i] = kmalloc_array(pages_per_area, in debug_areas_alloc()
194 for (j = 0; j < pages_per_area; j++) { in debug_areas_alloc()
208 for (j = 0; j < pages_per_area; j++) in debug_areas_alloc()
221 static debug_info_t *debug_info_alloc(const char *name, int pages_per_area, in debug_info_alloc() argument
237 if ((mode == ALL_AREAS) && (pages_per_area != 0)) { in debug_info_alloc()
238 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
247 rc->pages_per_area = pages_per_area; in debug_info_alloc()
281 for (j = 0; j < db_info->pages_per_area; j++) in debug_areas_free()
306 static debug_info_t *debug_info_create(const char *name, int pages_per_area, in debug_info_create() argument
311 rc = debug_info_alloc(name, pages_per_area, nr_areas, buf_size, in debug_info_create()
334 rc = debug_info_alloc(in->name, in->pages_per_area, in debug_info_copy()
340 if ((rc->pages_per_area == in->pages_per_area) && in debug_info_copy()
352 for (j = 0; j < in->pages_per_area; j++) in debug_info_copy()
438 if ((p_info->act_page % id->pages_per_area) == 0) { in debug_next_entry()
646 debug_info_t *debug_register_mode(const char *name, int pages_per_area, in debug_register_mode() argument
659 rc = debug_info_create(name, pages_per_area, nr_areas, buf_size, mode); in debug_register_mode()
687 debug_info_t *debug_register(const char *name, int pages_per_area, in debug_register() argument
690 return debug_register_mode(name, pages_per_area, nr_areas, buf_size, in debug_register()
707 void debug_register_static(debug_info_t *id, int pages_per_area, int nr_areas) in debug_register_static() argument
718 copy = debug_info_alloc("", pages_per_area, nr_areas, id->buf_size, in debug_register_static()
795 static int debug_set_size(debug_info_t *id, int nr_areas, int pages_per_area) in debug_set_size() argument
800 if (!id || (nr_areas <= 0) || (pages_per_area < 0)) in debug_set_size()
803 new_id = debug_info_alloc("", pages_per_area, nr_areas, id->buf_size, in debug_set_size()
807 pages_per_area); in debug_set_size()
816 pr_info("%s: set new size (%i pages)\n", id->name, pages_per_area); in debug_set_size()
862 id->pages_per_area; in proceed_active_entry()
890 swap(a->pages_per_area, b->pages_per_area); in debug_areas_swap()
1309 return sprintf(out_buf, "%i\n", id->pages_per_area); in debug_prolog_pages_fn()
1425 for (j = 0; j < id->pages_per_area; j++) in debug_flush()
1431 for (i = 0; i < id->pages_per_area; i++) in debug_flush()