Lines Matching full:debug
80 spin_lock_init(&rpm->debug.lock); in init_intel_runtime_pm_wakeref()
96 spin_lock_irqsave(&rpm->debug.lock, flags); in track_intel_runtime_pm_wakeref()
98 if (!rpm->debug.count) in track_intel_runtime_pm_wakeref()
99 rpm->debug.last_acquire = stack; in track_intel_runtime_pm_wakeref()
101 stacks = krealloc(rpm->debug.owners, in track_intel_runtime_pm_wakeref()
102 (rpm->debug.count + 1) * sizeof(*stacks), in track_intel_runtime_pm_wakeref()
105 stacks[rpm->debug.count++] = stack; in track_intel_runtime_pm_wakeref()
106 rpm->debug.owners = stacks; in track_intel_runtime_pm_wakeref()
111 spin_unlock_irqrestore(&rpm->debug.lock, flags); in track_intel_runtime_pm_wakeref()
128 spin_lock_irqsave(&rpm->debug.lock, flags); in untrack_intel_runtime_pm_wakeref()
129 for (n = rpm->debug.count; n--; ) { in untrack_intel_runtime_pm_wakeref()
130 if (rpm->debug.owners[n] == stack) { in untrack_intel_runtime_pm_wakeref()
131 memmove(rpm->debug.owners + n, in untrack_intel_runtime_pm_wakeref()
132 rpm->debug.owners + n + 1, in untrack_intel_runtime_pm_wakeref()
133 (--rpm->debug.count - n) * sizeof(stack)); in untrack_intel_runtime_pm_wakeref()
138 spin_unlock_irqrestore(&rpm->debug.lock, flags); in untrack_intel_runtime_pm_wakeref()
142 rpm->debug.count, atomic_read(&rpm->wakeref_count))) { in untrack_intel_runtime_pm_wakeref()
152 stack = READ_ONCE(rpm->debug.last_release); in untrack_intel_runtime_pm_wakeref()
214 __untrack_all_wakerefs(struct intel_runtime_pm_debug *debug, in __untrack_all_wakerefs() argument
217 *saved = *debug; in __untrack_all_wakerefs()
219 debug->owners = NULL; in __untrack_all_wakerefs()
220 debug->count = 0; in __untrack_all_wakerefs()
221 debug->last_release = __save_depot_stack(); in __untrack_all_wakerefs()
225 dump_and_free_wakeref_tracking(struct intel_runtime_pm_debug *debug) in dump_and_free_wakeref_tracking() argument
227 if (debug->count) { in dump_and_free_wakeref_tracking()
230 __print_intel_runtime_pm_wakeref(&p, debug); in dump_and_free_wakeref_tracking()
233 kfree(debug->owners); in dump_and_free_wakeref_tracking()
243 &rpm->debug.lock, in __intel_wakeref_dec_and_check_tracking()
247 __untrack_all_wakerefs(&rpm->debug, &dbg); in __intel_wakeref_dec_and_check_tracking()
248 spin_unlock_irqrestore(&rpm->debug.lock, flags); in __intel_wakeref_dec_and_check_tracking()
259 spin_lock_irqsave(&rpm->debug.lock, flags); in untrack_all_intel_runtime_pm_wakerefs()
260 __untrack_all_wakerefs(&rpm->debug, &dbg); in untrack_all_intel_runtime_pm_wakerefs()
261 spin_unlock_irqrestore(&rpm->debug.lock, flags); in untrack_all_intel_runtime_pm_wakerefs()
275 spin_lock_irq(&rpm->debug.lock); in print_intel_runtime_pm_wakeref()
276 dbg.count = rpm->debug.count; in print_intel_runtime_pm_wakeref()
279 rpm->debug.owners, 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()
284 spin_unlock_irq(&rpm->debug.lock); in print_intel_runtime_pm_wakeref()