Lines Matching full:debug
36 struct dp_debug_private *debug = seq->private; in dp_debug_show() local
41 if (!debug) in dp_debug_show()
44 drm_mode = &debug->panel->dp_mode.drm_mode; in dp_debug_show()
48 debug->panel->link_info.rate); in dp_debug_show()
50 debug->panel->link_info.num_lanes); in dp_debug_show()
52 debug->panel->link_info.capabilities); in dp_debug_show()
66 debug->panel->dp_mode.h_active_low, in dp_debug_show()
67 debug->panel->dp_mode.v_active_low); in dp_debug_show()
75 debug->panel->dp_mode.bpp); in dp_debug_show()
79 debug->link->sink_request); in dp_debug_show()
81 debug->link->link_params.num_lanes); in dp_debug_show()
82 link_params_rate = debug->link->link_params.rate; in dp_debug_show()
85 lclk = debug->link->link_params.rate * 1000; in dp_debug_show()
88 debug->link->phy_params.v_level); in dp_debug_show()
90 debug->link->phy_params.p_level); in dp_debug_show()
98 const struct dp_debug_private *debug = m->private; in dp_test_data_show() local
99 const struct drm_connector *connector = debug->connector; in dp_test_data_show()
103 bpc = debug->link->test_video.test_bit_depth; in dp_test_data_show()
105 debug->link->test_video.test_h_width); in dp_test_data_show()
107 debug->link->test_video.test_v_height); in dp_test_data_show()
120 const struct dp_debug_private *debug = m->private; in dp_test_type_show() local
121 const struct drm_connector *connector = debug->connector; in dp_test_type_show()
138 const struct dp_debug_private *debug; in dp_test_active_write() local
142 debug = ((struct seq_file *)file->private_data)->private; in dp_test_active_write()
143 connector = debug->connector; in dp_test_active_write()
165 debug->panel->video_test = true; in dp_test_active_write()
167 debug->panel->video_test = false; in dp_test_active_write()
177 struct dp_debug_private *debug = m->private; in dp_test_active_show() local
178 struct drm_connector *connector = debug->connector; in dp_test_active_show()
181 if (debug->panel->video_test) in dp_test_active_show()
211 struct dp_debug_private *debug = container_of(dp_debug, in dp_debug_init() local
214 snprintf(path, sizeof(path), "msm_dp-%s", debug->connector->name); in dp_debug_init()
216 debug->root = debugfs_create_dir(path, minor->debugfs_root); in dp_debug_init()
218 debugfs_create_file("dp_debug", 0444, debug->root, in dp_debug_init()
219 debug, &dp_debug_fops); in dp_debug_init()
222 debug->root, in dp_debug_init()
223 debug, &test_active_fops); in dp_debug_init()
226 debug->root, in dp_debug_init()
227 debug, &dp_test_data_fops); in dp_debug_init()
230 debug->root, in dp_debug_init()
231 debug, &dp_test_type_fops); in dp_debug_init()
238 struct dp_debug_private *debug; in dp_debug_get() local
248 debug = devm_kzalloc(dev, sizeof(*debug), GFP_KERNEL); in dp_debug_get()
249 if (!debug) { in dp_debug_get()
254 debug->dp_debug.debug_en = false; in dp_debug_get()
255 debug->usbpd = usbpd; in dp_debug_get()
256 debug->link = link; in dp_debug_get()
257 debug->panel = panel; in dp_debug_get()
258 debug->dev = dev; in dp_debug_get()
259 debug->drm_dev = minor->dev; in dp_debug_get()
260 debug->connector = connector; in dp_debug_get()
262 dp_debug = &debug->dp_debug; in dp_debug_get()
276 struct dp_debug_private *debug; in dp_debug_deinit() local
281 debug = container_of(dp_debug, struct dp_debug_private, dp_debug); in dp_debug_deinit()
283 debugfs_remove_recursive(debug->root); in dp_debug_deinit()
290 struct dp_debug_private *debug; in dp_debug_put() local
295 debug = container_of(dp_debug, struct dp_debug_private, dp_debug); in dp_debug_put()
299 devm_kfree(debug->dev, debug); in dp_debug_put()