/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_debugfs.c | 177 encoder->base.base.id, encoder->base.name); in intel_encoder_info() 285 if (!encoder) in intel_connector_info() 832 encoder = to_intel_encoder(connector->encoder); in i915_displayport_test_active_write() 833 if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) in i915_displayport_test_active_write() 875 encoder = to_intel_encoder(connector->encoder); in i915_displayport_test_active_show() 876 if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) in i915_displayport_test_active_show() 924 encoder = to_intel_encoder(connector->encoder); in i915_displayport_test_data_show() 925 if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) in i915_displayport_test_data_show() 977 encoder = to_intel_encoder(connector->encoder); in i915_displayport_test_type_show() 978 if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) in i915_displayport_test_type_show() [all …]
|
H A D | intel_audio.h | 17 bool intel_audio_compute_config(struct intel_encoder *encoder, 20 void intel_audio_codec_enable(struct intel_encoder *encoder, 23 void intel_audio_codec_disable(struct intel_encoder *encoder, 26 void intel_audio_codec_get_config(struct intel_encoder *encoder, 33 void intel_audio_sdp_split_update(struct intel_encoder *encoder,
|
H A D | intel_display_types.h | 597 struct intel_encoder *encoder; member 1882 return connector->encoder; in intel_attached_encoder() 1887 switch (encoder->type) { in intel_encoder_is_dig_port() 1904 enc_to_mst(struct intel_encoder *encoder) in enc_to_mst() argument 1919 return enc_to_mst(encoder)->primary; in enc_to_dig_port() 1933 return &enc_to_dig_port(encoder)->hdmi; in enc_to_intel_hdmi() 1944 return &enc_to_dig_port(encoder)->dp; in enc_to_intel_dp() 1954 switch (encoder->type) { in intel_encoder_is_dp() 1969 return &enc_to_dig_port(encoder)->lspcon; in enc_to_intel_lspcon() 1991 if (!intel_encoder_is_dp(encoder)) in intel_encoder_can_psr() [all …]
|
H A D | intel_dp.c | 221 encoder->base.base.id, encoder->base.name); in intel_dp_set_sink_rates() 249 encoder->base.base.id, encoder->base.name, in intel_dp_set_max_sink_lane_count() 2537 encoder->base.base.id, encoder->base.name, in intel_dp_set_power() 3293 encoder->base.base.id, encoder->base.name, in intel_dp_configure_mst() 4086 encoder->base.base.id, encoder->base.name, in intel_dp_link_ok() 4116 encoder->base.base.id, encoder->base.name); in intel_dp_mst_link_status() 5499 encoder->base.base.id, encoder->base.name); in intel_edp_init_connector() 5524 encoder->base.base.id, encoder->base.name); in intel_edp_init_connector() 5547 encoder->base.base.id, encoder->base.name); in intel_edp_init_connector() 5562 encoder->base.base.id, encoder->base.name); in intel_edp_init_connector() [all …]
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_tcon.c | 50 if (connector->encoder == encoder) { in sun4i_tcon_get_connector() 119 const struct drm_encoder *encoder) in sun4i_tcon_setup_lvds_phy() argument 190 const struct drm_encoder *encoder, in sun4i_tcon_set_status() argument 196 switch (encoder->encoder_type) { in sun4i_tcon_set_status() 273 encoder->name, encoder->crtc->name, ret); in sun4i_tcon_set_mux() 713 const struct drm_encoder *encoder, in sun4i_tcon_mode_set() argument 716 switch (encoder->encoder_type) { in sun4i_tcon_mode_set() 726 sun4i_tcon_set_mux(tcon, 0, encoder); in sun4i_tcon_mode_set() 731 sun4i_tcon_set_mux(tcon, 1, encoder); in sun4i_tcon_mode_set() 1349 switch (encoder->encoder_type) { in sun4i_a10_tcon_set_mux() [all …]
|
H A D | sun8i_dw_hdmi.c | 18 static void sun8i_dw_hdmi_encoder_mode_set(struct drm_encoder *encoder, in sun8i_dw_hdmi_encoder_mode_set() argument 22 struct sun8i_dw_hdmi *hdmi = encoder_to_sun8i_dw_hdmi(encoder); in sun8i_dw_hdmi_encoder_mode_set() 103 struct drm_encoder *encoder; in sun8i_dw_hdmi_bind() local 116 encoder = &hdmi->encoder; in sun8i_dw_hdmi_bind() 120 encoder->possible_crtcs = in sun8i_dw_hdmi_bind() 128 if (encoder->possible_crtcs == 0) in sun8i_dw_hdmi_bind() 182 drm_encoder_helper_add(encoder, &sun8i_dw_hdmi_encoder_helper_funcs); in sun8i_dw_hdmi_bind() 183 drm_simple_encoder_init(drm, encoder, DRM_MODE_ENCODER_TMDS); in sun8i_dw_hdmi_bind() 191 hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); in sun8i_dw_hdmi_bind() 205 drm_encoder_cleanup(encoder); in sun8i_dw_hdmi_bind()
|
H A D | sun4i_tv.c | 164 struct drm_encoder encoder; member 242 drm_encoder_to_sun4i_tv(struct drm_encoder *encoder) in drm_encoder_to_sun4i_tv() argument 244 return container_of(encoder, struct sun4i_tv, in drm_encoder_to_sun4i_tv() 245 encoder); in drm_encoder_to_sun4i_tv() 266 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() 284 drm_atomic_get_new_crtc_state(state, encoder->crtc); in sun4i_tv_enable() 475 drm_encoder_helper_add(&tv->encoder, in sun4i_tv_bind() 477 ret = drm_simple_encoder_init(drm, &tv->encoder, in sun4i_tv_bind() 486 if (!tv->encoder.possible_crtcs) { in sun4i_tv_bind() 520 drm_encoder_cleanup(&tv->encoder); in sun4i_tv_bind() [all …]
|
H A D | sun4i_crtc.c | 39 struct drm_encoder *encoder; in sun4i_crtc_get_encoder() local 41 drm_for_each_encoder(encoder, crtc->dev) in sun4i_crtc_get_encoder() 42 if (encoder->crtc == crtc) in sun4i_crtc_get_encoder() 43 return encoder; in sun4i_crtc_get_encoder() 111 struct drm_encoder *encoder = sun4i_crtc_get_encoder(crtc); in sun4i_crtc_atomic_disable() local 118 sun4i_tcon_set_status(scrtc->tcon, encoder, false); in sun4i_crtc_atomic_disable() 132 struct drm_encoder *encoder = sun4i_crtc_get_encoder(crtc); in sun4i_crtc_atomic_enable() local 137 sun4i_tcon_set_status(scrtc->tcon, encoder, true); in sun4i_crtc_atomic_enable() 145 struct drm_encoder *encoder = sun4i_crtc_get_encoder(crtc); in sun4i_crtc_mode_set_nofb() local 148 sun4i_tcon_mode_set(scrtc->tcon, encoder, mode); in sun4i_crtc_mode_set_nofb()
|
/openbmc/linux/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_external.c | 45 struct drm_encoder *encoder) in tilcdc_encoder_find_connector() argument 50 if (drm_connector_has_possible_encoder(connector, encoder)) in tilcdc_encoder_find_connector() 55 encoder->name, encoder->base.id); in tilcdc_encoder_find_connector() 63 struct drm_encoder *encoder = NULL, *iter; in tilcdc_add_component_encoder() local 67 encoder = iter; in tilcdc_add_component_encoder() 71 if (!encoder) { in tilcdc_add_component_encoder() 77 tilcdc_encoder_find_connector(ddev, encoder); in tilcdc_add_component_encoder()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | dce_v8_0.c | 1183 if (connector->encoder == encoder) { in dce_v8_0_audio_write_latency_fields() 1246 if (connector->encoder == encoder) { in dce_v8_0_audio_write_speaker_allocation() 1314 if (connector->encoder == encoder) { in dce_v8_0_audio_write_sad_regs() 1539 if (encoder->crtc) { in dce_v8_0_afmt_setmode() 2511 amdgpu_crtc->encoder = NULL; in dce_v8_0_crtc_disable() 2543 struct drm_encoder *encoder; in dce_v8_0_crtc_mode_fixup() local 2547 if (encoder->crtc == crtc) { in dce_v8_0_crtc_mode_fixup() 2548 amdgpu_crtc->encoder = encoder; in dce_v8_0_crtc_mode_fixup() 2554 amdgpu_crtc->encoder = NULL; in dce_v8_0_crtc_mode_fixup() 2621 amdgpu_crtc->encoder = NULL; in dce_v8_0_crtc_init() [all …]
|
H A D | dce_v10_0.c | 1240 if (connector->encoder == encoder) { in dce_v10_0_audio_write_latency_fields() 1287 if (connector->encoder == encoder) { in dce_v10_0_audio_write_speaker_allocation() 1357 if (connector->encoder == encoder) { in dce_v10_0_audio_write_sad_regs() 1586 if (encoder->crtc) { in dce_v10_0_afmt_setmode() 2599 amdgpu_crtc->encoder = NULL; in dce_v10_0_crtc_disable() 2631 struct drm_encoder *encoder; in dce_v10_0_crtc_mode_fixup() local 2635 if (encoder->crtc == crtc) { in dce_v10_0_crtc_mode_fixup() 2636 amdgpu_crtc->encoder = encoder; in dce_v10_0_crtc_mode_fixup() 2642 amdgpu_crtc->encoder = NULL; in dce_v10_0_crtc_mode_fixup() 2729 amdgpu_crtc->encoder = NULL; in dce_v10_0_crtc_init() [all …]
|
H A D | dce_v11_0.c | 1272 if (connector->encoder == encoder) { in dce_v11_0_audio_write_latency_fields() 1319 if (connector->encoder == encoder) { in dce_v11_0_audio_write_speaker_allocation() 1389 if (connector->encoder == encoder) { in dce_v11_0_audio_write_sad_regs() 1635 if (encoder->crtc) { in dce_v11_0_afmt_setmode() 2693 amdgpu_crtc->encoder = NULL; in dce_v11_0_crtc_disable() 2744 struct drm_encoder *encoder; in dce_v11_0_crtc_mode_fixup() local 2748 if (encoder->crtc == crtc) { in dce_v11_0_crtc_mode_fixup() 2749 amdgpu_crtc->encoder = encoder; in dce_v11_0_crtc_mode_fixup() 2755 amdgpu_crtc->encoder = NULL; in dce_v11_0_crtc_mode_fixup() 2842 amdgpu_crtc->encoder = NULL; in dce_v11_0_crtc_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | dce6_afmt.h | 37 void dce6_afmt_write_sad_regs(struct drm_encoder *encoder, 39 void dce6_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, 41 void dce6_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, 43 void dce6_afmt_write_latency_fields(struct drm_encoder *encoder, 46 void dce6_afmt_select_pin(struct drm_encoder *encoder);
|
H A D | r600.h | 44 void r600_set_audio_packet(struct drm_encoder *encoder, u32 offset); 45 void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); 50 void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, 52 void r600_set_vbi_packet(struct drm_encoder *encoder, u32 offset); 53 void r600_hdmi_enable(struct drm_encoder *encoder, bool enable);
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_atomic_helper.c | 170 if (!encoder || !(encoder_mask & drm_encoder_mask(encoder))) in handle_conflicting_encoders() 176 encoder->base.id, encoder->name, in handle_conflicting_encoders() 192 encoder->base.id, encoder->name, in handle_conflicting_encoders() 244 if (encoder) { in set_best_encoder() 277 encoder->base.id, encoder->name, in steal_encoder() 468 encoder->base.id, encoder->name); in mode_fixup() 477 encoder->base.id, encoder->name); in mode_fixup() 521 encoder->base.id, encoder->name); in mode_valid_path() 1166 encoder->base.id, encoder->name); in disable_outputs() 1380 encoder->base.id, encoder->name); in crtc_set_mode() [all …]
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | rk3066_hdmi.c | 50 struct rockchip_encoder encoder; member 65 return container_of(rkencoder, struct rk3066_hdmi, encoder); in encoder_to_rk3066_hdmi() 391 rk3066_hdmi_encoder_mode_set(struct drm_encoder *encoder, in rk3066_hdmi_encoder_mode_set() argument 438 rk3066_hdmi_encoder_mode_fixup(struct drm_encoder *encoder, in rk3066_hdmi_encoder_mode_fixup() argument 512 return &hdmi->encoder.encoder; in rk3066_hdmi_connector_best_encoder() 552 struct drm_encoder *encoder = &hdmi->encoder.encoder; in rk3066_hdmi_register() local 555 encoder->possible_crtcs = in rk3066_hdmi_register() 564 if (encoder->possible_crtcs == 0) in rk3066_hdmi_register() 579 drm_connector_attach_encoder(&hdmi->connector, encoder); in rk3066_hdmi_register() 830 hdmi->encoder.encoder.funcs->destroy(&hdmi->encoder.encoder); in rk3066_hdmi_bind() [all …]
|
H A D | inno_hdmi.c | 57 struct rockchip_encoder encoder; member 72 return container_of(rkencoder, struct inno_hdmi, encoder); in encoder_to_inno_hdmi() 498 struct inno_hdmi *hdmi = encoder_to_inno_hdmi(encoder); in inno_hdmi_encoder_mode_set() 508 struct inno_hdmi *hdmi = encoder_to_inno_hdmi(encoder); in inno_hdmi_encoder_enable() 515 struct inno_hdmi *hdmi = encoder_to_inno_hdmi(encoder); in inno_hdmi_encoder_disable() 528 inno_hdmi_encoder_atomic_check(struct drm_encoder *encoder, in inno_hdmi_encoder_atomic_check() argument 613 struct drm_encoder *encoder = &hdmi->encoder.encoder; in inno_hdmi_register() local 624 if (encoder->possible_crtcs == 0) in inno_hdmi_register() 639 drm_connector_attach_encoder(&hdmi->connector, encoder); in inno_hdmi_register() 893 hdmi->encoder.encoder.funcs->destroy(&hdmi->encoder.encoder); in inno_hdmi_bind() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_kms.h | 294 int mdp5_vid_encoder_set_split_display(struct drm_encoder *encoder, 297 int mdp5_encoder_get_linecount(struct drm_encoder *encoder); 298 u32 mdp5_encoder_get_framecount(struct drm_encoder *encoder); 301 void mdp5_cmd_encoder_mode_set(struct drm_encoder *encoder, 304 void mdp5_cmd_encoder_disable(struct drm_encoder *encoder); 305 void mdp5_cmd_encoder_enable(struct drm_encoder *encoder); 306 int mdp5_cmd_encoder_set_split_display(struct drm_encoder *encoder, 309 static inline void mdp5_cmd_encoder_mode_set(struct drm_encoder *encoder, in mdp5_cmd_encoder_mode_set() argument 314 static inline void mdp5_cmd_encoder_disable(struct drm_encoder *encoder) in mdp5_cmd_encoder_disable() argument 317 static inline void mdp5_cmd_encoder_enable(struct drm_encoder *encoder) in mdp5_cmd_encoder_enable() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_vidi.c | 38 struct drm_encoder encoder; member 54 return container_of(e, struct vidi_context, encoder); in encoder_to_vidi() 343 static int vidi_create_connector(struct drm_encoder *encoder) in vidi_create_connector() argument 345 struct vidi_context *ctx = encoder_to_vidi(encoder); in vidi_create_connector() 360 drm_connector_attach_encoder(connector, encoder); in vidi_create_connector() 365 static void exynos_vidi_mode_set(struct drm_encoder *encoder, in exynos_vidi_mode_set() argument 371 static void exynos_vidi_enable(struct drm_encoder *encoder) in exynos_vidi_enable() argument 375 static void exynos_vidi_disable(struct drm_encoder *encoder) in exynos_vidi_disable() argument 389 struct drm_encoder *encoder = &ctx->encoder; in vidi_bind() local 426 ret = vidi_create_connector(encoder); in vidi_bind() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_kms.c | 106 struct drm_encoder *encoder) in mdp4_round_pixclk() argument 109 switch (encoder->encoder_type) { in mdp4_round_pixclk() 193 struct drm_encoder *encoder; in mdp4_modeset_init_intf() local 210 if (IS_ERR(encoder)) { in mdp4_modeset_init_intf() 213 return PTR_ERR(encoder); in mdp4_modeset_init_intf() 217 encoder->possible_crtcs = 1 << DMA_P; in mdp4_modeset_init_intf() 229 if (IS_ERR(encoder)) { in mdp4_modeset_init_intf() 231 return PTR_ERR(encoder); in mdp4_modeset_init_intf() 235 encoder->possible_crtcs = 1 << 1; in mdp4_modeset_init_intf() 255 if (IS_ERR(encoder)) { in mdp4_modeset_init_intf() [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | rgb.c | 91 static void tegra_rgb_encoder_disable(struct drm_encoder *encoder) in tegra_rgb_encoder_disable() argument 93 struct tegra_output *output = encoder_to_output(encoder); in tegra_rgb_encoder_disable() 100 static void tegra_rgb_encoder_enable(struct drm_encoder *encoder) in tegra_rgb_encoder_enable() argument 102 struct tegra_output *output = encoder_to_output(encoder); in tegra_rgb_encoder_enable() 138 tegra_rgb_encoder_atomic_check(struct drm_encoder *encoder, in tegra_rgb_encoder_atomic_check() argument 142 struct tegra_output *output = encoder_to_output(encoder); in tegra_rgb_encoder_atomic_check() 287 drm_encoder_helper_add(&output->encoder, in tegra_dc_rgb_init() 324 err = drm_bridge_attach(&output->encoder, output->bridge, in tegra_dc_rgb_init() 329 connector = drm_bridge_connector_init(drm, &output->encoder); in tegra_dc_rgb_init() 337 drm_connector_attach_encoder(connector, &output->encoder); in tegra_dc_rgb_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | cdv_intel_crt.c | 43 static void cdv_intel_crt_dpms(struct drm_encoder *encoder, int mode) in cdv_intel_crt_dpms() argument 45 struct drm_device *dev = encoder->dev; in cdv_intel_crt_dpms() 88 static void cdv_intel_crt_mode_set(struct drm_encoder *encoder, in cdv_intel_crt_mode_set() argument 93 struct drm_device *dev = encoder->dev; in cdv_intel_crt_mode_set() 94 struct drm_crtc *crtc = encoder->crtc; in cdv_intel_crt_mode_set() 250 struct drm_encoder *encoder; in cdv_intel_crt_init() local 277 encoder = &gma_encoder->base; in cdv_intel_crt_init() 278 ret = drm_simple_encoder_init(dev, encoder, DRM_MODE_ENCODER_DAC); in cdv_intel_crt_init() 288 drm_encoder_helper_add(encoder, &cdv_intel_crt_helper_funcs); in cdv_intel_crt_init()
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | panel.c | 68 if (!bridge->encoder) { in panel_bridge_attach() 87 bridge->encoder); in panel_bridge_attach() 119 struct drm_encoder *encoder = bridge->encoder; in panel_bridge_atomic_pre_enable() local 123 crtc = drm_atomic_get_new_crtc_for_encoder(atomic_state, encoder); in panel_bridge_atomic_pre_enable() 139 struct drm_encoder *encoder = bridge->encoder; in panel_bridge_atomic_enable() local 143 crtc = drm_atomic_get_new_crtc_for_encoder(atomic_state, encoder); in panel_bridge_atomic_enable() 159 struct drm_encoder *encoder = bridge->encoder; in panel_bridge_atomic_disable() local 163 crtc = drm_atomic_get_old_crtc_for_encoder(atomic_state, encoder); in panel_bridge_atomic_disable() 179 struct drm_encoder *encoder = bridge->encoder; in panel_bridge_atomic_post_disable() local 183 crtc = drm_atomic_get_old_crtc_for_encoder(atomic_state, encoder); in panel_bridge_atomic_post_disable()
|
/openbmc/linux/drivers/gpu/drm/vc4/tests/ |
H A D | vc4_mock.h | 11 struct drm_encoder *encoder) in vc4_find_crtc_for_encoder() argument 15 KUNIT_ASSERT_EQ(test, hweight32(encoder->possible_crtcs), 1); in vc4_find_crtc_for_encoder() 18 if (encoder->possible_crtcs & drm_crtc_mask(crtc)) in vc4_find_crtc_for_encoder() 42 struct vc4_encoder encoder; member 47 container_of_const(_enc, struct vc4_dummy_output, encoder.base)
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-kms.c | 67 struct drm_encoder *encoder = &kms->encoder; in dcss_kms_bridge_connector_init() local 83 encoder->possible_crtcs = drm_crtc_mask(crtc); in dcss_kms_bridge_connector_init() 85 ret = drm_encoder_init(&kms->base, encoder, in dcss_kms_bridge_connector_init() 93 ret = drm_bridge_attach(encoder, bridge, NULL, in dcss_kms_bridge_connector_init() 98 kms->connector = drm_bridge_connector_init(ddev, encoder); in dcss_kms_bridge_connector_init() 104 drm_connector_attach_encoder(kms->connector, encoder); in dcss_kms_bridge_connector_init()
|