Lines Matching refs:dbg
16 bdisp->dbg.hw_start = ktime_get(); in bdisp_dbg_perf_begin()
23 time_us = ktime_us_delta(ktime_get(), bdisp->dbg.hw_start); in bdisp_dbg_perf_end()
25 if (!bdisp->dbg.min_duration) in bdisp_dbg_perf_end()
26 bdisp->dbg.min_duration = time_us; in bdisp_dbg_perf_end()
28 bdisp->dbg.min_duration = min(time_us, bdisp->dbg.min_duration); in bdisp_dbg_perf_end()
30 bdisp->dbg.last_duration = time_us; in bdisp_dbg_perf_end()
31 bdisp->dbg.max_duration = max(time_us, bdisp->dbg.max_duration); in bdisp_dbg_perf_end()
32 bdisp->dbg.tot_duration += time_us; in bdisp_dbg_perf_end()
325 if (!bdisp->dbg.copy_node[0]) { in last_nodes_show()
331 node = bdisp->dbg.copy_node[i]; in last_nodes_show()
398 if (!bdisp->dbg.copy_node[0]) { in last_nodes_raw_show()
404 node = bdisp->dbg.copy_node[i]; in last_nodes_raw_show()
443 struct bdisp_request *request = &bdisp->dbg.copy_request; in last_request_show()
588 struct bdisp_request *request = &bdisp->dbg.copy_request; in perf_show()
597 avg_time_us = div64_s64(bdisp->dbg.tot_duration, request->nb_req); in perf_show()
603 if (bdisp->dbg.min_duration > SECOND) in perf_show()
606 min_fps = SECOND / (s32)bdisp->dbg.min_duration; in perf_show()
608 if (bdisp->dbg.max_duration > SECOND) in perf_show()
611 max_fps = SECOND / (s32)bdisp->dbg.max_duration; in perf_show()
613 if (bdisp->dbg.last_duration > SECOND) in perf_show()
616 last_fps = SECOND / (s32)bdisp->dbg.last_duration; in perf_show()
622 bdisp->dbg.min_duration, min_fps, in perf_show()
623 bdisp->dbg.max_duration, max_fps); in perf_show()
625 bdisp->dbg.last_duration, last_fps); in perf_show()
631 debugfs_create_file(#name, S_IRUGO, bdisp->dbg.debugfs_entry, bdisp, \
645 bdisp->dbg.debugfs_entry = debugfs_create_dir(dirname, NULL); in bdisp_debugfs_create()
656 debugfs_remove_recursive(bdisp->dbg.debugfs_entry); in bdisp_debugfs_remove()
657 bdisp->dbg.debugfs_entry = NULL; in bdisp_debugfs_remove()