Lines Matching refs:db_info
273 static void debug_areas_free(debug_info_t *db_info) in debug_areas_free() argument
277 if (!db_info->areas) in debug_areas_free()
279 for (i = 0; i < db_info->nr_areas; i++) { in debug_areas_free()
280 for (j = 0; j < db_info->pages_per_area; j++) in debug_areas_free()
281 kfree(db_info->areas[i][j]); in debug_areas_free()
282 kfree(db_info->areas[i]); in debug_areas_free()
284 kfree(db_info->areas); in debug_areas_free()
285 db_info->areas = NULL; in debug_areas_free()
292 static void debug_info_free(debug_info_t *db_info) in debug_info_free() argument
294 debug_areas_free(db_info); in debug_info_free()
295 kfree(db_info->active_entries); in debug_info_free()
296 kfree(db_info->active_pages); in debug_info_free()
297 kfree(db_info); in debug_info_free()
363 static void debug_info_get(debug_info_t *db_info) in debug_info_get() argument
365 if (db_info) in debug_info_get()
366 refcount_inc(&db_info->ref_count); in debug_info_get()
373 static void debug_info_put(debug_info_t *db_info) in debug_info_put() argument
375 if (!db_info) in debug_info_put()
377 if (refcount_dec_and_test(&db_info->ref_count)) in debug_info_put()
378 debug_info_free(db_info); in debug_info_put()