Lines Matching refs:nr_areas
76 int nr_areas, int buf_size, umode_t mode);
179 static debug_entry_t ***debug_areas_alloc(int pages_per_area, int nr_areas) in debug_areas_alloc() argument
184 areas = kmalloc_array(nr_areas, sizeof(debug_entry_t **), GFP_KERNEL); in debug_areas_alloc()
187 for (i = 0; i < nr_areas; i++) { in debug_areas_alloc()
222 int nr_areas, int buf_size, int level, in debug_info_alloc() argument
231 rc->active_entries = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc()
234 rc->active_pages = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc()
238 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
248 rc->nr_areas = nr_areas; in debug_info_alloc()
280 for (i = 0; i < db_info->nr_areas; i++) { in debug_areas_free()
307 int nr_areas, int buf_size, umode_t mode) in debug_info_create() argument
311 rc = debug_info_alloc(name, pages_per_area, nr_areas, buf_size, in debug_info_create()
335 in->nr_areas, in->buf_size, in->level, mode); in debug_info_copy()
341 (rc->nr_areas == in->nr_areas)) { in debug_info_copy()
351 for (i = 0; i < in->nr_areas; i++) { in debug_info_copy()
443 if (p_info->act_area >= id->nr_areas) in debug_next_entry()
467 if (p_info->act_area >= p_info->debug_info_snap->nr_areas) in debug_output()
647 int nr_areas, int buf_size, umode_t mode, in debug_register_mode() argument
659 rc = debug_info_create(name, pages_per_area, nr_areas, buf_size, mode); in debug_register_mode()
688 int nr_areas, int buf_size) 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()
873 id->active_area = id->active_area % id->nr_areas; in proceed_active_area()
889 swap(a->nr_areas, b->nr_areas); in debug_areas_swap()
1339 rc = debug_set_size(id, id->nr_areas, new_pages); in debug_input_pages_fn()
1422 memset(id->active_entries, 0, id->nr_areas * sizeof(int)); in debug_flush()
1423 for (i = 0; i < id->nr_areas; i++) { in debug_flush()
1428 } else if (area >= 0 && area < id->nr_areas) { in debug_flush()