Home
last modified time | relevance | path

Searched refs:conn_state (Results 1 – 25 of 127) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_writeback.c243 int drm_writeback_set_fb(struct drm_connector_state *conn_state, in drm_writeback_set_fb() argument
246 WARN_ON(conn_state->connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK); in drm_writeback_set_fb()
248 if (!conn_state->writeback_job) { in drm_writeback_set_fb()
249 conn_state->writeback_job = in drm_writeback_set_fb()
250 kzalloc(sizeof(*conn_state->writeback_job), GFP_KERNEL); in drm_writeback_set_fb()
251 if (!conn_state->writeback_job) in drm_writeback_set_fb()
254 conn_state->writeback_job->connector = in drm_writeback_set_fb()
255 drm_connector_to_writeback(conn_state->connector); in drm_writeback_set_fb()
258 drm_framebuffer_assign(&conn_state->writeback_job->fb, fb); in drm_writeback_set_fb()
300 struct drm_connector_state *conn_state) in drm_writeback_queue_job() argument
[all …]
Ddrm_atomic_state_helper.c388 __drm_atomic_helper_connector_state_reset(struct drm_connector_state *conn_state, in __drm_atomic_helper_connector_state_reset() argument
391 conn_state->connector = connector; in __drm_atomic_helper_connector_state_reset()
409 struct drm_connector_state *conn_state) in __drm_atomic_helper_connector_reset() argument
411 if (conn_state) in __drm_atomic_helper_connector_reset()
412 __drm_atomic_helper_connector_state_reset(conn_state, connector); in __drm_atomic_helper_connector_reset()
414 connector->state = conn_state; in __drm_atomic_helper_connector_reset()
428 struct drm_connector_state *conn_state = in drm_atomic_helper_connector_reset() local
429 kzalloc(sizeof(*conn_state), GFP_KERNEL); in drm_atomic_helper_connector_reset()
435 __drm_atomic_helper_connector_reset(connector, conn_state); in drm_atomic_helper_connector_reset()
Ddrm_bridge.c726 struct drm_connector_state *conn_state) in drm_atomic_bridge_check() argument
738 crtc_state, conn_state); in drm_atomic_bridge_check()
753 struct drm_connector_state *conn_state, in select_bus_fmt_recursive() argument
776 conn_state, in select_bus_fmt_recursive()
804 conn_state, in select_bus_fmt_recursive()
821 crtc_state, conn_state, in select_bus_fmt_recursive()
873 struct drm_connector_state *conn_state) in drm_atomic_bridge_chain_select_bus_fmts() argument
875 struct drm_connector *conn = conn_state->connector; in drm_atomic_bridge_chain_select_bus_fmts()
901 conn_state, in drm_atomic_bridge_chain_select_bus_fmts()
922 conn_state, out_bus_fmts[i]); in drm_atomic_bridge_chain_select_bus_fmts()
[all …]
Ddrm_atomic_uapi.c296 drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state, in drm_atomic_set_crtc_for_connector() argument
299 struct drm_connector *connector = conn_state->connector; in drm_atomic_set_crtc_for_connector()
302 if (conn_state->crtc == crtc) in drm_atomic_set_crtc_for_connector()
305 if (conn_state->crtc) { in drm_atomic_set_crtc_for_connector()
306 crtc_state = drm_atomic_get_new_crtc_state(conn_state->state, in drm_atomic_set_crtc_for_connector()
307 conn_state->crtc); in drm_atomic_set_crtc_for_connector()
310 ~drm_connector_mask(conn_state->connector); in drm_atomic_set_crtc_for_connector()
312 drm_connector_put(conn_state->connector); in drm_atomic_set_crtc_for_connector()
313 conn_state->crtc = NULL; in drm_atomic_set_crtc_for_connector()
317 crtc_state = drm_atomic_get_crtc_state(conn_state->state, crtc); in drm_atomic_set_crtc_for_connector()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_dsi_dcs_backlight.c65 static void dcs_set_backlight(const struct drm_connector_state *conn_state, u32 level) in dcs_set_backlight() argument
67 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder)); in dcs_set_backlight()
80 static void dcs_disable_backlight(const struct drm_connector_state *conn_state) in dcs_disable_backlight() argument
82 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder)); in dcs_disable_backlight()
86 dcs_set_backlight(conn_state, 0); in dcs_disable_backlight()
114 const struct drm_connector_state *conn_state) in dcs_enable_backlight() argument
116 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder)); in dcs_enable_backlight()
117 struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; in dcs_enable_backlight()
145 dcs_set_backlight(conn_state, panel->backlight.level); in dcs_enable_backlight()
Dintel_dp.h37 const struct drm_connector_state *conn_state);
64 struct drm_connector_state *conn_state);
70 const struct drm_connector_state *conn_state);
71 void intel_edp_backlight_off(const struct drm_connector_state *conn_state);
111 const struct drm_connector_state *conn_state);
114 const struct drm_connector_state *conn_state,
121 const struct drm_connector_state *conn_state);
138 const struct drm_connector_state *conn_state);
Dintel_panel.h31 const struct drm_connector_state *conn_state);
33 const struct drm_connector_state *conn_state);
34 void intel_panel_set_backlight_acpi(const struct drm_connector_state *conn_state,
39 const struct drm_connector_state *conn_state);
43 const struct drm_connector_state *conn_state);
Dintel_panel.c178 const struct drm_connector_state *conn_state) in intel_pch_panel_fitting() argument
190 switch (conn_state->scaling_mode) { in intel_pch_panel_fitting()
238 MISSING_CASE(conn_state->scaling_mode); in intel_pch_panel_fitting()
384 const struct drm_connector_state *conn_state) in intel_gmch_panel_fitting() argument
396 switch (conn_state->scaling_mode) { in intel_gmch_panel_fitting()
432 MISSING_CASE(conn_state->scaling_mode); in intel_gmch_panel_fitting()
601 static void lpt_set_backlight(const struct drm_connector_state *conn_state, u32 level) in lpt_set_backlight() argument
603 struct intel_connector *connector = to_intel_connector(conn_state->connector); in lpt_set_backlight()
610 static void pch_set_backlight(const struct drm_connector_state *conn_state, u32 level) in pch_set_backlight() argument
612 struct intel_connector *connector = to_intel_connector(conn_state->connector); in pch_set_backlight()
[all …]
Dintel_dp_mst.c44 struct drm_connector_state *conn_state, in intel_dp_mst_compute_link_config() argument
51 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_link_config()
99 struct drm_connector_state *conn_state) in intel_dp_mst_compute_config() argument
105 to_intel_connector(conn_state->connector); in intel_dp_mst_compute_config()
107 to_intel_digital_connector_state(conn_state); in intel_dp_mst_compute_config()
149 conn_state, &limits); in intel_dp_mst_compute_config()
154 intel_dp_limited_color_range(pipe_config, conn_state); in intel_dp_mst_compute_config()
174 const struct intel_digital_connector_state *conn_state; in intel_dp_mst_transcoder_mask() local
182 for_each_new_intel_connector_in_state(state, connector, conn_state, i) { in intel_dp_mst_transcoder_mask()
186 if (connector->mst_port != mst_port || !conn_state->base.crtc) in intel_dp_mst_transcoder_mask()
[all …]
Dintel_hdmi.c723 struct drm_connector_state *conn_state) in intel_hdmi_compute_avi_infoframe() argument
728 struct drm_connector *connector = conn_state->connector; in intel_hdmi_compute_avi_infoframe()
749 drm_hdmi_avi_infoframe_colorspace(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
766 drm_hdmi_avi_infoframe_content_type(frame, conn_state); in intel_hdmi_compute_avi_infoframe()
780 struct drm_connector_state *conn_state) in intel_hdmi_compute_spd_infoframe() argument
807 struct drm_connector_state *conn_state) in intel_hdmi_compute_hdmi_infoframe() argument
812 &conn_state->connector->display_info; in intel_hdmi_compute_hdmi_infoframe()
822 conn_state->connector, in intel_hdmi_compute_hdmi_infoframe()
837 struct drm_connector_state *conn_state) in intel_hdmi_compute_drm_infoframe() argument
849 if (!conn_state->hdr_output_metadata) in intel_hdmi_compute_drm_infoframe()
[all …]
Dintel_connector.c42 struct intel_digital_connector_state *conn_state; in intel_connector_init() local
50 conn_state = kzalloc(sizeof(*conn_state), GFP_KERNEL); in intel_connector_init()
51 if (!conn_state) in intel_connector_init()
55 &conn_state->base); in intel_connector_init()
Dintel_sdvo.c195 #define to_intel_sdvo_connector_state(conn_state) \ argument
196 container_of((conn_state), struct intel_sdvo_connector_state, base.base)
1093 struct drm_connector_state *conn_state) in intel_sdvo_compute_avi_infoframe() argument
1108 conn_state->connector, in intel_sdvo_compute_avi_infoframe()
1114 conn_state->connector, in intel_sdvo_compute_avi_infoframe()
1187 const struct drm_connector_state *conn_state) in intel_sdvo_set_tv_format() argument
1192 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format()
1283 const struct drm_connector_state *conn_state) in intel_has_hdmi_sink() argument
1286 READ_ONCE(to_intel_digital_connector_state(conn_state)->force_audio) != HDMI_AUDIO_OFF_DVI; in intel_has_hdmi_sink()
1291 const struct drm_connector_state *conn_state) in intel_sdvo_limited_color_range() argument
[all …]
Dintel_tv.c920 const struct drm_connector_state *conn_state) in intel_enable_tv() argument
946 static const struct tv_mode *intel_tv_mode_find(const struct drm_connector_state *conn_state) in intel_tv_mode_find() argument
948 int format = conn_state->tv.mode; in intel_tv_mode_find()
1172 const struct drm_connector_state *conn_state, in intel_tv_vert_scaling() argument
1176 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1177 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1184 struct drm_connector_state *conn_state) in intel_tv_compute_config() argument
1188 to_intel_tv_connector_state(conn_state); in intel_tv_compute_config()
1189 const struct tv_mode *tv_mode = intel_tv_mode_find(conn_state); in intel_tv_compute_config()
1212 !intel_tv_vert_scaling(adjusted_mode, conn_state, vdisplay)) { in intel_tv_compute_config()
[all …]
Dintel_ddi.c1586 const struct drm_connector_state *conn_state) in intel_ddi_set_dp_msa() argument
1639 if (intel_dp_needs_vsc_sdp(crtc_state, conn_state)) in intel_ddi_set_dp_msa()
3302 const struct drm_connector_state *conn_state) in tgl_ddi_pre_enable_dp() argument
3436 const struct drm_connector_state *conn_state) in hsw_ddi_pre_enable_dp() argument
3501 const struct drm_connector_state *conn_state) in intel_ddi_pre_enable_dp() argument
3506 tgl_ddi_pre_enable_dp(state, encoder, crtc_state, conn_state); in intel_ddi_pre_enable_dp()
3508 hsw_ddi_pre_enable_dp(state, encoder, crtc_state, conn_state); in intel_ddi_pre_enable_dp()
3514 intel_ddi_set_dp_msa(crtc_state, conn_state); in intel_ddi_pre_enable_dp()
3523 const struct drm_connector_state *conn_state) in intel_ddi_pre_enable_hdmi() argument
3557 crtc_state, conn_state); in intel_ddi_pre_enable_hdmi()
[all …]
Dintel_hdmi.h33 struct drm_connector_state *conn_state);
50 const struct drm_connector_state *conn_state);
/kernel/linux/linux-5.10/drivers/gpu/drm/vkms/
Dvkms_writeback.c24 struct drm_connector_state *conn_state) in vkms_wb_encoder_atomic_check() argument
29 if (!conn_state->writeback_job || !conn_state->writeback_job->fb) in vkms_wb_encoder_atomic_check()
32 fb = conn_state->writeback_job->fb; in vkms_wb_encoder_atomic_check()
108 struct drm_connector_state *conn_state = wb_conn->base.state; in vkms_wb_atomic_commit() local
111 if (!conn_state) in vkms_wb_atomic_commit()
117 crtc_state->active_writeback = conn_state->writeback_job->priv; in vkms_wb_atomic_commit()
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/
Dmalidp_mw.c127 struct drm_connector_state *conn_state) in malidp_mw_encoder_atomic_check() argument
129 struct malidp_mw_connector_state *mw_state = to_mw_state(conn_state); in malidp_mw_encoder_atomic_check()
134 if (!conn_state->writeback_job) in malidp_mw_encoder_atomic_check()
137 fb = conn_state->writeback_job->fb; in malidp_mw_encoder_atomic_check()
242 struct drm_connector_state *conn_state = mw_conn->base.state; in malidp_mw_atomic_commit() local
246 if (!conn_state) in malidp_mw_atomic_commit()
249 mw_state = to_mw_state(conn_state); in malidp_mw_atomic_commit()
251 if (conn_state->writeback_job) { in malidp_mw_atomic_commit()
252 struct drm_framebuffer *fb = conn_state->writeback_job->fb; in malidp_mw_atomic_commit()
261 drm_writeback_queue_job(mw_conn, conn_state); in malidp_mw_atomic_commit()
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
Dvc4_txp.c238 struct drm_connector_state *conn_state; in vc4_txp_connector_atomic_check() local
243 conn_state = drm_atomic_get_new_connector_state(state, conn); in vc4_txp_connector_atomic_check()
244 if (!conn_state->writeback_job) in vc4_txp_connector_atomic_check()
247 crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc); in vc4_txp_connector_atomic_check()
249 fb = conn_state->writeback_job->fb; in vc4_txp_connector_atomic_check()
275 struct drm_connector_state *conn_state) in vc4_txp_connector_atomic_commit() argument
284 if (WARN_ON(!conn_state->writeback_job)) in vc4_txp_connector_atomic_commit()
287 mode = &conn_state->crtc->state->adjusted_mode; in vc4_txp_connector_atomic_commit()
288 fb = conn_state->writeback_job->fb; in vc4_txp_connector_atomic_commit()
314 drm_writeback_queue_job(&txp->connector, conn_state); in vc4_txp_connector_atomic_commit()
Dvc4_crtc.c573 struct drm_connector_state *conn_state; in vc4_crtc_get_margins() local
587 for_each_new_connector_in_state(state->state, conn, conn_state, i) { in vc4_crtc_get_margins()
588 if (conn_state->crtc != state->crtc) in vc4_crtc_get_margins()
591 *left = conn_state->tv.margins.left; in vc4_crtc_get_margins()
592 *right = conn_state->tv.margins.right; in vc4_crtc_get_margins()
593 *top = conn_state->tv.margins.top; in vc4_crtc_get_margins()
594 *bottom = conn_state->tv.margins.bottom; in vc4_crtc_get_margins()
604 struct drm_connector_state *conn_state; in vc4_crtc_atomic_check() local
611 for_each_new_connector_in_state(state->state, conn, conn_state, i) { in vc4_crtc_atomic_check()
612 if (conn_state->crtc != crtc) in vc4_crtc_atomic_check()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_bridge.h419 struct drm_connector_state *conn_state,
459 struct drm_connector_state *conn_state,
491 struct drm_connector_state *conn_state);
853 struct drm_connector_state *conn_state);
867 struct drm_connector_state *conn_state,
Ddrm_writeback.h155 int drm_writeback_set_fb(struct drm_connector_state *conn_state,
161 struct drm_connector_state *conn_state);
/kernel/linux/linux-5.10/net/rds/
Dtcp_listen.c104 int conn_state; in rds_tcp_accept_one() local
194 conn_state = rds_conn_path_state(cp); in rds_tcp_accept_one()
195 WARN_ON(conn_state == RDS_CONN_UP); in rds_tcp_accept_one()
196 if (conn_state != RDS_CONN_CONNECTING && conn_state != RDS_CONN_ERROR) in rds_tcp_accept_one()
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
Drcar_du_writeback.c142 struct drm_connector_state *conn_state) in rcar_du_wb_enc_atomic_check() argument
145 to_rcar_wb_conn_state(conn_state); in rcar_du_wb_enc_atomic_check()
150 if (!conn_state->writeback_job) in rcar_du_wb_enc_atomic_check()
153 fb = conn_state->writeback_job->fb; in rcar_du_wb_enc_atomic_check()
/kernel/linux/linux-5.10/drivers/hv/
Dconnection.c28 .conn_state = DISCONNECTED,
139 vmbus_connection.conn_state = CONNECTED; in vmbus_negotiate_version()
161 vmbus_connection.conn_state = CONNECTING; in vmbus_connect()
245 if (vmbus_connection.conn_state == CONNECTED) in vmbus_connect()
267 vmbus_connection.conn_state = DISCONNECTED; in vmbus_connect()
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Danalogix_dp-rockchip.c153 struct drm_connector_state *conn_state; in rockchip_dp_drm_get_new_crtc() local
159 conn_state = drm_atomic_get_new_connector_state(state, connector); in rockchip_dp_drm_get_new_crtc()
160 if (!conn_state) in rockchip_dp_drm_get_new_crtc()
163 return conn_state->crtc; in rockchip_dp_drm_get_new_crtc()
234 struct drm_connector_state *conn_state) in rockchip_dp_drm_encoder_atomic_check() argument
237 struct drm_display_info *di = &conn_state->connector->display_info; in rockchip_dp_drm_encoder_atomic_check()

123456