Lines Matching refs:db_info

286 static void debug_areas_free(debug_info_t *db_info)  in debug_areas_free()  argument
290 if (!db_info->areas) in debug_areas_free()
292 for (i = 0; i < db_info->nr_areas; i++) { in debug_areas_free()
293 for (j = 0; j < db_info->pages_per_area; j++) in debug_areas_free()
294 kfree(db_info->areas[i][j]); in debug_areas_free()
295 kfree(db_info->areas[i]); in debug_areas_free()
297 kfree(db_info->areas); in debug_areas_free()
298 db_info->areas = NULL; in debug_areas_free()
305 static void debug_info_free(debug_info_t *db_info) in debug_info_free() argument
307 debug_areas_free(db_info); in debug_info_free()
308 kfree(db_info->active_entries); in debug_info_free()
309 kfree(db_info->active_pages); in debug_info_free()
310 kfree(db_info); in debug_info_free()
394 static void debug_info_get(debug_info_t *db_info) in debug_info_get() argument
396 if (db_info) in debug_info_get()
397 refcount_inc(&db_info->ref_count); in debug_info_get()
404 static void debug_info_put(debug_info_t *db_info) in debug_info_put() argument
408 if (!db_info) in debug_info_put()
410 if (refcount_dec_and_test(&db_info->ref_count)) { in debug_info_put()
412 if (!db_info->views[i]) in debug_info_put()
414 debugfs_remove(db_info->debugfs_entries[i]); in debug_info_put()
416 debugfs_remove(db_info->debugfs_root_entry); in debug_info_put()
417 if (db_info == debug_area_first) in debug_info_put()
418 debug_area_first = db_info->next; in debug_info_put()
419 if (db_info == debug_area_last) in debug_info_put()
420 debug_area_last = db_info->prev; in debug_info_put()
421 if (db_info->prev) in debug_info_put()
422 db_info->prev->next = db_info->next; in debug_info_put()
423 if (db_info->next) in debug_info_put()
424 db_info->next->prev = db_info->prev; in debug_info_put()
425 debug_info_free(db_info); in debug_info_put()