Lines Matching full:dbg
176 const struct intel_runtime_pm_debug *dbg) in __print_intel_runtime_pm_wakeref() argument
185 if (dbg->last_acquire) { in __print_intel_runtime_pm_wakeref()
186 __print_depot_stack(dbg->last_acquire, buf, PAGE_SIZE, 2); in __print_intel_runtime_pm_wakeref()
190 if (dbg->last_release) { in __print_intel_runtime_pm_wakeref()
191 __print_depot_stack(dbg->last_release, buf, PAGE_SIZE, 2); in __print_intel_runtime_pm_wakeref()
195 drm_printf(p, "Wakeref count: %lu\n", dbg->count); in __print_intel_runtime_pm_wakeref()
197 sort(dbg->owners, dbg->count, sizeof(*dbg->owners), cmphandle, NULL); in __print_intel_runtime_pm_wakeref()
199 for (i = 0; i < dbg->count; i++) { in __print_intel_runtime_pm_wakeref()
200 depot_stack_handle_t stack = dbg->owners[i]; in __print_intel_runtime_pm_wakeref()
204 while (i + 1 < dbg->count && dbg->owners[i + 1] == stack) in __print_intel_runtime_pm_wakeref()
239 struct intel_runtime_pm_debug dbg = {}; in __intel_wakeref_dec_and_check_tracking() local
247 __untrack_all_wakerefs(&rpm->debug, &dbg); in __intel_wakeref_dec_and_check_tracking()
250 dump_and_free_wakeref_tracking(&dbg); in __intel_wakeref_dec_and_check_tracking()
256 struct intel_runtime_pm_debug dbg = {}; in untrack_all_intel_runtime_pm_wakerefs() local
260 __untrack_all_wakerefs(&rpm->debug, &dbg); in untrack_all_intel_runtime_pm_wakerefs()
263 dump_and_free_wakeref_tracking(&dbg); in untrack_all_intel_runtime_pm_wakerefs()
269 struct intel_runtime_pm_debug dbg = {}; in print_intel_runtime_pm_wakeref() local
272 unsigned long alloc = dbg.count; in print_intel_runtime_pm_wakeref()
276 dbg.count = rpm->debug.count; in print_intel_runtime_pm_wakeref()
277 if (dbg.count <= alloc) { in print_intel_runtime_pm_wakeref()
278 memcpy(dbg.owners, in print_intel_runtime_pm_wakeref()
280 dbg.count * sizeof(*s)); in print_intel_runtime_pm_wakeref()
282 dbg.last_acquire = rpm->debug.last_acquire; in print_intel_runtime_pm_wakeref()
283 dbg.last_release = rpm->debug.last_release; in print_intel_runtime_pm_wakeref()
285 if (dbg.count <= alloc) in print_intel_runtime_pm_wakeref()
288 s = krealloc(dbg.owners, in print_intel_runtime_pm_wakeref()
289 dbg.count * sizeof(*s), in print_intel_runtime_pm_wakeref()
294 dbg.owners = s; in print_intel_runtime_pm_wakeref()
297 __print_intel_runtime_pm_wakeref(p, &dbg); in print_intel_runtime_pm_wakeref()
300 kfree(dbg.owners); in print_intel_runtime_pm_wakeref()