Lines Matching refs:cdev_dbg

173 		struct cdev_debugfs cdev_dbg;  member
267 static void thermal_debugfs_cdev_clear(struct cdev_debugfs *cdev_dbg) in thermal_debugfs_cdev_clear() argument
275 &cdev_dbg->transitions[i], node) { in thermal_debugfs_cdev_clear()
281 &cdev_dbg->durations[i], node) { in thermal_debugfs_cdev_clear()
287 cdev_dbg->total = 0; in thermal_debugfs_cdev_clear()
316 struct cdev_debugfs *cdev_dbg = &thermal_dbg->cdev_dbg; in cdev_tt_seq_show() local
317 struct list_head *transitions = cdev_dbg->transitions; in cdev_tt_seq_show()
352 struct cdev_debugfs *cdev_dbg = &thermal_dbg->cdev_dbg; in cdev_dt_seq_show() local
353 struct list_head *durations = cdev_dbg->durations; in cdev_dt_seq_show()
363 if (entry->id == cdev_dbg->current_state) in cdev_dt_seq_show()
365 cdev_dbg->timestamp); in cdev_dt_seq_show()
391 thermal_debugfs_cdev_clear(&thermal_dbg->cdev_dbg); in cdev_clear_set()
412 struct cdev_debugfs *cdev_dbg; in thermal_debug_cdev_state_update() local
416 if (!thermal_dbg || (thermal_dbg->cdev_dbg.current_state == new_state)) in thermal_debug_cdev_state_update()
421 cdev_dbg = &thermal_dbg->cdev_dbg; in thermal_debug_cdev_state_update()
423 old_state = cdev_dbg->current_state; in thermal_debug_cdev_state_update()
432 cdev_dbg->durations, in thermal_debug_cdev_state_update()
436 ktime_t delta = ktime_sub(now, cdev_dbg->timestamp); in thermal_debug_cdev_state_update()
438 cdev_dbg->timestamp = now; in thermal_debug_cdev_state_update()
441 cdev_dbg->current_state = new_state; in thermal_debug_cdev_state_update()
448 thermal_debugfs_cdev_record_get(thermal_dbg, cdev_dbg->durations, new_state); in thermal_debug_cdev_state_update()
459 cdev_dbg->transitions, in thermal_debug_cdev_state_update()
464 cdev_dbg->total++; in thermal_debug_cdev_state_update()
480 struct cdev_debugfs *cdev_dbg; in thermal_debug_cdev_add() local
487 cdev_dbg = &thermal_dbg->cdev_dbg; in thermal_debug_cdev_add()
490 INIT_LIST_HEAD(&cdev_dbg->transitions[i]); in thermal_debug_cdev_add()
491 INIT_LIST_HEAD(&cdev_dbg->durations[i]); in thermal_debug_cdev_add()
494 cdev_dbg->current_state = state; in thermal_debug_cdev_add()
495 cdev_dbg->timestamp = ktime_get(); in thermal_debug_cdev_add()
502 thermal_debugfs_cdev_record_get(thermal_dbg, cdev_dbg->durations, state); in thermal_debug_cdev_add()
514 &cdev_dbg->total); in thermal_debug_cdev_add()
549 thermal_debugfs_cdev_clear(&thermal_dbg->cdev_dbg); in thermal_debug_cdev_remove()