Lines Matching refs:pages_per_area
74 static debug_info_t *debug_info_create(const char *name, int pages_per_area,
192 static debug_entry_t ***debug_areas_alloc(int pages_per_area, int nr_areas) in debug_areas_alloc() argument
201 areas[i] = kmalloc_array(pages_per_area, in debug_areas_alloc()
206 for (j = 0; j < pages_per_area; j++) { in debug_areas_alloc()
220 for (j = 0; j < pages_per_area; j++) in debug_areas_alloc()
233 static debug_info_t *debug_info_alloc(const char *name, int pages_per_area, in debug_info_alloc() argument
249 if ((mode == ALL_AREAS) && (pages_per_area != 0)) { in debug_info_alloc()
250 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
259 rc->pages_per_area = pages_per_area; in debug_info_alloc()
293 for (j = 0; j < db_info->pages_per_area; j++) in debug_areas_free()
318 static debug_info_t *debug_info_create(const char *name, int pages_per_area, in debug_info_create() argument
323 rc = debug_info_alloc(name, pages_per_area, nr_areas, buf_size, in debug_info_create()
364 rc = debug_info_alloc(in->name, in->pages_per_area, in debug_info_copy()
370 if ((rc->pages_per_area == in->pages_per_area) && in debug_info_copy()
382 for (j = 0; j < in->pages_per_area; j++) in debug_info_copy()
485 if ((p_info->act_page % id->pages_per_area) == 0) { in debug_next_entry()
656 debug_info_t *debug_register_mode(const char *name, int pages_per_area, in debug_register_mode() argument
670 rc = debug_info_create(name, pages_per_area, nr_areas, buf_size, mode); in debug_register_mode()
689 debug_info_t *debug_register(const char *name, int pages_per_area, in debug_register() argument
692 return debug_register_mode(name, pages_per_area, nr_areas, buf_size, in debug_register()
715 static int debug_set_size(debug_info_t *id, int nr_areas, int pages_per_area) in debug_set_size() argument
721 if (!id || (nr_areas <= 0) || (pages_per_area < 0)) in debug_set_size()
723 if (pages_per_area > 0) { in debug_set_size()
724 new_areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_set_size()
727 pages_per_area); in debug_set_size()
738 id->pages_per_area = pages_per_area; in debug_set_size()
743 pr_info("%s: set new size (%i pages)\n", id->name, pages_per_area); in debug_set_size()
783 id->pages_per_area; in proceed_active_entry()
1159 return sprintf(out_buf, "%i\n", id->pages_per_area); in debug_prolog_pages_fn()
1275 for (j = 0; j < id->pages_per_area; j++) in debug_flush()
1281 for (i = 0; i < id->pages_per_area; i++) in debug_flush()