Lines Matching +full:link +full:- +full:rate
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
6 #define pr_fmt(fmt)"[drm-dp] %s: " fmt, __func__
21 struct dp_link *link; member
28 struct dp_debug_private *debug = seq->private; in dp_debug_show()
34 return -ENODEV; in dp_debug_show()
36 drm_mode = &debug->panel->dp_mode.drm_mode; in dp_debug_show()
40 debug->panel->link_info.rate); in dp_debug_show()
42 debug->panel->link_info.num_lanes); in dp_debug_show()
44 debug->panel->link_info.capabilities); in dp_debug_show()
46 drm_mode->hdisplay, in dp_debug_show()
47 drm_mode->vdisplay); in dp_debug_show()
49 drm_mode->htotal - drm_mode->hsync_end, in dp_debug_show()
50 drm_mode->vtotal - drm_mode->vsync_end); in dp_debug_show()
52 drm_mode->hsync_start - drm_mode->hdisplay, in dp_debug_show()
53 drm_mode->vsync_start - drm_mode->vdisplay); in dp_debug_show()
55 drm_mode->hsync_end - drm_mode->hsync_start, in dp_debug_show()
56 drm_mode->vsync_end - drm_mode->vsync_start); in dp_debug_show()
58 debug->panel->dp_mode.h_active_low, in dp_debug_show()
59 debug->panel->dp_mode.v_active_low); in dp_debug_show()
61 drm_mode->hskew); in dp_debug_show()
62 seq_printf(seq, "\t\trefresh rate = %d\n", in dp_debug_show()
65 drm_mode->clock); in dp_debug_show()
67 debug->panel->dp_mode.bpp); in dp_debug_show()
69 /* Link Information */ in dp_debug_show()
71 debug->link->sink_request); in dp_debug_show()
73 debug->link->link_params.num_lanes); in dp_debug_show()
74 link_params_rate = debug->link->link_params.rate; in dp_debug_show()
77 lclk = debug->link->link_params.rate * 1000; in dp_debug_show()
80 debug->link->phy_params.v_level); in dp_debug_show()
82 debug->link->phy_params.p_level); in dp_debug_show()
90 const struct dp_debug_private *debug = m->private; in dp_test_data_show()
91 const struct drm_connector *connector = debug->connector; in dp_test_data_show()
94 if (connector->status == connector_status_connected) { in dp_test_data_show()
95 bpc = debug->link->test_video.test_bit_depth; in dp_test_data_show()
97 debug->link->test_video.test_h_width); in dp_test_data_show()
99 debug->link->test_video.test_v_height); in dp_test_data_show()
112 const struct dp_debug_private *debug = m->private; in dp_test_type_show()
113 const struct drm_connector *connector = debug->connector; in dp_test_type_show()
115 if (connector->status == connector_status_connected) in dp_test_type_show()
134 debug = ((struct seq_file *)file->private_data)->private; in dp_test_active_write()
135 connector = debug->connector; in dp_test_active_write()
146 if (connector->status == connector_status_connected) { in dp_test_active_write()
157 debug->panel->video_test = true; in dp_test_active_write()
159 debug->panel->video_test = false; in dp_test_active_write()
169 struct dp_debug_private *debug = m->private; in dp_test_active_show()
170 struct drm_connector *connector = debug->connector; in dp_test_active_show()
172 if (connector->status == connector_status_connected) { in dp_test_active_show()
173 if (debug->panel->video_test) in dp_test_active_show()
188 inode->i_private); in dp_test_active_open()
201 struct dp_link *link, in dp_debug_init() argument
207 if (!dev || !panel || !link) { in dp_debug_init()
209 return -EINVAL; in dp_debug_init()
214 return -ENOMEM; in dp_debug_init()
216 debug->link = link; in dp_debug_init()
217 debug->panel = panel; in dp_debug_init()