Lines Matching refs:db_info
274 static void debug_areas_free(debug_info_t *db_info) in debug_areas_free() argument
278 if (!db_info->areas) in debug_areas_free()
280 for (i = 0; i < db_info->nr_areas; i++) { in debug_areas_free()
281 for (j = 0; j < db_info->pages_per_area; j++) in debug_areas_free()
282 kfree(db_info->areas[i][j]); in debug_areas_free()
283 kfree(db_info->areas[i]); in debug_areas_free()
285 kfree(db_info->areas); in debug_areas_free()
286 db_info->areas = NULL; in debug_areas_free()
293 static void debug_info_free(debug_info_t *db_info) in debug_info_free() argument
295 debug_areas_free(db_info); in debug_info_free()
296 kfree(db_info->active_entries); in debug_info_free()
297 kfree(db_info->active_pages); in debug_info_free()
298 kfree(db_info); in debug_info_free()
364 static void debug_info_get(debug_info_t *db_info) in debug_info_get() argument
366 if (db_info) in debug_info_get()
367 refcount_inc(&db_info->ref_count); in debug_info_get()
374 static void debug_info_put(debug_info_t *db_info) in debug_info_put() argument
376 if (!db_info) in debug_info_put()
378 if (refcount_dec_and_test(&db_info->ref_count)) in debug_info_put()
379 debug_info_free(db_info); in debug_info_put()