Lines Matching full:panel

23 static void dp_panel_read_psr_cap(struct dp_panel_private *panel)  in dp_panel_read_psr_cap()  argument
28 dp_panel = &panel->dp_panel; in dp_panel_read_psr_cap()
32 rlen = drm_dp_dpcd_read(panel->aux, DP_PSR_SUPPORT, in dp_panel_read_psr_cap()
35 drm_dbg_dp(panel->drm_dev, in dp_panel_read_psr_cap()
49 struct dp_panel_private *panel; in dp_panel_read_dpcd() local
56 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_read_dpcd()
59 rlen = drm_dp_dpcd_read(panel->aux, offset, in dp_panel_read_dpcd()
75 drm_dbg_dp(panel->drm_dev, in dp_panel_read_dpcd()
80 rlen = drm_dp_dpcd_read(panel->aux, offset, in dp_panel_read_dpcd()
107 drm_dbg_dp(panel->drm_dev, "version: %d.%d\n", major, minor); in dp_panel_read_dpcd()
108 drm_dbg_dp(panel->drm_dev, "link_rate=%d\n", link_info->rate); in dp_panel_read_dpcd()
109 drm_dbg_dp(panel->drm_dev, "lane_count=%d\n", link_info->num_lanes); in dp_panel_read_dpcd()
122 rlen = drm_dp_dpcd_read(panel->aux, in dp_panel_read_dpcd()
131 dp_panel_read_psr_cap(panel); in dp_panel_read_dpcd()
184 struct dp_panel_private *panel; in dp_panel_read_sink_caps() local
191 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_read_sink_caps()
209 rlen = drm_dp_dpcd_read(panel->aux, DP_SINK_COUNT, in dp_panel_read_sink_caps()
215 panel->link->sink_count = 0; in dp_panel_read_sink_caps()
226 &panel->aux->ddc); in dp_panel_read_sink_caps()
228 DRM_ERROR("panel edid read failed\n"); in dp_panel_read_sink_caps()
230 if (!dp_catalog_link_is_connected(panel->catalog)) { in dp_panel_read_sink_caps()
236 if (panel->aux_cfg_update_done) { in dp_panel_read_sink_caps()
237 drm_dbg_dp(panel->drm_dev, in dp_panel_read_sink_caps()
247 panel->aux_cfg_update_done = false; in dp_panel_read_sink_caps()
256 struct dp_panel_private *panel; in dp_panel_get_mode_bpp() local
264 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_get_mode_bpp()
268 panel->link->test_video.test_bit_depth); in dp_panel_get_mode_bpp()
299 struct dp_panel_private *panel; in dp_panel_handle_sink_request() local
306 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_handle_sink_request()
308 if (panel->link->sink_request & DP_TEST_LINK_EDID_READ) { in dp_panel_handle_sink_request()
316 dp_link_send_edid_checksum(panel->link, checksum); in dp_panel_handle_sink_request()
317 dp_link_send_test_response(panel->link); in dp_panel_handle_sink_request()
324 struct dp_panel_private *panel; in dp_panel_tpg_config() local
331 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_tpg_config()
332 catalog = panel->catalog; in dp_panel_tpg_config()
334 if (!panel->panel_on) { in dp_panel_tpg_config()
335 drm_dbg_dp(panel->drm_dev, in dp_panel_tpg_config()
336 "DP panel not enabled, handle TPG on next on\n"); in dp_panel_tpg_config()
345 drm_dbg_dp(panel->drm_dev, "calling catalog tpg_enable\n"); in dp_panel_tpg_config()
346 dp_catalog_panel_tpg_enable(catalog, &panel->dp_panel.dp_mode.drm_mode); in dp_panel_tpg_config()
352 struct dp_panel_private *panel; in dp_panel_dump_regs() local
354 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_dump_regs()
355 catalog = panel->catalog; in dp_panel_dump_regs()
364 struct dp_panel_private *panel; in dp_panel_timing_cfg() local
367 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_timing_cfg()
368 catalog = panel->catalog; in dp_panel_timing_cfg()
369 drm_mode = &panel->dp_panel.dp_mode.drm_mode; in dp_panel_timing_cfg()
371 drm_dbg_dp(panel->drm_dev, "width=%d hporch= %d %d %d\n", in dp_panel_timing_cfg()
376 drm_dbg_dp(panel->drm_dev, "height=%d vporch= %d %d %d\n", in dp_panel_timing_cfg()
399 data |= (panel->dp_panel.dp_mode.v_active_low << 31); in dp_panel_timing_cfg()
401 data |= (panel->dp_panel.dp_mode.h_active_low << 15); in dp_panel_timing_cfg()
412 panel->panel_on = true; in dp_panel_timing_cfg()
420 struct dp_panel_private *panel; in dp_panel_init_panel_info() local
424 panel = container_of(dp_panel, struct dp_panel_private, dp_panel); in dp_panel_init_panel_info()
430 drm_dbg_dp(panel->drm_dev, "SET NEW RESOLUTION:\n"); in dp_panel_init_panel_info()
431 drm_dbg_dp(panel->drm_dev, "%dx%d@%dfps\n", in dp_panel_init_panel_info()
433 drm_dbg_dp(panel->drm_dev, in dp_panel_init_panel_info()
438 drm_dbg_dp(panel->drm_dev, in dp_panel_init_panel_info()
443 drm_dbg_dp(panel->drm_dev, "pixel clock (KHz)=(%d)\n", in dp_panel_init_panel_info()
445 drm_dbg_dp(panel->drm_dev, "bpp = %d\n", dp_panel->dp_mode.bpp); in dp_panel_init_panel_info()
450 drm_dbg_dp(panel->drm_dev, "updated bpp = %d\n", in dp_panel_init_panel_info()
458 struct dp_panel_private *panel; in dp_panel_get() local
466 panel = devm_kzalloc(in->dev, sizeof(*panel), GFP_KERNEL); in dp_panel_get()
467 if (!panel) in dp_panel_get()
470 panel->dev = in->dev; in dp_panel_get()
471 panel->aux = in->aux; in dp_panel_get()
472 panel->catalog = in->catalog; in dp_panel_get()
473 panel->link = in->link; in dp_panel_get()
475 dp_panel = &panel->dp_panel; in dp_panel_get()
477 panel->aux_cfg_update_done = false; in dp_panel_get()