encoder 89 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c static void amdgpu_connector_property_change_mode(struct drm_encoder *encoder) encoder 91 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_crtc *crtc = encoder->crtc; encoder 139 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = connector_funcs->best_encoder(connector); encoder 140 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 217 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 224 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 225 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((encoder == best_encoder) && (status == connector_status_connected)) encoder 230 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_encoder_set_bios_scratch_regs(connector, encoder, connected); encoder 238 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 241 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 242 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder->encoder_type == encoder_type) encoder 243 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return encoder; encoder 349 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 353 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) encoder 354 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return encoder; encoder 361 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = amdgpu_connector_best_single_encoder(connector); encoder 364 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder == NULL) encoder 367 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 381 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_lcd_native_mode(struct drm_encoder *encoder) encoder 383 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_device *dev = encoder->dev; encoder 384 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 412 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c static void amdgpu_connector_add_common_modes(struct drm_encoder *encoder, encoder 415 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_device *dev = encoder->dev; encoder 416 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 470 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 478 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 479 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 482 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 498 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 499 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 502 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 513 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 514 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 517 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 527 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 528 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 531 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 541 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 542 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 545 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 555 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 556 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 559 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 580 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (connector->encoder) { encoder 581 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(connector->encoder); encoder 610 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_fixup_lcd_native_mode(struct drm_encoder *encoder, encoder 613 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 647 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 654 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_best_single_encoder(connector); encoder 655 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 656 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_fixup_lcd_native_mode(encoder, connector); encoder 658 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_add_common_modes(encoder, connector); encoder 663 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_best_single_encoder(connector); encoder 664 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 668 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = amdgpu_connector_lcd_native_mode(encoder); encoder 676 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_add_common_modes(encoder, connector); encoder 685 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = amdgpu_connector_best_single_encoder(connector); encoder 690 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 691 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 716 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = amdgpu_connector_best_single_encoder(connector); encoder 726 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 727 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 785 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (connector->encoder) encoder 786 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(connector->encoder); encoder 852 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 864 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder = amdgpu_connector_best_single_encoder(connector); encoder 865 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 905 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->dac_load_detect && encoder) { encoder 906 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder_funcs = encoder->helper_private; encoder 907 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1067 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 1070 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1071 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder->encoder_type != DRM_MODE_ENCODER_DAC && encoder 1072 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder->encoder_type != DRM_MODE_ENCODER_TVDAC) encoder 1075 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder_funcs = encoder->helper_private; encoder 1080 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1091 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c lret = encoder_funcs->detect(encoder, connector); encoder 1092 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c DRM_DEBUG_KMS("load_detect %x returned: %x\n",encoder->encoder_type,lret); encoder 1119 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 1122 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1124 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder->encoder_type == DRM_MODE_ENCODER_TMDS) encoder 1125 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return encoder; encoder 1127 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder->encoder_type == DRM_MODE_ENCODER_DAC || encoder 1128 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c encoder->encoder_type == DRM_MODE_ENCODER_TVDAC) encoder 1129 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return encoder; encoder 1137 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) encoder 1138 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return encoder; encoder 1204 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = amdgpu_connector_best_single_encoder(connector); encoder 1224 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) encoder 1225 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_encoder_setup_ext_encoder_ddc(encoder); encoder 1232 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 1233 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_fixup_lcd_native_mode(encoder, connector); encoder 1235 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_add_common_modes(encoder, connector); encoder 1240 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (!encoder) encoder 1244 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = amdgpu_connector_lcd_native_mode(encoder); encoder 1252 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_connector_add_common_modes(encoder, connector); encoder 1258 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) encoder 1259 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_encoder_setup_ext_encoder_ddc(encoder); encoder 1272 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 1276 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1277 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1293 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 1298 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1299 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1328 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = amdgpu_connector_best_single_encoder(connector); encoder 1346 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 1347 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1371 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 1373 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_atombios_encoder_setup_ext_encoder_ddc(encoder); encoder 1379 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c const struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private; encoder 1380 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1423 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder = amdgpu_connector_best_single_encoder(connector); encoder 1428 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (encoder) { encoder 1429 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1506 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_encoder *encoder; encoder 1538 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 1539 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 371 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct drm_encoder *encoder; encoder 411 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 412 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 686 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct drm_encoder *encoder; encoder 697 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 698 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if (encoder->crtc != crtc) encoder 700 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 701 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c connector = amdgpu_get_connector_for_encoder(encoder); encoder 41 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_encoder *encoder; encoder 47 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 48 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 50 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c drm_connector_attach_encoder(connector, encoder); encoder 60 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c void amdgpu_encoder_set_active_device(struct drm_encoder *encoder) encoder 62 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_device *dev = encoder->dev; encoder 63 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 67 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c if (connector->encoder == encoder) { encoder 72 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_connector->devices, encoder->encoder_type); encoder 78 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_get_connector_for_encoder(struct drm_encoder *encoder) encoder 80 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_device *dev = encoder->dev; encoder 81 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 94 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c amdgpu_get_connector_for_encoder_init(struct drm_encoder *encoder) encoder 96 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_device *dev = encoder->dev; encoder 97 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 109 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_encoder *amdgpu_get_external_encoder(struct drm_encoder *encoder) encoder 111 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_device *dev = encoder->dev; encoder 112 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 120 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c if (other_encoder == encoder) encoder 130 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c u16 amdgpu_encoder_get_dp_bridge_encoder_id(struct drm_encoder *encoder) encoder 132 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct drm_encoder *other_encoder = amdgpu_get_external_encoder(encoder); encoder 148 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c void amdgpu_panel_mode_fixup(struct drm_encoder *encoder, encoder 151 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 189 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c bool amdgpu_dig_monitor_is_duallink(struct drm_encoder *encoder, encoder 196 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c connector = amdgpu_get_connector_for_encoder(encoder); encoder 201 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c connector = amdgpu_get_connector_for_encoder_init(encoder); encoder 361 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct amdgpu_encoder *encoder; encoder 416 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct drm_encoder *encoder; encoder 580 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h amdgpu_get_connector_for_encoder(struct drm_encoder *encoder); encoder 582 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h amdgpu_get_connector_for_encoder_init(struct drm_encoder *encoder); encoder 583 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h bool amdgpu_dig_monitor_is_duallink(struct drm_encoder *encoder, encoder 586 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h u16 amdgpu_encoder_get_dp_bridge_encoder_id(struct drm_encoder *encoder); encoder 587 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct drm_encoder *amdgpu_get_external_encoder(struct drm_encoder *encoder); encoder 592 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h void amdgpu_encoder_set_active_device(struct drm_encoder *encoder); encoder 606 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h void amdgpu_enc_destroy(struct drm_encoder *encoder); encoder 611 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h void amdgpu_panel_mode_fixup(struct drm_encoder *encoder, encoder 297 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c if (test_amdgpu_crtc->encoder && encoder 298 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(test_amdgpu_crtc->encoder))) { encoder 333 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c if (test_amdgpu_crtc->encoder && encoder 334 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c !ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(test_amdgpu_crtc->encoder))) { encoder 311 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct drm_encoder *encoder = amdgpu_crtc->encoder; encoder 312 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 313 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 315 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c int encoder_mode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 319 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c bool is_duallink = amdgpu_dig_monitor_is_duallink(encoder, mode->clock); encoder 327 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)) { encoder 424 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c if (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != encoder 427 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_encoder_get_dp_bridge_encoder_id(encoder); encoder 754 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c to_amdgpu_encoder(amdgpu_crtc->encoder); encoder 755 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c int encoder_mode = amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder); encoder 761 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c (amdgpu_encoder_get_dp_bridge_encoder_id(amdgpu_crtc->encoder) != ENCODER_OBJECT_ID_NONE)) { encoder 764 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_get_connector_for_encoder(amdgpu_crtc->encoder); encoder 823 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c to_amdgpu_encoder(amdgpu_crtc->encoder); encoder 828 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c int encoder_mode = amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder); encoder 360 drivers/gpu/drm/amd/amdgpu/atombios_dp.c int amdgpu_atombios_dp_get_panel_mode(struct drm_encoder *encoder, encoder 480 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct drm_encoder *encoder; encoder 496 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_atombios_encoder_setup_dig_transmitter(dp_info->encoder, encoder 522 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_atombios_encoder_setup_dig_encoder(dp_info->encoder, rtp, 0); encoder 531 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(dp_info->encoder); encoder 560 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_atombios_encoder_setup_dig_encoder(dp_info->encoder, encoder 582 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_atombios_encoder_setup_dig_encoder(dp_info->encoder, encoder 710 drivers/gpu/drm/amd/amdgpu/atombios_dp.c void amdgpu_atombios_dp_link_train(struct drm_encoder *encoder, encoder 713 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct drm_device *dev = encoder->dev; encoder 715 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 747 drivers/gpu/drm/amd/amdgpu/atombios_dp.c dp_info.encoder = encoder; encoder 30 drivers/gpu/drm/amd/amdgpu/atombios_dp.h int amdgpu_atombios_dp_get_panel_mode(struct drm_encoder *encoder, encoder 39 drivers/gpu/drm/amd/amdgpu/atombios_dp.h void amdgpu_atombios_dp_link_train(struct drm_encoder *encoder, encoder 85 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *encoder = &amdgpu_encoder->base; encoder 106 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, encoder 109 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, encoder 111 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, encoder 141 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = pdata->encoder; encoder 153 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = pdata->encoder; encoder 208 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c pdata->encoder = amdgpu_encoder; encoder 259 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *encoder) encoder 263 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c void amdgpu_atombios_encoder_fini_backlight(struct amdgpu_encoder *encoder) encoder 269 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c bool amdgpu_atombios_encoder_is_digital(struct drm_encoder *encoder) encoder 271 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 284 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c bool amdgpu_atombios_encoder_mode_fixup(struct drm_encoder *encoder, encoder 288 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 291 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_encoder_set_active_device(encoder); encoder 305 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_panel_mode_fixup(encoder, adjusted_mode); encoder 307 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_panel_mode_fixup(encoder, adjusted_mode); encoder 310 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)) { encoder 311 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 319 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dac(struct drm_encoder *encoder, int action) encoder 321 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 323 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 348 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c static u8 amdgpu_atombios_encoder_get_bpc(struct drm_encoder *encoder) encoder 352 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (encoder->crtc) { encoder 353 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 382 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dvo(struct drm_encoder *encoder, int action) encoder 384 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 386 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 403 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 415 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 429 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.dvo_v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); encoder 444 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c int amdgpu_atombios_encoder_get_encoder_mode(struct drm_encoder *encoder) encoder 446 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 452 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE) encoder 460 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c connector = amdgpu_get_connector_for_encoder(encoder); encoder 465 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c connector = amdgpu_get_connector_for_encoder_init(encoder); encoder 572 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_encoder(struct drm_encoder *encoder, encoder 575 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 577 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 579 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 615 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v1.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 619 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 650 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v3.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 654 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 662 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v3.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); encoder 670 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v4.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 674 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 690 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); encoder 707 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 710 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, encoder 718 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_get_bpc(encoder); encoder 761 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(struct drm_encoder *encoder, int action, encoder 764 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 766 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 782 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c connector = amdgpu_get_connector_for_encoder_init(encoder); encoder 788 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c connector = amdgpu_get_connector_for_encoder(encoder); encoder 802 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (encoder->crtc) { encoder 803 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 811 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encoder))) encoder 847 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 863 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c !amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) { encoder 890 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 904 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 932 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 946 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 954 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 991 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1005 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1013 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1053 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1089 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1094 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v5.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1146 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1154 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v6.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1223 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(struct drm_encoder *encoder, encoder 1227 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1229 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1241 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c connector = amdgpu_get_connector_for_encoder_init(encoder); encoder 1243 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c connector = amdgpu_get_connector_for_encoder(encoder); encoder 1272 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1278 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c } else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1290 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1298 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c } else if (amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock)) encoder 1313 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v3.sExtEncoder.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); encoder 1328 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig(struct drm_encoder *encoder, int action) encoder 1330 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1331 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *ext_encoder = amdgpu_get_external_encoder(encoder); encoder 1333 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1346 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c dig->panel_mode = amdgpu_atombios_dp_get_panel_mode(encoder, connector); encoder 1349 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_encoder(encoder, ATOM_ENCODER_CMD_SETUP, 0); encoder 1350 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_encoder(encoder, encoder 1354 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(encoder, ext_encoder, encoder 1356 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encoder)) && encoder 1365 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, encoder 1368 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encoder)) && encoder 1371 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_dp_link_train(encoder, connector); encoder 1372 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_encoder(encoder, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0); encoder 1377 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(encoder, ext_encoder, ATOM_ENABLE); encoder 1379 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encoder)) && encoder 1381 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_encoder(encoder, encoder 1384 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(encoder, ext_encoder, ATOM_DISABLE); encoder 1386 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, encoder 1389 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encoder)) && encoder 1393 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, encoder 1395 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encoder)) && encoder 1407 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 1409 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1421 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig(encoder, ATOM_ENABLE); encoder 1426 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig(encoder, ATOM_DISABLE); encoder 1433 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dvo(encoder, ATOM_ENABLE); encoder 1438 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dvo(encoder, ATOM_DISABLE); encoder 1445 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dac(encoder, ATOM_ENABLE); encoder 1450 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dac(encoder, ATOM_DISABLE); encoder 1466 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder *encoder) encoder 1468 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1470 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1471 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1527 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE) { encoder 1528 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1535 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1539 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1595 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE) { encoder 1596 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1603 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1607 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1609 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c args.v3.ucDstBpc = amdgpu_atombios_encoder_get_bpc(encoder); encoder 1677 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *encoder; encoder 1679 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 1680 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1681 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *ext_encoder = amdgpu_get_external_encoder(encoder); encoder 1688 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_dig_transmitter(encoder, ATOM_TRANSMITTER_ACTION_INIT, encoder 1694 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(encoder, ext_encoder, encoder 1700 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_dac_load_detect(struct drm_encoder *encoder, encoder 1703 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1705 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1750 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_dac_detect(struct drm_encoder *encoder, encoder 1753 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1755 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1759 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (!amdgpu_atombios_encoder_dac_load_detect(encoder, connector)) { encoder 1789 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_dig_detect(struct drm_encoder *encoder, encoder 1792 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1794 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1796 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *ext_encoder = amdgpu_get_external_encoder(encoder); encoder 1806 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(encoder, ext_encoder, encoder 1834 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_ext_encoder_ddc(struct drm_encoder *encoder) encoder 1836 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *ext_encoder = amdgpu_get_external_encoder(encoder); encoder 1840 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_setup_external_encoder(encoder, ext_encoder, encoder 1847 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_encoder *encoder, encoder 1854 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1999 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder *encoder) encoder 2001 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct drm_device *dev = encoder->base.dev; encoder 2009 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c int encoder_enum = (encoder->encoder_enum & ENUM_ID_MASK) >> ENUM_ID_SHIFT; encoder 2063 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c encoder->native_mode = lvds->native_mode; encoder 41 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h bool amdgpu_atombios_encoder_is_digital(struct drm_encoder *encoder); encoder 42 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h bool amdgpu_atombios_encoder_mode_fixup(struct drm_encoder *encoder, encoder 45 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h int amdgpu_atombios_encoder_get_encoder_mode(struct drm_encoder *encoder); encoder 47 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_setup_dig_encoder(struct drm_encoder *encoder, encoder 50 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_setup_dig_transmitter(struct drm_encoder *encoder, int action, encoder 56 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_dpms(struct drm_encoder *encoder, int mode); encoder 58 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_set_crtc_source(struct drm_encoder *encoder); encoder 62 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_dac_detect(struct drm_encoder *encoder, encoder 65 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_dig_detect(struct drm_encoder *encoder, encoder 68 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_setup_ext_encoder_ddc(struct drm_encoder *encoder); encoder 71 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h struct drm_encoder *encoder, encoder 74 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_get_lcd_info(struct amdgpu_encoder *encoder); encoder 498 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_program_fmt(struct drm_encoder *encoder) encoder 500 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 502 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 503 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 504 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1204 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_afmt_audio_select_pin(struct drm_encoder *encoder) encoder 1206 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1207 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1219 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_audio_write_latency_fields(struct drm_encoder *encoder, encoder 1222 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1223 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1233 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1234 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (connector->encoder == encoder) { encoder 1262 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_audio_write_speaker_allocation(struct drm_encoder *encoder) encoder 1264 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1265 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1276 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1277 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (connector->encoder == encoder) { encoder 1314 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_audio_write_sad_regs(struct drm_encoder *encoder) encoder 1316 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1317 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1342 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1343 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (connector->encoder == encoder) { encoder 1465 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_afmt_update_ACR(struct drm_encoder *encoder, uint32_t clock) encoder 1467 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 1470 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1500 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, encoder 1503 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 1505 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1520 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_audio_set_dto(struct drm_encoder *encoder, u32 clock) encoder 1522 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 1524 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1526 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1550 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_afmt_setmode(struct drm_encoder *encoder, encoder 1553 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 1555 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1557 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1572 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (encoder->crtc) { encoder 1573 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1581 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_set_dto(encoder, mode->clock); encoder 1664 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_update_ACR(encoder, mode->clock); encoder 1683 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_write_speaker_allocation(encoder); encoder 1688 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_audio_select_pin(encoder); encoder 1689 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_write_sad_regs(encoder); encoder 1690 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_write_latency_fields(encoder, mode); encoder 1704 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_update_avi_infoframe(encoder, buffer, sizeof(buffer)); encoder 1731 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_afmt_enable(struct drm_encoder *encoder, bool enable) encoder 1733 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 1735 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2176 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static int dce_v10_0_pick_dig_encoder(struct drm_encoder *encoder) encoder 2178 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2239 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) { encoder 2587 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_crtc->encoder = NULL; encoder 2619 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_encoder *encoder; encoder 2622 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2623 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (encoder->crtc == crtc) { encoder 2624 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_crtc->encoder = encoder; encoder 2625 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_crtc->connector = amdgpu_get_connector_for_encoder(encoder); encoder 2629 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if ((amdgpu_crtc->encoder == NULL) || (amdgpu_crtc->connector == NULL)) { encoder 2630 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_crtc->encoder = NULL; encoder 2642 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c !ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) encoder 2716 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_crtc->encoder = NULL; encoder 3303 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_encoder_mode_set(struct drm_encoder *encoder, encoder 3307 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3312 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3315 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_set_interleave(encoder->crtc, mode); encoder 3317 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) { encoder 3318 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_enable(encoder, true); encoder 3319 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_setmode(encoder, adjusted_mode); encoder 3323 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_encoder_prepare(struct drm_encoder *encoder) encoder 3325 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 3326 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3327 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 3331 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != encoder 3335 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dig->dig_encoder = dce_v10_0_pick_dig_encoder(encoder); encoder 3357 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_atombios_encoder_set_crtc_source(encoder); encoder 3359 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_program_fmt(encoder); encoder 3362 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_encoder_commit(struct drm_encoder *encoder) encoder 3364 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_device *dev = encoder->dev; encoder 3368 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 3372 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_encoder_disable(struct drm_encoder *encoder) encoder 3374 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3377 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3379 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_atombios_encoder_is_digital(encoder)) { encoder 3380 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) encoder 3381 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_enable(encoder, false); encoder 3389 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_ext_prepare(struct drm_encoder *encoder) encoder 3394 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_ext_commit(struct drm_encoder *encoder) encoder 3400 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_ext_mode_set(struct drm_encoder *encoder, encoder 3407 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_ext_disable(struct drm_encoder *encoder) encoder 3413 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_ext_dpms(struct drm_encoder *encoder, int mode) encoder 3446 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_encoder_destroy(struct drm_encoder *encoder) encoder 3448 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3452 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_cleanup(encoder); encoder 3466 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_encoder *encoder; encoder 3470 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 3471 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3484 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c encoder = &amdgpu_encoder->base; encoder 3487 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c encoder->possible_crtcs = 0x1; encoder 3491 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c encoder->possible_crtcs = 0x3; encoder 3494 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c encoder->possible_crtcs = 0xf; encoder 3497 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c encoder->possible_crtcs = 0x3f; encoder 3514 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3516 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_helper_add(encoder, &dce_v10_0_dac_helper_funcs); encoder 3525 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3529 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3533 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3537 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_helper_add(encoder, &dce_v10_0_dig_helper_funcs); encoder 3551 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3554 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3557 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_init(dev, encoder, &dce_v10_0_encoder_funcs, encoder 3559 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drm_encoder_helper_add(encoder, &dce_v10_0_ext_helper_funcs); encoder 524 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_program_fmt(struct drm_encoder *encoder) encoder 526 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 528 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 529 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 530 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1230 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_afmt_audio_select_pin(struct drm_encoder *encoder) encoder 1232 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1233 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1245 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_audio_write_latency_fields(struct drm_encoder *encoder, encoder 1248 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1249 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1259 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1260 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (connector->encoder == encoder) { encoder 1288 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_audio_write_speaker_allocation(struct drm_encoder *encoder) encoder 1290 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1291 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1302 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1303 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (connector->encoder == encoder) { encoder 1340 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_audio_write_sad_regs(struct drm_encoder *encoder) encoder 1342 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1343 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1368 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1369 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (connector->encoder == encoder) { encoder 1507 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_afmt_update_ACR(struct drm_encoder *encoder, uint32_t clock) encoder 1509 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 1512 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1542 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, encoder 1545 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 1547 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1562 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_audio_set_dto(struct drm_encoder *encoder, u32 clock) encoder 1564 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 1566 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1568 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1592 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_afmt_setmode(struct drm_encoder *encoder, encoder 1595 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 1597 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1599 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1614 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (encoder->crtc) { encoder 1615 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1623 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_set_dto(encoder, mode->clock); encoder 1706 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_update_ACR(encoder, mode->clock); encoder 1725 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_write_speaker_allocation(encoder); encoder 1730 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_audio_select_pin(encoder); encoder 1731 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_write_sad_regs(encoder); encoder 1732 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_write_latency_fields(encoder, mode); encoder 1746 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_update_avi_infoframe(encoder, buffer, sizeof(buffer)); encoder 1773 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_afmt_enable(struct drm_encoder *encoder, bool enable) encoder 1775 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 1777 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2209 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static int dce_v11_0_pick_dig_encoder(struct drm_encoder *encoder) encoder 2211 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2277 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c to_amdgpu_encoder(amdgpu_crtc->encoder); encoder 2280 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) encoder 2308 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) { encoder 2676 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_crtc->encoder = NULL; encoder 2697 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c to_amdgpu_encoder(amdgpu_crtc->encoder); encoder 2699 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder); encoder 2727 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_encoder *encoder; encoder 2730 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2731 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (encoder->crtc == crtc) { encoder 2732 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_crtc->encoder = encoder; encoder 2733 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_crtc->connector = amdgpu_get_connector_for_encoder(encoder); encoder 2737 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if ((amdgpu_crtc->encoder == NULL) || (amdgpu_crtc->connector == NULL)) { encoder 2738 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_crtc->encoder = NULL; encoder 2750 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c !ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) encoder 2824 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_crtc->encoder = NULL; encoder 3429 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_encoder_mode_set(struct drm_encoder *encoder, encoder 3433 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3438 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3441 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_set_interleave(encoder->crtc, mode); encoder 3443 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) { encoder 3444 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_enable(encoder, true); encoder 3445 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_setmode(encoder, adjusted_mode); encoder 3449 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_encoder_prepare(struct drm_encoder *encoder) encoder 3451 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 3452 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3453 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 3457 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != encoder 3461 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dig->dig_encoder = dce_v11_0_pick_dig_encoder(encoder); encoder 3483 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_atombios_encoder_set_crtc_source(encoder); encoder 3485 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_program_fmt(encoder); encoder 3488 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_encoder_commit(struct drm_encoder *encoder) encoder 3490 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_device *dev = encoder->dev; encoder 3494 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 3498 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_encoder_disable(struct drm_encoder *encoder) encoder 3500 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3503 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3505 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_atombios_encoder_is_digital(encoder)) { encoder 3506 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) encoder 3507 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_enable(encoder, false); encoder 3515 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_ext_prepare(struct drm_encoder *encoder) encoder 3520 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_ext_commit(struct drm_encoder *encoder) encoder 3526 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_ext_mode_set(struct drm_encoder *encoder, encoder 3533 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_ext_disable(struct drm_encoder *encoder) encoder 3539 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_ext_dpms(struct drm_encoder *encoder, int mode) encoder 3572 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_encoder_destroy(struct drm_encoder *encoder) encoder 3574 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3578 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_cleanup(encoder); encoder 3592 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_encoder *encoder; encoder 3596 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 3597 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3610 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder = &amdgpu_encoder->base; encoder 3613 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder->possible_crtcs = 0x1; encoder 3617 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder->possible_crtcs = 0x3; encoder 3620 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder->possible_crtcs = 0x7; encoder 3623 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder->possible_crtcs = 0xf; encoder 3626 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder->possible_crtcs = 0x1f; encoder 3629 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c encoder->possible_crtcs = 0x3f; encoder 3646 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3648 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_helper_add(encoder, &dce_v11_0_dac_helper_funcs); encoder 3657 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3661 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3665 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3669 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_helper_add(encoder, &dce_v11_0_dig_helper_funcs); encoder 3683 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3686 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3689 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_init(dev, encoder, &dce_v11_0_encoder_funcs, encoder 3691 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c drm_encoder_helper_add(encoder, &dce_v11_0_ext_helper_funcs); encoder 395 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_program_fmt(struct drm_encoder *encoder) encoder 398 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 400 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 401 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 402 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1110 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_select_pin(struct drm_encoder *encoder) encoder 1112 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1113 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1124 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_write_latency_fields(struct drm_encoder *encoder, encoder 1127 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1128 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1135 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1136 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (connector->encoder == encoder) { encoder 1165 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_write_speaker_allocation(struct drm_encoder *encoder) encoder 1167 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1168 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1176 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1177 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (connector->encoder == encoder) { encoder 1222 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_write_sad_regs(struct drm_encoder *encoder) encoder 1224 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1225 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1247 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1248 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (connector->encoder == encoder) { encoder 1375 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_set_vbi_packet(struct drm_encoder *encoder) encoder 1377 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1379 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1390 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_set_acr(struct drm_encoder *encoder, encoder 1393 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1396 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1428 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_set_avi_infoframe(struct drm_encoder *encoder, encoder 1431 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1433 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1435 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1471 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_set_dto(struct drm_encoder *encoder, u32 clock) encoder 1473 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1475 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1476 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c int em = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1505 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_set_packet(struct drm_encoder *encoder) encoder 1507 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1509 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1549 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_set_mute(struct drm_encoder *encoder, bool mute) encoder 1551 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1553 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1562 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_hdmi_enable(struct drm_encoder *encoder, bool enable) encoder 1564 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1566 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1599 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_audio_dp_enable(struct drm_encoder *encoder, bool enable) encoder 1601 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1603 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1627 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_afmt_setmode(struct drm_encoder *encoder, encoder 1630 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1632 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1636 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c int em = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 1642 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1643 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (connector->encoder == encoder) { encoder 1661 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (encoder->crtc) { encoder 1662 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1669 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_mute(encoder, true); encoder 1670 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_write_speaker_allocation(encoder); encoder 1671 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_write_sad_regs(encoder); encoder 1672 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_write_latency_fields(encoder, mode); encoder 1674 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_dto(encoder, mode->clock); encoder 1675 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_vbi_packet(encoder); encoder 1676 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_acr(encoder, mode->clock, bpc); encoder 1678 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_dto(encoder, adev->clock.default_dispclk * 10); encoder 1680 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_packet(encoder); encoder 1681 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_select_pin(encoder); encoder 1682 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_avi_infoframe(encoder, mode); encoder 1683 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_mute(encoder, false); encoder 1685 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_hdmi_enable(encoder, 1); encoder 1687 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_dp_enable(encoder, 1); encoder 1694 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_afmt_enable(struct drm_encoder *encoder, bool enable) encoder 1696 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 1698 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2092 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static int dce_v6_0_pick_dig_encoder(struct drm_encoder *encoder) encoder 2094 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2135 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) { encoder 2474 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_crtc->encoder = NULL; encoder 2507 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_encoder *encoder; encoder 2510 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2511 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (encoder->crtc == crtc) { encoder 2512 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_crtc->encoder = encoder; encoder 2513 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_crtc->connector = amdgpu_get_connector_for_encoder(encoder); encoder 2517 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if ((amdgpu_crtc->encoder == NULL) || (amdgpu_crtc->connector == NULL)) { encoder 2518 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_crtc->encoder = NULL; encoder 2530 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c !ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) encoder 2584 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_crtc->encoder = NULL; encoder 3099 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_encoder_mode_set(struct drm_encoder *encoder, encoder 3104 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3105 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c int em = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 3110 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3113 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_set_interleave(encoder->crtc, mode); encoder 3116 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_afmt_enable(encoder, true); encoder 3117 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_afmt_setmode(encoder, adjusted_mode); encoder 3121 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_encoder_prepare(struct drm_encoder *encoder) encoder 3124 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 3125 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3126 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 3130 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != encoder 3134 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dig->dig_encoder = dce_v6_0_pick_dig_encoder(encoder); encoder 3156 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_atombios_encoder_set_crtc_source(encoder); encoder 3158 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_program_fmt(encoder); encoder 3161 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_encoder_commit(struct drm_encoder *encoder) encoder 3164 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_device *dev = encoder->dev; encoder 3168 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 3172 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_encoder_disable(struct drm_encoder *encoder) encoder 3175 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3177 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c int em = amdgpu_atombios_encoder_get_encoder_mode(encoder); encoder 3179 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3181 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_atombios_encoder_is_digital(encoder)) { encoder 3183 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_afmt_enable(encoder, false); encoder 3191 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_ext_prepare(struct drm_encoder *encoder) encoder 3196 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_ext_commit(struct drm_encoder *encoder) encoder 3202 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_ext_mode_set(struct drm_encoder *encoder, encoder 3209 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_ext_disable(struct drm_encoder *encoder) encoder 3215 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_ext_dpms(struct drm_encoder *encoder, int mode) encoder 3220 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static bool dce_v6_0_ext_mode_fixup(struct drm_encoder *encoder, encoder 3256 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_encoder_destroy(struct drm_encoder *encoder) encoder 3258 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3262 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_cleanup(encoder); encoder 3276 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_encoder *encoder; encoder 3280 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 3281 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3294 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c encoder = &amdgpu_encoder->base; encoder 3297 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c encoder->possible_crtcs = 0x1; encoder 3301 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c encoder->possible_crtcs = 0x3; encoder 3304 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c encoder->possible_crtcs = 0xf; encoder 3307 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c encoder->possible_crtcs = 0x3f; encoder 3323 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3325 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_helper_add(encoder, &dce_v6_0_dac_helper_funcs); encoder 3334 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3338 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3342 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3346 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_helper_add(encoder, &dce_v6_0_dig_helper_funcs); encoder 3360 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3363 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3366 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_init(dev, encoder, &dce_v6_0_encoder_funcs, encoder 3368 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c drm_encoder_helper_add(encoder, &dce_v6_0_ext_helper_funcs); encoder 438 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_program_fmt(struct drm_encoder *encoder) encoder 440 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 442 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 443 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 444 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1141 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_afmt_audio_select_pin(struct drm_encoder *encoder) encoder 1143 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1144 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1157 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_audio_write_latency_fields(struct drm_encoder *encoder, encoder 1160 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1161 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1172 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1173 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (connector->encoder == encoder) { encoder 1215 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_audio_write_speaker_allocation(struct drm_encoder *encoder) encoder 1217 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1218 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1231 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1232 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (connector->encoder == encoder) { encoder 1264 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_audio_write_sad_regs(struct drm_encoder *encoder) encoder 1266 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 1267 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1295 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) { encoder 1296 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (connector->encoder == encoder) { encoder 1428 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_afmt_update_ACR(struct drm_encoder *encoder, uint32_t clock) encoder 1430 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 1433 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1450 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_afmt_update_avi_infoframe(struct drm_encoder *encoder, encoder 1453 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 1455 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1471 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_audio_set_dto(struct drm_encoder *encoder, u32 clock) encoder 1473 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 1475 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1477 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1497 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_afmt_setmode(struct drm_encoder *encoder, encoder 1500 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 1502 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 1504 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 1521 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (encoder->crtc) { encoder 1522 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(encoder->crtc); encoder 1530 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_set_dto(encoder, mode->clock); encoder 1600 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_update_ACR(encoder, mode->clock); encoder 1616 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_write_speaker_allocation(encoder); encoder 1622 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_audio_select_pin(encoder); encoder 1623 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_write_sad_regs(encoder); encoder 1624 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_write_latency_fields(encoder, mode); encoder 1638 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_update_avi_infoframe(encoder, buffer, sizeof(buffer)); encoder 1660 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_afmt_enable(struct drm_encoder *encoder, bool enable) encoder 1662 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 1664 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2066 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static int dce_v8_0_pick_dig_encoder(struct drm_encoder *encoder) encoder 2068 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 2129 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) { encoder 2495 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_crtc->encoder = NULL; encoder 2527 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_encoder *encoder; encoder 2530 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2531 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (encoder->crtc == crtc) { encoder 2532 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_crtc->encoder = encoder; encoder 2533 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_crtc->connector = amdgpu_get_connector_for_encoder(encoder); encoder 2537 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if ((amdgpu_crtc->encoder == NULL) || (amdgpu_crtc->connector == NULL)) { encoder 2538 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_crtc->encoder = NULL; encoder 2550 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c !ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder))) encoder 2604 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_crtc->encoder = NULL; encoder 3191 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_encoder_mode_set(struct drm_encoder *encoder, encoder 3195 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3200 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3203 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_set_interleave(encoder->crtc, mode); encoder 3205 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) { encoder 3206 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_enable(encoder, true); encoder 3207 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_setmode(encoder, adjusted_mode); encoder 3211 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_encoder_prepare(struct drm_encoder *encoder) encoder 3213 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_device *adev = encoder->dev->dev_private; encoder 3214 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3215 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_connector *connector = amdgpu_get_connector_for_encoder(encoder); encoder 3219 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c (amdgpu_encoder_get_dp_bridge_encoder_id(encoder) != encoder 3223 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dig->dig_encoder = dce_v8_0_pick_dig_encoder(encoder); encoder 3245 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_atombios_encoder_set_crtc_source(encoder); encoder 3247 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_program_fmt(encoder); encoder 3250 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_encoder_commit(struct drm_encoder *encoder) encoder 3252 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_device *dev = encoder->dev; encoder 3256 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 3260 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_encoder_disable(struct drm_encoder *encoder) encoder 3262 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3265 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_atombios_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 3267 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_atombios_encoder_is_digital(encoder)) { encoder 3268 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_atombios_encoder_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) encoder 3269 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_enable(encoder, false); encoder 3277 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_ext_prepare(struct drm_encoder *encoder) encoder 3282 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_ext_commit(struct drm_encoder *encoder) encoder 3288 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_ext_mode_set(struct drm_encoder *encoder, encoder 3295 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_ext_disable(struct drm_encoder *encoder) encoder 3301 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_ext_dpms(struct drm_encoder *encoder, int mode) encoder 3334 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_encoder_destroy(struct drm_encoder *encoder) encoder 3336 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3340 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_cleanup(encoder); encoder 3354 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_encoder *encoder; encoder 3358 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 3359 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 3372 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c encoder = &amdgpu_encoder->base; encoder 3375 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c encoder->possible_crtcs = 0x1; encoder 3379 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c encoder->possible_crtcs = 0x3; encoder 3382 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c encoder->possible_crtcs = 0xf; encoder 3385 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c encoder->possible_crtcs = 0x3f; encoder 3402 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3404 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_helper_add(encoder, &dce_v8_0_dac_helper_funcs); encoder 3413 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3417 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3421 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3425 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_helper_add(encoder, &dce_v8_0_dig_helper_funcs); encoder 3439 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3442 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3445 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_init(dev, encoder, &dce_v8_0_encoder_funcs, encoder 3447 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c drm_encoder_helper_add(encoder, &dce_v8_0_ext_helper_funcs); encoder 174 drivers/gpu/drm/amd/amdgpu/dce_virtual.c amdgpu_crtc->encoder = NULL; encoder 239 drivers/gpu/drm/amd/amdgpu/dce_virtual.c amdgpu_crtc->encoder = NULL; encoder 262 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_encoder *encoder; encoder 265 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 266 drivers/gpu/drm/amd/amdgpu/dce_virtual.c if (encoder->encoder_type == DRM_MODE_ENCODER_VIRTUAL) encoder 267 drivers/gpu/drm/amd/amdgpu/dce_virtual.c return encoder; encoder 271 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_connector_for_each_possible_encoder(connector, encoder, i) encoder 272 drivers/gpu/drm/amd/amdgpu/dce_virtual.c return encoder; encoder 530 drivers/gpu/drm/amd/amdgpu/dce_virtual.c static void dce_virtual_encoder_prepare(struct drm_encoder *encoder) encoder 535 drivers/gpu/drm/amd/amdgpu/dce_virtual.c static void dce_virtual_encoder_commit(struct drm_encoder *encoder) encoder 541 drivers/gpu/drm/amd/amdgpu/dce_virtual.c dce_virtual_encoder_mode_set(struct drm_encoder *encoder, encoder 548 drivers/gpu/drm/amd/amdgpu/dce_virtual.c static void dce_virtual_encoder_disable(struct drm_encoder *encoder) encoder 554 drivers/gpu/drm/amd/amdgpu/dce_virtual.c dce_virtual_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 559 drivers/gpu/drm/amd/amdgpu/dce_virtual.c static bool dce_virtual_encoder_mode_fixup(struct drm_encoder *encoder, encoder 575 drivers/gpu/drm/amd/amdgpu/dce_virtual.c static void dce_virtual_encoder_destroy(struct drm_encoder *encoder) encoder 577 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_encoder_cleanup(encoder); encoder 578 drivers/gpu/drm/amd/amdgpu/dce_virtual.c kfree(encoder); encoder 588 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_encoder *encoder; encoder 592 drivers/gpu/drm/amd/amdgpu/dce_virtual.c encoder = kzalloc(sizeof(struct drm_encoder), GFP_KERNEL); encoder 593 drivers/gpu/drm/amd/amdgpu/dce_virtual.c if (!encoder) encoder 595 drivers/gpu/drm/amd/amdgpu/dce_virtual.c encoder->possible_crtcs = 1 << index; encoder 596 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_encoder_init(adev->ddev, encoder, &dce_virtual_encoder_funcs, encoder 598 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_encoder_helper_add(encoder, &dce_virtual_encoder_helper_funcs); encoder 602 drivers/gpu/drm/amd/amdgpu/dce_virtual.c kfree(encoder); encoder 616 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_connector_attach_encoder(connector, encoder); encoder 2602 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder) encoder 2604 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drm_encoder_cleanup(encoder); encoder 2605 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c kfree(encoder); encoder 4415 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static void dm_encoder_helper_disable(struct drm_encoder *encoder) encoder 4420 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int dm_encoder_helper_atomic_check(struct drm_encoder *encoder, encoder 4870 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_encoder *encoder; encoder 4873 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c encoder = amdgpu_dm_connector_to_encoder(connector); encoder 4875 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (encoder == NULL) encoder 4878 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 4898 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c amdgpu_dm_create_common_mode(struct drm_encoder *encoder, encoder 4902 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_device *dev = encoder->dev; encoder 4903 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 4921 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static void amdgpu_dm_connector_add_common_modes(struct drm_encoder *encoder, encoder 4924 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); encoder 4972 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode = amdgpu_dm_create_common_mode(encoder, encoder 5011 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_encoder *encoder; encoder 5014 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c encoder = amdgpu_dm_connector_to_encoder(connector); encoder 5021 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c amdgpu_dm_connector_add_common_modes(encoder, connector); encoder 6442 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct amdgpu_crtc *disconnected_acrtc = to_amdgpu_crtc(connector->encoder->crtc); encoder 6506 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!aconnector->dc_sink || !connector->state || !connector->encoder) encoder 6509 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c disconnected_acrtc = to_amdgpu_crtc(connector->encoder->crtc); encoder 261 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c static void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder) encoder 263 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c drm_encoder_cleanup(encoder); encoder 264 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c kfree(encoder); encoder 277 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c struct drm_encoder *encoder; encoder 283 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c encoder = &amdgpu_encoder->base; encoder 284 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c encoder->possible_crtcs = amdgpu_dm_get_encoder_crtc_mask(adev); encoder 293 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c drm_encoder_helper_add(encoder, &amdgpu_dm_encoder_helper_funcs); encoder 2136 drivers/gpu/drm/amd/display/dc/bios/command_table.c struct graphics_object_id encoder; encoder 2143 drivers/gpu/drm/amd/display/dc/bios/command_table.c encoder = cntl->encoder_id; encoder 2146 drivers/gpu/drm/amd/display/dc/bios/command_table.c switch (dal_graphics_object_id_get_encoder_id(encoder)) { encoder 2170 drivers/gpu/drm/amd/display/dc/bios/command_table.c cntl_params->ucConfig = (uint8_t)((encoder.enum_id - 1) << 4); encoder 240 drivers/gpu/drm/amd/display/dc/core/dc.c enc_init.encoder.type = OBJECT_TYPE_ENCODER; encoder 241 drivers/gpu/drm/amd/display/dc/core/dc.c enc_init.encoder.id = ENCODER_ID_INTERNAL_VIRTUAL; encoder 242 drivers/gpu/drm/amd/display/dc/core/dc.c enc_init.encoder.enum_id = ENUM_ID_1; encoder 285 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct graphics_object_id encoder, encoder 291 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.id) { encoder 303 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.id) { encoder 1144 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct graphics_object_id encoder) encoder 1146 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.id) { encoder 1148 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.enum_id) { encoder 1158 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.enum_id) { encoder 1168 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.enum_id) { encoder 1178 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.enum_id) { encoder 1186 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.enum_id) { encoder 1194 drivers/gpu/drm/amd/display/dc/core/dc_link.c switch (encoder.enum_id) { encoder 1311 drivers/gpu/drm/amd/display/dc/core/dc_link.c bp_funcs->get_src_obj(dc_ctx->dc_bios, link->link_id, 0, &enc_init_data.encoder); encoder 1319 drivers/gpu/drm/amd/display/dc/core/dc_link.c translate_encoder_to_transmitter(enc_init_data.encoder); encoder 3025 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c struct link_encoder *encoder = link->link_enc; encoder 3027 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c if (encoder != NULL && encoder->funcs->enable_hpd != NULL) encoder 3028 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c encoder->funcs->enable_hpd(encoder); encoder 3033 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c struct link_encoder *encoder = link->link_enc; encoder 3035 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c if (encoder != NULL && encoder->funcs->enable_hpd != NULL) encoder 3036 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c encoder->funcs->disable_hpd(encoder); encoder 245 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct link_encoder *encoder = link->link_enc; encoder 248 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c encoder->funcs->dp_set_lane_settings(encoder, link_settings); encoder 258 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c struct link_encoder *encoder = link->link_enc; encoder 265 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c encoder->funcs->dp_set_phy_pattern(encoder, &pattern_param); encoder 688 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c enc110->base.id = init_data->encoder; encoder 680 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c enc10->base.id = init_data->encoder; encoder 365 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c enc10->base.id = init_data->encoder; encoder 49 drivers/gpu/drm/amd/display/dc/inc/hw/link_encoder.h struct graphics_object_id encoder; encoder 110 drivers/gpu/drm/amd/display/dc/virtual/virtual_link_encoder.c enc->id = init_data->encoder; encoder 20 drivers/gpu/drm/arc/arcpgu_hdmi.c struct drm_encoder *encoder; encoder 25 drivers/gpu/drm/arc/arcpgu_hdmi.c encoder = devm_kzalloc(drm->dev, sizeof(*encoder), GFP_KERNEL); encoder 26 drivers/gpu/drm/arc/arcpgu_hdmi.c if (encoder == NULL) encoder 34 drivers/gpu/drm/arc/arcpgu_hdmi.c encoder->possible_crtcs = 1; encoder 35 drivers/gpu/drm/arc/arcpgu_hdmi.c encoder->possible_clones = 0; encoder 36 drivers/gpu/drm/arc/arcpgu_hdmi.c ret = drm_encoder_init(drm, encoder, &arcpgu_drm_encoder_funcs, encoder 42 drivers/gpu/drm/arc/arcpgu_hdmi.c ret = drm_bridge_attach(encoder, bridge, NULL); encoder 44 drivers/gpu/drm/arc/arcpgu_hdmi.c drm_encoder_cleanup(encoder); encoder 60 drivers/gpu/drm/arc/arcpgu_sim.c struct drm_encoder *encoder; encoder 64 drivers/gpu/drm/arc/arcpgu_sim.c encoder = devm_kzalloc(drm->dev, sizeof(*encoder), GFP_KERNEL); encoder 65 drivers/gpu/drm/arc/arcpgu_sim.c if (encoder == NULL) encoder 68 drivers/gpu/drm/arc/arcpgu_sim.c encoder->possible_crtcs = 1; encoder 69 drivers/gpu/drm/arc/arcpgu_sim.c encoder->possible_clones = 0; encoder 71 drivers/gpu/drm/arc/arcpgu_sim.c ret = drm_encoder_init(drm, encoder, &arcpgu_drm_encoder_funcs, encoder 93 drivers/gpu/drm/arc/arcpgu_sim.c ret = drm_connector_attach_encoder(connector, encoder); encoder 106 drivers/gpu/drm/arc/arcpgu_sim.c drm_encoder_cleanup(encoder); encoder 36 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c komeda_wb_encoder_atomic_check(struct drm_encoder *encoder, encoder 157 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c wb_conn->encoder.possible_crtcs = BIT(drm_crtc_index(&kcrtc->base)); encoder 730 drivers/gpu/drm/arm/malidp_drv.c struct drm_encoder *encoder; encoder 856 drivers/gpu/drm/arm/malidp_drv.c list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) { encoder 857 drivers/gpu/drm/arm/malidp_drv.c encoder->possible_clones = encoder 125 drivers/gpu/drm/arm/malidp_mw.c malidp_mw_encoder_atomic_check(struct drm_encoder *encoder, encoder 130 drivers/gpu/drm/arm/malidp_mw.c struct malidp_drm *malidp = encoder->dev->dev_private; encoder 218 drivers/gpu/drm/arm/malidp_mw.c malidp->mw_connector.encoder.possible_crtcs = 1 << drm_crtc_index(&malidp->crtc); encoder 684 drivers/gpu/drm/ast/ast_mode.c static void ast_encoder_destroy(struct drm_encoder *encoder) encoder 686 drivers/gpu/drm/ast/ast_mode.c drm_encoder_cleanup(encoder); encoder 687 drivers/gpu/drm/ast/ast_mode.c kfree(encoder); encoder 705 drivers/gpu/drm/ast/ast_mode.c static void ast_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 710 drivers/gpu/drm/ast/ast_mode.c static void ast_encoder_mode_set(struct drm_encoder *encoder, encoder 716 drivers/gpu/drm/ast/ast_mode.c static void ast_encoder_prepare(struct drm_encoder *encoder) encoder 721 drivers/gpu/drm/ast/ast_mode.c static void ast_encoder_commit(struct drm_encoder *encoder) encoder 863 drivers/gpu/drm/ast/ast_mode.c struct drm_encoder *encoder; encoder 888 drivers/gpu/drm/ast/ast_mode.c encoder = list_first_entry(&dev->mode_config.encoder_list, struct drm_encoder, head); encoder 889 drivers/gpu/drm/ast/ast_mode.c drm_connector_attach_encoder(connector, encoder); encoder 248 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c struct drm_encoder *encoder; encoder 252 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c encoder = state->best_encoder; encoder 253 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c if (!encoder) encoder 254 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c encoder = connector->encoder; encoder 256 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c switch (atmel_hlcdc_encoder_get_bus_fmt(encoder)) { encoder 421 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder); encoder 21 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c struct drm_encoder encoder; encoder 30 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c atmel_hlcdc_encoder_to_rgb_output(struct drm_encoder *encoder) encoder 32 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c return container_of(encoder, struct atmel_hlcdc_rgb_output, encoder); encoder 35 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder) encoder 39 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c output = atmel_hlcdc_encoder_to_rgb_output(encoder); encoder 101 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c ret = drm_encoder_init(dev, &output->encoder, encoder 107 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c output->encoder.possible_crtcs = 0x1; encoder 116 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c ret = drm_bridge_attach(&output->encoder, bridge, NULL); encoder 124 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c drm_encoder_cleanup(&output->encoder); encoder 468 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (process_hpd && irq0 & ADV7511_INT0_HPD && adv7511->bridge.encoder) encoder 855 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (!bridge->encoder) { encoder 875 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c drm_connector_attach_encoder(&adv->connector, bridge->encoder); encoder 1008 drivers/gpu/drm/bridge/analogix-anx78xx.c if (!bridge->encoder) { encoder 1044 drivers/gpu/drm/bridge/analogix-anx78xx.c bridge->encoder); encoder 1147 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c return dp->encoder; encoder 1221 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c struct drm_encoder *encoder = dp->encoder; encoder 1225 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c if (!bridge->encoder) { encoder 1244 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c drm_connector_attach_encoder(connector, encoder); encoder 1276 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c struct drm_encoder *encoder = dp->encoder; encoder 1280 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c connector = drm_atomic_get_new_connector_for_encoder(state, encoder); encoder 1590 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c ret = drm_bridge_attach(dp->encoder, bridge, NULL); encoder 1754 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c dp->encoder = dp->plat_data->encoder; encoder 158 drivers/gpu/drm/bridge/analogix/analogix_dp_core.h struct drm_encoder *encoder; encoder 660 drivers/gpu/drm/bridge/cdns-dsi.c return drm_bridge_attach(bridge->encoder, output->bridge, bridge); encoder 793 drivers/gpu/drm/bridge/cdns-dsi.c mode = &bridge->encoder->crtc->state->adjusted_mode; encoder 107 drivers/gpu/drm/bridge/dumb-vga-dac.c if (!bridge->encoder) { encoder 124 drivers/gpu/drm/bridge/dumb-vga-dac.c bridge->encoder); encoder 27 drivers/gpu/drm/bridge/lvds-encoder.c return drm_bridge_attach(bridge->encoder, lvds_encoder->panel_bridge, encoder 215 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c if (!bridge->encoder) { encoder 233 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c ret = drm_connector_attach_encoder(connector, bridge->encoder); encoder 243 drivers/gpu/drm/bridge/nxp-ptn3460.c if (!bridge->encoder) { encoder 259 drivers/gpu/drm/bridge/nxp-ptn3460.c bridge->encoder); encoder 61 drivers/gpu/drm/bridge/panel.c if (!bridge->encoder) { encoder 78 drivers/gpu/drm/bridge/panel.c bridge->encoder); encoder 483 drivers/gpu/drm/bridge/parade-ps8622.c if (!bridge->encoder) { encoder 499 drivers/gpu/drm/bridge/parade-ps8622.c bridge->encoder); encoder 427 drivers/gpu/drm/bridge/sii902x.c drm_connector_attach_encoder(&sii902x->connector, bridge->encoder); encoder 1144 drivers/gpu/drm/bridge/sil-sii8620.c &ctx->bridge.encoder->crtc->state->adjusted_mode; encoder 2247 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct drm_encoder *encoder = bridge->encoder; encoder 2262 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c drm_connector_attach_encoder(connector, encoder); encoder 2934 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct drm_encoder *encoder, encoder 2944 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c ret = drm_bridge_attach(encoder, &hdmi->bridge, NULL); encoder 930 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (!bridge->encoder) { encoder 936 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c bridge->encoder->encoder_type = DRM_MODE_ENCODER_DSI; encoder 939 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c return drm_bridge_attach(bridge->encoder, dsi->panel_bridge, bridge); encoder 1110 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct drm_encoder *encoder) encoder 1114 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = drm_bridge_attach(encoder, &dsi->bridge, NULL); encoder 368 drivers/gpu/drm/bridge/tc358764.c drm_connector_attach_encoder(&ctx->connector, bridge->encoder); encoder 1419 drivers/gpu/drm/bridge/tc358767.c drm_connector_attach_encoder(&tc->connector, tc->bridge.encoder); encoder 49 drivers/gpu/drm/bridge/thc63lvd1024.c return drm_bridge_attach(bridge->encoder, thc63->next, bridge); encoder 287 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_connector_attach_encoder(&pdata->connector, bridge->encoder); encoder 365 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->bridge.encoder->crtc->state->adjusted_mode; encoder 433 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->bridge.encoder->crtc->state->adjusted_mode; encoder 459 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->bridge.encoder->crtc->state->adjusted_mode; encoder 125 drivers/gpu/drm/bridge/ti-tfp410.c if (!bridge->encoder) { encoder 150 drivers/gpu/drm/bridge/ti-tfp410.c bridge->encoder); encoder 875 drivers/gpu/drm/drm_atomic.c struct drm_encoder *encoder) encoder 882 drivers/gpu/drm/drm_atomic.c if (conn_state->best_encoder == encoder) encoder 909 drivers/gpu/drm/drm_atomic.c struct drm_encoder *encoder) encoder 916 drivers/gpu/drm/drm_atomic.c if (conn_state->best_encoder == encoder) encoder 117 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder; encoder 174 drivers/gpu/drm/drm_atomic_helper.c encoder = connector->state->best_encoder; encoder 175 drivers/gpu/drm/drm_atomic_helper.c if (!encoder || !(encoder_mask & drm_encoder_mask(encoder))) encoder 180 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name, encoder 195 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name, encoder 223 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder) encoder 238 drivers/gpu/drm/drm_atomic_helper.c WARN_ON(!crtc && encoder != conn_state->best_encoder); encoder 247 drivers/gpu/drm/drm_atomic_helper.c if (encoder) { encoder 254 drivers/gpu/drm/drm_atomic_helper.c drm_encoder_mask(encoder); encoder 258 drivers/gpu/drm/drm_atomic_helper.c conn_state->best_encoder = encoder; encoder 263 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder) encoder 273 drivers/gpu/drm/drm_atomic_helper.c if (new_connector_state->best_encoder != encoder) encoder 279 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name, encoder 431 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder; encoder 445 drivers/gpu/drm/drm_atomic_helper.c encoder = new_conn_state->best_encoder; encoder 446 drivers/gpu/drm/drm_atomic_helper.c funcs = encoder->helper_private; encoder 448 drivers/gpu/drm/drm_atomic_helper.c ret = drm_bridge_mode_fixup(encoder->bridge, &new_crtc_state->mode, encoder 456 drivers/gpu/drm/drm_atomic_helper.c ret = funcs->atomic_check(encoder, new_crtc_state, encoder 460 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name); encoder 464 drivers/gpu/drm/drm_atomic_helper.c ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, encoder 468 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name); encoder 501 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder, encoder 507 drivers/gpu/drm/drm_atomic_helper.c ret = drm_encoder_mode_valid(encoder, mode); encoder 510 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name); encoder 514 drivers/gpu/drm/drm_atomic_helper.c ret = drm_bridge_mode_valid(encoder->bridge, mode); encoder 538 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder = conn_state->best_encoder; encoder 544 drivers/gpu/drm/drm_atomic_helper.c if (!crtc || !encoder) encoder 555 drivers/gpu/drm/drm_atomic_helper.c mode_status = mode_valid_path(connector, encoder, crtc, mode); encoder 996 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder; encoder 1016 drivers/gpu/drm/drm_atomic_helper.c encoder = old_conn_state->best_encoder; encoder 1021 drivers/gpu/drm/drm_atomic_helper.c if (WARN_ON(!encoder)) encoder 1024 drivers/gpu/drm/drm_atomic_helper.c funcs = encoder->helper_private; encoder 1027 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name); encoder 1033 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_bridge_disable(encoder->bridge, old_state); encoder 1038 drivers/gpu/drm/drm_atomic_helper.c funcs->atomic_disable(encoder, old_state); encoder 1040 drivers/gpu/drm/drm_atomic_helper.c funcs->prepare(encoder); encoder 1042 drivers/gpu/drm/drm_atomic_helper.c funcs->disable(encoder); encoder 1044 drivers/gpu/drm/drm_atomic_helper.c funcs->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 1047 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_bridge_post_disable(encoder->bridge, old_state); encoder 1118 drivers/gpu/drm/drm_atomic_helper.c if (connector->encoder) { encoder 1119 drivers/gpu/drm/drm_atomic_helper.c WARN_ON(!connector->encoder->crtc); encoder 1121 drivers/gpu/drm/drm_atomic_helper.c connector->encoder->crtc = NULL; encoder 1122 drivers/gpu/drm/drm_atomic_helper.c connector->encoder = NULL; encoder 1145 drivers/gpu/drm/drm_atomic_helper.c connector->encoder = new_conn_state->best_encoder; encoder 1146 drivers/gpu/drm/drm_atomic_helper.c connector->encoder->crtc = new_conn_state->crtc; encoder 1199 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder; encoder 1205 drivers/gpu/drm/drm_atomic_helper.c encoder = new_conn_state->best_encoder; encoder 1206 drivers/gpu/drm/drm_atomic_helper.c funcs = encoder->helper_private; encoder 1215 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name); encoder 1222 drivers/gpu/drm/drm_atomic_helper.c funcs->atomic_mode_set(encoder, new_crtc_state, encoder 1225 drivers/gpu/drm/drm_atomic_helper.c funcs->mode_set(encoder, mode, adjusted_mode); encoder 1228 drivers/gpu/drm/drm_atomic_helper.c drm_bridge_mode_set(encoder->bridge, mode, adjusted_mode); encoder 1326 drivers/gpu/drm/drm_atomic_helper.c struct drm_encoder *encoder; encoder 1335 drivers/gpu/drm/drm_atomic_helper.c encoder = new_conn_state->best_encoder; encoder 1336 drivers/gpu/drm/drm_atomic_helper.c funcs = encoder->helper_private; encoder 1339 drivers/gpu/drm/drm_atomic_helper.c encoder->base.id, encoder->name); encoder 1345 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_bridge_pre_enable(encoder->bridge, old_state); encoder 1349 drivers/gpu/drm/drm_atomic_helper.c funcs->atomic_enable(encoder, old_state); encoder 1351 drivers/gpu/drm/drm_atomic_helper.c funcs->enable(encoder); encoder 1353 drivers/gpu/drm/drm_atomic_helper.c funcs->commit(encoder); encoder 1356 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_bridge_enable(encoder->bridge, old_state); encoder 114 drivers/gpu/drm/drm_bridge.c int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge, encoder 119 drivers/gpu/drm/drm_bridge.c if (!encoder || !bridge) encoder 122 drivers/gpu/drm/drm_bridge.c if (previous && (!previous->dev || previous->encoder != encoder)) encoder 128 drivers/gpu/drm/drm_bridge.c bridge->dev = encoder->dev; encoder 129 drivers/gpu/drm/drm_bridge.c bridge->encoder = encoder; encoder 135 drivers/gpu/drm/drm_bridge.c bridge->encoder = NULL; encoder 143 drivers/gpu/drm/drm_bridge.c encoder->bridge = bridge; encoder 417 drivers/gpu/drm/drm_client_modeset.c struct drm_encoder *encoder; encoder 420 drivers/gpu/drm/drm_client_modeset.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 421 drivers/gpu/drm/drm_client_modeset.c if (encoder->possible_crtcs & drm_crtc_mask(crtc)) encoder 540 drivers/gpu/drm/drm_client_modeset.c struct drm_encoder *encoder; encoder 568 drivers/gpu/drm/drm_client_modeset.c encoder = connector->state->best_encoder; encoder 569 drivers/gpu/drm/drm_client_modeset.c if (!encoder || WARN_ON(!connector->state->crtc)) { encoder 366 drivers/gpu/drm/drm_connector.c struct drm_encoder *encoder) encoder 381 drivers/gpu/drm/drm_connector.c if (WARN_ON(connector->encoder)) encoder 386 drivers/gpu/drm/drm_connector.c connector->encoder_ids[i] = encoder->base.id; encoder 403 drivers/gpu/drm/drm_connector.c struct drm_encoder *encoder) encoder 409 drivers/gpu/drm/drm_connector.c if (enc == encoder) encoder 2078 drivers/gpu/drm/drm_connector.c return connector->encoder; encoder 2118 drivers/gpu/drm/drm_connector.c struct drm_encoder *encoder; encoder 2139 drivers/gpu/drm/drm_connector.c drm_connector_for_each_possible_encoder(connector, encoder, i) encoder 2146 drivers/gpu/drm/drm_connector.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 2147 drivers/gpu/drm/drm_connector.c if (put_user(encoder->base.id, encoder_ptr + copied)) { encoder 2213 drivers/gpu/drm/drm_connector.c encoder = drm_connector_get_encoder(connector); encoder 2214 drivers/gpu/drm/drm_connector.c if (encoder) encoder 2215 drivers/gpu/drm/drm_connector.c out_resp->encoder_id = encoder->base.id; encoder 92 drivers/gpu/drm/drm_crtc_helper.c bool drm_helper_encoder_in_use(struct drm_encoder *encoder) encoder 96 drivers/gpu/drm/drm_crtc_helper.c struct drm_device *dev = encoder->dev; encoder 112 drivers/gpu/drm/drm_crtc_helper.c if (connector->encoder == encoder) { encoder 135 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder; encoder 147 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) encoder 148 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc == crtc && drm_helper_encoder_in_use(encoder)) encoder 155 drivers/gpu/drm/drm_crtc_helper.c drm_encoder_disable(struct drm_encoder *encoder) encoder 157 drivers/gpu/drm/drm_crtc_helper.c const struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private; encoder 163 drivers/gpu/drm/drm_crtc_helper.c (*encoder_funcs->disable)(encoder); encoder 165 drivers/gpu/drm/drm_crtc_helper.c (*encoder_funcs->dpms)(encoder, DRM_MODE_DPMS_OFF); encoder 170 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder; encoder 175 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 176 drivers/gpu/drm/drm_crtc_helper.c if (!drm_helper_encoder_in_use(encoder)) { encoder 177 drivers/gpu/drm/drm_crtc_helper.c drm_encoder_disable(encoder); encoder 179 drivers/gpu/drm/drm_crtc_helper.c encoder->crtc = NULL; encoder 234 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder; encoder 236 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 237 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 242 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc == NULL) encoder 243 drivers/gpu/drm/drm_crtc_helper.c drm_encoder_disable(encoder); encoder 246 drivers/gpu/drm/drm_crtc_helper.c encoder->crtc != (*encoder_funcs->get_crtc)(encoder)) encoder 247 drivers/gpu/drm/drm_crtc_helper.c drm_encoder_disable(encoder); encoder 282 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder; encoder 316 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 318 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc != crtc) encoder 321 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 325 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 327 drivers/gpu/drm/drm_crtc_helper.c if (!(ret = encoder_funcs->mode_fixup(encoder, mode, encoder 347 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 349 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc != crtc) encoder 352 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 358 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs->prepare(encoder); encoder 372 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 374 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc != crtc) encoder 377 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 382 drivers/gpu/drm/drm_crtc_helper.c encoder->base.id, encoder->name, mode->name); encoder 384 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs->mode_set(encoder, mode, adjusted_mode); encoder 390 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 392 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc != crtc) encoder 395 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 400 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs->commit(encoder); encoder 429 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder; encoder 432 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 435 drivers/gpu/drm/drm_crtc_helper.c if (encoder->crtc != crtc) encoder 440 drivers/gpu/drm/drm_crtc_helper.c if (connector->encoder != encoder) encoder 443 drivers/gpu/drm/drm_crtc_helper.c connector->encoder = NULL; encoder 505 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder **save_connector_encoders, *new_encoder, *encoder; encoder 570 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 571 drivers/gpu/drm/drm_crtc_helper.c save_encoder_crtcs[count++] = encoder->crtc; encoder 577 drivers/gpu/drm/drm_crtc_helper.c save_connector_encoders[count++] = connector->encoder; encoder 613 drivers/gpu/drm/drm_crtc_helper.c if (set->connectors[ro]->encoder) encoder 624 drivers/gpu/drm/drm_crtc_helper.c new_encoder = connector->encoder; encoder 643 drivers/gpu/drm/drm_crtc_helper.c if (new_encoder != connector->encoder) { encoder 649 drivers/gpu/drm/drm_crtc_helper.c if (connector->encoder) encoder 650 drivers/gpu/drm/drm_crtc_helper.c connector->encoder->crtc = NULL; encoder 651 drivers/gpu/drm/drm_crtc_helper.c connector->encoder = new_encoder; encoder 664 drivers/gpu/drm/drm_crtc_helper.c if (!connector->encoder) encoder 667 drivers/gpu/drm/drm_crtc_helper.c if (connector->encoder->crtc == set->crtc) encoder 670 drivers/gpu/drm/drm_crtc_helper.c new_crtc = connector->encoder->crtc; encoder 679 drivers/gpu/drm/drm_crtc_helper.c !drm_encoder_crtc_ok(connector->encoder, new_crtc)) { encoder 684 drivers/gpu/drm/drm_crtc_helper.c if (new_crtc != connector->encoder->crtc) { encoder 687 drivers/gpu/drm/drm_crtc_helper.c connector->encoder->crtc = new_crtc; encoder 748 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 749 drivers/gpu/drm/drm_crtc_helper.c encoder->crtc = save_encoder_crtcs[count++]; encoder 755 drivers/gpu/drm/drm_crtc_helper.c connector->encoder = save_connector_encoders[count++]; encoder 762 drivers/gpu/drm/drm_crtc_helper.c if (set->connectors[ro]->encoder) encoder 779 drivers/gpu/drm/drm_crtc_helper.c static int drm_helper_choose_encoder_dpms(struct drm_encoder *encoder) encoder 784 drivers/gpu/drm/drm_crtc_helper.c struct drm_device *dev = encoder->dev; encoder 788 drivers/gpu/drm/drm_crtc_helper.c if (connector->encoder == encoder) encoder 797 drivers/gpu/drm/drm_crtc_helper.c static void drm_helper_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 801 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs = encoder->helper_private; encoder 806 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs->dpms(encoder, mode); encoder 818 drivers/gpu/drm/drm_crtc_helper.c if (connector->encoder && connector->encoder->crtc == crtc) encoder 849 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder = connector->encoder; encoder 850 drivers/gpu/drm/drm_crtc_helper.c struct drm_crtc *crtc = encoder ? encoder->crtc : NULL; encoder 861 drivers/gpu/drm/drm_crtc_helper.c if (encoder) encoder 862 drivers/gpu/drm/drm_crtc_helper.c encoder_dpms = drm_helper_choose_encoder_dpms(encoder); encoder 872 drivers/gpu/drm/drm_crtc_helper.c if (encoder) encoder 873 drivers/gpu/drm/drm_crtc_helper.c drm_helper_encoder_dpms(encoder, encoder_dpms); encoder 878 drivers/gpu/drm/drm_crtc_helper.c if (encoder) encoder 879 drivers/gpu/drm/drm_crtc_helper.c drm_helper_encoder_dpms(encoder, encoder_dpms); encoder 921 drivers/gpu/drm/drm_crtc_helper.c struct drm_encoder *encoder; encoder 943 drivers/gpu/drm/drm_crtc_helper.c drm_for_each_encoder(encoder, dev) { encoder 945 drivers/gpu/drm/drm_crtc_helper.c if(encoder->crtc != crtc) encoder 949 drivers/gpu/drm/drm_crtc_helper.c encoder); encoder 951 drivers/gpu/drm/drm_crtc_helper.c drm_helper_encoder_dpms(encoder, encoder_dpms); encoder 74 drivers/gpu/drm/drm_crtc_helper_internal.h enum drm_mode_status drm_encoder_mode_valid(struct drm_encoder *encoder, encoder 70 drivers/gpu/drm/drm_encoder.c struct drm_encoder *encoder; encoder 73 drivers/gpu/drm/drm_encoder.c drm_for_each_encoder(encoder, dev) { encoder 74 drivers/gpu/drm/drm_encoder.c if (encoder->funcs->late_register) encoder 75 drivers/gpu/drm/drm_encoder.c ret = encoder->funcs->late_register(encoder); encoder 85 drivers/gpu/drm/drm_encoder.c struct drm_encoder *encoder; encoder 87 drivers/gpu/drm/drm_encoder.c drm_for_each_encoder(encoder, dev) { encoder 88 drivers/gpu/drm/drm_encoder.c if (encoder->funcs->early_unregister) encoder 89 drivers/gpu/drm/drm_encoder.c encoder->funcs->early_unregister(encoder); encoder 109 drivers/gpu/drm/drm_encoder.c struct drm_encoder *encoder, encoder 119 drivers/gpu/drm/drm_encoder.c ret = drm_mode_object_add(dev, &encoder->base, DRM_MODE_OBJECT_ENCODER); encoder 123 drivers/gpu/drm/drm_encoder.c encoder->dev = dev; encoder 124 drivers/gpu/drm/drm_encoder.c encoder->encoder_type = encoder_type; encoder 125 drivers/gpu/drm/drm_encoder.c encoder->funcs = funcs; encoder 130 drivers/gpu/drm/drm_encoder.c encoder->name = kvasprintf(GFP_KERNEL, name, ap); encoder 133 drivers/gpu/drm/drm_encoder.c encoder->name = kasprintf(GFP_KERNEL, "%s-%d", encoder 135 drivers/gpu/drm/drm_encoder.c encoder->base.id); encoder 137 drivers/gpu/drm/drm_encoder.c if (!encoder->name) { encoder 142 drivers/gpu/drm/drm_encoder.c list_add_tail(&encoder->head, &dev->mode_config.encoder_list); encoder 143 drivers/gpu/drm/drm_encoder.c encoder->index = dev->mode_config.num_encoder++; encoder 147 drivers/gpu/drm/drm_encoder.c drm_mode_object_unregister(dev, &encoder->base); encoder 159 drivers/gpu/drm/drm_encoder.c void drm_encoder_cleanup(struct drm_encoder *encoder) encoder 161 drivers/gpu/drm/drm_encoder.c struct drm_device *dev = encoder->dev; encoder 168 drivers/gpu/drm/drm_encoder.c if (encoder->bridge) { encoder 169 drivers/gpu/drm/drm_encoder.c struct drm_bridge *bridge = encoder->bridge; encoder 179 drivers/gpu/drm/drm_encoder.c drm_mode_object_unregister(dev, &encoder->base); encoder 180 drivers/gpu/drm/drm_encoder.c kfree(encoder->name); encoder 181 drivers/gpu/drm/drm_encoder.c list_del(&encoder->head); encoder 184 drivers/gpu/drm/drm_encoder.c memset(encoder, 0, sizeof(*encoder)); encoder 188 drivers/gpu/drm/drm_encoder.c static struct drm_crtc *drm_encoder_get_crtc(struct drm_encoder *encoder) encoder 191 drivers/gpu/drm/drm_encoder.c struct drm_device *dev = encoder->dev; encoder 204 drivers/gpu/drm/drm_encoder.c if (connector->state->best_encoder != encoder) encoder 216 drivers/gpu/drm/drm_encoder.c return encoder->crtc; encoder 223 drivers/gpu/drm/drm_encoder.c struct drm_encoder *encoder; encoder 229 drivers/gpu/drm/drm_encoder.c encoder = drm_encoder_find(dev, file_priv, enc_resp->encoder_id); encoder 230 drivers/gpu/drm/drm_encoder.c if (!encoder) encoder 234 drivers/gpu/drm/drm_encoder.c crtc = drm_encoder_get_crtc(encoder); encoder 241 drivers/gpu/drm/drm_encoder.c enc_resp->encoder_type = encoder->encoder_type; encoder 242 drivers/gpu/drm/drm_encoder.c enc_resp->encoder_id = encoder->base.id; encoder 244 drivers/gpu/drm/drm_encoder.c encoder->possible_crtcs); encoder 245 drivers/gpu/drm/drm_encoder.c enc_resp->possible_clones = encoder->possible_clones; encoder 53 drivers/gpu/drm/drm_encoder_slave.c struct drm_encoder_slave *encoder, encoder 81 drivers/gpu/drm/drm_encoder_slave.c encoder->bus_priv = client; encoder 85 drivers/gpu/drm/drm_encoder_slave.c err = encoder_drv->encoder_init(client, dev, encoder); encoder 90 drivers/gpu/drm/drm_encoder_slave.c encoder->slave_funcs->set_config(&encoder->base, encoder 112 drivers/gpu/drm/drm_encoder_slave.c struct drm_encoder_slave *encoder = to_encoder_slave(drm_encoder); encoder 117 drivers/gpu/drm/drm_encoder_slave.c encoder->bus_priv = NULL; encoder 133 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 135 drivers/gpu/drm/drm_encoder_slave.c get_slave_funcs(encoder)->dpms(encoder, mode); encoder 139 drivers/gpu/drm/drm_encoder_slave.c bool drm_i2c_encoder_mode_fixup(struct drm_encoder *encoder, encoder 143 drivers/gpu/drm/drm_encoder_slave.c if (!get_slave_funcs(encoder)->mode_fixup) encoder 146 drivers/gpu/drm/drm_encoder_slave.c return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode); encoder 150 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_prepare(struct drm_encoder *encoder) encoder 152 drivers/gpu/drm/drm_encoder_slave.c drm_i2c_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 156 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_commit(struct drm_encoder *encoder) encoder 158 drivers/gpu/drm/drm_encoder_slave.c drm_i2c_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 162 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_mode_set(struct drm_encoder *encoder, encoder 166 drivers/gpu/drm/drm_encoder_slave.c get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); encoder 170 drivers/gpu/drm/drm_encoder_slave.c enum drm_connector_status drm_i2c_encoder_detect(struct drm_encoder *encoder, encoder 173 drivers/gpu/drm/drm_encoder_slave.c return get_slave_funcs(encoder)->detect(encoder, connector); encoder 177 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_save(struct drm_encoder *encoder) encoder 179 drivers/gpu/drm/drm_encoder_slave.c get_slave_funcs(encoder)->save(encoder); encoder 183 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_restore(struct drm_encoder *encoder) encoder 185 drivers/gpu/drm/drm_encoder_slave.c get_slave_funcs(encoder)->restore(encoder); encoder 95 drivers/gpu/drm/drm_mode_config.c struct drm_encoder *encoder; encoder 139 drivers/gpu/drm/drm_mode_config.c drm_for_each_encoder(encoder, dev) { encoder 141 drivers/gpu/drm/drm_mode_config.c put_user(encoder->base.id, encoder_id + count)) encoder 183 drivers/gpu/drm/drm_mode_config.c struct drm_encoder *encoder; encoder 195 drivers/gpu/drm/drm_mode_config.c drm_for_each_encoder(encoder, dev) encoder 196 drivers/gpu/drm/drm_mode_config.c if (encoder->funcs->reset) encoder 197 drivers/gpu/drm/drm_mode_config.c encoder->funcs->reset(encoder); encoder 439 drivers/gpu/drm/drm_mode_config.c struct drm_encoder *encoder, *enct; encoder 445 drivers/gpu/drm/drm_mode_config.c list_for_each_entry_safe(encoder, enct, &dev->mode_config.encoder_list, encoder 447 drivers/gpu/drm/drm_mode_config.c encoder->funcs->destroy(encoder); encoder 197 drivers/gpu/drm/drm_of.c struct drm_encoder *encoder, encoder 201 drivers/gpu/drm/drm_of.c struct drm_crtc *crtc = encoder->crtc; encoder 89 drivers/gpu/drm/drm_plane_helper.c if (connector->encoder && connector->encoder->crtc == crtc) { encoder 94 drivers/gpu/drm/drm_probe_helper.c struct drm_encoder *encoder; encoder 103 drivers/gpu/drm/drm_probe_helper.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 106 drivers/gpu/drm/drm_probe_helper.c ret = drm_encoder_mode_valid(encoder, mode); encoder 115 drivers/gpu/drm/drm_probe_helper.c ret = drm_bridge_mode_valid(encoder->bridge, mode); encoder 123 drivers/gpu/drm/drm_probe_helper.c if (!drm_encoder_crtc_ok(encoder, crtc)) encoder 183 drivers/gpu/drm/drm_probe_helper.c enum drm_mode_status drm_encoder_mode_valid(struct drm_encoder *encoder, encoder 187 drivers/gpu/drm/drm_probe_helper.c encoder->helper_private; encoder 192 drivers/gpu/drm/drm_probe_helper.c return encoder_funcs->mode_valid(encoder, mode); encoder 231 drivers/gpu/drm/drm_simple_kms_helper.c return drm_bridge_attach(&pipe->encoder, bridge, NULL); encoder 266 drivers/gpu/drm/drm_simple_kms_helper.c struct drm_encoder *encoder = &pipe->encoder; encoder 289 drivers/gpu/drm/drm_simple_kms_helper.c encoder->possible_crtcs = drm_crtc_mask(crtc); encoder 290 drivers/gpu/drm/drm_simple_kms_helper.c ret = drm_encoder_init(dev, encoder, &drm_simple_kms_encoder_funcs, encoder 295 drivers/gpu/drm/drm_simple_kms_helper.c return drm_connector_attach_encoder(connector, encoder); encoder 185 drivers/gpu/drm/drm_sysfs.c enabled = READ_ONCE(connector->encoder); encoder 193 drivers/gpu/drm/drm_writeback.c drm_encoder_helper_add(&wb_connector->encoder, enc_helper_funcs); encoder 194 drivers/gpu/drm/drm_writeback.c ret = drm_encoder_init(dev, &wb_connector->encoder, encoder 208 drivers/gpu/drm/drm_writeback.c &wb_connector->encoder); encoder 237 drivers/gpu/drm/drm_writeback.c drm_encoder_cleanup(&wb_connector->encoder); encoder 58 drivers/gpu/drm/exynos/exynos7_drm_decon.c struct drm_encoder *encoder; encoder 645 drivers/gpu/drm/exynos/exynos7_drm_decon.c if (ctx->encoder) encoder 646 drivers/gpu/drm/exynos/exynos7_drm_decon.c exynos_dpi_bind(drm_dev, ctx->encoder); encoder 659 drivers/gpu/drm/exynos/exynos7_drm_decon.c if (ctx->encoder) encoder 660 drivers/gpu/drm/exynos/exynos7_drm_decon.c exynos_dpi_remove(ctx->encoder); encoder 745 drivers/gpu/drm/exynos/exynos7_drm_decon.c ctx->encoder = exynos_dpi_probe(dev); encoder 746 drivers/gpu/drm/exynos/exynos7_drm_decon.c if (IS_ERR(ctx->encoder)) { encoder 747 drivers/gpu/drm/exynos/exynos7_drm_decon.c ret = PTR_ERR(ctx->encoder); encoder 34 drivers/gpu/drm/exynos/exynos_dp.c struct drm_encoder encoder; encoder 49 drivers/gpu/drm/exynos/exynos_dp.c struct drm_encoder *encoder = &dp->encoder; encoder 51 drivers/gpu/drm/exynos/exynos_dp.c if (!encoder->crtc) encoder 54 drivers/gpu/drm/exynos/exynos_dp.c exynos_drm_pipe_clk_enable(to_exynos_crtc(encoder->crtc), enable); encoder 108 drivers/gpu/drm/exynos/exynos_dp.c ret = drm_bridge_attach(&dp->encoder, dp->ptn_bridge, bridge); encoder 120 drivers/gpu/drm/exynos/exynos_dp.c static void exynos_dp_mode_set(struct drm_encoder *encoder, encoder 126 drivers/gpu/drm/exynos/exynos_dp.c static void exynos_dp_nop(struct drm_encoder *encoder) encoder 157 drivers/gpu/drm/exynos/exynos_dp.c struct drm_encoder *encoder = &dp->encoder; encoder 169 drivers/gpu/drm/exynos/exynos_dp.c drm_encoder_init(drm_dev, encoder, &exynos_dp_encoder_funcs, encoder 172 drivers/gpu/drm/exynos/exynos_dp.c drm_encoder_helper_add(encoder, &exynos_dp_encoder_helper_funcs); encoder 174 drivers/gpu/drm/exynos/exynos_dp.c ret = exynos_drm_set_possible_crtcs(encoder, EXYNOS_DISPLAY_TYPE_LCD); encoder 178 drivers/gpu/drm/exynos/exynos_dp.c dp->plat_data.encoder = encoder; encoder 182 drivers/gpu/drm/exynos/exynos_dp.c dp->encoder.funcs->destroy(&dp->encoder); encoder 193 drivers/gpu/drm/exynos/exynos_dp.c dp->encoder.funcs->destroy(&dp->encoder); encoder 219 drivers/gpu/drm/exynos/exynos_drm_crtc.c int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder, encoder 222 drivers/gpu/drm/exynos/exynos_drm_crtc.c struct exynos_drm_crtc *crtc = exynos_drm_crtc_get_by_type(encoder->dev, encoder 228 drivers/gpu/drm/exynos/exynos_drm_crtc.c encoder->possible_crtcs = drm_crtc_mask(&crtc->base); encoder 30 drivers/gpu/drm/exynos/exynos_drm_crtc.h int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder, encoder 24 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct drm_encoder encoder; encoder 38 drivers/gpu/drm/exynos/exynos_drm_dpi.c return container_of(e, struct exynos_dpi, encoder); encoder 97 drivers/gpu/drm/exynos/exynos_drm_dpi.c static int exynos_dpi_create_connector(struct drm_encoder *encoder) encoder 99 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct exynos_dpi *ctx = encoder_to_dpi(encoder); encoder 105 drivers/gpu/drm/exynos/exynos_drm_dpi.c ret = drm_connector_init(encoder->dev, connector, encoder 115 drivers/gpu/drm/exynos/exynos_drm_dpi.c drm_connector_attach_encoder(connector, encoder); encoder 120 drivers/gpu/drm/exynos/exynos_drm_dpi.c static void exynos_dpi_mode_set(struct drm_encoder *encoder, encoder 126 drivers/gpu/drm/exynos/exynos_drm_dpi.c static void exynos_dpi_enable(struct drm_encoder *encoder) encoder 128 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct exynos_dpi *ctx = encoder_to_dpi(encoder); encoder 136 drivers/gpu/drm/exynos/exynos_drm_dpi.c static void exynos_dpi_disable(struct drm_encoder *encoder) encoder 138 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct exynos_dpi *ctx = encoder_to_dpi(encoder); encoder 200 drivers/gpu/drm/exynos/exynos_drm_dpi.c int exynos_dpi_bind(struct drm_device *dev, struct drm_encoder *encoder) encoder 204 drivers/gpu/drm/exynos/exynos_drm_dpi.c drm_encoder_init(dev, encoder, &exynos_dpi_encoder_funcs, encoder 207 drivers/gpu/drm/exynos/exynos_drm_dpi.c drm_encoder_helper_add(encoder, &exynos_dpi_encoder_helper_funcs); encoder 209 drivers/gpu/drm/exynos/exynos_drm_dpi.c ret = exynos_drm_set_possible_crtcs(encoder, EXYNOS_DISPLAY_TYPE_LCD); encoder 213 drivers/gpu/drm/exynos/exynos_drm_dpi.c ret = exynos_dpi_create_connector(encoder); encoder 215 drivers/gpu/drm/exynos/exynos_drm_dpi.c DRM_DEV_ERROR(encoder_to_dpi(encoder)->dev, encoder 217 drivers/gpu/drm/exynos/exynos_drm_dpi.c drm_encoder_cleanup(encoder); encoder 247 drivers/gpu/drm/exynos/exynos_drm_dpi.c return &ctx->encoder; encoder 250 drivers/gpu/drm/exynos/exynos_drm_dpi.c int exynos_dpi_remove(struct drm_encoder *encoder) encoder 252 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct exynos_dpi *ctx = encoder_to_dpi(encoder); encoder 254 drivers/gpu/drm/exynos/exynos_drm_dpi.c exynos_dpi_disable(&ctx->encoder); encoder 270 drivers/gpu/drm/exynos/exynos_drm_drv.c struct drm_encoder *encoder; encoder 298 drivers/gpu/drm/exynos/exynos_drm_drv.c list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) encoder 301 drivers/gpu/drm/exynos/exynos_drm_drv.c list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) encoder 302 drivers/gpu/drm/exynos/exynos_drm_drv.c encoder->possible_clones = clone_mask; encoder 234 drivers/gpu/drm/exynos/exynos_drm_drv.h int exynos_dpi_remove(struct drm_encoder *encoder); encoder 235 drivers/gpu/drm/exynos/exynos_drm_drv.h int exynos_dpi_bind(struct drm_device *dev, struct drm_encoder *encoder); encoder 239 drivers/gpu/drm/exynos/exynos_drm_drv.h static inline int exynos_dpi_remove(struct drm_encoder *encoder) encoder 244 drivers/gpu/drm/exynos/exynos_drm_drv.h struct drm_encoder *encoder) encoder 253 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder encoder; encoder 290 drivers/gpu/drm/exynos/exynos_drm_dsi.c return container_of(e, struct exynos_dsi, encoder); encoder 883 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_display_mode *m = &dsi->encoder.crtc->state->adjusted_mode; encoder 1287 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder *encoder = &dsi->encoder; encoder 1290 drivers/gpu/drm/exynos/exynos_drm_dsi.c exynos_drm_crtc_te_handler(encoder->crtc); encoder 1376 drivers/gpu/drm/exynos/exynos_drm_dsi.c static void exynos_dsi_enable(struct drm_encoder *encoder) encoder 1378 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 1418 drivers/gpu/drm/exynos/exynos_drm_dsi.c static void exynos_dsi_disable(struct drm_encoder *encoder) encoder 1420 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 1472 drivers/gpu/drm/exynos/exynos_drm_dsi.c static int exynos_dsi_create_connector(struct drm_encoder *encoder) encoder 1474 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 1476 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_device *drm = encoder->dev; encoder 1491 drivers/gpu/drm/exynos/exynos_drm_dsi.c drm_connector_attach_encoder(connector, encoder); encoder 1516 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder *encoder = &dsi->encoder; encoder 1517 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_device *drm = encoder->dev; encoder 1522 drivers/gpu/drm/exynos/exynos_drm_dsi.c drm_bridge_attach(encoder, out_bridge, NULL); encoder 1524 drivers/gpu/drm/exynos/exynos_drm_dsi.c encoder->bridge = NULL; encoder 1526 drivers/gpu/drm/exynos/exynos_drm_dsi.c int ret = exynos_dsi_create_connector(encoder); encoder 1532 drivers/gpu/drm/exynos/exynos_drm_dsi.c drm_encoder_cleanup(encoder); encoder 1577 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_device *drm = dsi->encoder.dev; encoder 1581 drivers/gpu/drm/exynos/exynos_drm_dsi.c exynos_dsi_disable(&dsi->encoder); encoder 1680 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder *encoder = dev_get_drvdata(dev); encoder 1681 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 1686 drivers/gpu/drm/exynos/exynos_drm_dsi.c drm_encoder_init(drm_dev, encoder, &exynos_dsi_encoder_funcs, encoder 1689 drivers/gpu/drm/exynos/exynos_drm_dsi.c drm_encoder_helper_add(encoder, &exynos_dsi_encoder_helper_funcs); encoder 1691 drivers/gpu/drm/exynos/exynos_drm_dsi.c ret = exynos_drm_set_possible_crtcs(encoder, EXYNOS_DISPLAY_TYPE_LCD); encoder 1698 drivers/gpu/drm/exynos/exynos_drm_dsi.c drm_bridge_attach(encoder, in_bridge, NULL); encoder 1707 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder *encoder = dev_get_drvdata(dev); encoder 1708 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 1710 drivers/gpu/drm/exynos/exynos_drm_dsi.c exynos_dsi_disable(encoder); encoder 1808 drivers/gpu/drm/exynos/exynos_drm_dsi.c platform_set_drvdata(pdev, &dsi->encoder); encoder 1830 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder *encoder = dev_get_drvdata(dev); encoder 1831 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 1861 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct drm_encoder *encoder = dev_get_drvdata(dev); encoder 1862 drivers/gpu/drm/exynos/exynos_drm_dsi.c struct exynos_dsi *dsi = encoder_to_dsi(encoder); encoder 192 drivers/gpu/drm/exynos/exynos_drm_fimd.c struct drm_encoder *encoder; encoder 1088 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (ctx->encoder) encoder 1089 drivers/gpu/drm/exynos/exynos_drm_fimd.c exynos_dpi_bind(drm_dev, ctx->encoder); encoder 1106 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (ctx->encoder) encoder 1107 drivers/gpu/drm/exynos/exynos_drm_fimd.c exynos_dpi_remove(ctx->encoder); encoder 1214 drivers/gpu/drm/exynos/exynos_drm_fimd.c ctx->encoder = exynos_dpi_probe(dev); encoder 1215 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (IS_ERR(ctx->encoder)) encoder 1216 drivers/gpu/drm/exynos/exynos_drm_fimd.c return PTR_ERR(ctx->encoder); encoder 102 drivers/gpu/drm/exynos/exynos_drm_mic.c struct drm_encoder *encoder; encoder 257 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->i80_mode = to_exynos_crtc(bridge->encoder->crtc)->i80_mode; encoder 36 drivers/gpu/drm/exynos/exynos_drm_vidi.c struct drm_encoder encoder; encoder 52 drivers/gpu/drm/exynos/exynos_drm_vidi.c return container_of(e, struct vidi_context, encoder); encoder 330 drivers/gpu/drm/exynos/exynos_drm_vidi.c static int vidi_create_connector(struct drm_encoder *encoder) encoder 332 drivers/gpu/drm/exynos/exynos_drm_vidi.c struct vidi_context *ctx = encoder_to_vidi(encoder); encoder 347 drivers/gpu/drm/exynos/exynos_drm_vidi.c drm_connector_attach_encoder(connector, encoder); encoder 352 drivers/gpu/drm/exynos/exynos_drm_vidi.c static void exynos_vidi_mode_set(struct drm_encoder *encoder, encoder 358 drivers/gpu/drm/exynos/exynos_drm_vidi.c static void exynos_vidi_enable(struct drm_encoder *encoder) encoder 362 drivers/gpu/drm/exynos/exynos_drm_vidi.c static void exynos_vidi_disable(struct drm_encoder *encoder) encoder 380 drivers/gpu/drm/exynos/exynos_drm_vidi.c struct drm_encoder *encoder = &ctx->encoder; encoder 409 drivers/gpu/drm/exynos/exynos_drm_vidi.c drm_encoder_init(drm_dev, encoder, &exynos_vidi_encoder_funcs, encoder 412 drivers/gpu/drm/exynos/exynos_drm_vidi.c drm_encoder_helper_add(encoder, &exynos_vidi_encoder_helper_funcs); encoder 414 drivers/gpu/drm/exynos/exynos_drm_vidi.c ret = exynos_drm_set_possible_crtcs(encoder, EXYNOS_DISPLAY_TYPE_VIDI); encoder 418 drivers/gpu/drm/exynos/exynos_drm_vidi.c ret = vidi_create_connector(encoder); encoder 422 drivers/gpu/drm/exynos/exynos_drm_vidi.c drm_encoder_cleanup(encoder); encoder 116 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_encoder encoder; encoder 148 drivers/gpu/drm/exynos/exynos_hdmi.c return container_of(e, struct hdmi_context, encoder); encoder 802 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; encoder 938 drivers/gpu/drm/exynos/exynos_hdmi.c static int hdmi_create_connector(struct drm_encoder *encoder) encoder 940 drivers/gpu/drm/exynos/exynos_hdmi.c struct hdmi_context *hdata = encoder_to_hdmi(encoder); encoder 957 drivers/gpu/drm/exynos/exynos_hdmi.c drm_connector_attach_encoder(connector, encoder); encoder 960 drivers/gpu/drm/exynos/exynos_hdmi.c ret = drm_bridge_attach(encoder, hdata->bridge, NULL); encoder 977 drivers/gpu/drm/exynos/exynos_hdmi.c static bool hdmi_mode_fixup(struct drm_encoder *encoder, encoder 981 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_device *dev = encoder->dev; encoder 991 drivers/gpu/drm/exynos/exynos_hdmi.c if (connector->encoder == encoder) encoder 1123 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; encoder 1198 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; encoder 1277 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; encoder 1279 drivers/gpu/drm/exynos/exynos_hdmi.c &hdata->encoder.crtc->state->adjusted_mode; encoder 1423 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; encoder 1515 drivers/gpu/drm/exynos/exynos_hdmi.c static void hdmi_enable(struct drm_encoder *encoder) encoder 1517 drivers/gpu/drm/exynos/exynos_hdmi.c struct hdmi_context *hdata = encoder_to_hdmi(encoder); encoder 1527 drivers/gpu/drm/exynos/exynos_hdmi.c static void hdmi_disable(struct drm_encoder *encoder) encoder 1529 drivers/gpu/drm/exynos/exynos_hdmi.c struct hdmi_context *hdata = encoder_to_hdmi(encoder); encoder 1835 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_encoder *encoder = &hdata->encoder; encoder 1843 drivers/gpu/drm/exynos/exynos_hdmi.c drm_encoder_init(drm_dev, encoder, &exynos_hdmi_encoder_funcs, encoder 1846 drivers/gpu/drm/exynos/exynos_hdmi.c drm_encoder_helper_add(encoder, &exynos_hdmi_encoder_helper_funcs); encoder 1848 drivers/gpu/drm/exynos/exynos_hdmi.c ret = exynos_drm_set_possible_crtcs(encoder, EXYNOS_DISPLAY_TYPE_HDMI); encoder 1855 drivers/gpu/drm/exynos/exynos_hdmi.c ret = hdmi_create_connector(encoder); encoder 1859 drivers/gpu/drm/exynos/exynos_hdmi.c drm_encoder_cleanup(encoder); encoder 191 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h struct drm_encoder encoder; encoder 13 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_output.h struct drm_encoder *encoder; encoder 19 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c static void fsl_dcu_drm_encoder_destroy(struct drm_encoder *encoder) encoder 21 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c drm_encoder_cleanup(encoder); encoder 31 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c struct drm_encoder *encoder = &fsl_dev->encoder; encoder 34 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c encoder->possible_crtcs = 1; encoder 40 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c ret = drm_encoder_init(fsl_dev->drm, encoder, &encoder_funcs, encoder 90 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c struct drm_encoder *encoder = &fsl_dev->encoder; encoder 94 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c fsl_dev->connector.encoder = encoder; encoder 107 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c ret = drm_connector_attach_encoder(connector, encoder); encoder 153 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c return drm_bridge_attach(&fsl_dev->encoder, bridge, NULL); encoder 39 drivers/gpu/drm/gma500/cdv_intel_crt.c static void cdv_intel_crt_dpms(struct drm_encoder *encoder, int mode) encoder 41 drivers/gpu/drm/gma500/cdv_intel_crt.c struct drm_device *dev = encoder->dev; encoder 84 drivers/gpu/drm/gma500/cdv_intel_crt.c static void cdv_intel_crt_mode_set(struct drm_encoder *encoder, encoder 89 drivers/gpu/drm/gma500/cdv_intel_crt.c struct drm_device *dev = encoder->dev; encoder 90 drivers/gpu/drm/gma500/cdv_intel_crt.c struct drm_crtc *crtc = encoder->crtc; encoder 240 drivers/gpu/drm/gma500/cdv_intel_crt.c static void cdv_intel_crt_enc_destroy(struct drm_encoder *encoder) encoder 242 drivers/gpu/drm/gma500/cdv_intel_crt.c drm_encoder_cleanup(encoder); encoder 256 drivers/gpu/drm/gma500/cdv_intel_crt.c struct drm_encoder *encoder; encoder 273 drivers/gpu/drm/gma500/cdv_intel_crt.c encoder = &gma_encoder->base; encoder 274 drivers/gpu/drm/gma500/cdv_intel_crt.c drm_encoder_init(dev, encoder, encoder 302 drivers/gpu/drm/gma500/cdv_intel_crt.c drm_encoder_helper_add(encoder, &cdv_intel_crt_helper_funcs); encoder 595 drivers/gpu/drm/gma500/cdv_intel_display.c if (!connector->encoder encoder 596 drivers/gpu/drm/gma500/cdv_intel_display.c || connector->encoder->crtc != crtc) encoder 267 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder; encoder 313 drivers/gpu/drm/gma500/cdv_intel_dp.c static bool is_edp(struct gma_encoder *encoder) encoder 315 drivers/gpu/drm/gma500/cdv_intel_dp.c return encoder->type == INTEL_OUTPUT_EDP; encoder 319 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_start_link_train(struct gma_encoder *encoder); encoder 320 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_complete_link_train(struct gma_encoder *encoder); encoder 321 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_link_down(struct gma_encoder *encoder); encoder 324 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_max_lane_count(struct gma_encoder *encoder) encoder 326 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 342 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_max_link_bw(struct gma_encoder *encoder) encoder 344 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 513 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder = gma_attached_encoder(connector); encoder 514 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 515 drivers/gpu/drm/gma500/cdv_intel_dp.c int max_link_clock = cdv_intel_dp_link_clock(cdv_intel_dp_max_link_bw(encoder)); encoder 516 drivers/gpu/drm/gma500/cdv_intel_dp.c int max_lanes = cdv_intel_dp_max_lane_count(encoder); encoder 519 drivers/gpu/drm/gma500/cdv_intel_dp.c if (is_edp(encoder) && intel_dp->panel_fixed_mode) { encoder 528 drivers/gpu/drm/gma500/cdv_intel_dp.c if (!is_edp(encoder) && encoder 533 drivers/gpu/drm/gma500/cdv_intel_dp.c if (is_edp(encoder)) { encoder 569 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_ch(struct gma_encoder *encoder, encoder 573 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 575 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->base.dev; encoder 593 drivers/gpu/drm/gma500/cdv_intel_dp.c if (is_edp(encoder)) encoder 671 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_write(struct gma_encoder *encoder, encoder 688 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_ch(encoder, msg, msg_bytes, &ack, 1); encoder 704 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_write_1(struct gma_encoder *encoder, encoder 707 drivers/gpu/drm/gma500/cdv_intel_dp.c return cdv_intel_dp_aux_native_write(encoder, address, &byte, 1); encoder 712 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_read(struct gma_encoder *encoder, encoder 731 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_ch(encoder, msg, msg_bytes, encoder 757 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder = intel_dp->encoder; encoder 797 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_ch(encoder, encoder 848 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder, const char *name) encoder 850 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 867 drivers/gpu/drm/gma500/cdv_intel_dp.c if (is_edp(encoder)) encoder 868 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_on(encoder); encoder 870 drivers/gpu/drm/gma500/cdv_intel_dp.c if (is_edp(encoder)) encoder 871 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_off(encoder); encoder 895 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode, encoder 898 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_psb_private *dev_priv = encoder->dev->dev_private; encoder 899 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *intel_encoder = to_gma_encoder(encoder); encoder 992 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_encoder *encoder; encoder 1001 drivers/gpu/drm/gma500/cdv_intel_dp.c list_for_each_entry(encoder, &mode_config->encoder_list, head) { encoder 1005 drivers/gpu/drm/gma500/cdv_intel_dp.c if (encoder->crtc != crtc) encoder 1008 drivers/gpu/drm/gma500/cdv_intel_dp.c intel_encoder = to_gma_encoder(encoder); encoder 1039 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, encoder 1042 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *intel_encoder = to_gma_encoder(encoder); encoder 1043 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_crtc *crtc = encoder->crtc; encoder 1046 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->dev; encoder 1109 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_sink_dpms(struct gma_encoder *encoder, int mode) encoder 1111 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1119 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_native_write_1(encoder, DP_SET_POWER, encoder 1129 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_native_write_1(encoder, encoder 1139 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_prepare(struct drm_encoder *encoder) encoder 1141 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *intel_encoder = to_gma_encoder(encoder); encoder 1156 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_commit(struct drm_encoder *encoder) encoder 1158 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *intel_encoder = to_gma_encoder(encoder); encoder 1170 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_dpms(struct drm_encoder *encoder, int mode) encoder 1172 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *intel_encoder = to_gma_encoder(encoder); encoder 1174 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->dev; encoder 1207 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_read_retry(struct gma_encoder *encoder, uint16_t address, encoder 1217 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_native_read(encoder, address, recv, encoder 1232 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_get_link_status(struct gma_encoder *encoder) encoder 1234 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1235 drivers/gpu/drm/gma500/cdv_intel_dp.c return cdv_intel_dp_aux_native_read_retry(encoder, encoder 1306 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_get_adjust_train(struct gma_encoder *encoder) encoder 1308 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1365 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_channel_eq_ok(struct gma_encoder *encoder) encoder 1367 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1385 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_set_link_train(struct gma_encoder *encoder, encoder 1390 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->base.dev; encoder 1392 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1397 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_native_write_1(encoder, encoder 1412 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dplink_set_level(struct gma_encoder *encoder, encoder 1417 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1419 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_native_write(encoder, encoder 1433 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_set_vswing_premph(struct gma_encoder *encoder, uint8_t signal_level) encoder 1435 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->base.dev; encoder 1436 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1499 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_start_link_train(struct gma_encoder *encoder) encoder 1501 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->base.dev; encoder 1502 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1522 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_write(encoder, DP_LINK_BW_SET, encoder 1542 drivers/gpu/drm/gma500/cdv_intel_dp.c if (!cdv_intel_dp_set_link_train(encoder, reg, DP_TRAINING_PATTERN_1)) { encoder 1545 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_set_vswing_premph(encoder, intel_dp->train_set[0]); encoder 1548 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dplink_set_level(encoder, DP_TRAINING_PATTERN_1); encoder 1551 drivers/gpu/drm/gma500/cdv_intel_dp.c if (!cdv_intel_dp_get_link_status(encoder)) encoder 1581 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_get_adjust_train(encoder); encoder 1593 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_complete_link_train(struct gma_encoder *encoder) encoder 1595 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->base.dev; encoder 1596 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1618 drivers/gpu/drm/gma500/cdv_intel_dp.c if (!cdv_intel_dp_set_link_train(encoder, reg, encoder 1626 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_link_down(encoder); encoder 1630 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_set_vswing_premph(encoder, intel_dp->train_set[0]); encoder 1632 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dplink_set_level(encoder, DP_TRAINING_PATTERN_2); encoder 1635 drivers/gpu/drm/gma500/cdv_intel_dp.c if (!cdv_intel_dp_get_link_status(encoder)) encoder 1644 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_start_link_train(encoder); encoder 1649 drivers/gpu/drm/gma500/cdv_intel_dp.c if (cdv_intel_channel_eq_ok(encoder)) { encoder 1657 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_link_down(encoder); encoder 1658 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_start_link_train(encoder); encoder 1665 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_get_adjust_train(encoder); encoder 1674 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_aux_native_write_1(encoder, encoder 1679 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_link_down(struct gma_encoder *encoder) encoder 1681 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_device *dev = encoder->base.dev; encoder 1682 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1703 drivers/gpu/drm/gma500/cdv_intel_dp.c static enum drm_connector_status cdv_dp_detect(struct gma_encoder *encoder) encoder 1705 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1709 drivers/gpu/drm/gma500/cdv_intel_dp.c if (cdv_intel_dp_aux_native_read(encoder, 0x000, intel_dp->dpcd, encoder 1731 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder = gma_attached_encoder(connector); encoder 1732 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1735 drivers/gpu/drm/gma500/cdv_intel_dp.c int edp = is_edp(encoder); encoder 1740 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_on(encoder); encoder 1741 drivers/gpu/drm/gma500/cdv_intel_dp.c status = cdv_dp_detect(encoder); encoder 1744 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_off(encoder); encoder 1758 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_off(encoder); encoder 1821 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder = gma_attached_encoder(connector); encoder 1822 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1825 drivers/gpu/drm/gma500/cdv_intel_dp.c int edp = is_edp(encoder); encoder 1828 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_on(encoder); encoder 1836 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_edp_panel_vdd_off(encoder); encoder 1847 drivers/gpu/drm/gma500/cdv_intel_dp.c struct gma_encoder *encoder = gma_attached_encoder(connector); encoder 1848 drivers/gpu/drm/gma500/cdv_intel_dp.c struct cdv_intel_dp *intel_dp = encoder->dev_priv; encoder 1887 drivers/gpu/drm/gma500/cdv_intel_dp.c if (encoder->base.crtc) { encoder 1888 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_crtc *crtc = encoder->base.crtc; encoder 1914 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_encoder_destroy(struct drm_encoder *encoder) encoder 1916 drivers/gpu/drm/gma500/cdv_intel_dp.c drm_encoder_cleanup(encoder); encoder 2000 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_encoder *encoder; encoder 2019 drivers/gpu/drm/gma500/cdv_intel_dp.c encoder = &gma_encoder->base; encoder 2022 drivers/gpu/drm/gma500/cdv_intel_dp.c drm_encoder_init(dev, encoder, &cdv_intel_dp_enc_funcs, encoder 2034 drivers/gpu/drm/gma500/cdv_intel_dp.c intel_dp->encoder = gma_encoder; encoder 2037 drivers/gpu/drm/gma500/cdv_intel_dp.c drm_encoder_helper_add(encoder, &cdv_intel_dp_helper_funcs); encoder 2126 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_encoder_destroy(encoder); encoder 63 drivers/gpu/drm/gma500/cdv_intel_hdmi.c static void cdv_hdmi_mode_set(struct drm_encoder *encoder, encoder 67 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_device *dev = encoder->dev; encoder 68 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 71 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_crtc *crtc = encoder->crtc; encoder 93 drivers/gpu/drm/gma500/cdv_intel_hdmi.c static void cdv_hdmi_dpms(struct drm_encoder *encoder, int mode) encoder 95 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_device *dev = encoder->dev; encoder 96 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 157 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_encoder *encoder = connector->encoder; encoder 159 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (!strcmp(property->name, "scaling mode") && encoder) { encoder 160 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct gma_crtc *crtc = to_gma_crtc(encoder->crtc); encoder 195 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (!drm_crtc_helper_set_mode(encoder->crtc, &crtc->saved_mode, encoder 196 drivers/gpu/drm/gma500/cdv_intel_hdmi.c encoder->crtc->x, encoder->crtc->y, encoder->crtc->primary->fb)) encoder 200 drivers/gpu/drm/gma500/cdv_intel_hdmi.c = encoder->helper_private; encoder 201 drivers/gpu/drm/gma500/cdv_intel_hdmi.c helpers->mode_set(encoder, &crtc->saved_mode, encoder 284 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_encoder *encoder; encoder 309 drivers/gpu/drm/gma500/cdv_intel_hdmi.c encoder = &gma_encoder->base; encoder 314 drivers/gpu/drm/gma500/cdv_intel_hdmi.c drm_encoder_init(dev, encoder, &psb_intel_lvds_enc_funcs, encoder 323 drivers/gpu/drm/gma500/cdv_intel_hdmi.c drm_encoder_helper_add(encoder, &cdv_hdmi_helper_funcs); encoder 363 drivers/gpu/drm/gma500/cdv_intel_hdmi.c drm_encoder_cleanup(encoder); encoder 187 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_encoder *encoder, bool on) encoder 216 drivers/gpu/drm/gma500/cdv_intel_lvds.c static void cdv_intel_lvds_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 218 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 220 drivers/gpu/drm/gma500/cdv_intel_lvds.c cdv_intel_lvds_set_power(dev, encoder, true); encoder 222 drivers/gpu/drm/gma500/cdv_intel_lvds.c cdv_intel_lvds_set_power(dev, encoder, false); encoder 259 drivers/gpu/drm/gma500/cdv_intel_lvds.c static bool cdv_intel_lvds_mode_fixup(struct drm_encoder *encoder, encoder 263 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 272 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (tmp_encoder != encoder encoder 273 drivers/gpu/drm/gma500/cdv_intel_lvds.c && tmp_encoder->crtc == encoder->crtc) { encoder 308 drivers/gpu/drm/gma500/cdv_intel_lvds.c static void cdv_intel_lvds_prepare(struct drm_encoder *encoder) encoder 310 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 321 drivers/gpu/drm/gma500/cdv_intel_lvds.c cdv_intel_lvds_set_power(dev, encoder, false); encoder 326 drivers/gpu/drm/gma500/cdv_intel_lvds.c static void cdv_intel_lvds_commit(struct drm_encoder *encoder) encoder 328 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 336 drivers/gpu/drm/gma500/cdv_intel_lvds.c cdv_intel_lvds_set_power(dev, encoder, true); encoder 339 drivers/gpu/drm/gma500/cdv_intel_lvds.c static void cdv_intel_lvds_mode_set(struct drm_encoder *encoder, encoder 343 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 345 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct gma_crtc *gma_crtc = to_gma_crtc(encoder->crtc); encoder 422 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_encoder *encoder = connector->encoder; encoder 424 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (!strcmp(property->name, "scaling mode") && encoder) { encoder 425 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct gma_crtc *crtc = to_gma_crtc(encoder->crtc); encoder 457 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (!drm_crtc_helper_set_mode(encoder->crtc, encoder 459 drivers/gpu/drm/gma500/cdv_intel_lvds.c encoder->crtc->x, encoder 460 drivers/gpu/drm/gma500/cdv_intel_lvds.c encoder->crtc->y, encoder 461 drivers/gpu/drm/gma500/cdv_intel_lvds.c encoder->crtc->primary->fb)) encoder 464 drivers/gpu/drm/gma500/cdv_intel_lvds.c } else if (!strcmp(property->name, "backlight") && encoder) { encoder 470 drivers/gpu/drm/gma500/cdv_intel_lvds.c gma_backlight_set(encoder->dev, value); encoder 471 drivers/gpu/drm/gma500/cdv_intel_lvds.c } else if (!strcmp(property->name, "DPMS") && encoder) { encoder 473 drivers/gpu/drm/gma500/cdv_intel_lvds.c encoder->helper_private; encoder 474 drivers/gpu/drm/gma500/cdv_intel_lvds.c helpers->dpms(encoder, value); encoder 503 drivers/gpu/drm/gma500/cdv_intel_lvds.c static void cdv_intel_lvds_enc_destroy(struct drm_encoder *encoder) encoder 505 drivers/gpu/drm/gma500/cdv_intel_lvds.c drm_encoder_cleanup(encoder); encoder 576 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_encoder *encoder; encoder 612 drivers/gpu/drm/gma500/cdv_intel_lvds.c encoder = &gma_encoder->base; encoder 619 drivers/gpu/drm/gma500/cdv_intel_lvds.c drm_encoder_init(dev, encoder, encoder 627 drivers/gpu/drm/gma500/cdv_intel_lvds.c drm_encoder_helper_add(encoder, &cdv_intel_lvds_helper_funcs); encoder 755 drivers/gpu/drm/gma500/cdv_intel_lvds.c drm_encoder_cleanup(encoder); encoder 580 drivers/gpu/drm/gma500/framebuffer.c struct drm_encoder *encoder = &gma_encoder->base; encoder 617 drivers/gpu/drm/gma500/framebuffer.c encoder->possible_crtcs = crtc_mask; encoder 618 drivers/gpu/drm/gma500/framebuffer.c encoder->possible_clones = encoder 33 drivers/gpu/drm/gma500/gma_display.c if (l_entry->encoder && l_entry->encoder->crtc == crtc) { encoder 626 drivers/gpu/drm/gma500/gma_display.c void gma_encoder_prepare(struct drm_encoder *encoder) encoder 629 drivers/gpu/drm/gma500/gma_display.c encoder->helper_private; encoder 631 drivers/gpu/drm/gma500/gma_display.c encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 634 drivers/gpu/drm/gma500/gma_display.c void gma_encoder_commit(struct drm_encoder *encoder) encoder 637 drivers/gpu/drm/gma500/gma_display.c encoder->helper_private; encoder 639 drivers/gpu/drm/gma500/gma_display.c encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON); encoder 642 drivers/gpu/drm/gma500/gma_display.c void gma_encoder_destroy(struct drm_encoder *encoder) encoder 644 drivers/gpu/drm/gma500/gma_display.c struct gma_encoder *intel_encoder = to_gma_encoder(encoder); encoder 646 drivers/gpu/drm/gma500/gma_display.c drm_encoder_cleanup(encoder); encoder 659 drivers/gpu/drm/gma500/gma_display.c struct gma_encoder *encoder) encoder 661 drivers/gpu/drm/gma500/gma_display.c connector->encoder = encoder; encoder 663 drivers/gpu/drm/gma500/gma_display.c &encoder->base); encoder 80 drivers/gpu/drm/gma500/gma_display.h extern void gma_encoder_prepare(struct drm_encoder *encoder); encoder 81 drivers/gpu/drm/gma500/gma_display.h extern void gma_encoder_commit(struct drm_encoder *encoder); encoder 82 drivers/gpu/drm/gma500/gma_display.h extern void gma_encoder_destroy(struct drm_encoder *encoder); encoder 635 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c static void mdfld_dsi_dpi_set_power(struct drm_encoder *encoder, bool on) encoder 637 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct mdfld_dsi_encoder *dsi_encoder = mdfld_dsi_encoder(encoder); encoder 683 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c void mdfld_dsi_dpi_dpms(struct drm_encoder *encoder, int mode) encoder 685 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mdfld_dsi_dpi_set_power(encoder, mode == DRM_MODE_DPMS_ON); encoder 688 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c bool mdfld_dsi_dpi_mode_fixup(struct drm_encoder *encoder, encoder 692 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct mdfld_dsi_encoder *dsi_encoder = mdfld_dsi_encoder(encoder); encoder 712 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c void mdfld_dsi_dpi_prepare(struct drm_encoder *encoder) encoder 714 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mdfld_dsi_dpi_set_power(encoder, false); encoder 717 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c void mdfld_dsi_dpi_commit(struct drm_encoder *encoder) encoder 719 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mdfld_dsi_dpi_set_power(encoder, true); encoder 814 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c void mdfld_dsi_dpi_mode_set(struct drm_encoder *encoder, encoder 818 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct mdfld_dsi_encoder *dsi_encoder = mdfld_dsi_encoder(encoder); encoder 944 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct drm_encoder *encoder = NULL; encoder 995 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c encoder = &dpi_output->base.base.base; encoder 997 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c encoder, encoder 1000 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c drm_encoder_helper_add(encoder, encoder 1004 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c drm_connector_attach_encoder(connector, encoder); encoder 1008 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c encoder->possible_crtcs = (1 << 2); encoder 1009 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c encoder->possible_clones = (1 << 1); encoder 1011 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c encoder->possible_crtcs = (1 << 0); encoder 1012 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c encoder->possible_clones = (1 << 0); encoder 1015 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c dsi_connector->base.encoder = &dpi_output->base.base; encoder 66 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern void mdfld_dsi_dpi_dpms(struct drm_encoder *encoder, int mode); encoder 67 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern bool mdfld_dsi_dpi_mode_fixup(struct drm_encoder *encoder, encoder 70 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern void mdfld_dsi_dpi_prepare(struct drm_encoder *encoder); encoder 71 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern void mdfld_dsi_dpi_commit(struct drm_encoder *encoder); encoder 72 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern void mdfld_dsi_dpi_mode_set(struct drm_encoder *encoder, encoder 251 drivers/gpu/drm/gma500/mdfld_dsi_output.c struct drm_encoder *encoder = connector->encoder; encoder 253 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (!strcmp(property->name, "scaling mode") && encoder) { encoder 254 drivers/gpu/drm/gma500/mdfld_dsi_output.c struct gma_crtc *gma_crtc = to_gma_crtc(encoder->crtc); encoder 288 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (!drm_crtc_helper_set_mode(encoder->crtc, encoder 290 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->crtc->x, encoder 291 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->crtc->y, encoder 292 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->crtc->primary->fb)) encoder 296 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->helper_private; encoder 297 drivers/gpu/drm/gma500/mdfld_dsi_output.c funcs->mode_set(encoder, encoder 302 drivers/gpu/drm/gma500/mdfld_dsi_output.c } else if (!strcmp(property->name, "backlight") && encoder) { encoder 307 drivers/gpu/drm/gma500/mdfld_dsi_output.c gma_backlight_set(encoder->dev, value); encoder 389 drivers/gpu/drm/gma500/mdfld_dsi_output.c return &dsi_config->encoder->base.base; encoder 489 drivers/gpu/drm/gma500/mdfld_dsi_output.c struct mdfld_dsi_encoder *encoder; encoder 579 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder = mdfld_dsi_dpi_init(dev, dsi_connector, p_vid_funcs); encoder 580 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (!encoder) { encoder 584 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->private = dsi_config; encoder 585 drivers/gpu/drm/gma500/mdfld_dsi_output.c dsi_config->encoder = encoder; encoder 586 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->base.type = (pipe == 0) ? INTEL_OUTPUT_MIPI : encoder 255 drivers/gpu/drm/gma500/mdfld_dsi_output.h struct mdfld_dsi_encoder *encoder; encoder 280 drivers/gpu/drm/gma500/mdfld_dsi_output.h struct drm_encoder *encoder) encoder 284 drivers/gpu/drm/gma500/mdfld_dsi_output.h gma_encoder = to_gma_encoder(encoder); encoder 313 drivers/gpu/drm/gma500/mdfld_dsi_output.h mdfld_dsi_encoder_get_config(struct mdfld_dsi_encoder *encoder) encoder 315 drivers/gpu/drm/gma500/mdfld_dsi_output.h if (!encoder) encoder 317 drivers/gpu/drm/gma500/mdfld_dsi_output.h return (struct mdfld_dsi_config *)encoder->private; encoder 321 drivers/gpu/drm/gma500/mdfld_dsi_output.h mdfld_dsi_encoder_get_connector(struct mdfld_dsi_encoder *encoder) encoder 325 drivers/gpu/drm/gma500/mdfld_dsi_output.h if (!encoder) encoder 328 drivers/gpu/drm/gma500/mdfld_dsi_output.h config = mdfld_dsi_encoder_get_config(encoder); encoder 336 drivers/gpu/drm/gma500/mdfld_dsi_output.h struct mdfld_dsi_encoder *encoder) encoder 340 drivers/gpu/drm/gma500/mdfld_dsi_output.h dsi_config = mdfld_dsi_encoder_get_config(encoder); encoder 347 drivers/gpu/drm/gma500/mdfld_dsi_output.h static inline int mdfld_dsi_encoder_get_pipe(struct mdfld_dsi_encoder *encoder) encoder 351 drivers/gpu/drm/gma500/mdfld_dsi_output.h if (!encoder) encoder 354 drivers/gpu/drm/gma500/mdfld_dsi_output.h connector = mdfld_dsi_encoder_get_connector(encoder); encoder 677 drivers/gpu/drm/gma500/mdfld_intel_display.c struct drm_encoder *encoder; encoder 730 drivers/gpu/drm/gma500/mdfld_intel_display.c encoder = connector->encoder; encoder 731 drivers/gpu/drm/gma500/mdfld_intel_display.c if (!encoder) encoder 734 drivers/gpu/drm/gma500/mdfld_intel_display.c if (encoder->crtc != crtc) encoder 395 drivers/gpu/drm/gma500/oaktrail_crtc.c if (!connector->encoder || connector->encoder->crtc != crtc) encoder 493 drivers/gpu/drm/gma500/oaktrail_hdmi.c static void oaktrail_hdmi_dpms(struct drm_encoder *encoder, int mode) encoder 497 drivers/gpu/drm/gma500/oaktrail_hdmi.c struct drm_device *dev = encoder->dev; encoder 589 drivers/gpu/drm/gma500/oaktrail_hdmi.c static void oaktrail_hdmi_mode_set(struct drm_encoder *encoder, encoder 593 drivers/gpu/drm/gma500/oaktrail_hdmi.c struct drm_device *dev = encoder->dev; encoder 625 drivers/gpu/drm/gma500/oaktrail_hdmi.c static void oaktrail_hdmi_enc_destroy(struct drm_encoder *encoder) encoder 627 drivers/gpu/drm/gma500/oaktrail_hdmi.c drm_encoder_cleanup(encoder); encoder 640 drivers/gpu/drm/gma500/oaktrail_hdmi.c struct drm_encoder *encoder; encoder 651 drivers/gpu/drm/gma500/oaktrail_hdmi.c encoder = &gma_encoder->base; encoder 656 drivers/gpu/drm/gma500/oaktrail_hdmi.c drm_encoder_init(dev, encoder, encoder 663 drivers/gpu/drm/gma500/oaktrail_hdmi.c drm_encoder_helper_add(encoder, &oaktrail_hdmi_helper_funcs); encoder 66 drivers/gpu/drm/gma500/oaktrail_lvds.c static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode) encoder 68 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_device *dev = encoder->dev; encoder 69 drivers/gpu/drm/gma500/oaktrail_lvds.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 79 drivers/gpu/drm/gma500/oaktrail_lvds.c static void oaktrail_lvds_mode_set(struct drm_encoder *encoder, encoder 83 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_device *dev = encoder->dev; encoder 88 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_crtc *crtc = encoder->crtc; encoder 114 drivers/gpu/drm/gma500/oaktrail_lvds.c if (!connector->encoder || connector->encoder->crtc != crtc) encoder 152 drivers/gpu/drm/gma500/oaktrail_lvds.c static void oaktrail_lvds_prepare(struct drm_encoder *encoder) encoder 154 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_device *dev = encoder->dev; encoder 156 drivers/gpu/drm/gma500/oaktrail_lvds.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 188 drivers/gpu/drm/gma500/oaktrail_lvds.c static void oaktrail_lvds_commit(struct drm_encoder *encoder) encoder 190 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_device *dev = encoder->dev; encoder 192 drivers/gpu/drm/gma500/oaktrail_lvds.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 292 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_encoder *encoder; encoder 307 drivers/gpu/drm/gma500/oaktrail_lvds.c encoder = &gma_encoder->base; encoder 313 drivers/gpu/drm/gma500/oaktrail_lvds.c drm_encoder_init(dev, encoder, &psb_intel_lvds_enc_funcs, encoder 319 drivers/gpu/drm/gma500/oaktrail_lvds.c drm_encoder_helper_add(encoder, &oaktrail_lvds_helper_funcs); encoder 356 drivers/gpu/drm/gma500/oaktrail_lvds.c oaktrail_lvds_i2c_init(encoder); encoder 414 drivers/gpu/drm/gma500/oaktrail_lvds.c drm_encoder_cleanup(encoder); encoder 132 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c void oaktrail_lvds_i2c_init(struct drm_encoder *encoder) encoder 134 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c struct drm_device *dev = encoder->dev; encoder 135 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 121 drivers/gpu/drm/gma500/psb_intel_display.c if (!connector->encoder encoder 122 drivers/gpu/drm/gma500/psb_intel_display.c || connector->encoder->crtc != crtc) encoder 131 drivers/gpu/drm/gma500/psb_intel_drv.h struct gma_encoder *encoder; encoder 217 drivers/gpu/drm/gma500/psb_intel_drv.h extern void oaktrail_lvds_i2c_init(struct drm_encoder *encoder); encoder 223 drivers/gpu/drm/gma500/psb_intel_drv.h struct gma_encoder *encoder); encoder 228 drivers/gpu/drm/gma500/psb_intel_drv.h return to_gma_connector(connector)->encoder; encoder 243 drivers/gpu/drm/gma500/psb_intel_drv.h extern bool psb_intel_lvds_mode_fixup(struct drm_encoder *encoder, encoder 240 drivers/gpu/drm/gma500/psb_intel_lvds.c static void psb_intel_lvds_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 242 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 361 drivers/gpu/drm/gma500/psb_intel_lvds.c bool psb_intel_lvds_mode_fixup(struct drm_encoder *encoder, encoder 365 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 368 drivers/gpu/drm/gma500/psb_intel_lvds.c struct gma_crtc *gma_crtc = to_gma_crtc(encoder->crtc); encoder 371 drivers/gpu/drm/gma500/psb_intel_lvds.c struct gma_encoder *gma_encoder = to_gma_encoder(encoder); encoder 388 drivers/gpu/drm/gma500/psb_intel_lvds.c if (tmp_encoder != encoder encoder 389 drivers/gpu/drm/gma500/psb_intel_lvds.c && tmp_encoder->crtc == encoder->crtc) { encoder 424 drivers/gpu/drm/gma500/psb_intel_lvds.c static void psb_intel_lvds_prepare(struct drm_encoder *encoder) encoder 426 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 442 drivers/gpu/drm/gma500/psb_intel_lvds.c static void psb_intel_lvds_commit(struct drm_encoder *encoder) encoder 444 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 455 drivers/gpu/drm/gma500/psb_intel_lvds.c static void psb_intel_lvds_mode_set(struct drm_encoder *encoder, encoder 459 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_device *dev = encoder->dev; encoder 538 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_encoder *encoder = connector->encoder; encoder 540 drivers/gpu/drm/gma500/psb_intel_lvds.c if (!encoder) encoder 544 drivers/gpu/drm/gma500/psb_intel_lvds.c struct gma_crtc *crtc = to_gma_crtc(encoder->crtc); encoder 576 drivers/gpu/drm/gma500/psb_intel_lvds.c if (!drm_crtc_helper_set_mode(encoder->crtc, encoder 578 drivers/gpu/drm/gma500/psb_intel_lvds.c encoder->crtc->x, encoder 579 drivers/gpu/drm/gma500/psb_intel_lvds.c encoder->crtc->y, encoder 580 drivers/gpu/drm/gma500/psb_intel_lvds.c encoder->crtc->primary->fb)) encoder 589 drivers/gpu/drm/gma500/psb_intel_lvds.c gma_backlight_set(encoder->dev, value); encoder 592 drivers/gpu/drm/gma500/psb_intel_lvds.c = encoder->helper_private; encoder 593 drivers/gpu/drm/gma500/psb_intel_lvds.c hfuncs->dpms(encoder, value); encoder 625 drivers/gpu/drm/gma500/psb_intel_lvds.c static void psb_intel_lvds_enc_destroy(struct drm_encoder *encoder) encoder 627 drivers/gpu/drm/gma500/psb_intel_lvds.c drm_encoder_cleanup(encoder); encoder 650 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_encoder *encoder; encoder 681 drivers/gpu/drm/gma500/psb_intel_lvds.c encoder = &gma_encoder->base; encoder 686 drivers/gpu/drm/gma500/psb_intel_lvds.c drm_encoder_init(dev, encoder, encoder 693 drivers/gpu/drm/gma500/psb_intel_lvds.c drm_encoder_helper_add(encoder, &psb_intel_lvds_helper_funcs); encoder 808 drivers/gpu/drm/gma500/psb_intel_lvds.c drm_encoder_cleanup(encoder); encoder 196 drivers/gpu/drm/gma500/psb_intel_sdvo.c static struct psb_intel_sdvo *to_psb_intel_sdvo(struct drm_encoder *encoder) encoder 198 drivers/gpu/drm/gma500/psb_intel_sdvo.c return container_of(encoder, struct psb_intel_sdvo, base.base); encoder 842 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_get_value(encoder, SDVO_CMD_GET_HBUF_AV_SPLIT, &av_split, 1); encoder 846 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_write_cmd(encoder, SDVO_CMD_SET_HBUF_INDEX, encoder 848 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_write_cmd(encoder, SDVO_CMD_GET_HBUF_INFO, NULL, 0); encoder 849 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_read_response(encoder, &buf_size, 1); encoder 853 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_write_cmd(encoder, SDVO_CMD_GET_HBUF_DATA, encoder 855 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_read_response(encoder, pos, 8); encoder 956 drivers/gpu/drm/gma500/psb_intel_sdvo.c static bool psb_intel_sdvo_mode_fixup(struct drm_encoder *encoder, encoder 960 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo *psb_intel_sdvo = to_psb_intel_sdvo(encoder); encoder 994 drivers/gpu/drm/gma500/psb_intel_sdvo.c static void psb_intel_sdvo_mode_set(struct drm_encoder *encoder, encoder 998 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_device *dev = encoder->dev; encoder 999 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_crtc *crtc = encoder->crtc; encoder 1001 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo *psb_intel_sdvo = to_psb_intel_sdvo(encoder); encoder 1102 drivers/gpu/drm/gma500/psb_intel_sdvo.c static void psb_intel_sdvo_dpms(struct drm_encoder *encoder, int mode) encoder 1104 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_device *dev = encoder->dev; encoder 1105 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo *psb_intel_sdvo = to_psb_intel_sdvo(encoder); encoder 1824 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_encoder *encoder = &gma_attached_encoder(connector)->base; encoder 1825 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo *sdvo = to_psb_intel_sdvo(encoder); encoder 1826 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_crtc *crtc = encoder->crtc; encoder 1859 drivers/gpu/drm/gma500/psb_intel_sdvo.c static void psb_intel_sdvo_enc_destroy(struct drm_encoder *encoder) encoder 1861 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo *psb_intel_sdvo = to_psb_intel_sdvo(encoder); encoder 1864 drivers/gpu/drm/gma500/psb_intel_sdvo.c drm_mode_destroy(encoder->dev, encoder 1868 drivers/gpu/drm/gma500/psb_intel_sdvo.c gma_encoder_destroy(encoder); encoder 2015 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct psb_intel_sdvo *encoder) encoder 2017 drivers/gpu/drm/gma500/psb_intel_sdvo.c drm_connector_init(encoder->base.base.dev, encoder 2032 drivers/gpu/drm/gma500/psb_intel_sdvo.c gma_connector_attach_encoder(&connector->base, &encoder->base); encoder 2050 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_encoder *encoder = &psb_intel_sdvo->base.base; encoder 2070 drivers/gpu/drm/gma500/psb_intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_TMDS; encoder 2090 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_encoder *encoder = &psb_intel_sdvo->base.base; encoder 2101 drivers/gpu/drm/gma500/psb_intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_TVDAC; encoder 2129 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_encoder *encoder = &psb_intel_sdvo->base.base; encoder 2141 drivers/gpu/drm/gma500/psb_intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_DAC; encoder 2163 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_encoder *encoder = &psb_intel_sdvo->base.base; encoder 2174 drivers/gpu/drm/gma500/psb_intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_LVDS; encoder 72 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c static void hibmc_encoder_mode_set(struct drm_encoder *encoder, encoder 77 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c struct drm_device *dev = encoder->dev; encoder 99 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c struct drm_encoder *encoder; encoder 110 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c encoder = devm_kzalloc(dev->dev, sizeof(*encoder), GFP_KERNEL); encoder 111 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c if (!encoder) { encoder 116 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c encoder->possible_crtcs = 0x1; encoder 117 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c ret = drm_encoder_init(dev, encoder, &hibmc_encoder_funcs, encoder 124 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c drm_encoder_helper_add(encoder, &hibmc_encoder_helper_funcs); encoder 125 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c drm_connector_attach_encoder(connector, encoder); encoder 36 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c #define encoder_to_dsi(encoder) \ encoder 37 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c container_of(encoder, struct dw_dsi, encoder) encoder 82 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_encoder encoder; encoder 570 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c static void dsi_encoder_disable(struct drm_encoder *encoder) encoder 572 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct dw_dsi *dsi = encoder_to_dsi(encoder); encoder 587 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c static void dsi_encoder_enable(struct drm_encoder *encoder) encoder 589 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct dw_dsi *dsi = encoder_to_dsi(encoder); encoder 608 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_encoder *encoder, encoder 611 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct dw_dsi *dsi = encoder_to_dsi(encoder); encoder 639 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c static enum drm_mode_status dsi_encoder_mode_valid(struct drm_encoder *encoder, encoder 654 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c drm_for_each_crtc(crtc, encoder->dev) { encoder 666 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c ret = dsi_encoder_phy_mode_valid(encoder, &adj_mode); encoder 673 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c static void dsi_encoder_mode_set(struct drm_encoder *encoder, encoder 677 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct dw_dsi *dsi = encoder_to_dsi(encoder); encoder 682 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c static int dsi_encoder_atomic_check(struct drm_encoder *encoder, encoder 704 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_encoder *encoder) encoder 714 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c encoder->possible_crtcs = crtc_mask; encoder 715 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c ret = drm_encoder_init(drm_dev, encoder, &dw_encoder_funcs, encoder 722 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c drm_encoder_helper_add(encoder, &dw_encoder_helper_funcs); encoder 774 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_encoder *encoder = &dsi->encoder; encoder 779 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c ret = drm_bridge_attach(encoder, bridge, NULL); encoder 795 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c ret = dw_drm_encoder_init(dev, drm_dev, &dsi->encoder); encoder 33 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_set_config(struct drm_encoder *encoder, encoder 36 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 41 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_destroy(struct drm_encoder *encoder) encoder 43 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 45 drivers/gpu/drm/i2c/ch7006_drv.c drm_property_destroy(encoder->dev, priv->scale_property); encoder 48 drivers/gpu/drm/i2c/ch7006_drv.c to_encoder_slave(encoder)->slave_priv = NULL; encoder 50 drivers/gpu/drm/i2c/ch7006_drv.c drm_i2c_encoder_destroy(encoder); encoder 53 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 55 drivers/gpu/drm/i2c/ch7006_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 56 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 65 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_power_state(encoder); encoder 70 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_save(struct drm_encoder *encoder) encoder 72 drivers/gpu/drm/i2c/ch7006_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 73 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 80 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_restore(struct drm_encoder *encoder) encoder 82 drivers/gpu/drm/i2c/ch7006_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 83 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 90 drivers/gpu/drm/i2c/ch7006_drv.c static bool ch7006_encoder_mode_fixup(struct drm_encoder *encoder, encoder 94 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 99 drivers/gpu/drm/i2c/ch7006_drv.c priv->mode = ch7006_lookup_mode(encoder, mode); encoder 104 drivers/gpu/drm/i2c/ch7006_drv.c static int ch7006_encoder_mode_valid(struct drm_encoder *encoder, encoder 107 drivers/gpu/drm/i2c/ch7006_drv.c if (ch7006_lookup_mode(encoder, mode)) encoder 113 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_mode_set(struct drm_encoder *encoder, encoder 117 drivers/gpu/drm/i2c/ch7006_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 118 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 168 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_levels(encoder); encoder 169 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_subcarrier(encoder); encoder 170 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_pll(encoder); encoder 171 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_power_state(encoder); encoder 172 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_properties(encoder); encoder 177 drivers/gpu/drm/i2c/ch7006_drv.c static enum drm_connector_status ch7006_encoder_detect(struct drm_encoder *encoder, encoder 180 drivers/gpu/drm/i2c/ch7006_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 181 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 218 drivers/gpu/drm/i2c/ch7006_drv.c encoder->dev->mode_config.tv_subconnector_property, encoder 225 drivers/gpu/drm/i2c/ch7006_drv.c static int ch7006_encoder_get_modes(struct drm_encoder *encoder, encoder 228 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 238 drivers/gpu/drm/i2c/ch7006_drv.c drm_mode_duplicate(encoder->dev, &mode->mode)); encoder 246 drivers/gpu/drm/i2c/ch7006_drv.c static int ch7006_encoder_create_resources(struct drm_encoder *encoder, encoder 249 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 250 drivers/gpu/drm/i2c/ch7006_drv.c struct drm_device *dev = encoder->dev; encoder 281 drivers/gpu/drm/i2c/ch7006_drv.c static int ch7006_encoder_set_property(struct drm_encoder *encoder, encoder 286 drivers/gpu/drm/i2c/ch7006_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 287 drivers/gpu/drm/i2c/ch7006_drv.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 289 drivers/gpu/drm/i2c/ch7006_drv.c struct drm_mode_config *conf = &encoder->dev->mode_config; encoder 290 drivers/gpu/drm/i2c/ch7006_drv.c struct drm_crtc *crtc = encoder->crtc; encoder 298 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_power_state(encoder); encoder 305 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_properties(encoder); encoder 313 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_properties(encoder); encoder 329 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_levels(encoder); encoder 336 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_properties(encoder); encoder 343 drivers/gpu/drm/i2c/ch7006_drv.c ch7006_setup_properties(encoder); encoder 440 drivers/gpu/drm/i2c/ch7006_drv.c struct drm_encoder_slave *encoder) encoder 451 drivers/gpu/drm/i2c/ch7006_drv.c encoder->slave_priv = priv; encoder 452 drivers/gpu/drm/i2c/ch7006_drv.c encoder->slave_funcs = &ch7006_encoder_funcs; encoder 174 drivers/gpu/drm/i2c/ch7006_mode.c const struct ch7006_mode *ch7006_lookup_mode(struct drm_encoder *encoder, encoder 177 drivers/gpu/drm/i2c/ch7006_mode.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 200 drivers/gpu/drm/i2c/ch7006_mode.c void ch7006_setup_levels(struct drm_encoder *encoder) encoder 202 drivers/gpu/drm/i2c/ch7006_mode.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 203 drivers/gpu/drm/i2c/ch7006_mode.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 231 drivers/gpu/drm/i2c/ch7006_mode.c void ch7006_setup_subcarrier(struct drm_encoder *encoder) encoder 233 drivers/gpu/drm/i2c/ch7006_mode.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 234 drivers/gpu/drm/i2c/ch7006_mode.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 255 drivers/gpu/drm/i2c/ch7006_mode.c void ch7006_setup_pll(struct drm_encoder *encoder) encoder 257 drivers/gpu/drm/i2c/ch7006_mode.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 258 drivers/gpu/drm/i2c/ch7006_mode.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 293 drivers/gpu/drm/i2c/ch7006_mode.c void ch7006_setup_power_state(struct drm_encoder *encoder) encoder 295 drivers/gpu/drm/i2c/ch7006_mode.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 326 drivers/gpu/drm/i2c/ch7006_mode.c void ch7006_setup_properties(struct drm_encoder *encoder) encoder 328 drivers/gpu/drm/i2c/ch7006_mode.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 329 drivers/gpu/drm/i2c/ch7006_mode.c struct ch7006_priv *priv = to_ch7006_priv(encoder); encoder 113 drivers/gpu/drm/i2c/ch7006_priv.h const struct ch7006_mode *ch7006_lookup_mode(struct drm_encoder *encoder, encoder 116 drivers/gpu/drm/i2c/ch7006_priv.h void ch7006_setup_levels(struct drm_encoder *encoder); encoder 117 drivers/gpu/drm/i2c/ch7006_priv.h void ch7006_setup_subcarrier(struct drm_encoder *encoder); encoder 118 drivers/gpu/drm/i2c/ch7006_priv.h void ch7006_setup_pll(struct drm_encoder *encoder); encoder 119 drivers/gpu/drm/i2c/ch7006_priv.h void ch7006_setup_power_state(struct drm_encoder *encoder); encoder 120 drivers/gpu/drm/i2c/ch7006_priv.h void ch7006_setup_properties(struct drm_encoder *encoder); encoder 210 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_set_config(struct drm_encoder *encoder, void *params) encoder 212 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 218 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 220 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 222 drivers/gpu/drm/i2c/sil164_drv.c bool duallink = (on && encoder->crtc->mode.clock > 165000); encoder 224 drivers/gpu/drm/i2c/sil164_drv.c sil164_set_power_state(drm_i2c_encoder_get_client(encoder), on); encoder 231 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_save(struct drm_encoder *encoder) encoder 233 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 235 drivers/gpu/drm/i2c/sil164_drv.c sil164_save_state(drm_i2c_encoder_get_client(encoder), encoder 244 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_restore(struct drm_encoder *encoder) encoder 246 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 248 drivers/gpu/drm/i2c/sil164_drv.c sil164_restore_state(drm_i2c_encoder_get_client(encoder), encoder 257 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_mode_valid(struct drm_encoder *encoder, encoder 260 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 273 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_mode_set(struct drm_encoder *encoder, encoder 277 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 280 drivers/gpu/drm/i2c/sil164_drv.c sil164_init_state(drm_i2c_encoder_get_client(encoder), encoder 287 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 291 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_detect(struct drm_encoder *encoder, encoder 294 drivers/gpu/drm/i2c/sil164_drv.c struct i2c_client *client = drm_i2c_encoder_get_client(encoder); encoder 303 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_get_modes(struct drm_encoder *encoder, encoder 310 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_create_resources(struct drm_encoder *encoder, encoder 317 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_set_property(struct drm_encoder *encoder, encoder 326 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_destroy(struct drm_encoder *encoder) encoder 328 drivers/gpu/drm/i2c/sil164_drv.c struct sil164_priv *priv = to_sil164_priv(encoder); encoder 333 drivers/gpu/drm/i2c/sil164_drv.c drm_i2c_encoder_destroy(encoder); encoder 402 drivers/gpu/drm/i2c/sil164_drv.c struct drm_encoder_slave *encoder) encoder 410 drivers/gpu/drm/i2c/sil164_drv.c encoder->slave_priv = priv; encoder 411 drivers/gpu/drm/i2c/sil164_drv.c encoder->slave_funcs = &sil164_encoder_funcs; encoder 78 drivers/gpu/drm/i2c/tda998x_drv.c struct drm_encoder encoder; encoder 91 drivers/gpu/drm/i2c/tda998x_drv.c container_of(x, struct tda998x_priv, encoder) encoder 1321 drivers/gpu/drm/i2c/tda998x_drv.c return priv->bridge.encoder; encoder 1351 drivers/gpu/drm/i2c/tda998x_drv.c priv->bridge.encoder); encoder 1994 drivers/gpu/drm/i2c/tda998x_drv.c static void tda998x_encoder_destroy(struct drm_encoder *encoder) encoder 1996 drivers/gpu/drm/i2c/tda998x_drv.c drm_encoder_cleanup(encoder); encoder 2018 drivers/gpu/drm/i2c/tda998x_drv.c priv->encoder.possible_crtcs = crtcs; encoder 2020 drivers/gpu/drm/i2c/tda998x_drv.c ret = drm_encoder_init(drm, &priv->encoder, &tda998x_encoder_funcs, encoder 2025 drivers/gpu/drm/i2c/tda998x_drv.c ret = drm_bridge_attach(&priv->encoder, &priv->bridge, NULL); encoder 2032 drivers/gpu/drm/i2c/tda998x_drv.c drm_encoder_cleanup(&priv->encoder); encoder 2049 drivers/gpu/drm/i2c/tda998x_drv.c drm_encoder_cleanup(&priv->encoder); encoder 76 drivers/gpu/drm/i915/display/icl_dsi.c static void wait_for_cmds_dispatched_to_panel(struct intel_encoder *encoder) encoder 78 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 79 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 201 drivers/gpu/drm/i915/display/icl_dsi.c static void dsi_program_swing_and_deemphasis(struct intel_encoder *encoder) encoder 203 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 204 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 265 drivers/gpu/drm/i915/display/icl_dsi.c static void configure_dual_link_mode(struct intel_encoder *encoder, encoder 268 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 269 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 304 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_program_esc_clk_div(struct intel_encoder *encoder) encoder 306 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 307 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 346 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_enable_io_power(struct intel_encoder *encoder) encoder 348 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 349 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 362 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_power_up_lanes(struct intel_encoder *encoder) encoder 364 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 365 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 373 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_config_phy_lanes_sequence(struct intel_encoder *encoder) encoder 375 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 376 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 422 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_voltage_swing_program_seq(struct intel_encoder *encoder) encoder 424 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 425 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 461 drivers/gpu/drm/i915/display/icl_dsi.c dsi_program_swing_and_deemphasis(encoder); encoder 474 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_enable_ddi_buffer(struct intel_encoder *encoder) encoder 476 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 477 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 493 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_setup_dphy_timings(struct intel_encoder *encoder) encoder 495 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 496 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 559 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_gate_clocks(struct intel_encoder *encoder) encoder 561 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 562 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 575 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_ungate_clocks(struct intel_encoder *encoder) encoder 577 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 578 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 591 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_map_pll(struct intel_encoder *encoder, encoder 594 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 595 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 623 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_configure_transcoder(struct intel_encoder *encoder, encoder 626 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 627 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 722 drivers/gpu/drm/i915/display/icl_dsi.c configure_dual_link_mode(encoder, pipe_config); encoder 765 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_set_transcoder_timings(struct intel_encoder *encoder, encoder 768 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 769 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 886 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_enable_transcoder(struct intel_encoder *encoder) encoder 888 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 889 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 907 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_setup_timeouts(struct intel_encoder *encoder) encoder 909 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 910 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 957 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_enable_port_and_phy(struct intel_encoder *encoder, encoder 960 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 963 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_power_up_lanes(encoder); encoder 966 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_config_phy_lanes_sequence(encoder); encoder 969 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_voltage_swing_program_seq(encoder); encoder 972 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_enable_ddi_buffer(encoder); encoder 975 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_setup_dphy_timings(encoder); encoder 978 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_setup_timeouts(encoder); encoder 981 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_configure_transcoder(encoder, pipe_config); encoder 985 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_gate_clocks(encoder); encoder 988 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_powerup_panel(struct intel_encoder *encoder) encoder 990 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 991 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1024 drivers/gpu/drm/i915/display/icl_dsi.c wait_for_cmds_dispatched_to_panel(encoder); encoder 1027 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_pre_pll_enable(struct intel_encoder *encoder, encoder 1032 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_enable_io_power(encoder); encoder 1035 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_program_esc_clk_div(encoder); encoder 1038 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_pre_enable(struct intel_encoder *encoder, encoder 1042 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1045 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_map_pll(encoder, pipe_config); encoder 1048 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_enable_port_and_phy(encoder, pipe_config); encoder 1051 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_powerup_panel(encoder); encoder 1054 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_set_transcoder_timings(encoder, pipe_config); encoder 1057 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_enable_transcoder(encoder); encoder 1064 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_disable_transcoder(struct intel_encoder *encoder) encoder 1066 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1067 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1087 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_powerdown_panel(struct intel_encoder *encoder) encoder 1089 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1096 drivers/gpu/drm/i915/display/icl_dsi.c wait_for_cmds_dispatched_to_panel(encoder); encoder 1099 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_deconfigure_trancoder(struct intel_encoder *encoder) encoder 1101 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1102 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1140 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_disable_port(struct intel_encoder *encoder) encoder 1142 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1143 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1147 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_ungate_clocks(encoder); encoder 1159 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_gate_clocks(encoder); encoder 1162 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_disable_io_power(struct intel_encoder *encoder) encoder 1164 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1165 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1188 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_disable(struct intel_encoder *encoder, encoder 1192 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1199 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_disable_transcoder(encoder); encoder 1202 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_powerdown_panel(encoder); encoder 1205 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_deconfigure_trancoder(encoder); encoder 1208 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_disable_port(encoder); encoder 1211 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_disable_io_power(encoder); encoder 1214 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_get_timings(struct intel_encoder *encoder, encoder 1217 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1241 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_get_config(struct intel_encoder *encoder, encoder 1244 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1246 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1256 drivers/gpu/drm/i915/display/icl_dsi.c gen11_dsi_get_timings(encoder, pipe_config); encoder 1261 drivers/gpu/drm/i915/display/icl_dsi.c static int gen11_dsi_compute_config(struct intel_encoder *encoder, encoder 1265 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = container_of(encoder, struct intel_dsi, encoder 1292 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_get_power_domains(struct intel_encoder *encoder, encoder 1295 drivers/gpu/drm/i915/display/icl_dsi.c get_dsi_io_power_domains(to_i915(encoder->base.dev), encoder 1296 drivers/gpu/drm/i915/display/icl_dsi.c enc_to_intel_dsi(&encoder->base)); encoder 1299 drivers/gpu/drm/i915/display/icl_dsi.c static bool gen11_dsi_get_hw_state(struct intel_encoder *encoder, encoder 1302 drivers/gpu/drm/i915/display/icl_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1303 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1311 drivers/gpu/drm/i915/display/icl_dsi.c encoder->power_domain); encoder 1337 drivers/gpu/drm/i915/display/icl_dsi.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 1341 drivers/gpu/drm/i915/display/icl_dsi.c static void gen11_dsi_encoder_destroy(struct drm_encoder *encoder) encoder 1343 drivers/gpu/drm/i915/display/icl_dsi.c intel_encoder_destroy(encoder); encoder 1550 drivers/gpu/drm/i915/display/icl_dsi.c struct intel_encoder *encoder; encoder 1569 drivers/gpu/drm/i915/display/icl_dsi.c encoder = &intel_dsi->base; encoder 1574 drivers/gpu/drm/i915/display/icl_dsi.c drm_encoder_init(dev, &encoder->base, &gen11_dsi_encoder_funcs, encoder 1577 drivers/gpu/drm/i915/display/icl_dsi.c encoder->pre_pll_enable = gen11_dsi_pre_pll_enable; encoder 1578 drivers/gpu/drm/i915/display/icl_dsi.c encoder->pre_enable = gen11_dsi_pre_enable; encoder 1579 drivers/gpu/drm/i915/display/icl_dsi.c encoder->disable = gen11_dsi_disable; encoder 1580 drivers/gpu/drm/i915/display/icl_dsi.c encoder->port = port; encoder 1581 drivers/gpu/drm/i915/display/icl_dsi.c encoder->get_config = gen11_dsi_get_config; encoder 1582 drivers/gpu/drm/i915/display/icl_dsi.c encoder->update_pipe = intel_panel_update_backlight; encoder 1583 drivers/gpu/drm/i915/display/icl_dsi.c encoder->compute_config = gen11_dsi_compute_config; encoder 1584 drivers/gpu/drm/i915/display/icl_dsi.c encoder->get_hw_state = gen11_dsi_get_hw_state; encoder 1585 drivers/gpu/drm/i915/display/icl_dsi.c encoder->type = INTEL_OUTPUT_DSI; encoder 1586 drivers/gpu/drm/i915/display/icl_dsi.c encoder->cloneable = 0; encoder 1587 drivers/gpu/drm/i915/display/icl_dsi.c encoder->crtc_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C); encoder 1588 drivers/gpu/drm/i915/display/icl_dsi.c encoder->power_domain = POWER_DOMAIN_PORT_DSI; encoder 1589 drivers/gpu/drm/i915/display/icl_dsi.c encoder->get_power_domains = gen11_dsi_get_power_domains; encoder 1601 drivers/gpu/drm/i915/display/icl_dsi.c intel_connector_attach_encoder(intel_connector, encoder); encoder 1644 drivers/gpu/drm/i915/display/icl_dsi.c drm_encoder_cleanup(&encoder->base); encoder 310 drivers/gpu/drm/i915/display/intel_audio.c static void g4x_audio_codec_disable(struct intel_encoder *encoder, encoder 314 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 331 drivers/gpu/drm/i915/display/intel_audio.c static void g4x_audio_codec_enable(struct intel_encoder *encoder, encoder 335 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 372 drivers/gpu/drm/i915/display/intel_audio.c hsw_dp_audio_config_update(struct intel_encoder *encoder, encoder 375 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 378 drivers/gpu/drm/i915/display/intel_audio.c enum port port = encoder->port; encoder 419 drivers/gpu/drm/i915/display/intel_audio.c hsw_hdmi_audio_config_update(struct intel_encoder *encoder, encoder 422 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 425 drivers/gpu/drm/i915/display/intel_audio.c enum port port = encoder->port; encoder 461 drivers/gpu/drm/i915/display/intel_audio.c hsw_audio_config_update(struct intel_encoder *encoder, encoder 465 drivers/gpu/drm/i915/display/intel_audio.c hsw_dp_audio_config_update(encoder, crtc_state); encoder 467 drivers/gpu/drm/i915/display/intel_audio.c hsw_hdmi_audio_config_update(encoder, crtc_state); encoder 470 drivers/gpu/drm/i915/display/intel_audio.c static void hsw_audio_codec_disable(struct intel_encoder *encoder, encoder 474 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 502 drivers/gpu/drm/i915/display/intel_audio.c static void hsw_audio_codec_enable(struct intel_encoder *encoder, encoder 506 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 547 drivers/gpu/drm/i915/display/intel_audio.c hsw_audio_config_update(encoder, crtc_state); encoder 552 drivers/gpu/drm/i915/display/intel_audio.c static void ilk_audio_codec_disable(struct intel_encoder *encoder, encoder 556 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 559 drivers/gpu/drm/i915/display/intel_audio.c enum port port = encoder->port; encoder 598 drivers/gpu/drm/i915/display/intel_audio.c static void ilk_audio_codec_enable(struct intel_encoder *encoder, encoder 602 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 606 drivers/gpu/drm/i915/display/intel_audio.c enum port port = encoder->port; encoder 686 drivers/gpu/drm/i915/display/intel_audio.c void intel_audio_codec_enable(struct intel_encoder *encoder, encoder 690 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 696 drivers/gpu/drm/i915/display/intel_audio.c enum port port = encoder->port; encoder 707 drivers/gpu/drm/i915/display/intel_audio.c connector->encoder->base.id, encoder 708 drivers/gpu/drm/i915/display/intel_audio.c connector->encoder->name); encoder 713 drivers/gpu/drm/i915/display/intel_audio.c dev_priv->display.audio_codec_enable(encoder, encoder 718 drivers/gpu/drm/i915/display/intel_audio.c encoder->audio_connector = connector; encoder 721 drivers/gpu/drm/i915/display/intel_audio.c dev_priv->av_enc_map[pipe] = encoder; encoder 747 drivers/gpu/drm/i915/display/intel_audio.c void intel_audio_codec_disable(struct intel_encoder *encoder, encoder 751 drivers/gpu/drm/i915/display/intel_audio.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 754 drivers/gpu/drm/i915/display/intel_audio.c enum port port = encoder->port; encoder 758 drivers/gpu/drm/i915/display/intel_audio.c dev_priv->display.audio_codec_disable(encoder, encoder 763 drivers/gpu/drm/i915/display/intel_audio.c encoder->audio_connector = NULL; encoder 929 drivers/gpu/drm/i915/display/intel_audio.c struct intel_encoder *encoder; encoder 936 drivers/gpu/drm/i915/display/intel_audio.c encoder = dev_priv->av_enc_map[pipe]; encoder 942 drivers/gpu/drm/i915/display/intel_audio.c if (encoder != NULL && encoder->port == port && encoder 943 drivers/gpu/drm/i915/display/intel_audio.c encoder->type == INTEL_OUTPUT_DP_MST) encoder 944 drivers/gpu/drm/i915/display/intel_audio.c return encoder; encoder 952 drivers/gpu/drm/i915/display/intel_audio.c encoder = dev_priv->av_enc_map[pipe]; encoder 953 drivers/gpu/drm/i915/display/intel_audio.c if (encoder == NULL) encoder 956 drivers/gpu/drm/i915/display/intel_audio.c if (encoder->type == INTEL_OUTPUT_DP_MST) encoder 959 drivers/gpu/drm/i915/display/intel_audio.c if (port == encoder->port) encoder 960 drivers/gpu/drm/i915/display/intel_audio.c return encoder; encoder 971 drivers/gpu/drm/i915/display/intel_audio.c struct intel_encoder *encoder; encoder 983 drivers/gpu/drm/i915/display/intel_audio.c encoder = get_saved_enc(dev_priv, port, pipe); encoder 984 drivers/gpu/drm/i915/display/intel_audio.c if (!encoder || !encoder->base.crtc) { encoder 990 drivers/gpu/drm/i915/display/intel_audio.c crtc = to_intel_crtc(encoder->base.crtc); encoder 995 drivers/gpu/drm/i915/display/intel_audio.c hsw_audio_config_update(encoder, crtc->config); encoder 15 drivers/gpu/drm/i915/display/intel_audio.h void intel_audio_codec_enable(struct intel_encoder *encoder, encoder 18 drivers/gpu/drm/i915/display/intel_audio.h void intel_audio_codec_disable(struct intel_encoder *encoder, encoder 142 drivers/gpu/drm/i915/display/intel_connector.c struct intel_encoder *encoder) encoder 144 drivers/gpu/drm/i915/display/intel_connector.c connector->encoder = encoder; encoder 145 drivers/gpu/drm/i915/display/intel_connector.c drm_connector_attach_encoder(&connector->base, &encoder->base); encoder 156 drivers/gpu/drm/i915/display/intel_connector.c struct intel_encoder *encoder = connector->encoder; encoder 158 drivers/gpu/drm/i915/display/intel_connector.c return encoder->get_hw_state(encoder, &pipe); encoder 24 drivers/gpu/drm/i915/display/intel_connector.h struct intel_encoder *encoder); encoder 63 drivers/gpu/drm/i915/display/intel_crt.c static struct intel_crt *intel_encoder_to_crt(struct intel_encoder *encoder) encoder 65 drivers/gpu/drm/i915/display/intel_crt.c return container_of(encoder, struct intel_crt, base); encoder 89 drivers/gpu/drm/i915/display/intel_crt.c static bool intel_crt_get_hw_state(struct intel_encoder *encoder, encoder 92 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 93 drivers/gpu/drm/i915/display/intel_crt.c struct intel_crt *crt = intel_encoder_to_crt(encoder); encoder 98 drivers/gpu/drm/i915/display/intel_crt.c encoder->power_domain); encoder 104 drivers/gpu/drm/i915/display/intel_crt.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 109 drivers/gpu/drm/i915/display/intel_crt.c static unsigned int intel_crt_get_flags(struct intel_encoder *encoder) encoder 111 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 112 drivers/gpu/drm/i915/display/intel_crt.c struct intel_crt *crt = intel_encoder_to_crt(encoder); encoder 130 drivers/gpu/drm/i915/display/intel_crt.c static void intel_crt_get_config(struct intel_encoder *encoder, encoder 135 drivers/gpu/drm/i915/display/intel_crt.c pipe_config->base.adjusted_mode.flags |= intel_crt_get_flags(encoder); encoder 140 drivers/gpu/drm/i915/display/intel_crt.c static void hsw_crt_get_config(struct intel_encoder *encoder, encoder 143 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 145 drivers/gpu/drm/i915/display/intel_crt.c intel_ddi_get_config(encoder, pipe_config); encoder 151 drivers/gpu/drm/i915/display/intel_crt.c pipe_config->base.adjusted_mode.flags |= intel_crt_get_flags(encoder); encoder 158 drivers/gpu/drm/i915/display/intel_crt.c static void intel_crt_set_dpms(struct intel_encoder *encoder, encoder 162 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 163 drivers/gpu/drm/i915/display/intel_crt.c struct intel_crt *crt = intel_encoder_to_crt(encoder); encoder 207 drivers/gpu/drm/i915/display/intel_crt.c static void intel_disable_crt(struct intel_encoder *encoder, encoder 211 drivers/gpu/drm/i915/display/intel_crt.c intel_crt_set_dpms(encoder, old_crtc_state, DRM_MODE_DPMS_OFF); encoder 214 drivers/gpu/drm/i915/display/intel_crt.c static void pch_disable_crt(struct intel_encoder *encoder, encoder 220 drivers/gpu/drm/i915/display/intel_crt.c static void pch_post_disable_crt(struct intel_encoder *encoder, encoder 224 drivers/gpu/drm/i915/display/intel_crt.c intel_disable_crt(encoder, old_crtc_state, old_conn_state); encoder 227 drivers/gpu/drm/i915/display/intel_crt.c static void hsw_disable_crt(struct intel_encoder *encoder, encoder 231 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 238 drivers/gpu/drm/i915/display/intel_crt.c static void hsw_post_disable_crt(struct intel_encoder *encoder, encoder 242 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 246 drivers/gpu/drm/i915/display/intel_crt.c pch_post_disable_crt(encoder, old_crtc_state, old_conn_state); encoder 251 drivers/gpu/drm/i915/display/intel_crt.c intel_ddi_fdi_post_disable(encoder, old_crtc_state, old_conn_state); encoder 258 drivers/gpu/drm/i915/display/intel_crt.c static void hsw_pre_pll_enable_crt(struct intel_encoder *encoder, encoder 262 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 269 drivers/gpu/drm/i915/display/intel_crt.c static void hsw_pre_enable_crt(struct intel_encoder *encoder, encoder 273 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 286 drivers/gpu/drm/i915/display/intel_crt.c static void hsw_enable_crt(struct intel_encoder *encoder, encoder 290 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 296 drivers/gpu/drm/i915/display/intel_crt.c intel_crt_set_dpms(encoder, crtc_state, DRM_MODE_DPMS_ON); encoder 304 drivers/gpu/drm/i915/display/intel_crt.c static void intel_enable_crt(struct intel_encoder *encoder, encoder 308 drivers/gpu/drm/i915/display/intel_crt.c intel_crt_set_dpms(encoder, crtc_state, DRM_MODE_DPMS_ON); encoder 356 drivers/gpu/drm/i915/display/intel_crt.c static int intel_crt_compute_config(struct intel_encoder *encoder, encoder 371 drivers/gpu/drm/i915/display/intel_crt.c static int pch_crt_compute_config(struct intel_encoder *encoder, encoder 387 drivers/gpu/drm/i915/display/intel_crt.c static int hsw_crt_compute_config(struct intel_encoder *encoder, encoder 391 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 905 drivers/gpu/drm/i915/display/intel_crt.c void intel_crt_reset(struct drm_encoder *encoder) encoder 907 drivers/gpu/drm/i915/display/intel_crt.c struct drm_i915_private *dev_priv = to_i915(encoder->dev); encoder 908 drivers/gpu/drm/i915/display/intel_crt.c struct intel_crt *crt = intel_encoder_to_crt(to_intel_encoder(encoder)); encoder 19 drivers/gpu/drm/i915/display/intel_crt.h void intel_crt_reset(struct drm_encoder *encoder); encoder 919 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_prepare_dp_ddi_buffers(struct intel_encoder *encoder, encoder 922 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 925 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 956 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_prepare_hdmi_ddi_buffers(struct intel_encoder *encoder, encoder 959 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 962 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 1019 drivers/gpu/drm/i915/display/intel_ddi.c static u32 icl_pll_to_ddi_clk_sel(struct intel_encoder *encoder, encoder 1070 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder; encoder 1073 drivers/gpu/drm/i915/display/intel_ddi.c for_each_encoder_on_crtc(dev, &crtc->base, encoder) { encoder 1074 drivers/gpu/drm/i915/display/intel_ddi.c WARN_ON(encoder->type != INTEL_OUTPUT_ANALOG); encoder 1075 drivers/gpu/drm/i915/display/intel_ddi.c intel_prepare_dp_ddi_buffers(encoder, crtc_state); encoder 1197 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder) encoder 1199 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 1201 drivers/gpu/drm/i915/display/intel_ddi.c enc_to_dig_port(&encoder->base); encoder 1212 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder, *ret = NULL; encoder 1215 drivers/gpu/drm/i915/display/intel_ddi.c for_each_encoder_on_crtc(dev, &crtc->base, encoder) { encoder 1216 drivers/gpu/drm/i915/display/intel_ddi.c ret = encoder; encoder 1485 drivers/gpu/drm/i915/display/intel_ddi.c static void icl_ddi_clock_get(struct intel_encoder *encoder, encoder 1488 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1490 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 1511 drivers/gpu/drm/i915/display/intel_ddi.c static void cnl_ddi_clock_get(struct intel_encoder *encoder, encoder 1514 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1560 drivers/gpu/drm/i915/display/intel_ddi.c static void skl_ddi_clock_get(struct intel_encoder *encoder, encoder 1607 drivers/gpu/drm/i915/display/intel_ddi.c static void hsw_ddi_clock_get(struct intel_encoder *encoder, encoder 1610 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1669 drivers/gpu/drm/i915/display/intel_ddi.c static void bxt_ddi_clock_get(struct intel_encoder *encoder, encoder 1678 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_clock_get(struct intel_encoder *encoder, encoder 1681 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1684 drivers/gpu/drm/i915/display/intel_ddi.c icl_ddi_clock_get(encoder, pipe_config); encoder 1686 drivers/gpu/drm/i915/display/intel_ddi.c cnl_ddi_clock_get(encoder, pipe_config); encoder 1688 drivers/gpu/drm/i915/display/intel_ddi.c bxt_ddi_clock_get(encoder, pipe_config); encoder 1690 drivers/gpu/drm/i915/display/intel_ddi.c skl_ddi_clock_get(encoder, pipe_config); encoder 1692 drivers/gpu/drm/i915/display/intel_ddi.c hsw_ddi_clock_get(encoder, pipe_config); encoder 1767 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder = intel_ddi_get_crtc_encoder(crtc); encoder 1771 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 1911 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder = intel_connector->encoder; encoder 1913 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 1921 drivers/gpu/drm/i915/display/intel_ddi.c encoder->power_domain); encoder 1925 drivers/gpu/drm/i915/display/intel_ddi.c if (!encoder->get_hw_state(encoder, &pipe)) { encoder 1964 drivers/gpu/drm/i915/display/intel_ddi.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 1969 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_get_encoder_pipes(struct intel_encoder *encoder, encoder 1972 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_device *dev = encoder->base.dev; encoder 1974 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 1984 drivers/gpu/drm/i915/display/intel_ddi.c encoder->power_domain); encoder 2073 drivers/gpu/drm/i915/display/intel_ddi.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 2076 drivers/gpu/drm/i915/display/intel_ddi.c bool intel_ddi_get_hw_state(struct intel_encoder *encoder, encoder 2082 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_get_encoder_pipes(encoder, &pipe_mask, &is_mst); encoder 2111 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_get_power_domains(struct intel_encoder *encoder, encoder 2114 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2116 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 2126 drivers/gpu/drm/i915/display/intel_ddi.c dig_port = enc_to_dig_port(&encoder->base); encoder 2154 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder = intel_ddi_get_crtc_encoder(crtc); encoder 2155 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2197 drivers/gpu/drm/i915/display/intel_ddi.c static void skl_ddi_set_iboost(struct intel_encoder *encoder, encoder 2200 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(&encoder->base); encoder 2201 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2202 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2241 drivers/gpu/drm/i915/display/intel_ddi.c static void bxt_ddi_vswing_sequence(struct intel_encoder *encoder, encoder 2244 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2246 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2268 drivers/gpu/drm/i915/display/intel_ddi.c u8 intel_ddi_dp_voltage_max(struct intel_encoder *encoder) encoder 2270 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2271 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 2272 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2278 drivers/gpu/drm/i915/display/intel_ddi.c icl_get_combo_buf_trans(dev_priv, encoder->type, encoder 2283 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_EDP) encoder 2288 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_EDP) encoder 2293 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_EDP) encoder 2313 drivers/gpu/drm/i915/display/intel_ddi.c u8 intel_ddi_dp_pre_emphasis_max(struct intel_encoder *encoder, u8 voltage_swing) encoder 2328 drivers/gpu/drm/i915/display/intel_ddi.c static void cnl_ddi_vswing_program(struct intel_encoder *encoder, encoder 2331 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2333 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2392 drivers/gpu/drm/i915/display/intel_ddi.c static void cnl_ddi_vswing_sequence(struct intel_encoder *encoder, encoder 2395 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2396 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2404 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 2451 drivers/gpu/drm/i915/display/intel_ddi.c cnl_ddi_vswing_program(encoder, level, type); encoder 2515 drivers/gpu/drm/i915/display/intel_ddi.c static void icl_combo_phy_ddi_vswing_sequence(struct intel_encoder *encoder, encoder 2519 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2520 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 2530 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 2585 drivers/gpu/drm/i915/display/intel_ddi.c static void icl_mg_phy_ddi_vswing_sequence(struct intel_encoder *encoder, encoder 2589 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2590 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2704 drivers/gpu/drm/i915/display/intel_ddi.c static void icl_ddi_vswing_sequence(struct intel_encoder *encoder, encoder 2709 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2710 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 2713 drivers/gpu/drm/i915/display/intel_ddi.c icl_combo_phy_ddi_vswing_sequence(encoder, level, type); encoder 2715 drivers/gpu/drm/i915/display/intel_ddi.c icl_mg_phy_ddi_vswing_sequence(encoder, link_clock, level); encoder 2746 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder = &dport->base; encoder 2750 drivers/gpu/drm/i915/display/intel_ddi.c icl_ddi_vswing_sequence(encoder, intel_dp->link_rate, encoder 2751 drivers/gpu/drm/i915/display/intel_ddi.c level, encoder->type); encoder 2753 drivers/gpu/drm/i915/display/intel_ddi.c cnl_ddi_vswing_sequence(encoder, level, encoder->type); encoder 2755 drivers/gpu/drm/i915/display/intel_ddi.c bxt_ddi_vswing_sequence(encoder, level, encoder->type); encoder 2764 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder = &dport->base; encoder 2768 drivers/gpu/drm/i915/display/intel_ddi.c skl_ddi_set_iboost(encoder, level, encoder->type); encoder 2789 drivers/gpu/drm/i915/display/intel_ddi.c static void icl_map_plls_to_ports(struct intel_encoder *encoder, encoder 2792 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2794 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 2825 drivers/gpu/drm/i915/display/intel_ddi.c static void icl_unmap_plls_to_ports(struct intel_encoder *encoder) encoder 2827 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2828 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 2840 drivers/gpu/drm/i915/display/intel_ddi.c void icl_sanitize_encoder_pll_mapping(struct intel_encoder *encoder) encoder 2842 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2852 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_DP_MST) encoder 2855 drivers/gpu/drm/i915/display/intel_ddi.c if (!encoder->base.crtc && intel_encoder_is_dp(encoder)) { encoder 2859 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_get_encoder_pipes(encoder, &pipe_mask, &is_mst); encoder 2868 drivers/gpu/drm/i915/display/intel_ddi.c port_mask = BIT(encoder->port); encoder 2869 drivers/gpu/drm/i915/display/intel_ddi.c ddi_clk_needed = encoder->base.crtc; encoder 2871 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_DSI) { encoder 2874 drivers/gpu/drm/i915/display/intel_ddi.c port_mask = intel_dsi_encoder_ports(encoder); encoder 2880 drivers/gpu/drm/i915/display/intel_ddi.c if (other_encoder == encoder) encoder 2918 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_clk_select(struct intel_encoder *encoder, encoder 2921 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2922 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 2935 drivers/gpu/drm/i915/display/intel_ddi.c icl_pll_to_ddi_clk_sel(encoder, crtc_state)); encoder 2975 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_clk_disable(struct intel_encoder *encoder) encoder 2977 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2978 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3132 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_enable_fec(struct intel_encoder *encoder, encoder 3135 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3136 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3151 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_disable_fec_state(struct intel_encoder *encoder, encoder 3154 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3155 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3167 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_pre_enable_dp(struct intel_encoder *encoder, encoder 3171 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3172 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3173 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3175 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3186 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_clk_select(encoder, crtc_state); encoder 3197 drivers/gpu/drm/i915/display/intel_ddi.c icl_ddi_vswing_sequence(encoder, crtc_state->port_clock, encoder 3198 drivers/gpu/drm/i915/display/intel_ddi.c level, encoder->type); encoder 3200 drivers/gpu/drm/i915/display/intel_ddi.c cnl_ddi_vswing_sequence(encoder, level, encoder->type); encoder 3202 drivers/gpu/drm/i915/display/intel_ddi.c bxt_ddi_vswing_sequence(encoder, level, encoder->type); encoder 3204 drivers/gpu/drm/i915/display/intel_ddi.c intel_prepare_dp_ddi_buffers(encoder, crtc_state); encoder 3215 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_init_dp_buf_reg(encoder); encoder 3225 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_enable_fec(encoder, crtc_state); encoder 3232 drivers/gpu/drm/i915/display/intel_ddi.c intel_dsc_enable(encoder, crtc_state); encoder 3235 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_pre_enable_hdmi(struct intel_encoder *encoder, encoder 3239 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(&encoder->base); encoder 3241 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3242 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3244 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3247 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_clk_select(encoder, crtc_state); encoder 3255 drivers/gpu/drm/i915/display/intel_ddi.c icl_ddi_vswing_sequence(encoder, crtc_state->port_clock, encoder 3258 drivers/gpu/drm/i915/display/intel_ddi.c cnl_ddi_vswing_sequence(encoder, level, INTEL_OUTPUT_HDMI); encoder 3260 drivers/gpu/drm/i915/display/intel_ddi.c bxt_ddi_vswing_sequence(encoder, level, INTEL_OUTPUT_HDMI); encoder 3262 drivers/gpu/drm/i915/display/intel_ddi.c intel_prepare_hdmi_ddi_buffers(encoder, level); encoder 3267 drivers/gpu/drm/i915/display/intel_ddi.c skl_ddi_set_iboost(encoder, level, INTEL_OUTPUT_HDMI); encoder 3271 drivers/gpu/drm/i915/display/intel_ddi.c intel_dig_port->set_infoframes(encoder, encoder 3276 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_pre_enable(struct intel_encoder *encoder, encoder 3300 drivers/gpu/drm/i915/display/intel_ddi.c icl_map_plls_to_ports(encoder, crtc_state); encoder 3305 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_pre_enable_hdmi(encoder, crtc_state, conn_state); encoder 3308 drivers/gpu/drm/i915/display/intel_ddi.c enc_to_intel_lspcon(&encoder->base); encoder 3310 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_pre_enable_dp(encoder, crtc_state, conn_state); encoder 3313 drivers/gpu/drm/i915/display/intel_ddi.c enc_to_dig_port(&encoder->base); encoder 3315 drivers/gpu/drm/i915/display/intel_ddi.c dig_port->set_infoframes(encoder, encoder 3322 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_disable_ddi_buf(struct intel_encoder *encoder, encoder 3325 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3326 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3343 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_disable_fec_state(encoder, crtc_state); encoder 3349 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_post_disable_dp(struct intel_encoder *encoder, encoder 3353 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3354 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3358 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 3369 drivers/gpu/drm/i915/display/intel_ddi.c intel_disable_ddi_buf(encoder, old_crtc_state); encoder 3379 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_clk_disable(encoder); encoder 3382 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_post_disable_hdmi(struct intel_encoder *encoder, encoder 3386 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3387 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3390 drivers/gpu/drm/i915/display/intel_ddi.c dig_port->set_infoframes(encoder, false, encoder 3395 drivers/gpu/drm/i915/display/intel_ddi.c intel_disable_ddi_buf(encoder, old_crtc_state); encoder 3400 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_clk_disable(encoder); encoder 3405 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_post_disable(struct intel_encoder *encoder, encoder 3409 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3425 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_post_disable_hdmi(encoder, encoder 3428 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_post_disable_dp(encoder, encoder 3432 drivers/gpu/drm/i915/display/intel_ddi.c icl_unmap_plls_to_ports(encoder); encoder 3435 drivers/gpu/drm/i915/display/intel_ddi.c void intel_ddi_fdi_post_disable(struct intel_encoder *encoder, encoder 3439 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3452 drivers/gpu/drm/i915/display/intel_ddi.c intel_disable_ddi_buf(encoder, old_crtc_state); encoder 3453 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_clk_disable(encoder); encoder 3469 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_enable_ddi_dp(struct intel_encoder *encoder, encoder 3473 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3474 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3475 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3486 drivers/gpu/drm/i915/display/intel_ddi.c intel_audio_codec_enable(encoder, crtc_state, conn_state); encoder 3509 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_enable_ddi_hdmi(struct intel_encoder *encoder, encoder 3513 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3514 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3516 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3518 drivers/gpu/drm/i915/display/intel_ddi.c if (!intel_hdmi_handle_sink_scrambling(encoder, connector, encoder 3567 drivers/gpu/drm/i915/display/intel_ddi.c intel_audio_codec_enable(encoder, crtc_state, conn_state); encoder 3570 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_enable_ddi(struct intel_encoder *encoder, encoder 3575 drivers/gpu/drm/i915/display/intel_ddi.c intel_enable_ddi_hdmi(encoder, crtc_state, conn_state); encoder 3577 drivers/gpu/drm/i915/display/intel_ddi.c intel_enable_ddi_dp(encoder, crtc_state, conn_state); encoder 3586 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_disable_ddi_dp(struct intel_encoder *encoder, encoder 3590 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3595 drivers/gpu/drm/i915/display/intel_ddi.c intel_audio_codec_disable(encoder, encoder 3606 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_disable_ddi_hdmi(struct intel_encoder *encoder, encoder 3613 drivers/gpu/drm/i915/display/intel_ddi.c intel_audio_codec_disable(encoder, encoder 3616 drivers/gpu/drm/i915/display/intel_ddi.c if (!intel_hdmi_handle_sink_scrambling(encoder, connector, encoder 3622 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_disable_ddi(struct intel_encoder *encoder, encoder 3629 drivers/gpu/drm/i915/display/intel_ddi.c intel_disable_ddi_hdmi(encoder, old_crtc_state, old_conn_state); encoder 3631 drivers/gpu/drm/i915/display/intel_ddi.c intel_disable_ddi_dp(encoder, old_crtc_state, old_conn_state); encoder 3634 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_update_pipe_dp(struct intel_encoder *encoder, encoder 3638 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3645 drivers/gpu/drm/i915/display/intel_ddi.c intel_panel_update_backlight(encoder, crtc_state, conn_state); encoder 3648 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_update_pipe(struct intel_encoder *encoder, encoder 3661 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_update_pipe_dp(encoder, crtc_state, conn_state); encoder 3691 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder, encoder 3700 drivers/gpu/drm/i915/display/intel_ddi.c intel_tc_port_get_link(enc_to_dig_port(&encoder->base), required_lanes); encoder 3702 drivers/gpu/drm/i915/display/intel_ddi.c intel_update_active_dpll(state, crtc, encoder); encoder 3707 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_encoder *encoder, encoder 3710 drivers/gpu/drm/i915/display/intel_ddi.c intel_tc_port_put_link(enc_to_dig_port(&encoder->base)); encoder 3714 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_pre_pll_enable(struct intel_encoder *encoder, encoder 3718 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3719 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3720 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 3737 drivers/gpu/drm/i915/display/intel_ddi.c bxt_ddi_phy_set_lane_optim_mask(encoder, encoder 3742 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_post_pll_disable(struct intel_encoder *encoder, encoder 3746 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3747 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 3748 drivers/gpu/drm/i915/display/intel_ddi.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 3827 drivers/gpu/drm/i915/display/intel_ddi.c void intel_ddi_get_config(struct intel_encoder *encoder, encoder 3830 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3873 drivers/gpu/drm/i915/display/intel_ddi.c intel_hdmi_infoframes_enabled(encoder, pipe_config); encoder 3891 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_EDP) encoder 3912 drivers/gpu/drm/i915/display/intel_ddi.c if (encoder->type == INTEL_OUTPUT_EDP && dev_priv->vbt.edp.bpp && encoder 3932 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_clock_get(encoder, pipe_config); encoder 3936 drivers/gpu/drm/i915/display/intel_ddi.c bxt_ddi_phy_get_lane_lat_optim_mask(encoder); encoder 3940 drivers/gpu/drm/i915/display/intel_ddi.c intel_hdmi_read_gcp_infoframe(encoder, pipe_config); encoder 3942 drivers/gpu/drm/i915/display/intel_ddi.c intel_read_infoframe(encoder, pipe_config, encoder 3945 drivers/gpu/drm/i915/display/intel_ddi.c intel_read_infoframe(encoder, pipe_config, encoder 3948 drivers/gpu/drm/i915/display/intel_ddi.c intel_read_infoframe(encoder, pipe_config, encoder 3951 drivers/gpu/drm/i915/display/intel_ddi.c intel_read_infoframe(encoder, pipe_config, encoder 3957 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_compute_output_type(struct intel_encoder *encoder, encoder 3974 drivers/gpu/drm/i915/display/intel_ddi.c static int intel_ddi_compute_config(struct intel_encoder *encoder, encoder 3979 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3980 drivers/gpu/drm/i915/display/intel_ddi.c enum port port = encoder->port; encoder 3987 drivers/gpu/drm/i915/display/intel_ddi.c ret = intel_hdmi_compute_config(encoder, pipe_config, conn_state); encoder 3989 drivers/gpu/drm/i915/display/intel_ddi.c ret = intel_dp_compute_config(encoder, pipe_config, conn_state); encoder 4008 drivers/gpu/drm/i915/display/intel_ddi.c static void intel_ddi_encoder_destroy(struct drm_encoder *encoder) encoder 4010 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(encoder); encoder 4012 drivers/gpu/drm/i915/display/intel_ddi.c intel_dp_encoder_flush_work(encoder); encoder 4014 drivers/gpu/drm/i915/display/intel_ddi.c drm_encoder_cleanup(encoder); encoder 4073 drivers/gpu/drm/i915/display/intel_ddi.c static int intel_hdmi_reset_link(struct intel_encoder *encoder, encoder 4076 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 4077 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_hdmi *hdmi = enc_to_intel_hdmi(&encoder->base); encoder 4145 drivers/gpu/drm/i915/display/intel_ddi.c intel_ddi_hotplug(struct intel_encoder *encoder, encoder 4149 drivers/gpu/drm/i915/display/intel_ddi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 4154 drivers/gpu/drm/i915/display/intel_ddi.c state = intel_encoder_hotplug(encoder, connector, irq_received); encoder 4160 drivers/gpu/drm/i915/display/intel_ddi.c ret = intel_hdmi_reset_link(encoder, &ctx); encoder 4162 drivers/gpu/drm/i915/display/intel_ddi.c ret = intel_dp_retrain_link(encoder, &ctx); encoder 4281 drivers/gpu/drm/i915/display/intel_ddi.c struct drm_encoder *encoder; encoder 4312 drivers/gpu/drm/i915/display/intel_ddi.c encoder = &intel_encoder->base; encoder 4314 drivers/gpu/drm/i915/display/intel_ddi.c drm_encoder_init(&dev_priv->drm, encoder, &intel_ddi_funcs, encoder 4432 drivers/gpu/drm/i915/display/intel_ddi.c drm_encoder_cleanup(encoder); encoder 28 drivers/gpu/drm/i915/display/intel_ddi.h bool intel_ddi_get_hw_state(struct intel_encoder *encoder, enum pipe *pipe); encoder 35 drivers/gpu/drm/i915/display/intel_ddi.h void intel_ddi_get_config(struct intel_encoder *encoder, encoder 43 drivers/gpu/drm/i915/display/intel_ddi.h u8 intel_ddi_dp_voltage_max(struct intel_encoder *encoder); encoder 44 drivers/gpu/drm/i915/display/intel_ddi.h u8 intel_ddi_dp_pre_emphasis_max(struct intel_encoder *encoder, encoder 48 drivers/gpu/drm/i915/display/intel_ddi.h void icl_sanitize_encoder_pll_mapping(struct intel_encoder *encoder); encoder 5186 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = NULL; encoder 5194 drivers/gpu/drm/i915/display/intel_display.c encoder = to_intel_encoder(connector_state->best_encoder); encoder 5201 drivers/gpu/drm/i915/display/intel_display.c return encoder; encoder 6075 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 6080 drivers/gpu/drm/i915/display/intel_display.c encoder = intel_attached_encoder(&connector->base); encoder 6081 drivers/gpu/drm/i915/display/intel_display.c WARN_ON(!encoder); encoder 6083 drivers/gpu/drm/i915/display/intel_display.c return encoder; encoder 6110 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 6118 drivers/gpu/drm/i915/display/intel_display.c encoder = intel_connector_primary_encoder(to_intel_connector(conn)); encoder 6119 drivers/gpu/drm/i915/display/intel_display.c if (!encoder->update_prepare) encoder 6124 drivers/gpu/drm/i915/display/intel_display.c encoder->update_prepare(state, encoder, crtc); encoder 6137 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 6145 drivers/gpu/drm/i915/display/intel_display.c encoder = intel_connector_primary_encoder(to_intel_connector(conn)); encoder 6146 drivers/gpu/drm/i915/display/intel_display.c if (!encoder->update_complete) encoder 6151 drivers/gpu/drm/i915/display/intel_display.c encoder->update_complete(state, encoder, crtc); encoder 6164 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6170 drivers/gpu/drm/i915/display/intel_display.c if (encoder->pre_pll_enable) encoder 6171 drivers/gpu/drm/i915/display/intel_display.c encoder->pre_pll_enable(encoder, crtc_state, conn_state); encoder 6184 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6190 drivers/gpu/drm/i915/display/intel_display.c if (encoder->pre_enable) encoder 6191 drivers/gpu/drm/i915/display/intel_display.c encoder->pre_enable(encoder, crtc_state, conn_state); encoder 6204 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6210 drivers/gpu/drm/i915/display/intel_display.c if (encoder->enable) encoder 6211 drivers/gpu/drm/i915/display/intel_display.c encoder->enable(encoder, crtc_state, conn_state); encoder 6212 drivers/gpu/drm/i915/display/intel_display.c intel_opregion_notify_encoder(encoder, true); encoder 6225 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6231 drivers/gpu/drm/i915/display/intel_display.c intel_opregion_notify_encoder(encoder, false); encoder 6232 drivers/gpu/drm/i915/display/intel_display.c if (encoder->disable) encoder 6233 drivers/gpu/drm/i915/display/intel_display.c encoder->disable(encoder, old_crtc_state, old_conn_state); encoder 6246 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6252 drivers/gpu/drm/i915/display/intel_display.c if (encoder->post_disable) encoder 6253 drivers/gpu/drm/i915/display/intel_display.c encoder->post_disable(encoder, old_crtc_state, old_conn_state); encoder 6266 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6272 drivers/gpu/drm/i915/display/intel_display.c if (encoder->post_pll_disable) encoder 6273 drivers/gpu/drm/i915/display/intel_display.c encoder->post_pll_disable(encoder, old_crtc_state, old_conn_state); encoder 6286 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 6292 drivers/gpu/drm/i915/display/intel_display.c if (encoder->update_pipe) encoder 6293 drivers/gpu/drm/i915/display/intel_display.c encoder->update_pipe(encoder, crtc_state, conn_state); encoder 6792 drivers/gpu/drm/i915/display/intel_display.c struct drm_encoder *encoder; encoder 6806 drivers/gpu/drm/i915/display/intel_display.c drm_for_each_encoder_mask(encoder, &dev_priv->drm, encoder 6808 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *intel_encoder = to_intel_encoder(encoder); encoder 7035 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 7087 drivers/gpu/drm/i915/display/intel_display.c for_each_encoder_on_crtc(crtc->dev, crtc, encoder) encoder 7088 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc = NULL; encoder 7126 drivers/gpu/drm/i915/display/intel_display.c void intel_encoder_destroy(struct drm_encoder *encoder) encoder 7128 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *intel_encoder = to_intel_encoder(encoder); encoder 7130 drivers/gpu/drm/i915/display/intel_display.c drm_encoder_cleanup(encoder); encoder 7146 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = connector->encoder; encoder 7157 drivers/gpu/drm/i915/display/intel_display.c if (!encoder || encoder->type == INTEL_OUTPUT_DP_MST) encoder 7160 drivers/gpu/drm/i915/display/intel_display.c I915_STATE_WARN(conn_state->best_encoder != &encoder->base, encoder 7163 drivers/gpu/drm/i915/display/intel_display.c I915_STATE_WARN(conn_state->crtc != encoder->base.crtc, encoder 8886 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 8897 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 8898 drivers/gpu/drm/i915/display/intel_display.c switch (encoder->type) { encoder 8905 drivers/gpu/drm/i915/display/intel_display.c if (encoder->port == PORT_A) encoder 9320 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 9323 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 9324 drivers/gpu/drm/i915/display/intel_display.c switch (encoder->type) { encoder 10058 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder = encoder 10061 drivers/gpu/drm/i915/display/intel_display.c if (!intel_reserve_shared_dplls(state, crtc, encoder)) { encoder 11095 drivers/gpu/drm/i915/display/intel_display.c struct drm_encoder *encoder = &intel_encoder->base; encoder 11097 drivers/gpu/drm/i915/display/intel_display.c struct drm_device *dev = encoder->dev; encoder 11107 drivers/gpu/drm/i915/display/intel_display.c encoder->base.id, encoder->name); encoder 11138 drivers/gpu/drm/i915/display/intel_display.c if (!(encoder->possible_crtcs & (1 << i))) encoder 11250 drivers/gpu/drm/i915/display/intel_display.c struct drm_encoder *encoder = &intel_encoder->base; encoder 11256 drivers/gpu/drm/i915/display/intel_display.c encoder->base.id, encoder->name); encoder 11412 drivers/gpu/drm/i915/display/intel_display.c intel_encoder_current_mode(struct intel_encoder *encoder) encoder 11414 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 11420 drivers/gpu/drm/i915/display/intel_display.c if (!encoder->get_hw_state(encoder, &pipe)) encoder 11443 drivers/gpu/drm/i915/display/intel_display.c encoder->get_config(encoder, crtc_state); encoder 11641 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder) encoder 11654 drivers/gpu/drm/i915/display/intel_display.c if (!encoders_cloneable(encoder, source_encoder)) encoder 11863 drivers/gpu/drm/i915/display/intel_display.c if (connector->base.encoder) { encoder 11865 drivers/gpu/drm/i915/display/intel_display.c connector->base.encoder; encoder 11867 drivers/gpu/drm/i915/display/intel_display.c connector->base.encoder->crtc; encoder 12189 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 12200 drivers/gpu/drm/i915/display/intel_display.c encoder = to_intel_encoder(connector_state->best_encoder); encoder 12204 drivers/gpu/drm/i915/display/intel_display.c switch (encoder->type) { encoder 12213 drivers/gpu/drm/i915/display/intel_display.c port_mask = 1 << encoder->port; encoder 12223 drivers/gpu/drm/i915/display/intel_display.c 1 << encoder->port; encoder 12278 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 12328 drivers/gpu/drm/i915/display/intel_display.c encoder = to_intel_encoder(connector_state->best_encoder); encoder 12330 drivers/gpu/drm/i915/display/intel_display.c if (!check_single_encoder_cloning(state, to_intel_crtc(crtc), encoder)) { encoder 12339 drivers/gpu/drm/i915/display/intel_display.c if (encoder->compute_output_type) encoder 12341 drivers/gpu/drm/i915/display/intel_display.c BIT(encoder->compute_output_type(encoder, pipe_config, encoder 12344 drivers/gpu/drm/i915/display/intel_display.c pipe_config->output_types |= BIT(encoder->type); encoder 12364 drivers/gpu/drm/i915/display/intel_display.c encoder = to_intel_encoder(connector_state->best_encoder); encoder 12365 drivers/gpu/drm/i915/display/intel_display.c ret = encoder->compute_config(encoder, pipe_config, encoder 13023 drivers/gpu/drm/i915/display/intel_display.c struct drm_encoder *encoder = connector->encoder; encoder 13034 drivers/gpu/drm/i915/display/intel_display.c I915_STATE_WARN(new_conn_state->best_encoder != encoder, encoder 13042 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 13047 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 13052 drivers/gpu/drm/i915/display/intel_display.c encoder->base.base.id, encoder 13053 drivers/gpu/drm/i915/display/intel_display.c encoder->base.name); encoder 13057 drivers/gpu/drm/i915/display/intel_display.c if (old_conn_state->best_encoder == &encoder->base) encoder 13060 drivers/gpu/drm/i915/display/intel_display.c if (new_conn_state->best_encoder != &encoder->base) encoder 13065 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc, encoder 13072 drivers/gpu/drm/i915/display/intel_display.c I915_STATE_WARN(!!encoder->base.crtc != enabled, encoder 13075 drivers/gpu/drm/i915/display/intel_display.c !!encoder->base.crtc, enabled); encoder 13077 drivers/gpu/drm/i915/display/intel_display.c if (!encoder->base.crtc) { encoder 13080 drivers/gpu/drm/i915/display/intel_display.c active = encoder->get_hw_state(encoder, &pipe); encoder 13095 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 13123 drivers/gpu/drm/i915/display/intel_display.c for_each_encoder_on_crtc(dev, &crtc->base, encoder) { encoder 13126 drivers/gpu/drm/i915/display/intel_display.c active = encoder->get_hw_state(encoder, &pipe); encoder 13129 drivers/gpu/drm/i915/display/intel_display.c encoder->base.base.id, active, new_crtc_state->base.active); encoder 13136 drivers/gpu/drm/i915/display/intel_display.c encoder->get_config(encoder, pipe_config); encoder 15226 drivers/gpu/drm/i915/display/intel_display.c static int intel_encoder_clones(struct intel_encoder *encoder) encoder 15228 drivers/gpu/drm/i915/display/intel_display.c struct drm_device *dev = encoder->base.dev; encoder 15234 drivers/gpu/drm/i915/display/intel_display.c if (encoders_cloneable(encoder, source_encoder)) encoder 15317 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 15537 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 15538 drivers/gpu/drm/i915/display/intel_display.c encoder->base.possible_crtcs = encoder->crtc_mask; encoder 15539 drivers/gpu/drm/i915/display/intel_display.c encoder->base.possible_clones = encoder 15540 drivers/gpu/drm/i915/display/intel_display.c intel_encoder_clones(encoder); encoder 16408 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 16410 drivers/gpu/drm/i915/display/intel_display.c for_each_encoder_on_crtc(dev, &crtc->base, encoder) encoder 16416 drivers/gpu/drm/i915/display/intel_display.c static struct intel_connector *intel_encoder_find_connector(struct intel_encoder *encoder) encoder 16418 drivers/gpu/drm/i915/display/intel_display.c struct drm_device *dev = encoder->base.dev; encoder 16421 drivers/gpu/drm/i915/display/intel_display.c for_each_connector_on_encoder(dev, &encoder->base, connector) encoder 16527 drivers/gpu/drm/i915/display/intel_display.c static void intel_sanitize_encoder(struct intel_encoder *encoder) encoder 16529 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 16531 drivers/gpu/drm/i915/display/intel_display.c struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc); encoder 16547 drivers/gpu/drm/i915/display/intel_display.c connector = intel_encoder_find_connector(encoder); encoder 16550 drivers/gpu/drm/i915/display/intel_display.c encoder->base.base.id, encoder 16551 drivers/gpu/drm/i915/display/intel_display.c encoder->base.name); encoder 16560 drivers/gpu/drm/i915/display/intel_display.c encoder->base.base.id, encoder 16561 drivers/gpu/drm/i915/display/intel_display.c encoder->base.name); encoder 16565 drivers/gpu/drm/i915/display/intel_display.c connector->base.state->best_encoder = &encoder->base; encoder 16567 drivers/gpu/drm/i915/display/intel_display.c if (encoder->disable) encoder 16568 drivers/gpu/drm/i915/display/intel_display.c encoder->disable(encoder, crtc_state, encoder 16570 drivers/gpu/drm/i915/display/intel_display.c if (encoder->post_disable) encoder 16571 drivers/gpu/drm/i915/display/intel_display.c encoder->post_disable(encoder, crtc_state, encoder 16576 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc = NULL; encoder 16584 drivers/gpu/drm/i915/display/intel_display.c connector->base.encoder = NULL; encoder 16588 drivers/gpu/drm/i915/display/intel_display.c intel_opregion_notify_encoder(encoder, connector && has_active_crtc); encoder 16591 drivers/gpu/drm/i915/display/intel_display.c icl_sanitize_encoder_pll_mapping(encoder); encoder 16665 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 16723 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(dev, encoder) { encoder 16726 drivers/gpu/drm/i915/display/intel_display.c if (encoder->get_hw_state(encoder, &pipe)) { encoder 16732 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc = &crtc->base; encoder 16733 drivers/gpu/drm/i915/display/intel_display.c encoder->get_config(encoder, crtc_state); encoder 16735 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc = NULL; encoder 16739 drivers/gpu/drm/i915/display/intel_display.c encoder->base.base.id, encoder->base.name, encoder 16740 drivers/gpu/drm/i915/display/intel_display.c enableddisabled(encoder->base.crtc), encoder 16749 drivers/gpu/drm/i915/display/intel_display.c encoder = connector->encoder; encoder 16750 drivers/gpu/drm/i915/display/intel_display.c connector->base.encoder = &encoder->base; encoder 16752 drivers/gpu/drm/i915/display/intel_display.c if (encoder->base.crtc && encoder 16753 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc->state->active) { encoder 16759 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc->state->connector_mask |= encoder 16761 drivers/gpu/drm/i915/display/intel_display.c encoder->base.crtc->state->encoder_mask |= encoder 16762 drivers/gpu/drm/i915/display/intel_display.c drm_encoder_mask(&encoder->base); encoder 16767 drivers/gpu/drm/i915/display/intel_display.c connector->base.encoder = NULL; encoder 16771 drivers/gpu/drm/i915/display/intel_display.c enableddisabled(connector->base.encoder)); encoder 16841 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 16843 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 16846 drivers/gpu/drm/i915/display/intel_display.c if (!encoder->get_power_domains) encoder 16853 drivers/gpu/drm/i915/display/intel_display.c if (!encoder->base.crtc) encoder 16856 drivers/gpu/drm/i915/display/intel_display.c crtc_state = to_intel_crtc_state(encoder->base.crtc->state); encoder 16857 drivers/gpu/drm/i915/display/intel_display.c encoder->get_power_domains(encoder, crtc_state); encoder 16949 drivers/gpu/drm/i915/display/intel_display.c struct intel_encoder *encoder; encoder 16962 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(dev, encoder) { encoder 16963 drivers/gpu/drm/i915/display/intel_display.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 16966 drivers/gpu/drm/i915/display/intel_display.c if (encoder->type != INTEL_OUTPUT_DP_MST && encoder 16968 drivers/gpu/drm/i915/display/intel_display.c intel_tc_port_sanitize(enc_to_dig_port(&encoder->base)); encoder 16991 drivers/gpu/drm/i915/display/intel_display.c for_each_intel_encoder(dev, encoder) encoder 16992 drivers/gpu/drm/i915/display/intel_display.c intel_sanitize_encoder(encoder); encoder 370 drivers/gpu/drm/i915/display/intel_display.h for_each_if((intel_connector)->base.encoder == (__encoder)) encoder 449 drivers/gpu/drm/i915/display/intel_display.h void intel_encoder_destroy(struct drm_encoder *encoder); encoder 451 drivers/gpu/drm/i915/display/intel_display.h intel_encoder_current_mode(struct intel_encoder *encoder); encoder 535 drivers/gpu/drm/i915/display/intel_display_power.c struct intel_encoder *encoder; encoder 544 drivers/gpu/drm/i915/display/intel_display_power.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 545 drivers/gpu/drm/i915/display/intel_display_power.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 551 drivers/gpu/drm/i915/display/intel_display_power.c if (encoder->type == INTEL_OUTPUT_DP_MST) encoder 554 drivers/gpu/drm/i915/display/intel_display_power.c dig_port = enc_to_dig_port(&encoder->base); encoder 1169 drivers/gpu/drm/i915/display/intel_display_power.c struct intel_encoder *encoder; encoder 1206 drivers/gpu/drm/i915/display/intel_display_power.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 1207 drivers/gpu/drm/i915/display/intel_display_power.c if (encoder->type == INTEL_OUTPUT_ANALOG) encoder 1208 drivers/gpu/drm/i915/display/intel_display_power.c intel_crt_reset(&encoder->base); encoder 1578 drivers/gpu/drm/i915/display/intel_display_power.c void chv_phy_powergate_lanes(struct intel_encoder *encoder, encoder 1581 drivers/gpu/drm/i915/display/intel_display_power.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1583 drivers/gpu/drm/i915/display/intel_display_power.c enum dpio_phy phy = vlv_dport_to_phy(enc_to_dig_port(&encoder->base)); encoder 1584 drivers/gpu/drm/i915/display/intel_display_power.c enum dpio_channel ch = vlv_dport_to_channel(enc_to_dig_port(&encoder->base)); encoder 326 drivers/gpu/drm/i915/display/intel_display_power.h void chv_phy_powergate_lanes(struct intel_encoder *encoder, encoder 132 drivers/gpu/drm/i915/display/intel_display_types.h enum intel_hotplug_state (*hotplug)(struct intel_encoder *encoder, encoder 182 drivers/gpu/drm/i915/display/intel_display_types.h void (*get_power_domains)(struct intel_encoder *encoder, encoder 398 drivers/gpu/drm/i915/display/intel_display_types.h struct intel_encoder *encoder; encoder 1274 drivers/gpu/drm/i915/display/intel_display_types.h void (*write_infoframe)(struct intel_encoder *encoder, encoder 1278 drivers/gpu/drm/i915/display/intel_display_types.h void (*read_infoframe)(struct intel_encoder *encoder, encoder 1282 drivers/gpu/drm/i915/display/intel_display_types.h void (*set_infoframes)(struct intel_encoder *encoder, encoder 1286 drivers/gpu/drm/i915/display/intel_display_types.h u32 (*infoframes_enabled)(struct intel_encoder *encoder, encoder 1358 drivers/gpu/drm/i915/display/intel_display_types.h return to_intel_connector(connector)->encoder; encoder 1361 drivers/gpu/drm/i915/display/intel_display_types.h static inline bool intel_encoder_is_dig_port(struct intel_encoder *encoder) encoder 1363 drivers/gpu/drm/i915/display/intel_display_types.h switch (encoder->type) { encoder 1375 drivers/gpu/drm/i915/display/intel_display_types.h enc_to_dig_port(struct drm_encoder *encoder) encoder 1377 drivers/gpu/drm/i915/display/intel_display_types.h struct intel_encoder *intel_encoder = to_intel_encoder(encoder); encoder 1380 drivers/gpu/drm/i915/display/intel_display_types.h return container_of(encoder, struct intel_digital_port, encoder 1393 drivers/gpu/drm/i915/display/intel_display_types.h enc_to_mst(struct drm_encoder *encoder) encoder 1395 drivers/gpu/drm/i915/display/intel_display_types.h return container_of(encoder, struct intel_dp_mst_encoder, base.base); encoder 1398 drivers/gpu/drm/i915/display/intel_display_types.h static inline struct intel_dp *enc_to_intel_dp(struct drm_encoder *encoder) encoder 1400 drivers/gpu/drm/i915/display/intel_display_types.h return &enc_to_dig_port(encoder)->dp; encoder 1403 drivers/gpu/drm/i915/display/intel_display_types.h static inline bool intel_encoder_is_dp(struct intel_encoder *encoder) encoder 1405 drivers/gpu/drm/i915/display/intel_display_types.h switch (encoder->type) { encoder 1411 drivers/gpu/drm/i915/display/intel_display_types.h return i915_mmio_reg_valid(enc_to_intel_dp(&encoder->base)->output_reg); encoder 1418 drivers/gpu/drm/i915/display/intel_display_types.h enc_to_intel_lspcon(struct drm_encoder *encoder) encoder 1420 drivers/gpu/drm/i915/display/intel_display_types.h return &enc_to_dig_port(encoder)->lspcon; encoder 159 drivers/gpu/drm/i915/display/intel_dp.c static void intel_dp_link_down(struct intel_encoder *encoder, encoder 163 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_init_panel_power_sequencer(struct intel_encoder *encoder, encoder 255 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &intel_dig_port->base; encoder 256 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 798 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder; encoder 805 drivers/gpu/drm/i915/display/intel_dp.c for_each_intel_dp(&dev_priv->drm, encoder) { encoder 806 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 808 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->type == INTEL_OUTPUT_EDP) { encoder 982 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder; encoder 998 drivers/gpu/drm/i915/display/intel_dp.c for_each_intel_dp(&dev_priv->drm, encoder) { encoder 999 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 1003 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->type != INTEL_OUTPUT_EDP) encoder 1677 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dig_port->base; encoder 1708 drivers/gpu/drm/i915/display/intel_dp.c port_name(encoder->port)); encoder 1727 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_set_clock(struct intel_encoder *encoder, encoder 1730 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2102 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_compute_link_config(struct intel_encoder *encoder, encoder 2107 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 2241 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_compute_config(struct intel_encoder *encoder, encoder 2245 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2247 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 2248 drivers/gpu/drm/i915/display/intel_dp.c struct intel_lspcon *lspcon = enc_to_intel_lspcon(&encoder->base); encoder 2249 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 2307 drivers/gpu/drm/i915/display/intel_dp.c ret = intel_dp_compute_link_config(encoder, pipe_config, conn_state); encoder 2338 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_set_clock(encoder, pipe_config); encoder 2355 drivers/gpu/drm/i915/display/intel_dp.c static void intel_dp_prepare(struct intel_encoder *encoder, encoder 2358 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2359 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 2360 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3121 drivers/gpu/drm/i915/display/intel_dp.c static bool intel_dp_get_hw_state(struct intel_encoder *encoder, encoder 3124 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3125 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3130 drivers/gpu/drm/i915/display/intel_dp.c encoder->power_domain); encoder 3135 drivers/gpu/drm/i915/display/intel_dp.c encoder->port, pipe); encoder 3137 drivers/gpu/drm/i915/display/intel_dp.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 3142 drivers/gpu/drm/i915/display/intel_dp.c static void intel_dp_get_config(struct intel_encoder *encoder, encoder 3145 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3146 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3148 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3151 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->type == INTEL_OUTPUT_EDP) encoder 3226 drivers/gpu/drm/i915/display/intel_dp.c static void intel_disable_dp(struct intel_encoder *encoder, encoder 3230 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3235 drivers/gpu/drm/i915/display/intel_dp.c intel_audio_codec_disable(encoder, encoder 3246 drivers/gpu/drm/i915/display/intel_dp.c static void g4x_disable_dp(struct intel_encoder *encoder, encoder 3250 drivers/gpu/drm/i915/display/intel_dp.c intel_disable_dp(encoder, old_crtc_state, old_conn_state); encoder 3253 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_disable_dp(struct intel_encoder *encoder, encoder 3257 drivers/gpu/drm/i915/display/intel_dp.c intel_disable_dp(encoder, old_crtc_state, old_conn_state); encoder 3260 drivers/gpu/drm/i915/display/intel_dp.c static void g4x_post_disable_dp(struct intel_encoder *encoder, encoder 3264 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3265 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3273 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_link_down(encoder, old_crtc_state); encoder 3280 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_post_disable_dp(struct intel_encoder *encoder, encoder 3284 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_link_down(encoder, old_crtc_state); encoder 3287 drivers/gpu/drm/i915/display/intel_dp.c static void chv_post_disable_dp(struct intel_encoder *encoder, encoder 3291 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3293 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_link_down(encoder, old_crtc_state); encoder 3298 drivers/gpu/drm/i915/display/intel_dp.c chv_data_lane_soft_reset(encoder, old_crtc_state, true); encoder 3410 drivers/gpu/drm/i915/display/intel_dp.c static void intel_enable_dp(struct intel_encoder *encoder, encoder 3414 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3415 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3426 drivers/gpu/drm/i915/display/intel_dp.c vlv_init_panel_power_sequencer(encoder, pipe_config); encoder 3452 drivers/gpu/drm/i915/display/intel_dp.c intel_audio_codec_enable(encoder, pipe_config, conn_state); encoder 3456 drivers/gpu/drm/i915/display/intel_dp.c static void g4x_enable_dp(struct intel_encoder *encoder, encoder 3460 drivers/gpu/drm/i915/display/intel_dp.c intel_enable_dp(encoder, pipe_config, conn_state); encoder 3464 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_enable_dp(struct intel_encoder *encoder, encoder 3471 drivers/gpu/drm/i915/display/intel_dp.c static void g4x_pre_enable_dp(struct intel_encoder *encoder, encoder 3475 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3476 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3478 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_prepare(encoder, pipe_config); encoder 3519 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder; encoder 3523 drivers/gpu/drm/i915/display/intel_dp.c for_each_intel_dp(&dev_priv->drm, encoder) { encoder 3524 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3525 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3542 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_init_panel_power_sequencer(struct intel_encoder *encoder, encoder 3545 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3546 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 3578 drivers/gpu/drm/i915/display/intel_dp.c pipe_name(intel_dp->pps_pipe), port_name(encoder->port)); encoder 3585 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_pre_enable_dp(struct intel_encoder *encoder, encoder 3589 drivers/gpu/drm/i915/display/intel_dp.c vlv_phy_pre_encoder_enable(encoder, pipe_config); encoder 3591 drivers/gpu/drm/i915/display/intel_dp.c intel_enable_dp(encoder, pipe_config, conn_state); encoder 3594 drivers/gpu/drm/i915/display/intel_dp.c static void vlv_dp_pre_pll_enable(struct intel_encoder *encoder, encoder 3598 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_prepare(encoder, pipe_config); encoder 3600 drivers/gpu/drm/i915/display/intel_dp.c vlv_phy_pre_pll_enable(encoder, pipe_config); encoder 3603 drivers/gpu/drm/i915/display/intel_dp.c static void chv_pre_enable_dp(struct intel_encoder *encoder, encoder 3607 drivers/gpu/drm/i915/display/intel_dp.c chv_phy_pre_encoder_enable(encoder, pipe_config); encoder 3609 drivers/gpu/drm/i915/display/intel_dp.c intel_enable_dp(encoder, pipe_config, conn_state); encoder 3612 drivers/gpu/drm/i915/display/intel_dp.c chv_phy_release_cl2_override(encoder); encoder 3615 drivers/gpu/drm/i915/display/intel_dp.c static void chv_dp_pre_pll_enable(struct intel_encoder *encoder, encoder 3619 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_prepare(encoder, pipe_config); encoder 3621 drivers/gpu/drm/i915/display/intel_dp.c chv_phy_pre_pll_enable(encoder, pipe_config); encoder 3624 drivers/gpu/drm/i915/display/intel_dp.c static void chv_dp_post_pll_disable(struct intel_encoder *encoder, encoder 3628 drivers/gpu/drm/i915/display/intel_dp.c chv_phy_post_pll_disable(encoder, old_crtc_state); encoder 3647 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base; encoder 3648 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3651 drivers/gpu/drm/i915/display/intel_dp.c return intel_ddi_dp_voltage_max(encoder); encoder 3666 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base; encoder 3667 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 3670 drivers/gpu/drm/i915/display/intel_dp.c return intel_ddi_dp_pre_emphasis_max(encoder, voltage_swing); encoder 3710 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base; encoder 3788 drivers/gpu/drm/i915/display/intel_dp.c vlv_set_phy_signal_level(encoder, demph_reg_value, preemph_reg_value, encoder 3796 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base; encoder 3871 drivers/gpu/drm/i915/display/intel_dp.c chv_set_phy_signal_level(encoder, deemph_reg_value, encoder 4063 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_link_down(struct intel_encoder *encoder, encoder 4066 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 4067 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 4069 drivers/gpu/drm/i915/display/intel_dp.c enum port port = encoder->port; encoder 4395 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = encoder 4400 drivers/gpu/drm/i915/display/intel_dp.c port_name(encoder->port), yesno(intel_dp->can_mst), encoder 4793 drivers/gpu/drm/i915/display/intel_dp.c int intel_dp_retrain_link(struct intel_encoder *encoder, encoder 4796 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 4797 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 4871 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_hotplug(struct intel_encoder *encoder, encoder 4879 drivers/gpu/drm/i915/display/intel_dp.c state = intel_encoder_hotplug(encoder, connector, irq_received); encoder 4884 drivers/gpu/drm/i915/display/intel_dp.c ret = intel_dp_retrain_link(encoder, &ctx); encoder 5051 drivers/gpu/drm/i915/display/intel_dp.c static bool ibx_digital_port_connected(struct intel_encoder *encoder) encoder 5053 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5056 drivers/gpu/drm/i915/display/intel_dp.c switch (encoder->hpd_pin) { encoder 5067 drivers/gpu/drm/i915/display/intel_dp.c MISSING_CASE(encoder->hpd_pin); encoder 5074 drivers/gpu/drm/i915/display/intel_dp.c static bool cpt_digital_port_connected(struct intel_encoder *encoder) encoder 5076 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5079 drivers/gpu/drm/i915/display/intel_dp.c switch (encoder->hpd_pin) { encoder 5090 drivers/gpu/drm/i915/display/intel_dp.c MISSING_CASE(encoder->hpd_pin); encoder 5097 drivers/gpu/drm/i915/display/intel_dp.c static bool spt_digital_port_connected(struct intel_encoder *encoder) encoder 5099 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5102 drivers/gpu/drm/i915/display/intel_dp.c switch (encoder->hpd_pin) { encoder 5110 drivers/gpu/drm/i915/display/intel_dp.c return cpt_digital_port_connected(encoder); encoder 5116 drivers/gpu/drm/i915/display/intel_dp.c static bool g4x_digital_port_connected(struct intel_encoder *encoder) encoder 5118 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5121 drivers/gpu/drm/i915/display/intel_dp.c switch (encoder->hpd_pin) { encoder 5132 drivers/gpu/drm/i915/display/intel_dp.c MISSING_CASE(encoder->hpd_pin); encoder 5139 drivers/gpu/drm/i915/display/intel_dp.c static bool gm45_digital_port_connected(struct intel_encoder *encoder) encoder 5141 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5144 drivers/gpu/drm/i915/display/intel_dp.c switch (encoder->hpd_pin) { encoder 5155 drivers/gpu/drm/i915/display/intel_dp.c MISSING_CASE(encoder->hpd_pin); encoder 5162 drivers/gpu/drm/i915/display/intel_dp.c static bool ilk_digital_port_connected(struct intel_encoder *encoder) encoder 5164 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5166 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->hpd_pin == HPD_PORT_A) encoder 5169 drivers/gpu/drm/i915/display/intel_dp.c return ibx_digital_port_connected(encoder); encoder 5172 drivers/gpu/drm/i915/display/intel_dp.c static bool snb_digital_port_connected(struct intel_encoder *encoder) encoder 5174 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5176 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->hpd_pin == HPD_PORT_A) encoder 5179 drivers/gpu/drm/i915/display/intel_dp.c return cpt_digital_port_connected(encoder); encoder 5182 drivers/gpu/drm/i915/display/intel_dp.c static bool ivb_digital_port_connected(struct intel_encoder *encoder) encoder 5184 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5186 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->hpd_pin == HPD_PORT_A) encoder 5189 drivers/gpu/drm/i915/display/intel_dp.c return cpt_digital_port_connected(encoder); encoder 5192 drivers/gpu/drm/i915/display/intel_dp.c static bool bdw_digital_port_connected(struct intel_encoder *encoder) encoder 5194 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5196 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->hpd_pin == HPD_PORT_A) encoder 5199 drivers/gpu/drm/i915/display/intel_dp.c return cpt_digital_port_connected(encoder); encoder 5202 drivers/gpu/drm/i915/display/intel_dp.c static bool bxt_digital_port_connected(struct intel_encoder *encoder) encoder 5204 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5207 drivers/gpu/drm/i915/display/intel_dp.c switch (encoder->hpd_pin) { encoder 5218 drivers/gpu/drm/i915/display/intel_dp.c MISSING_CASE(encoder->hpd_pin); encoder 5233 drivers/gpu/drm/i915/display/intel_dp.c static bool icl_digital_port_connected(struct intel_encoder *encoder) encoder 5235 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5236 drivers/gpu/drm/i915/display/intel_dp.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 5237 drivers/gpu/drm/i915/display/intel_dp.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 5244 drivers/gpu/drm/i915/display/intel_dp.c MISSING_CASE(encoder->hpd_pin); encoder 5260 drivers/gpu/drm/i915/display/intel_dp.c static bool __intel_digital_port_connected(struct intel_encoder *encoder) encoder 5262 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5266 drivers/gpu/drm/i915/display/intel_dp.c return gm45_digital_port_connected(encoder); encoder 5268 drivers/gpu/drm/i915/display/intel_dp.c return g4x_digital_port_connected(encoder); encoder 5272 drivers/gpu/drm/i915/display/intel_dp.c return icl_digital_port_connected(encoder); encoder 5274 drivers/gpu/drm/i915/display/intel_dp.c return spt_digital_port_connected(encoder); encoder 5276 drivers/gpu/drm/i915/display/intel_dp.c return bxt_digital_port_connected(encoder); encoder 5278 drivers/gpu/drm/i915/display/intel_dp.c return bdw_digital_port_connected(encoder); encoder 5280 drivers/gpu/drm/i915/display/intel_dp.c return ivb_digital_port_connected(encoder); encoder 5282 drivers/gpu/drm/i915/display/intel_dp.c return snb_digital_port_connected(encoder); encoder 5284 drivers/gpu/drm/i915/display/intel_dp.c return ilk_digital_port_connected(encoder); encoder 5290 drivers/gpu/drm/i915/display/intel_dp.c bool intel_digital_port_connected(struct intel_encoder *encoder) encoder 5292 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 5297 drivers/gpu/drm/i915/display/intel_dp.c is_connected = __intel_digital_port_connected(encoder); encoder 5353 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dig_port->base; encoder 5363 drivers/gpu/drm/i915/display/intel_dp.c else if (intel_digital_port_connected(encoder)) encoder 5419 drivers/gpu/drm/i915/display/intel_dp.c ret = intel_dp_retrain_link(encoder, ctx); encoder 5539 drivers/gpu/drm/i915/display/intel_dp.c void intel_dp_encoder_flush_work(struct drm_encoder *encoder) encoder 5541 drivers/gpu/drm/i915/display/intel_dp.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(encoder); encoder 5565 drivers/gpu/drm/i915/display/intel_dp.c static void intel_dp_encoder_destroy(struct drm_encoder *encoder) encoder 5567 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_encoder_flush_work(encoder); encoder 5569 drivers/gpu/drm/i915/display/intel_dp.c drm_encoder_cleanup(encoder); encoder 5570 drivers/gpu/drm/i915/display/intel_dp.c kfree(enc_to_dig_port(encoder)); encoder 6203 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base; encoder 6207 drivers/gpu/drm/i915/display/intel_dp.c encoder->port, &pipe)) encoder 6213 drivers/gpu/drm/i915/display/intel_dp.c void intel_dp_encoder_reset(struct drm_encoder *encoder) encoder 6215 drivers/gpu/drm/i915/display/intel_dp.c struct drm_i915_private *dev_priv = to_i915(encoder->dev); encoder 6216 drivers/gpu/drm/i915/display/intel_dp.c struct intel_dp *intel_dp = enc_to_intel_dp(encoder); encoder 7261 drivers/gpu/drm/i915/display/intel_dp.c struct drm_encoder *encoder; encoder 7273 drivers/gpu/drm/i915/display/intel_dp.c encoder = &intel_encoder->base; encoder 7334 drivers/gpu/drm/i915/display/intel_dp.c drm_encoder_cleanup(encoder); encoder 7344 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder; encoder 7346 drivers/gpu/drm/i915/display/intel_dp.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 7349 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->type != INTEL_OUTPUT_DDI) encoder 7352 drivers/gpu/drm/i915/display/intel_dp.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 7364 drivers/gpu/drm/i915/display/intel_dp.c struct intel_encoder *encoder; encoder 7366 drivers/gpu/drm/i915/display/intel_dp.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 7370 drivers/gpu/drm/i915/display/intel_dp.c if (encoder->type != INTEL_OUTPUT_DDI) encoder 7373 drivers/gpu/drm/i915/display/intel_dp.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 50 drivers/gpu/drm/i915/display/intel_dp.h int intel_dp_retrain_link(struct intel_encoder *encoder, encoder 56 drivers/gpu/drm/i915/display/intel_dp.h void intel_dp_encoder_reset(struct drm_encoder *encoder); encoder 58 drivers/gpu/drm/i915/display/intel_dp.h void intel_dp_encoder_flush_work(struct drm_encoder *encoder); encoder 59 drivers/gpu/drm/i915/display/intel_dp.h int intel_dp_compute_config(struct intel_encoder *encoder, encoder 110 drivers/gpu/drm/i915/display/intel_dp.h bool intel_digital_port_connected(struct intel_encoder *encoder); encoder 60 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base); encoder 85 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base); encoder 113 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base); encoder 181 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base); encoder 231 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base); encoder 250 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c struct intel_dp *intel_dp = enc_to_intel_dp(&connector->encoder->base); encoder 40 drivers/gpu/drm/i915/display/intel_dp_mst.c static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder, encoder 46 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 90 drivers/gpu/drm/i915/display/intel_dp_mst.c static int intel_dp_mst_compute_config(struct intel_encoder *encoder, encoder 94 drivers/gpu/drm/i915/display/intel_dp_mst.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 95 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 143 drivers/gpu/drm/i915/display/intel_dp_mst.c ret = intel_dp_mst_compute_link_config(encoder, pipe_config, encoder 201 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_mst_disable_dp(struct intel_encoder *encoder, encoder 205 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 221 drivers/gpu/drm/i915/display/intel_dp_mst.c intel_audio_codec_disable(encoder, encoder 225 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_mst_post_disable_dp(struct intel_encoder *encoder, encoder 229 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 263 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_mst_pre_pll_enable_dp(struct intel_encoder *encoder, encoder 267 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 276 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_mst_post_pll_disable_dp(struct intel_encoder *encoder, encoder 280 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 290 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_mst_pre_enable_dp(struct intel_encoder *encoder, encoder 294 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 297 drivers/gpu/drm/i915/display/intel_dp_mst.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 307 drivers/gpu/drm/i915/display/intel_dp_mst.c connector->encoder = encoder; encoder 337 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_mst_enable_dp(struct intel_encoder *encoder, encoder 341 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 344 drivers/gpu/drm/i915/display/intel_dp_mst.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 357 drivers/gpu/drm/i915/display/intel_dp_mst.c intel_audio_codec_enable(encoder, pipe_config, conn_state); encoder 360 drivers/gpu/drm/i915/display/intel_dp_mst.c static bool intel_dp_mst_enc_get_hw_state(struct intel_encoder *encoder, encoder 363 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 370 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_dp_mst_enc_get_config(struct intel_encoder *encoder, encoder 373 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base); encoder 476 drivers/gpu/drm/i915/display/intel_dp_mst.c static void intel_dp_mst_encoder_destroy(struct drm_encoder *encoder) encoder 478 drivers/gpu/drm/i915/display/intel_dp_mst.c struct intel_dp_mst_encoder *intel_mst = enc_to_mst(encoder); encoder 480 drivers/gpu/drm/i915/display/intel_dp_mst.c drm_encoder_cleanup(encoder); encoder 490 drivers/gpu/drm/i915/display/intel_dp_mst.c if (connector->encoder && connector->base.state->crtc) { encoder 492 drivers/gpu/drm/i915/display/intel_dp_mst.c if (!connector->encoder->get_hw_state(connector->encoder, &pipe)) encoder 590 drivers/gpu/drm/i915/display/intel_dpio_phy.c void bxt_ddi_phy_set_lane_optim_mask(struct intel_encoder *encoder, encoder 593 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 594 drivers/gpu/drm/i915/display/intel_dpio_phy.c enum port port = encoder->port; encoder 617 drivers/gpu/drm/i915/display/intel_dpio_phy.c bxt_ddi_phy_get_lane_lat_optim_mask(struct intel_encoder *encoder) encoder 619 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 620 drivers/gpu/drm/i915/display/intel_dpio_phy.c enum port port = encoder->port; encoder 640 drivers/gpu/drm/i915/display/intel_dpio_phy.c void chv_set_phy_signal_level(struct intel_encoder *encoder, encoder 644 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 645 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 646 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc); encoder 736 drivers/gpu/drm/i915/display/intel_dpio_phy.c void chv_data_lane_soft_reset(struct intel_encoder *encoder, encoder 740 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 741 drivers/gpu/drm/i915/display/intel_dpio_phy.c enum dpio_channel ch = vlv_dport_to_channel(enc_to_dig_port(&encoder->base)); encoder 781 drivers/gpu/drm/i915/display/intel_dpio_phy.c void chv_phy_pre_pll_enable(struct intel_encoder *encoder, encoder 784 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 785 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 801 drivers/gpu/drm/i915/display/intel_dpio_phy.c chv_phy_powergate_lanes(encoder, true, lane_mask); encoder 806 drivers/gpu/drm/i915/display/intel_dpio_phy.c chv_data_lane_soft_reset(encoder, crtc_state, true); encoder 861 drivers/gpu/drm/i915/display/intel_dpio_phy.c void chv_phy_pre_encoder_enable(struct intel_encoder *encoder, encoder 864 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 866 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 936 drivers/gpu/drm/i915/display/intel_dpio_phy.c chv_data_lane_soft_reset(encoder, crtc_state, false); encoder 941 drivers/gpu/drm/i915/display/intel_dpio_phy.c void chv_phy_release_cl2_override(struct intel_encoder *encoder) encoder 943 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 944 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 952 drivers/gpu/drm/i915/display/intel_dpio_phy.c void chv_phy_post_pll_disable(struct intel_encoder *encoder, encoder 955 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 983 drivers/gpu/drm/i915/display/intel_dpio_phy.c chv_phy_powergate_lanes(encoder, false, 0x0); encoder 986 drivers/gpu/drm/i915/display/intel_dpio_phy.c void vlv_set_phy_signal_level(struct intel_encoder *encoder, encoder 990 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 991 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc); encoder 992 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 1014 drivers/gpu/drm/i915/display/intel_dpio_phy.c void vlv_phy_pre_pll_enable(struct intel_encoder *encoder, encoder 1017 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 1018 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1043 drivers/gpu/drm/i915/display/intel_dpio_phy.c void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder, encoder 1046 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 1048 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1073 drivers/gpu/drm/i915/display/intel_dpio_phy.c void vlv_phy_reset_lanes(struct intel_encoder *encoder, encoder 1076 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 1077 drivers/gpu/drm/i915/display/intel_dpio_phy.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 30 drivers/gpu/drm/i915/display/intel_dpio_phy.h void bxt_ddi_phy_set_lane_optim_mask(struct intel_encoder *encoder, encoder 32 drivers/gpu/drm/i915/display/intel_dpio_phy.h u8 bxt_ddi_phy_get_lane_lat_optim_mask(struct intel_encoder *encoder); encoder 34 drivers/gpu/drm/i915/display/intel_dpio_phy.h void chv_set_phy_signal_level(struct intel_encoder *encoder, encoder 37 drivers/gpu/drm/i915/display/intel_dpio_phy.h void chv_data_lane_soft_reset(struct intel_encoder *encoder, encoder 40 drivers/gpu/drm/i915/display/intel_dpio_phy.h void chv_phy_pre_pll_enable(struct intel_encoder *encoder, encoder 42 drivers/gpu/drm/i915/display/intel_dpio_phy.h void chv_phy_pre_encoder_enable(struct intel_encoder *encoder, encoder 44 drivers/gpu/drm/i915/display/intel_dpio_phy.h void chv_phy_release_cl2_override(struct intel_encoder *encoder); encoder 45 drivers/gpu/drm/i915/display/intel_dpio_phy.h void chv_phy_post_pll_disable(struct intel_encoder *encoder, encoder 48 drivers/gpu/drm/i915/display/intel_dpio_phy.h void vlv_set_phy_signal_level(struct intel_encoder *encoder, encoder 51 drivers/gpu/drm/i915/display/intel_dpio_phy.h void vlv_phy_pre_pll_enable(struct intel_encoder *encoder, encoder 53 drivers/gpu/drm/i915/display/intel_dpio_phy.h void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder, encoder 55 drivers/gpu/drm/i915/display/intel_dpio_phy.h void vlv_phy_reset_lanes(struct intel_encoder *encoder, encoder 448 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 873 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 1439 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 1888 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 1905 drivers/gpu/drm/i915/display/intel_dpll_mgr.c id = (enum intel_dpll_id) encoder->port; encoder 1949 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder); encoder 1954 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder); encoder 2392 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 2571 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder, encoder 2580 drivers/gpu/drm/i915/display/intel_dpll_mgr.c encoder->port))) encoder 2882 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 2889 drivers/gpu/drm/i915/display/intel_dpll_mgr.c primary_port = encoder->type == INTEL_OUTPUT_DP_MST ? encoder 2890 drivers/gpu/drm/i915/display/intel_dpll_mgr.c enc_to_mst(&encoder->base)->primary : encoder 2891 drivers/gpu/drm/i915/display/intel_dpll_mgr.c enc_to_dig_port(&encoder->base); encoder 2903 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 2910 drivers/gpu/drm/i915/display/intel_dpll_mgr.c enum port port = encoder->port; encoder 2913 drivers/gpu/drm/i915/display/intel_dpll_mgr.c if (!icl_calc_dpll_state(crtc_state, encoder, &port_dpll->hw_state)) { encoder 2929 drivers/gpu/drm/i915/display/intel_dpll_mgr.c port_name(encoder->port)); encoder 2936 drivers/gpu/drm/i915/display/intel_dpll_mgr.c icl_update_active_dpll(state, crtc, encoder); encoder 2943 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 2952 drivers/gpu/drm/i915/display/intel_dpll_mgr.c if (!icl_calc_dpll_state(crtc_state, encoder, &port_dpll->hw_state)) { encoder 2976 drivers/gpu/drm/i915/display/intel_dpll_mgr.c encoder->port)); encoder 2988 drivers/gpu/drm/i915/display/intel_dpll_mgr.c icl_update_active_dpll(state, crtc, encoder); encoder 3001 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 3004 drivers/gpu/drm/i915/display/intel_dpll_mgr.c enum phy phy = intel_port_to_phy(dev_priv, encoder->port); encoder 3007 drivers/gpu/drm/i915/display/intel_dpll_mgr.c return icl_get_combo_phy_dpll(state, crtc, encoder); encoder 3009 drivers/gpu/drm/i915/display/intel_dpll_mgr.c return icl_get_tc_phy_dplls(state, crtc, encoder); encoder 3570 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 3578 drivers/gpu/drm/i915/display/intel_dpll_mgr.c return dpll_mgr->get_dplls(state, crtc, encoder); encoder 3622 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct intel_encoder *encoder) encoder 3624 drivers/gpu/drm/i915/display/intel_dpll_mgr.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 3630 drivers/gpu/drm/i915/display/intel_dpll_mgr.c dpll_mgr->update_active_dpll(state, crtc, encoder); encoder 362 drivers/gpu/drm/i915/display/intel_dpll_mgr.h struct intel_encoder *encoder); encoder 369 drivers/gpu/drm/i915/display/intel_dpll_mgr.h struct intel_encoder *encoder); encoder 144 drivers/gpu/drm/i915/display/intel_dsi.h static inline struct intel_dsi *enc_to_intel_dsi(struct drm_encoder *encoder) encoder 146 drivers/gpu/drm/i915/display/intel_dsi.h return container_of(encoder, struct intel_dsi, base.base); encoder 159 drivers/gpu/drm/i915/display/intel_dsi.h static inline u16 intel_dsi_encoder_ports(struct intel_encoder *encoder) encoder 161 drivers/gpu/drm/i915/display/intel_dsi.h return enc_to_intel_dsi(&encoder->base)->ports; encoder 185 drivers/gpu/drm/i915/display/intel_dsi.h int vlv_dsi_pll_compute(struct intel_encoder *encoder, encoder 187 drivers/gpu/drm/i915/display/intel_dsi.h void vlv_dsi_pll_enable(struct intel_encoder *encoder, encoder 189 drivers/gpu/drm/i915/display/intel_dsi.h void vlv_dsi_pll_disable(struct intel_encoder *encoder); encoder 190 drivers/gpu/drm/i915/display/intel_dsi.h u32 vlv_dsi_get_pclk(struct intel_encoder *encoder, encoder 192 drivers/gpu/drm/i915/display/intel_dsi.h void vlv_dsi_reset_clocks(struct intel_encoder *encoder, enum port port); encoder 195 drivers/gpu/drm/i915/display/intel_dsi.h int bxt_dsi_pll_compute(struct intel_encoder *encoder, encoder 197 drivers/gpu/drm/i915/display/intel_dsi.h void bxt_dsi_pll_enable(struct intel_encoder *encoder, encoder 199 drivers/gpu/drm/i915/display/intel_dsi.h void bxt_dsi_pll_disable(struct intel_encoder *encoder); encoder 200 drivers/gpu/drm/i915/display/intel_dsi.h u32 bxt_dsi_get_pclk(struct intel_encoder *encoder, encoder 202 drivers/gpu/drm/i915/display/intel_dsi.h void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port); encoder 48 drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c struct intel_encoder *encoder = connector->encoder; encoder 49 drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 163 drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c struct intel_encoder *encoder = intel_connector->encoder; encoder 169 drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c if (WARN_ON(encoder->type != INTEL_OUTPUT_DSI)) encoder 123 drivers/gpu/drm/i915/display/intel_dvo.c static struct intel_dvo *enc_to_dvo(struct intel_encoder *encoder) encoder 125 drivers/gpu/drm/i915/display/intel_dvo.c return container_of(encoder, struct intel_dvo, base); encoder 148 drivers/gpu/drm/i915/display/intel_dvo.c static bool intel_dvo_get_hw_state(struct intel_encoder *encoder, encoder 151 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 152 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(encoder); encoder 162 drivers/gpu/drm/i915/display/intel_dvo.c static void intel_dvo_get_config(struct intel_encoder *encoder, encoder 165 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 166 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(encoder); encoder 186 drivers/gpu/drm/i915/display/intel_dvo.c static void intel_disable_dvo(struct intel_encoder *encoder, encoder 190 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 191 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(encoder); encoder 200 drivers/gpu/drm/i915/display/intel_dvo.c static void intel_enable_dvo(struct intel_encoder *encoder, encoder 204 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 205 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(encoder); encoder 249 drivers/gpu/drm/i915/display/intel_dvo.c static int intel_dvo_compute_config(struct intel_encoder *encoder, encoder 253 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(encoder); encoder 275 drivers/gpu/drm/i915/display/intel_dvo.c static void intel_dvo_pre_enable(struct intel_encoder *encoder, encoder 279 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 282 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(encoder); encoder 364 drivers/gpu/drm/i915/display/intel_dvo.c static void intel_dvo_enc_destroy(struct drm_encoder *encoder) encoder 366 drivers/gpu/drm/i915/display/intel_dvo.c struct intel_dvo *intel_dvo = enc_to_dvo(to_intel_encoder(encoder)); encoder 371 drivers/gpu/drm/i915/display/intel_dvo.c intel_encoder_destroy(encoder); encoder 385 drivers/gpu/drm/i915/display/intel_dvo.c intel_dvo_get_current_mode(struct intel_encoder *encoder) encoder 389 drivers/gpu/drm/i915/display/intel_dvo.c mode = intel_encoder_current_mode(encoder); encoder 111 drivers/gpu/drm/i915/display/intel_hdcp.c enum port port = connector->encoder->port; encoder 121 drivers/gpu/drm/i915/display/intel_hdcp.c enum port port = connector->encoder->port; encoder 1495 drivers/gpu/drm/i915/display/intel_hdcp.c enum port port = connector->encoder->port; encoder 1528 drivers/gpu/drm/i915/display/intel_hdcp.c enum port port = connector->encoder->port; encoder 1634 drivers/gpu/drm/i915/display/intel_hdcp.c enum port port = connector->encoder->port; encoder 1758 drivers/gpu/drm/i915/display/intel_hdcp.c data->port = connector->encoder->port; encoder 88 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder) encoder 91 drivers/gpu/drm/i915/display/intel_hdmi.c container_of(encoder, struct intel_digital_port, base.base); encoder 204 drivers/gpu/drm/i915/display/intel_hdmi.c static void g4x_write_infoframe(struct intel_encoder *encoder, encoder 210 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 239 drivers/gpu/drm/i915/display/intel_hdmi.c static void g4x_read_infoframe(struct intel_encoder *encoder, encoder 244 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 259 drivers/gpu/drm/i915/display/intel_hdmi.c static u32 g4x_infoframes_enabled(struct intel_encoder *encoder, encoder 262 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 268 drivers/gpu/drm/i915/display/intel_hdmi.c if ((val & VIDEO_DIP_PORT_MASK) != VIDEO_DIP_PORT(encoder->port)) encoder 275 drivers/gpu/drm/i915/display/intel_hdmi.c static void ibx_write_infoframe(struct intel_encoder *encoder, encoder 281 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 312 drivers/gpu/drm/i915/display/intel_hdmi.c static void ibx_read_infoframe(struct intel_encoder *encoder, encoder 317 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 333 drivers/gpu/drm/i915/display/intel_hdmi.c static u32 ibx_infoframes_enabled(struct intel_encoder *encoder, encoder 336 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 344 drivers/gpu/drm/i915/display/intel_hdmi.c if ((val & VIDEO_DIP_PORT_MASK) != VIDEO_DIP_PORT(encoder->port)) encoder 352 drivers/gpu/drm/i915/display/intel_hdmi.c static void cpt_write_infoframe(struct intel_encoder *encoder, encoder 358 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 392 drivers/gpu/drm/i915/display/intel_hdmi.c static void cpt_read_infoframe(struct intel_encoder *encoder, encoder 397 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 413 drivers/gpu/drm/i915/display/intel_hdmi.c static u32 cpt_infoframes_enabled(struct intel_encoder *encoder, encoder 416 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 428 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_write_infoframe(struct intel_encoder *encoder, encoder 434 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 465 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_read_infoframe(struct intel_encoder *encoder, encoder 470 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 486 drivers/gpu/drm/i915/display/intel_hdmi.c static u32 vlv_infoframes_enabled(struct intel_encoder *encoder, encoder 489 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 496 drivers/gpu/drm/i915/display/intel_hdmi.c if ((val & VIDEO_DIP_PORT_MASK) != VIDEO_DIP_PORT(encoder->port)) encoder 504 drivers/gpu/drm/i915/display/intel_hdmi.c static void hsw_write_infoframe(struct intel_encoder *encoder, encoder 510 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 537 drivers/gpu/drm/i915/display/intel_hdmi.c static void hsw_read_infoframe(struct intel_encoder *encoder, encoder 542 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 554 drivers/gpu/drm/i915/display/intel_hdmi.c static u32 hsw_infoframes_enabled(struct intel_encoder *encoder, encoder 557 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 593 drivers/gpu/drm/i915/display/intel_hdmi.c u32 intel_hdmi_infoframes_enabled(struct intel_encoder *encoder, encoder 596 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 597 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 601 drivers/gpu/drm/i915/display/intel_hdmi.c val = dig_port->infoframes_enabled(encoder, crtc_state); encoder 636 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_write_infoframe(struct intel_encoder *encoder, encoder 641 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(&encoder->base); encoder 662 drivers/gpu/drm/i915/display/intel_hdmi.c intel_dig_port->write_infoframe(encoder, crtc_state, type, buffer, len); encoder 665 drivers/gpu/drm/i915/display/intel_hdmi.c void intel_read_infoframe(struct intel_encoder *encoder, encoder 670 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(&encoder->base); encoder 678 drivers/gpu/drm/i915/display/intel_hdmi.c intel_dig_port->read_infoframe(encoder, crtc_state, encoder 697 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_compute_avi_infoframe(struct intel_encoder *encoder, encoder 745 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_compute_spd_infoframe(struct intel_encoder *encoder, encoder 772 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_compute_hdmi_infoframe(struct intel_encoder *encoder, encoder 802 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_compute_drm_infoframe(struct intel_encoder *encoder, encoder 807 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 835 drivers/gpu/drm/i915/display/intel_hdmi.c static void g4x_set_infoframes(struct intel_encoder *encoder, encoder 840 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 841 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(&encoder->base); encoder 845 drivers/gpu/drm/i915/display/intel_hdmi.c u32 port = VIDEO_DIP_PORT(encoder->port); encoder 892 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 895 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 898 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 946 drivers/gpu/drm/i915/display/intel_hdmi.c static bool intel_hdmi_set_gcp_infoframe(struct intel_encoder *encoder, encoder 950 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 972 drivers/gpu/drm/i915/display/intel_hdmi.c void intel_hdmi_read_gcp_infoframe(struct intel_encoder *encoder, encoder 975 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 995 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_hdmi_compute_gcp_infoframe(struct intel_encoder *encoder, encoder 999 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1017 drivers/gpu/drm/i915/display/intel_hdmi.c static void ibx_set_infoframes(struct intel_encoder *encoder, encoder 1022 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1024 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *intel_dig_port = enc_to_dig_port(&encoder->base); encoder 1028 drivers/gpu/drm/i915/display/intel_hdmi.c u32 port = VIDEO_DIP_PORT(encoder->port); encoder 1059 drivers/gpu/drm/i915/display/intel_hdmi.c if (intel_hdmi_set_gcp_infoframe(encoder, crtc_state, conn_state)) encoder 1065 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1068 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1071 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1076 drivers/gpu/drm/i915/display/intel_hdmi.c static void cpt_set_infoframes(struct intel_encoder *encoder, encoder 1081 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1083 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1108 drivers/gpu/drm/i915/display/intel_hdmi.c if (intel_hdmi_set_gcp_infoframe(encoder, crtc_state, conn_state)) encoder 1114 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1117 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1120 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1125 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_set_infoframes(struct intel_encoder *encoder, encoder 1130 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1132 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1135 drivers/gpu/drm/i915/display/intel_hdmi.c u32 port = VIDEO_DIP_PORT(encoder->port); encoder 1166 drivers/gpu/drm/i915/display/intel_hdmi.c if (intel_hdmi_set_gcp_infoframe(encoder, crtc_state, conn_state)) encoder 1172 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1175 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1178 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1183 drivers/gpu/drm/i915/display/intel_hdmi.c static void hsw_set_infoframes(struct intel_encoder *encoder, encoder 1188 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1206 drivers/gpu/drm/i915/display/intel_hdmi.c if (intel_hdmi_set_gcp_infoframe(encoder, crtc_state, conn_state)) encoder 1212 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1215 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1218 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1221 drivers/gpu/drm/i915/display/intel_hdmi.c intel_write_infoframe(encoder, crtc_state, encoder 1718 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_hdmi_prepare(struct intel_encoder *encoder, encoder 1721 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 1724 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1757 drivers/gpu/drm/i915/display/intel_hdmi.c static bool intel_hdmi_get_hw_state(struct intel_encoder *encoder, encoder 1760 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1761 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1766 drivers/gpu/drm/i915/display/intel_hdmi.c encoder->power_domain); encoder 1772 drivers/gpu/drm/i915/display/intel_hdmi.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 1777 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_hdmi_get_config(struct intel_encoder *encoder, encoder 1780 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1781 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 1804 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_infoframes_enabled(encoder, pipe_config); encoder 1830 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_read_gcp_infoframe(encoder, pipe_config); encoder 1832 drivers/gpu/drm/i915/display/intel_hdmi.c intel_read_infoframe(encoder, pipe_config, encoder 1835 drivers/gpu/drm/i915/display/intel_hdmi.c intel_read_infoframe(encoder, pipe_config, encoder 1838 drivers/gpu/drm/i915/display/intel_hdmi.c intel_read_infoframe(encoder, pipe_config, encoder 1843 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_enable_hdmi_audio(struct intel_encoder *encoder, encoder 1852 drivers/gpu/drm/i915/display/intel_hdmi.c intel_audio_codec_enable(encoder, pipe_config, conn_state); encoder 1855 drivers/gpu/drm/i915/display/intel_hdmi.c static void g4x_enable_hdmi(struct intel_encoder *encoder, encoder 1859 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 1861 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1874 drivers/gpu/drm/i915/display/intel_hdmi.c intel_enable_hdmi_audio(encoder, pipe_config, conn_state); encoder 1877 drivers/gpu/drm/i915/display/intel_hdmi.c static void ibx_enable_hdmi(struct intel_encoder *encoder, encoder 1881 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 1883 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1924 drivers/gpu/drm/i915/display/intel_hdmi.c intel_enable_hdmi_audio(encoder, pipe_config, conn_state); encoder 1927 drivers/gpu/drm/i915/display/intel_hdmi.c static void cpt_enable_hdmi(struct intel_encoder *encoder, encoder 1931 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 1934 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 1979 drivers/gpu/drm/i915/display/intel_hdmi.c intel_enable_hdmi_audio(encoder, pipe_config, conn_state); encoder 1982 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_enable_hdmi(struct intel_encoder *encoder, encoder 1988 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_disable_hdmi(struct intel_encoder *encoder, encoder 1992 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 1994 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 2039 drivers/gpu/drm/i915/display/intel_hdmi.c intel_dig_port->set_infoframes(encoder, encoder 2046 drivers/gpu/drm/i915/display/intel_hdmi.c static void g4x_disable_hdmi(struct intel_encoder *encoder, encoder 2051 drivers/gpu/drm/i915/display/intel_hdmi.c intel_audio_codec_disable(encoder, encoder 2054 drivers/gpu/drm/i915/display/intel_hdmi.c intel_disable_hdmi(encoder, old_crtc_state, old_conn_state); encoder 2057 drivers/gpu/drm/i915/display/intel_hdmi.c static void pch_disable_hdmi(struct intel_encoder *encoder, encoder 2062 drivers/gpu/drm/i915/display/intel_hdmi.c intel_audio_codec_disable(encoder, encoder 2066 drivers/gpu/drm/i915/display/intel_hdmi.c static void pch_post_disable_hdmi(struct intel_encoder *encoder, encoder 2070 drivers/gpu/drm/i915/display/intel_hdmi.c intel_disable_hdmi(encoder, old_crtc_state, old_conn_state); encoder 2073 drivers/gpu/drm/i915/display/intel_hdmi.c static int intel_hdmi_source_max_tmds_clock(struct intel_encoder *encoder) encoder 2075 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2077 drivers/gpu/drm/i915/display/intel_hdmi.c &dev_priv->vbt.ddi_port_info[encoder->port]; encoder 2099 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_encoder *encoder = &hdmi_to_dig_port(hdmi)->base; encoder 2100 drivers/gpu/drm/i915/display/intel_hdmi.c int max_tmds_clock = intel_hdmi_source_max_tmds_clock(encoder); encoder 2294 drivers/gpu/drm/i915/display/intel_hdmi.c int intel_hdmi_compute_config(struct intel_encoder *encoder, encoder 2298 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 2299 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2412 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_compute_gcp_infoframe(encoder, pipe_config, conn_state); encoder 2414 drivers/gpu/drm/i915/display/intel_hdmi.c if (!intel_hdmi_compute_avi_infoframe(encoder, pipe_config, conn_state)) { encoder 2419 drivers/gpu/drm/i915/display/intel_hdmi.c if (!intel_hdmi_compute_spd_infoframe(encoder, pipe_config, conn_state)) { encoder 2424 drivers/gpu/drm/i915/display/intel_hdmi.c if (!intel_hdmi_compute_hdmi_infoframe(encoder, pipe_config, conn_state)) { encoder 2429 drivers/gpu/drm/i915/display/intel_hdmi.c if (!intel_hdmi_compute_drm_infoframe(encoder, pipe_config, conn_state)) { encoder 2545 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_encoder *encoder = &hdmi_to_dig_port(intel_hdmi)->base; encoder 2554 drivers/gpu/drm/i915/display/intel_hdmi.c !intel_digital_port_connected(encoder)) encoder 2602 drivers/gpu/drm/i915/display/intel_hdmi.c static void intel_hdmi_pre_enable(struct intel_encoder *encoder, encoder 2607 drivers/gpu/drm/i915/display/intel_hdmi.c enc_to_dig_port(&encoder->base); encoder 2609 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_prepare(encoder, pipe_config); encoder 2611 drivers/gpu/drm/i915/display/intel_hdmi.c intel_dig_port->set_infoframes(encoder, encoder 2616 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_hdmi_pre_enable(struct intel_encoder *encoder, encoder 2620 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 2621 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2623 drivers/gpu/drm/i915/display/intel_hdmi.c vlv_phy_pre_encoder_enable(encoder, pipe_config); encoder 2626 drivers/gpu/drm/i915/display/intel_hdmi.c vlv_set_phy_signal_level(encoder, 0x2b245f5f, 0x00002000, 0x5578b83a, encoder 2629 drivers/gpu/drm/i915/display/intel_hdmi.c dport->set_infoframes(encoder, encoder 2633 drivers/gpu/drm/i915/display/intel_hdmi.c g4x_enable_hdmi(encoder, pipe_config, conn_state); encoder 2638 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_hdmi_pre_pll_enable(struct intel_encoder *encoder, encoder 2642 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_prepare(encoder, pipe_config); encoder 2644 drivers/gpu/drm/i915/display/intel_hdmi.c vlv_phy_pre_pll_enable(encoder, pipe_config); encoder 2647 drivers/gpu/drm/i915/display/intel_hdmi.c static void chv_hdmi_pre_pll_enable(struct intel_encoder *encoder, encoder 2651 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_prepare(encoder, pipe_config); encoder 2653 drivers/gpu/drm/i915/display/intel_hdmi.c chv_phy_pre_pll_enable(encoder, pipe_config); encoder 2656 drivers/gpu/drm/i915/display/intel_hdmi.c static void chv_hdmi_post_pll_disable(struct intel_encoder *encoder, encoder 2660 drivers/gpu/drm/i915/display/intel_hdmi.c chv_phy_post_pll_disable(encoder, old_crtc_state); encoder 2663 drivers/gpu/drm/i915/display/intel_hdmi.c static void vlv_hdmi_post_disable(struct intel_encoder *encoder, encoder 2668 drivers/gpu/drm/i915/display/intel_hdmi.c vlv_phy_reset_lanes(encoder, old_crtc_state); encoder 2671 drivers/gpu/drm/i915/display/intel_hdmi.c static void chv_hdmi_post_disable(struct intel_encoder *encoder, encoder 2675 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 2681 drivers/gpu/drm/i915/display/intel_hdmi.c chv_data_lane_soft_reset(encoder, old_crtc_state, true); encoder 2686 drivers/gpu/drm/i915/display/intel_hdmi.c static void chv_hdmi_pre_enable(struct intel_encoder *encoder, encoder 2690 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_digital_port *dport = enc_to_dig_port(&encoder->base); encoder 2691 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_device *dev = encoder->base.dev; encoder 2694 drivers/gpu/drm/i915/display/intel_hdmi.c chv_phy_pre_encoder_enable(encoder, pipe_config); encoder 2698 drivers/gpu/drm/i915/display/intel_hdmi.c chv_set_phy_signal_level(encoder, 128, 102, false); encoder 2700 drivers/gpu/drm/i915/display/intel_hdmi.c dport->set_infoframes(encoder, encoder 2704 drivers/gpu/drm/i915/display/intel_hdmi.c g4x_enable_hdmi(encoder, pipe_config, conn_state); encoder 2709 drivers/gpu/drm/i915/display/intel_hdmi.c chv_phy_release_cl2_override(encoder); encoder 2844 drivers/gpu/drm/i915/display/intel_hdmi.c bool intel_hdmi_handle_sink_scrambling(struct intel_encoder *encoder, encoder 2849 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 2850 drivers/gpu/drm/i915/display/intel_hdmi.c struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base); encoder 3135 drivers/gpu/drm/i915/display/intel_hdmi.c intel_hdmi_hotplug(struct intel_encoder *encoder, encoder 3140 drivers/gpu/drm/i915/display/intel_hdmi.c state = intel_encoder_hotplug(encoder, connector, irq_received); encoder 31 drivers/gpu/drm/i915/display/intel_hdmi.h struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder); encoder 32 drivers/gpu/drm/i915/display/intel_hdmi.h int intel_hdmi_compute_config(struct intel_encoder *encoder, encoder 35 drivers/gpu/drm/i915/display/intel_hdmi.h bool intel_hdmi_handle_sink_scrambling(struct intel_encoder *encoder, encoder 41 drivers/gpu/drm/i915/display/intel_hdmi.h u32 intel_hdmi_infoframes_enabled(struct intel_encoder *encoder, encoder 44 drivers/gpu/drm/i915/display/intel_hdmi.h void intel_hdmi_read_gcp_infoframe(struct intel_encoder *encoder, encoder 46 drivers/gpu/drm/i915/display/intel_hdmi.h void intel_read_infoframe(struct intel_encoder *encoder, encoder 203 drivers/gpu/drm/i915/display/intel_hotplug.c intel_encoder = intel_connector->encoder; encoder 258 drivers/gpu/drm/i915/display/intel_hotplug.c intel_connector->encoder->hpd_pin == pin) { encoder 277 drivers/gpu/drm/i915/display/intel_hotplug.c intel_encoder_hotplug(struct intel_encoder *encoder, encoder 302 drivers/gpu/drm/i915/display/intel_hotplug.c static bool intel_encoder_has_hpd_pulse(struct intel_encoder *encoder) encoder 304 drivers/gpu/drm/i915/display/intel_hotplug.c return intel_encoder_is_dig_port(encoder) && encoder 305 drivers/gpu/drm/i915/display/intel_hotplug.c enc_to_dig_port(&encoder->base)->hpd_pulse != NULL; encoder 313 drivers/gpu/drm/i915/display/intel_hotplug.c struct intel_encoder *encoder; encoder 323 drivers/gpu/drm/i915/display/intel_hotplug.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 325 drivers/gpu/drm/i915/display/intel_hotplug.c enum port port = encoder->port; encoder 329 drivers/gpu/drm/i915/display/intel_hotplug.c if (!intel_encoder_has_hpd_pulse(encoder)) encoder 338 drivers/gpu/drm/i915/display/intel_hotplug.c dig_port = enc_to_dig_port(&encoder->base); encoder 343 drivers/gpu/drm/i915/display/intel_hotplug.c old_bits |= BIT(encoder->hpd_pin); encoder 392 drivers/gpu/drm/i915/display/intel_hotplug.c if (!intel_connector->encoder) encoder 394 drivers/gpu/drm/i915/display/intel_hotplug.c intel_encoder = intel_connector->encoder; encoder 452 drivers/gpu/drm/i915/display/intel_hotplug.c struct intel_encoder *encoder; encoder 470 drivers/gpu/drm/i915/display/intel_hotplug.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 471 drivers/gpu/drm/i915/display/intel_hotplug.c bool has_hpd_pulse = intel_encoder_has_hpd_pulse(encoder); encoder 472 drivers/gpu/drm/i915/display/intel_hotplug.c enum port port = encoder->port; encoder 475 drivers/gpu/drm/i915/display/intel_hotplug.c pin = encoder->hpd_pin; encoder 623 drivers/gpu/drm/i915/display/intel_hotplug.c intel_connector->encoder->hpd_pin > HPD_NONE) { encoder 18 drivers/gpu/drm/i915/display/intel_hotplug.h enum intel_hotplug_state intel_encoder_hotplug(struct intel_encoder *encoder, encoder 431 drivers/gpu/drm/i915/display/intel_lspcon.c void lspcon_write_infoframe(struct intel_encoder *encoder, encoder 437 drivers/gpu/drm/i915/display/intel_lspcon.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 438 drivers/gpu/drm/i915/display/intel_lspcon.c struct intel_lspcon *lspcon = enc_to_intel_lspcon(&encoder->base); encoder 459 drivers/gpu/drm/i915/display/intel_lspcon.c void lspcon_read_infoframe(struct intel_encoder *encoder, encoder 467 drivers/gpu/drm/i915/display/intel_lspcon.c void lspcon_set_infoframes(struct intel_encoder *encoder, encoder 475 drivers/gpu/drm/i915/display/intel_lspcon.c struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); encoder 517 drivers/gpu/drm/i915/display/intel_lspcon.c dig_port->write_infoframe(encoder, crtc_state, HDMI_INFOFRAME_TYPE_AVI, encoder 521 drivers/gpu/drm/i915/display/intel_lspcon.c u32 lspcon_infoframes_enabled(struct intel_encoder *encoder, encoder 525 drivers/gpu/drm/i915/display/intel_lspcon.c return enc_to_intel_lspcon(&encoder->base)->active; encoder 21 drivers/gpu/drm/i915/display/intel_lspcon.h void lspcon_write_infoframe(struct intel_encoder *encoder, encoder 25 drivers/gpu/drm/i915/display/intel_lspcon.h void lspcon_read_infoframe(struct intel_encoder *encoder, encoder 29 drivers/gpu/drm/i915/display/intel_lspcon.h void lspcon_set_infoframes(struct intel_encoder *encoder, encoder 33 drivers/gpu/drm/i915/display/intel_lspcon.h u32 lspcon_infoframes_enabled(struct intel_encoder *encoder, encoder 78 drivers/gpu/drm/i915/display/intel_lvds.c static struct intel_lvds_encoder *to_lvds_encoder(struct drm_encoder *encoder) encoder 80 drivers/gpu/drm/i915/display/intel_lvds.c return container_of(encoder, struct intel_lvds_encoder, base.base); encoder 99 drivers/gpu/drm/i915/display/intel_lvds.c static bool intel_lvds_get_hw_state(struct intel_encoder *encoder, encoder 102 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 103 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); encoder 108 drivers/gpu/drm/i915/display/intel_lvds.c encoder->power_domain); encoder 114 drivers/gpu/drm/i915/display/intel_lvds.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 119 drivers/gpu/drm/i915/display/intel_lvds.c static void intel_lvds_get_config(struct intel_encoder *encoder, encoder 122 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 123 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); encoder 227 drivers/gpu/drm/i915/display/intel_lvds.c static void intel_pre_enable_lvds(struct intel_encoder *encoder, encoder 231 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); encoder 232 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 308 drivers/gpu/drm/i915/display/intel_lvds.c static void intel_enable_lvds(struct intel_encoder *encoder, encoder 312 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_device *dev = encoder->base.dev; encoder 313 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); encoder 327 drivers/gpu/drm/i915/display/intel_lvds.c static void intel_disable_lvds(struct intel_encoder *encoder, encoder 331 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); encoder 332 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 342 drivers/gpu/drm/i915/display/intel_lvds.c static void gmch_disable_lvds(struct intel_encoder *encoder, encoder 349 drivers/gpu/drm/i915/display/intel_lvds.c intel_disable_lvds(encoder, old_crtc_state, old_conn_state); encoder 352 drivers/gpu/drm/i915/display/intel_lvds.c static void pch_disable_lvds(struct intel_encoder *encoder, encoder 359 drivers/gpu/drm/i915/display/intel_lvds.c static void pch_post_disable_lvds(struct intel_encoder *encoder, encoder 363 drivers/gpu/drm/i915/display/intel_lvds.c intel_disable_lvds(encoder, old_crtc_state, old_conn_state); encoder 754 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_encoder *encoder; encoder 756 drivers/gpu/drm/i915/display/intel_lvds.c for_each_intel_encoder(&dev_priv->drm, encoder) { encoder 757 drivers/gpu/drm/i915/display/intel_lvds.c if (encoder->type == INTEL_OUTPUT_LVDS) encoder 758 drivers/gpu/drm/i915/display/intel_lvds.c return encoder; encoder 766 drivers/gpu/drm/i915/display/intel_lvds.c struct intel_encoder *encoder = intel_get_lvds_encoder(dev_priv); encoder 768 drivers/gpu/drm/i915/display/intel_lvds.c return encoder && to_lvds_encoder(&encoder->base)->is_dual_link; encoder 819 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_encoder *encoder; encoder 874 drivers/gpu/drm/i915/display/intel_lvds.c encoder = &intel_encoder->base; encoder 1002 drivers/gpu/drm/i915/display/intel_lvds.c drm_encoder_cleanup(encoder); encoder 1879 drivers/gpu/drm/i915/display/intel_panel.c void intel_panel_update_backlight(struct intel_encoder *encoder, encoder 40 drivers/gpu/drm/i915/display/intel_panel.h void intel_panel_update_backlight(struct intel_encoder *encoder, encoder 78 drivers/gpu/drm/i915/display/intel_pipe_crc.c struct intel_encoder *encoder; encoder 86 drivers/gpu/drm/i915/display/intel_pipe_crc.c for_each_intel_encoder(dev, encoder) { encoder 87 drivers/gpu/drm/i915/display/intel_pipe_crc.c if (!encoder->base.crtc) encoder 90 drivers/gpu/drm/i915/display/intel_pipe_crc.c crtc = to_intel_crtc(encoder->base.crtc); encoder 95 drivers/gpu/drm/i915/display/intel_pipe_crc.c switch (encoder->type) { encoder 101 drivers/gpu/drm/i915/display/intel_pipe_crc.c dig_port = enc_to_dig_port(&encoder->base); encoder 178 drivers/gpu/drm/i915/display/intel_sdvo.c static struct intel_sdvo *to_sdvo(struct intel_encoder *encoder) encoder 180 drivers/gpu/drm/i915/display/intel_sdvo.c return container_of(encoder, struct intel_sdvo, base); encoder 978 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_get_value(encoder, SDVO_CMD_GET_HBUF_AV_SPLIT, &av_split, 1); encoder 982 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_write_cmd(encoder, SDVO_CMD_SET_HBUF_INDEX, encoder 984 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_write_cmd(encoder, SDVO_CMD_GET_HBUF_INFO, NULL, 0); encoder 985 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_read_response(encoder, &buf_size, 1); encoder 989 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_write_cmd(encoder, SDVO_CMD_GET_HBUF_DATA, encoder 991 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_read_response(encoder, pos, 8); encoder 1270 drivers/gpu/drm/i915/display/intel_sdvo.c static int intel_sdvo_compute_config(struct intel_encoder *encoder, encoder 1274 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(encoder); encoder 1286 drivers/gpu/drm/i915/display/intel_sdvo.c if (HAS_PCH_SPLIT(to_i915(encoder->base.dev))) encoder 1580 drivers/gpu/drm/i915/display/intel_sdvo.c static bool intel_sdvo_get_hw_state(struct intel_encoder *encoder, encoder 1583 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1584 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(encoder); encoder 1595 drivers/gpu/drm/i915/display/intel_sdvo.c static void intel_sdvo_get_config(struct intel_encoder *encoder, encoder 1598 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_device *dev = encoder->base.dev; encoder 1600 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(encoder); encoder 1720 drivers/gpu/drm/i915/display/intel_sdvo.c static void intel_disable_sdvo(struct intel_encoder *encoder, encoder 1724 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1725 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(encoder); encoder 1768 drivers/gpu/drm/i915/display/intel_sdvo.c static void pch_disable_sdvo(struct intel_encoder *encoder, encoder 1774 drivers/gpu/drm/i915/display/intel_sdvo.c static void pch_post_disable_sdvo(struct intel_encoder *encoder, encoder 1778 drivers/gpu/drm/i915/display/intel_sdvo.c intel_disable_sdvo(encoder, old_crtc_state, old_conn_state); encoder 1781 drivers/gpu/drm/i915/display/intel_sdvo.c static void intel_enable_sdvo(struct intel_encoder *encoder, encoder 1785 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_device *dev = encoder->base.dev; encoder 1787 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(encoder); encoder 1916 drivers/gpu/drm/i915/display/intel_sdvo.c static void intel_sdvo_enable_hotplug(struct intel_encoder *encoder) encoder 1918 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(encoder); encoder 1925 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_hotplug(struct intel_encoder *encoder, encoder 1929 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_enable_hotplug(encoder); encoder 1931 drivers/gpu/drm/i915/display/intel_sdvo.c return intel_encoder_hotplug(encoder, connector, irq_received); encoder 2460 drivers/gpu/drm/i915/display/intel_sdvo.c static void intel_sdvo_enc_destroy(struct drm_encoder *encoder) encoder 2462 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *intel_sdvo = to_sdvo(to_intel_encoder(encoder)); encoder 2465 drivers/gpu/drm/i915/display/intel_sdvo.c intel_encoder_destroy(encoder); encoder 2620 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_sdvo *encoder) encoder 2626 drivers/gpu/drm/i915/display/intel_sdvo.c ret = drm_connector_init(encoder->base.base.dev, encoder 2641 drivers/gpu/drm/i915/display/intel_sdvo.c intel_connector_attach_encoder(&connector->base, &encoder->base); encoder 2684 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_encoder *encoder = &intel_sdvo->base.base; encoder 2686 drivers/gpu/drm/i915/display/intel_sdvo.c struct intel_encoder *intel_encoder = to_intel_encoder(encoder); encoder 2718 drivers/gpu/drm/i915/display/intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_TMDS; encoder 2740 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_encoder *encoder = &intel_sdvo->base.base; encoder 2753 drivers/gpu/drm/i915/display/intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_TVDAC; encoder 2780 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_encoder *encoder = &intel_sdvo->base.base; encoder 2794 drivers/gpu/drm/i915/display/intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_DAC; encoder 2816 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_encoder *encoder = &intel_sdvo->base.base; encoder 2830 drivers/gpu/drm/i915/display/intel_sdvo.c encoder->encoder_type = DRM_MODE_ENCODER_LVDS; encoder 415 drivers/gpu/drm/i915/display/intel_tc.c struct intel_encoder *encoder = &dig_port->base; encoder 423 drivers/gpu/drm/i915/display/intel_tc.c else if (encoder->base.crtc) encoder 424 drivers/gpu/drm/i915/display/intel_tc.c active_links = to_intel_crtc(encoder->base.crtc)->active; encoder 896 drivers/gpu/drm/i915/display/intel_tv.c static struct intel_tv *enc_to_tv(struct intel_encoder *encoder) encoder 898 drivers/gpu/drm/i915/display/intel_tv.c return container_of(encoder, struct intel_tv, base); encoder 907 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_get_hw_state(struct intel_encoder *encoder, enum pipe *pipe) encoder 909 drivers/gpu/drm/i915/display/intel_tv.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 918 drivers/gpu/drm/i915/display/intel_tv.c intel_enable_tv(struct intel_encoder *encoder, encoder 922 drivers/gpu/drm/i915/display/intel_tv.c struct drm_device *dev = encoder->base.dev; encoder 933 drivers/gpu/drm/i915/display/intel_tv.c intel_disable_tv(struct intel_encoder *encoder, encoder 937 drivers/gpu/drm/i915/display/intel_tv.c struct drm_device *dev = encoder->base.dev; encoder 1084 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_get_config(struct intel_encoder *encoder, encoder 1087 drivers/gpu/drm/i915/display/intel_tv.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1183 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_compute_config(struct intel_encoder *encoder, encoder 1187 drivers/gpu/drm/i915/display/intel_tv.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1416 drivers/gpu/drm/i915/display/intel_tv.c static void intel_tv_pre_enable(struct intel_encoder *encoder, encoder 1420 drivers/gpu/drm/i915/display/intel_tv.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1422 drivers/gpu/drm/i915/display/intel_tv.c struct intel_tv *intel_tv = enc_to_tv(encoder); encoder 483 drivers/gpu/drm/i915/display/intel_vdsc.c static void intel_configure_pps_for_dsc_encoder(struct intel_encoder *encoder, encoder 487 drivers/gpu/drm/i915/display/intel_vdsc.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 883 drivers/gpu/drm/i915/display/intel_vdsc.c static void intel_dp_write_dsc_pps_sdp(struct intel_encoder *encoder, encoder 886 drivers/gpu/drm/i915/display/intel_vdsc.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 897 drivers/gpu/drm/i915/display/intel_vdsc.c intel_dig_port->write_infoframe(encoder, crtc_state, encoder 902 drivers/gpu/drm/i915/display/intel_vdsc.c void intel_dsc_enable(struct intel_encoder *encoder, encoder 906 drivers/gpu/drm/i915/display/intel_vdsc.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 919 drivers/gpu/drm/i915/display/intel_vdsc.c intel_configure_pps_for_dsc_encoder(encoder, crtc_state); encoder 921 drivers/gpu/drm/i915/display/intel_vdsc.c intel_dp_write_dsc_pps_sdp(encoder, crtc_state); encoder 13 drivers/gpu/drm/i915/display/intel_vdsc.h void intel_dsc_enable(struct intel_encoder *encoder, encoder 79 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_encoder *encoder = &intel_dsi->base.base; encoder 80 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_device *dev = encoder->dev; encoder 215 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_encoder *encoder = &intel_dsi->base.base; encoder 216 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_device *dev = encoder->dev; encoder 256 drivers/gpu/drm/i915/display/vlv_dsi.c static int intel_dsi_compute_config(struct intel_encoder *encoder, encoder 260 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 261 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = container_of(encoder, struct intel_dsi, encoder 305 drivers/gpu/drm/i915/display/vlv_dsi.c ret = bxt_dsi_pll_compute(encoder, pipe_config); encoder 309 drivers/gpu/drm/i915/display/vlv_dsi.c ret = vlv_dsi_pll_compute(encoder, pipe_config); encoder 319 drivers/gpu/drm/i915/display/vlv_dsi.c static bool glk_dsi_enable_io(struct intel_encoder *encoder) encoder 321 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 322 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 367 drivers/gpu/drm/i915/display/vlv_dsi.c static void glk_dsi_device_ready(struct intel_encoder *encoder) encoder 369 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 370 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 438 drivers/gpu/drm/i915/display/vlv_dsi.c static void bxt_dsi_device_ready(struct intel_encoder *encoder) encoder 440 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 441 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 465 drivers/gpu/drm/i915/display/vlv_dsi.c static void vlv_dsi_device_ready(struct intel_encoder *encoder) encoder 467 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 468 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 504 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_device_ready(struct intel_encoder *encoder) encoder 506 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 509 drivers/gpu/drm/i915/display/vlv_dsi.c glk_dsi_device_ready(encoder); encoder 511 drivers/gpu/drm/i915/display/vlv_dsi.c bxt_dsi_device_ready(encoder); encoder 513 drivers/gpu/drm/i915/display/vlv_dsi.c vlv_dsi_device_ready(encoder); encoder 516 drivers/gpu/drm/i915/display/vlv_dsi.c static void glk_dsi_enter_low_power_mode(struct intel_encoder *encoder) encoder 518 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 519 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 546 drivers/gpu/drm/i915/display/vlv_dsi.c static void glk_dsi_disable_mipi_io(struct intel_encoder *encoder) encoder 548 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 549 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 573 drivers/gpu/drm/i915/display/vlv_dsi.c static void glk_dsi_clear_device_ready(struct intel_encoder *encoder) encoder 575 drivers/gpu/drm/i915/display/vlv_dsi.c glk_dsi_enter_low_power_mode(encoder); encoder 576 drivers/gpu/drm/i915/display/vlv_dsi.c glk_dsi_disable_mipi_io(encoder); encoder 579 drivers/gpu/drm/i915/display/vlv_dsi.c static void vlv_dsi_clear_device_ready(struct intel_encoder *encoder) encoder 581 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 582 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 623 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_port_enable(struct intel_encoder *encoder, encoder 626 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 628 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 680 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_port_disable(struct intel_encoder *encoder) encoder 682 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_device *dev = encoder->base.dev; encoder 684 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 701 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_unprepare(struct intel_encoder *encoder); encoder 744 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_pre_enable(struct intel_encoder *encoder, encoder 748 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 766 drivers/gpu/drm/i915/display/vlv_dsi.c bxt_dsi_pll_disable(encoder); encoder 767 drivers/gpu/drm/i915/display/vlv_dsi.c bxt_dsi_pll_enable(encoder, pipe_config); encoder 769 drivers/gpu/drm/i915/display/vlv_dsi.c vlv_dsi_pll_disable(encoder); encoder 770 drivers/gpu/drm/i915/display/vlv_dsi.c vlv_dsi_pll_enable(encoder, pipe_config); encoder 794 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_prepare(encoder, pipe_config); encoder 806 drivers/gpu/drm/i915/display/vlv_dsi.c glk_cold_boot = glk_dsi_enable_io(encoder); encoder 810 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_prepare(encoder, pipe_config); encoder 814 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_device_ready(encoder); encoder 818 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_prepare(encoder, pipe_config); encoder 838 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_port_enable(encoder, pipe_config); encoder 849 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_disable(struct intel_encoder *encoder, encoder 853 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 874 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_clear_device_ready(struct intel_encoder *encoder) encoder 876 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 879 drivers/gpu/drm/i915/display/vlv_dsi.c glk_dsi_clear_device_ready(encoder); encoder 881 drivers/gpu/drm/i915/display/vlv_dsi.c vlv_dsi_clear_device_ready(encoder); encoder 884 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_post_disable(struct intel_encoder *encoder, encoder 888 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 889 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 899 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_port_disable(encoder); encoder 903 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_unprepare(encoder); encoder 914 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi_clear_device_ready(encoder); encoder 928 drivers/gpu/drm/i915/display/vlv_dsi.c bxt_dsi_pll_disable(encoder); encoder 932 drivers/gpu/drm/i915/display/vlv_dsi.c vlv_dsi_pll_disable(encoder); encoder 955 drivers/gpu/drm/i915/display/vlv_dsi.c static bool intel_dsi_get_hw_state(struct intel_encoder *encoder, encoder 958 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 959 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 967 drivers/gpu/drm/i915/display/vlv_dsi.c encoder->power_domain); encoder 1024 drivers/gpu/drm/i915/display/vlv_dsi.c intel_display_power_put(dev_priv, encoder->power_domain, wakeref); encoder 1029 drivers/gpu/drm/i915/display/vlv_dsi.c static void bxt_dsi_get_pipe_config(struct intel_encoder *encoder, encoder 1032 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_device *dev = encoder->base.dev; encoder 1038 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1190 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_get_config(struct intel_encoder *encoder, encoder 1193 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1200 drivers/gpu/drm/i915/display/vlv_dsi.c bxt_dsi_get_pipe_config(encoder, pipe_config); encoder 1201 drivers/gpu/drm/i915/display/vlv_dsi.c pclk = bxt_dsi_get_pclk(encoder, pipe_config); encoder 1203 drivers/gpu/drm/i915/display/vlv_dsi.c pclk = vlv_dsi_get_pclk(encoder, pipe_config); encoder 1226 drivers/gpu/drm/i915/display/vlv_dsi.c static void set_dsi_timings(struct drm_encoder *encoder, encoder 1229 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_device *dev = encoder->dev; encoder 1231 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder); encoder 1315 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_encoder *encoder = &intel_encoder->base; encoder 1316 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_device *dev = encoder->dev; encoder 1319 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder); encoder 1373 drivers/gpu/drm/i915/display/vlv_dsi.c set_dsi_timings(encoder, adjusted_mode); encoder 1506 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_unprepare(struct intel_encoder *encoder) encoder 1508 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 1509 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 1521 drivers/gpu/drm/i915/display/vlv_dsi.c bxt_dsi_reset_clocks(encoder, port); encoder 1523 drivers/gpu/drm/i915/display/vlv_dsi.c vlv_dsi_reset_clocks(encoder, port); encoder 1534 drivers/gpu/drm/i915/display/vlv_dsi.c static void intel_dsi_encoder_destroy(struct drm_encoder *encoder) encoder 1536 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder); encoder 1542 drivers/gpu/drm/i915/display/vlv_dsi.c intel_encoder_destroy(encoder); encoder 1570 drivers/gpu/drm/i915/display/vlv_dsi.c struct intel_encoder *encoder = connector->encoder; encoder 1579 drivers/gpu/drm/i915/display/vlv_dsi.c if (!encoder->get_hw_state(encoder, &pipe)) encoder 1817 drivers/gpu/drm/i915/display/vlv_dsi.c struct drm_encoder *encoder; encoder 1845 drivers/gpu/drm/i915/display/vlv_dsi.c encoder = &intel_encoder->base; encoder 1850 drivers/gpu/drm/i915/display/vlv_dsi.c drm_encoder_init(dev, encoder, &intel_dsi_funcs, DRM_MODE_ENCODER_DSI, encoder 116 drivers/gpu/drm/i915/display/vlv_dsi_pll.c int vlv_dsi_pll_compute(struct intel_encoder *encoder, encoder 119 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 120 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 147 drivers/gpu/drm/i915/display/vlv_dsi_pll.c void vlv_dsi_pll_enable(struct intel_encoder *encoder, encoder 150 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 180 drivers/gpu/drm/i915/display/vlv_dsi_pll.c void vlv_dsi_pll_disable(struct intel_encoder *encoder) encoder 182 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 234 drivers/gpu/drm/i915/display/vlv_dsi_pll.c void bxt_dsi_pll_disable(struct intel_encoder *encoder) encoder 236 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 254 drivers/gpu/drm/i915/display/vlv_dsi_pll.c u32 vlv_dsi_get_pclk(struct intel_encoder *encoder, encoder 257 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 258 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 318 drivers/gpu/drm/i915/display/vlv_dsi_pll.c u32 bxt_dsi_get_pclk(struct intel_encoder *encoder, encoder 324 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 325 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 340 drivers/gpu/drm/i915/display/vlv_dsi_pll.c void vlv_dsi_reset_clocks(struct intel_encoder *encoder, enum port port) encoder 343 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 344 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 454 drivers/gpu/drm/i915/display/vlv_dsi_pll.c int bxt_dsi_pll_compute(struct intel_encoder *encoder, encoder 457 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 458 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 502 drivers/gpu/drm/i915/display/vlv_dsi_pll.c void bxt_dsi_pll_enable(struct intel_encoder *encoder, encoder 505 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); encoder 506 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base); encoder 519 drivers/gpu/drm/i915/display/vlv_dsi_pll.c bxt_dsi_program_clocks(encoder->base.dev, port, config); encoder 521 drivers/gpu/drm/i915/display/vlv_dsi_pll.c glk_dsi_program_esc_clock(encoder->base.dev, config); encoder 539 drivers/gpu/drm/i915/display/vlv_dsi_pll.c void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port) encoder 542 drivers/gpu/drm/i915/display/vlv_dsi_pll.c struct drm_device *dev = encoder->base.dev; encoder 2439 drivers/gpu/drm/i915/i915_debugfs.c struct drm_encoder *encoder; encoder 2441 drivers/gpu/drm/i915/i915_debugfs.c encoder = &intel_encoder->base; encoder 2443 drivers/gpu/drm/i915/i915_debugfs.c encoder->base.id, encoder->name); encoder 2444 drivers/gpu/drm/i915/i915_debugfs.c for_each_connector_on_encoder(dev, encoder, intel_connector) { encoder 2509 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *intel_encoder = intel_connector->encoder; encoder 2528 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *intel_encoder = intel_connector->encoder; encoder 2542 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *intel_encoder = intel_connector->encoder; encoder 2562 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *intel_encoder = intel_connector->encoder; encoder 3147 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *encoder; encoder 3153 drivers/gpu/drm/i915/i915_debugfs.c encoder = to_intel_encoder(connector->encoder); encoder 3154 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) encoder 3157 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && connector->status == connector_status_connected) { encoder 3158 drivers/gpu/drm/i915/i915_debugfs.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 3191 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *encoder; encoder 3197 drivers/gpu/drm/i915/i915_debugfs.c encoder = to_intel_encoder(connector->encoder); encoder 3198 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) encoder 3201 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && connector->status == connector_status_connected) { encoder 3202 drivers/gpu/drm/i915/i915_debugfs.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 3241 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *encoder; encoder 3247 drivers/gpu/drm/i915/i915_debugfs.c encoder = to_intel_encoder(connector->encoder); encoder 3248 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) encoder 3251 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && connector->status == connector_status_connected) { encoder 3252 drivers/gpu/drm/i915/i915_debugfs.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 3285 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *encoder; encoder 3291 drivers/gpu/drm/i915/i915_debugfs.c encoder = to_intel_encoder(connector->encoder); encoder 3292 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && encoder->type == INTEL_OUTPUT_DP_MST) encoder 3295 drivers/gpu/drm/i915/i915_debugfs.c if (encoder && connector->status == connector_status_connected) { encoder 3296 drivers/gpu/drm/i915/i915_debugfs.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 4197 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *encoder; encoder 4204 drivers/gpu/drm/i915/i915_debugfs.c encoder = intel_attached_encoder(connector); encoder 4205 drivers/gpu/drm/i915/i915_debugfs.c if (encoder->type != INTEL_OUTPUT_EDP) encoder 4211 drivers/gpu/drm/i915/i915_debugfs.c intel_dp = enc_to_intel_dp(&encoder->base); encoder 4555 drivers/gpu/drm/i915/i915_debugfs.c struct intel_encoder *encoder = intel_attached_encoder(connector); encoder 4556 drivers/gpu/drm/i915/i915_debugfs.c struct intel_dp *intel_dp = enc_to_intel_dp(&encoder->base); encoder 1745 drivers/gpu/drm/i915/i915_drv.c struct intel_encoder *encoder; encoder 1748 drivers/gpu/drm/i915/i915_drv.c for_each_intel_encoder(dev, encoder) encoder 1749 drivers/gpu/drm/i915/i915_drv.c if (encoder->suspend) encoder 1750 drivers/gpu/drm/i915/i915_drv.c encoder->suspend(encoder); encoder 288 drivers/gpu/drm/i915/i915_drv.h void (*audio_codec_enable)(struct intel_encoder *encoder, encoder 291 drivers/gpu/drm/i915/i915_drv.h void (*audio_codec_disable)(struct intel_encoder *encoder, encoder 3365 drivers/gpu/drm/i915/i915_irq.c struct intel_encoder *encoder; encoder 3368 drivers/gpu/drm/i915/i915_irq.c for_each_intel_encoder(&dev_priv->drm, encoder) encoder 3369 drivers/gpu/drm/i915/i915_irq.c if (dev_priv->hotplug.stats[encoder->hpd_pin].state == HPD_ENABLED) encoder 3370 drivers/gpu/drm/i915/i915_irq.c enabled_irqs |= hpd[encoder->hpd_pin]; encoder 26 drivers/gpu/drm/imx/dw_hdmi-imx.c struct drm_encoder encoder; encoder 33 drivers/gpu/drm/imx/dw_hdmi-imx.c return container_of(e, struct imx_hdmi, encoder); encoder 113 drivers/gpu/drm/imx/dw_hdmi-imx.c static void dw_hdmi_imx_encoder_disable(struct drm_encoder *encoder) encoder 117 drivers/gpu/drm/imx/dw_hdmi-imx.c static void dw_hdmi_imx_encoder_enable(struct drm_encoder *encoder) encoder 119 drivers/gpu/drm/imx/dw_hdmi-imx.c struct imx_hdmi *hdmi = enc_to_imx_hdmi(encoder); encoder 120 drivers/gpu/drm/imx/dw_hdmi-imx.c int mux = drm_of_encoder_active_port_id(hdmi->dev->of_node, encoder); encoder 127 drivers/gpu/drm/imx/dw_hdmi-imx.c static int dw_hdmi_imx_atomic_check(struct drm_encoder *encoder, encoder 208 drivers/gpu/drm/imx/dw_hdmi-imx.c struct drm_encoder *encoder; encoder 222 drivers/gpu/drm/imx/dw_hdmi-imx.c encoder = &hdmi->encoder; encoder 224 drivers/gpu/drm/imx/dw_hdmi-imx.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); encoder 231 drivers/gpu/drm/imx/dw_hdmi-imx.c if (encoder->possible_crtcs == 0) encoder 238 drivers/gpu/drm/imx/dw_hdmi-imx.c drm_encoder_helper_add(encoder, &dw_hdmi_imx_encoder_helper_funcs); encoder 239 drivers/gpu/drm/imx/dw_hdmi-imx.c drm_encoder_init(drm, encoder, &dw_hdmi_imx_encoder_funcs, encoder 244 drivers/gpu/drm/imx/dw_hdmi-imx.c hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); encoder 252 drivers/gpu/drm/imx/dw_hdmi-imx.c drm_encoder_cleanup(encoder); encoder 45 drivers/gpu/drm/imx/imx-drm-core.c void imx_drm_encoder_destroy(struct drm_encoder *encoder) encoder 47 drivers/gpu/drm/imx/imx-drm-core.c drm_encoder_cleanup(encoder); encoder 127 drivers/gpu/drm/imx/imx-drm-core.c struct drm_encoder *encoder, struct device_node *np) encoder 140 drivers/gpu/drm/imx/imx-drm-core.c encoder->possible_crtcs = crtc_mask; encoder 143 drivers/gpu/drm/imx/imx-drm-core.c encoder->possible_clones = ~0; encoder 38 drivers/gpu/drm/imx/imx-drm.h struct drm_encoder *encoder, struct device_node *np); encoder 41 drivers/gpu/drm/imx/imx-drm.h void imx_drm_encoder_destroy(struct drm_encoder *encoder); encoder 53 drivers/gpu/drm/imx/imx-ldb.c struct drm_encoder encoder; encoder 77 drivers/gpu/drm/imx/imx-ldb.c return container_of(e, struct imx_ldb_channel, encoder); encoder 162 drivers/gpu/drm/imx/imx-ldb.c return &imx_ldb_ch->encoder; encoder 193 drivers/gpu/drm/imx/imx-ldb.c static void imx_ldb_encoder_enable(struct drm_encoder *encoder) encoder 195 drivers/gpu/drm/imx/imx-ldb.c struct imx_ldb_channel *imx_ldb_ch = enc_to_imx_ldb_ch(encoder); encoder 198 drivers/gpu/drm/imx/imx-ldb.c int mux = drm_of_encoder_active_port_id(imx_ldb_ch->child, encoder); encoder 245 drivers/gpu/drm/imx/imx-ldb.c imx_ldb_encoder_atomic_mode_set(struct drm_encoder *encoder, encoder 249 drivers/gpu/drm/imx/imx-ldb.c struct imx_ldb_channel *imx_ldb_ch = enc_to_imx_ldb_ch(encoder); encoder 255 drivers/gpu/drm/imx/imx-ldb.c int mux = drm_of_encoder_active_port_id(imx_ldb_ch->child, encoder); encoder 301 drivers/gpu/drm/imx/imx-ldb.c static void imx_ldb_encoder_disable(struct drm_encoder *encoder) encoder 303 drivers/gpu/drm/imx/imx-ldb.c struct imx_ldb_channel *imx_ldb_ch = enc_to_imx_ldb_ch(encoder); encoder 346 drivers/gpu/drm/imx/imx-ldb.c static int imx_ldb_encoder_atomic_check(struct drm_encoder *encoder, encoder 351 drivers/gpu/drm/imx/imx-ldb.c struct imx_ldb_channel *imx_ldb_ch = enc_to_imx_ldb_ch(encoder); encoder 425 drivers/gpu/drm/imx/imx-ldb.c struct drm_encoder *encoder = &imx_ldb_ch->encoder; encoder 428 drivers/gpu/drm/imx/imx-ldb.c ret = imx_drm_encoder_parse_of(drm, encoder, imx_ldb_ch->child); encoder 442 drivers/gpu/drm/imx/imx-ldb.c drm_encoder_helper_add(encoder, &imx_ldb_encoder_helper_funcs); encoder 443 drivers/gpu/drm/imx/imx-ldb.c drm_encoder_init(drm, encoder, &imx_ldb_encoder_funcs, encoder 447 drivers/gpu/drm/imx/imx-ldb.c ret = drm_bridge_attach(&imx_ldb_ch->encoder, encoder 466 drivers/gpu/drm/imx/imx-ldb.c drm_connector_attach_encoder(&imx_ldb_ch->connector, encoder); encoder 104 drivers/gpu/drm/imx/imx-tve.c struct drm_encoder encoder; encoder 128 drivers/gpu/drm/imx/imx-tve.c return container_of(e, struct imx_tve, encoder); encoder 267 drivers/gpu/drm/imx/imx-tve.c return &tve->encoder; encoder 270 drivers/gpu/drm/imx/imx-tve.c static void imx_tve_encoder_mode_set(struct drm_encoder *encoder, encoder 274 drivers/gpu/drm/imx/imx-tve.c struct imx_tve *tve = enc_to_tve(encoder); encoder 309 drivers/gpu/drm/imx/imx-tve.c static void imx_tve_encoder_enable(struct drm_encoder *encoder) encoder 311 drivers/gpu/drm/imx/imx-tve.c struct imx_tve *tve = enc_to_tve(encoder); encoder 316 drivers/gpu/drm/imx/imx-tve.c static void imx_tve_encoder_disable(struct drm_encoder *encoder) encoder 318 drivers/gpu/drm/imx/imx-tve.c struct imx_tve *tve = enc_to_tve(encoder); encoder 323 drivers/gpu/drm/imx/imx-tve.c static int imx_tve_atomic_check(struct drm_encoder *encoder, encoder 328 drivers/gpu/drm/imx/imx-tve.c struct imx_tve *tve = enc_to_tve(encoder); encoder 477 drivers/gpu/drm/imx/imx-tve.c ret = imx_drm_encoder_parse_of(drm, &tve->encoder, tve->dev->of_node); encoder 481 drivers/gpu/drm/imx/imx-tve.c drm_encoder_helper_add(&tve->encoder, &imx_tve_encoder_helper_funcs); encoder 482 drivers/gpu/drm/imx/imx-tve.c drm_encoder_init(drm, &tve->encoder, &imx_tve_encoder_funcs, encoder 492 drivers/gpu/drm/imx/imx-tve.c drm_connector_attach_encoder(&tve->connector, &tve->encoder); encoder 266 drivers/gpu/drm/imx/ipuv3-crtc.c struct drm_encoder *encoder; encoder 278 drivers/gpu/drm/imx/ipuv3-crtc.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 279 drivers/gpu/drm/imx/ipuv3-crtc.c if (encoder->crtc == crtc) encoder 280 drivers/gpu/drm/imx/ipuv3-crtc.c encoder_types |= BIT(encoder->encoder_type); encoder 25 drivers/gpu/drm/imx/parallel-display.c struct drm_encoder encoder; encoder 43 drivers/gpu/drm/imx/parallel-display.c return container_of(e, struct imx_parallel_display, encoder); encoder 88 drivers/gpu/drm/imx/parallel-display.c return &imxpd->encoder; encoder 91 drivers/gpu/drm/imx/parallel-display.c static void imx_pd_encoder_enable(struct drm_encoder *encoder) encoder 93 drivers/gpu/drm/imx/parallel-display.c struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); encoder 99 drivers/gpu/drm/imx/parallel-display.c static void imx_pd_encoder_disable(struct drm_encoder *encoder) encoder 101 drivers/gpu/drm/imx/parallel-display.c struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); encoder 107 drivers/gpu/drm/imx/parallel-display.c static int imx_pd_encoder_atomic_check(struct drm_encoder *encoder, encoder 113 drivers/gpu/drm/imx/parallel-display.c struct imx_parallel_display *imxpd = enc_to_imxpd(encoder); encoder 154 drivers/gpu/drm/imx/parallel-display.c struct drm_encoder *encoder = &imxpd->encoder; encoder 157 drivers/gpu/drm/imx/parallel-display.c ret = imx_drm_encoder_parse_of(drm, encoder, imxpd->dev->of_node); encoder 168 drivers/gpu/drm/imx/parallel-display.c drm_encoder_helper_add(encoder, &imx_pd_encoder_helper_funcs); encoder 169 drivers/gpu/drm/imx/parallel-display.c drm_encoder_init(drm, encoder, &imx_pd_encoder_funcs, encoder 184 drivers/gpu/drm/imx/parallel-display.c ret = drm_bridge_attach(encoder, imxpd->bridge, NULL); encoder 191 drivers/gpu/drm/imx/parallel-display.c drm_connector_attach_encoder(&imxpd->connector, encoder); encoder 161 drivers/gpu/drm/ingenic/ingenic-drm.c struct drm_encoder encoder; encoder 215 drivers/gpu/drm/ingenic/ingenic-drm.c drm_encoder_get_priv(struct drm_encoder *encoder) encoder 217 drivers/gpu/drm/ingenic/ingenic-drm.c return container_of(encoder, struct ingenic_drm, encoder); encoder 388 drivers/gpu/drm/ingenic/ingenic-drm.c static void ingenic_drm_encoder_atomic_mode_set(struct drm_encoder *encoder, encoder 392 drivers/gpu/drm/ingenic/ingenic-drm.c struct ingenic_drm *priv = drm_encoder_get_priv(encoder); encoder 445 drivers/gpu/drm/ingenic/ingenic-drm.c static int ingenic_drm_encoder_atomic_check(struct drm_encoder *encoder, encoder 720 drivers/gpu/drm/ingenic/ingenic-drm.c priv->encoder.possible_crtcs = 1; encoder 722 drivers/gpu/drm/ingenic/ingenic-drm.c drm_encoder_helper_add(&priv->encoder, encoder 725 drivers/gpu/drm/ingenic/ingenic-drm.c ret = drm_encoder_init(drm, &priv->encoder, &ingenic_drm_encoder_funcs, encoder 732 drivers/gpu/drm/ingenic/ingenic-drm.c ret = drm_bridge_attach(&priv->encoder, bridge, NULL); encoder 867 drivers/gpu/drm/mcde/mcde_dsi.c drm_connector_attach_encoder(&d->connector, bridge->encoder); encoder 869 drivers/gpu/drm/mcde/mcde_dsi.c ret = drm_bridge_attach(bridge->encoder, d->bridge_out, bridge); encoder 62 drivers/gpu/drm/mediatek/mtk_dpi.c struct drm_encoder encoder; encoder 81 drivers/gpu/drm/mediatek/mtk_dpi.c return container_of(e, struct mtk_dpi, encoder); encoder 511 drivers/gpu/drm/mediatek/mtk_dpi.c static void mtk_dpi_encoder_destroy(struct drm_encoder *encoder) encoder 513 drivers/gpu/drm/mediatek/mtk_dpi.c drm_encoder_cleanup(encoder); encoder 520 drivers/gpu/drm/mediatek/mtk_dpi.c static bool mtk_dpi_encoder_mode_fixup(struct drm_encoder *encoder, encoder 527 drivers/gpu/drm/mediatek/mtk_dpi.c static void mtk_dpi_encoder_mode_set(struct drm_encoder *encoder, encoder 531 drivers/gpu/drm/mediatek/mtk_dpi.c struct mtk_dpi *dpi = mtk_dpi_from_encoder(encoder); encoder 536 drivers/gpu/drm/mediatek/mtk_dpi.c static void mtk_dpi_encoder_disable(struct drm_encoder *encoder) encoder 538 drivers/gpu/drm/mediatek/mtk_dpi.c struct mtk_dpi *dpi = mtk_dpi_from_encoder(encoder); encoder 543 drivers/gpu/drm/mediatek/mtk_dpi.c static void mtk_dpi_encoder_enable(struct drm_encoder *encoder) encoder 545 drivers/gpu/drm/mediatek/mtk_dpi.c struct mtk_dpi *dpi = mtk_dpi_from_encoder(encoder); encoder 551 drivers/gpu/drm/mediatek/mtk_dpi.c static int mtk_dpi_atomic_check(struct drm_encoder *encoder, encoder 598 drivers/gpu/drm/mediatek/mtk_dpi.c ret = drm_encoder_init(drm_dev, &dpi->encoder, &mtk_dpi_encoder_funcs, encoder 604 drivers/gpu/drm/mediatek/mtk_dpi.c drm_encoder_helper_add(&dpi->encoder, &mtk_dpi_encoder_helper_funcs); encoder 607 drivers/gpu/drm/mediatek/mtk_dpi.c dpi->encoder.possible_crtcs = BIT(1); encoder 609 drivers/gpu/drm/mediatek/mtk_dpi.c ret = drm_bridge_attach(&dpi->encoder, dpi->bridge, NULL); encoder 623 drivers/gpu/drm/mediatek/mtk_dpi.c drm_encoder_cleanup(&dpi->encoder); encoder 635 drivers/gpu/drm/mediatek/mtk_dpi.c drm_encoder_cleanup(&dpi->encoder); encoder 214 drivers/gpu/drm/mediatek/mtk_drm_crtc.c struct drm_encoder *encoder; encoder 228 drivers/gpu/drm/mediatek/mtk_drm_crtc.c drm_for_each_encoder(encoder, crtc->dev) { encoder 229 drivers/gpu/drm/mediatek/mtk_drm_crtc.c if (encoder->crtc != crtc) encoder 234 drivers/gpu/drm/mediatek/mtk_drm_crtc.c if (connector->encoder != encoder) encoder 157 drivers/gpu/drm/mediatek/mtk_dsi.c struct drm_encoder encoder; encoder 183 drivers/gpu/drm/mediatek/mtk_dsi.c return container_of(e, struct mtk_dsi, encoder); encoder 707 drivers/gpu/drm/mediatek/mtk_dsi.c static void mtk_dsi_encoder_destroy(struct drm_encoder *encoder) encoder 709 drivers/gpu/drm/mediatek/mtk_dsi.c drm_encoder_cleanup(encoder); encoder 716 drivers/gpu/drm/mediatek/mtk_dsi.c static bool mtk_dsi_encoder_mode_fixup(struct drm_encoder *encoder, encoder 723 drivers/gpu/drm/mediatek/mtk_dsi.c static void mtk_dsi_encoder_mode_set(struct drm_encoder *encoder, encoder 727 drivers/gpu/drm/mediatek/mtk_dsi.c struct mtk_dsi *dsi = encoder_to_dsi(encoder); encoder 732 drivers/gpu/drm/mediatek/mtk_dsi.c static void mtk_dsi_encoder_disable(struct drm_encoder *encoder) encoder 734 drivers/gpu/drm/mediatek/mtk_dsi.c struct mtk_dsi *dsi = encoder_to_dsi(encoder); encoder 739 drivers/gpu/drm/mediatek/mtk_dsi.c static void mtk_dsi_encoder_enable(struct drm_encoder *encoder) encoder 741 drivers/gpu/drm/mediatek/mtk_dsi.c struct mtk_dsi *dsi = encoder_to_dsi(encoder); encoder 787 drivers/gpu/drm/mediatek/mtk_dsi.c drm_connector_attach_encoder(&dsi->conn, &dsi->encoder); encoder 808 drivers/gpu/drm/mediatek/mtk_dsi.c ret = drm_encoder_init(drm, &dsi->encoder, &mtk_dsi_encoder_funcs, encoder 814 drivers/gpu/drm/mediatek/mtk_dsi.c drm_encoder_helper_add(&dsi->encoder, &mtk_dsi_encoder_helper_funcs); encoder 820 drivers/gpu/drm/mediatek/mtk_dsi.c dsi->encoder.possible_crtcs = 1; encoder 824 drivers/gpu/drm/mediatek/mtk_dsi.c ret = drm_bridge_attach(&dsi->encoder, dsi->bridge, NULL); encoder 839 drivers/gpu/drm/mediatek/mtk_dsi.c drm_encoder_cleanup(&dsi->encoder); encoder 845 drivers/gpu/drm/mediatek/mtk_dsi.c drm_encoder_cleanup(&dsi->encoder); encoder 1266 drivers/gpu/drm/mediatek/mtk_hdmi.c return hdmi->bridge.encoder; encoder 1289 drivers/gpu/drm/mediatek/mtk_hdmi.c if (hdmi && hdmi->bridge.encoder && hdmi->bridge.encoder->dev) encoder 1290 drivers/gpu/drm/mediatek/mtk_hdmi.c drm_helper_hpd_irq_event(hdmi->bridge.encoder->dev); encoder 1302 drivers/gpu/drm/mediatek/mtk_hdmi.c ret = drm_connector_init(bridge->encoder->dev, &hdmi->conn, encoder 1316 drivers/gpu/drm/mediatek/mtk_hdmi.c bridge->encoder); encoder 1324 drivers/gpu/drm/mediatek/mtk_hdmi.c ret = drm_bridge_attach(bridge->encoder, hdmi->next_bridge, encoder 1541 drivers/gpu/drm/mediatek/mtk_hdmi.c if (!hdmi->bridge.encoder) encoder 137 drivers/gpu/drm/meson/meson_dw_hdmi.c struct drm_encoder encoder; encoder 153 drivers/gpu/drm/meson/meson_dw_hdmi.c container_of(x, struct meson_dw_hdmi, encoder) encoder 605 drivers/gpu/drm/meson/meson_dw_hdmi.c drm_helper_hpd_irq_event(dw_hdmi->encoder.dev); encoder 666 drivers/gpu/drm/meson/meson_dw_hdmi.c static void meson_venc_hdmi_encoder_destroy(struct drm_encoder *encoder) encoder 668 drivers/gpu/drm/meson/meson_dw_hdmi.c drm_encoder_cleanup(encoder); encoder 675 drivers/gpu/drm/meson/meson_dw_hdmi.c static int meson_venc_hdmi_encoder_atomic_check(struct drm_encoder *encoder, encoder 682 drivers/gpu/drm/meson/meson_dw_hdmi.c static void meson_venc_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 684 drivers/gpu/drm/meson/meson_dw_hdmi.c struct meson_dw_hdmi *dw_hdmi = encoder_to_meson_dw_hdmi(encoder); encoder 696 drivers/gpu/drm/meson/meson_dw_hdmi.c static void meson_venc_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 698 drivers/gpu/drm/meson/meson_dw_hdmi.c struct meson_dw_hdmi *dw_hdmi = encoder_to_meson_dw_hdmi(encoder); encoder 709 drivers/gpu/drm/meson/meson_dw_hdmi.c static void meson_venc_hdmi_encoder_mode_set(struct drm_encoder *encoder, encoder 713 drivers/gpu/drm/meson/meson_dw_hdmi.c struct meson_dw_hdmi *dw_hdmi = encoder_to_meson_dw_hdmi(encoder); encoder 814 drivers/gpu/drm/meson/meson_dw_hdmi.c struct drm_encoder *encoder; encoder 841 drivers/gpu/drm/meson/meson_dw_hdmi.c encoder = &meson_dw_hdmi->encoder; encoder 915 drivers/gpu/drm/meson/meson_dw_hdmi.c drm_encoder_helper_add(encoder, &meson_venc_hdmi_encoder_helper_funcs); encoder 917 drivers/gpu/drm/meson/meson_dw_hdmi.c ret = drm_encoder_init(drm, encoder, &meson_venc_hdmi_encoder_funcs, encoder 924 drivers/gpu/drm/meson/meson_dw_hdmi.c encoder->possible_crtcs = BIT(0); encoder 974 drivers/gpu/drm/meson/meson_dw_hdmi.c meson_dw_hdmi->hdmi = dw_hdmi_bind(pdev, encoder, encoder 32 drivers/gpu/drm/meson/meson_venc_cvbs.c struct drm_encoder encoder; encoder 37 drivers/gpu/drm/meson/meson_venc_cvbs.c container_of(x, struct meson_venc_cvbs, encoder) encoder 145 drivers/gpu/drm/meson/meson_venc_cvbs.c static void meson_venc_cvbs_encoder_destroy(struct drm_encoder *encoder) encoder 147 drivers/gpu/drm/meson/meson_venc_cvbs.c drm_encoder_cleanup(encoder); encoder 154 drivers/gpu/drm/meson/meson_venc_cvbs.c static int meson_venc_cvbs_encoder_atomic_check(struct drm_encoder *encoder, encoder 164 drivers/gpu/drm/meson/meson_venc_cvbs.c static void meson_venc_cvbs_encoder_disable(struct drm_encoder *encoder) encoder 167 drivers/gpu/drm/meson/meson_venc_cvbs.c encoder_to_meson_venc_cvbs(encoder); encoder 180 drivers/gpu/drm/meson/meson_venc_cvbs.c static void meson_venc_cvbs_encoder_enable(struct drm_encoder *encoder) encoder 183 drivers/gpu/drm/meson/meson_venc_cvbs.c encoder_to_meson_venc_cvbs(encoder); encoder 203 drivers/gpu/drm/meson/meson_venc_cvbs.c static void meson_venc_cvbs_encoder_mode_set(struct drm_encoder *encoder, encoder 209 drivers/gpu/drm/meson/meson_venc_cvbs.c encoder_to_meson_venc_cvbs(encoder); encoder 246 drivers/gpu/drm/meson/meson_venc_cvbs.c struct drm_encoder *encoder; encoder 260 drivers/gpu/drm/meson/meson_venc_cvbs.c encoder = &meson_venc_cvbs->encoder; encoder 279 drivers/gpu/drm/meson/meson_venc_cvbs.c drm_encoder_helper_add(encoder, &meson_venc_cvbs_encoder_helper_funcs); encoder 281 drivers/gpu/drm/meson/meson_venc_cvbs.c ret = drm_encoder_init(drm, encoder, &meson_venc_cvbs_encoder_funcs, encoder 288 drivers/gpu/drm/meson/meson_venc_cvbs.c encoder->possible_crtcs = BIT(0); encoder 290 drivers/gpu/drm/meson/meson_venc_cvbs.c drm_connector_attach_encoder(connector, encoder); encoder 1464 drivers/gpu/drm/mgag200/mgag200_mode.c static void mga_encoder_mode_set(struct drm_encoder *encoder, encoder 1471 drivers/gpu/drm/mgag200/mgag200_mode.c static void mga_encoder_dpms(struct drm_encoder *encoder, int state) encoder 1476 drivers/gpu/drm/mgag200/mgag200_mode.c static void mga_encoder_prepare(struct drm_encoder *encoder) encoder 1480 drivers/gpu/drm/mgag200/mgag200_mode.c static void mga_encoder_commit(struct drm_encoder *encoder) encoder 1484 drivers/gpu/drm/mgag200/mgag200_mode.c static void mga_encoder_destroy(struct drm_encoder *encoder) encoder 1486 drivers/gpu/drm/mgag200/mgag200_mode.c struct mga_encoder *mga_encoder = to_mga_encoder(encoder); encoder 1487 drivers/gpu/drm/mgag200/mgag200_mode.c drm_encoder_cleanup(encoder); encoder 1504 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_encoder *encoder; encoder 1511 drivers/gpu/drm/mgag200/mgag200_mode.c encoder = &mga_encoder->base; encoder 1512 drivers/gpu/drm/mgag200/mgag200_mode.c encoder->possible_crtcs = 0x1; encoder 1514 drivers/gpu/drm/mgag200/mgag200_mode.c drm_encoder_init(dev, encoder, &mga_encoder_encoder_funcs, encoder 1516 drivers/gpu/drm/mgag200/mgag200_mode.c drm_encoder_helper_add(encoder, &mga_encoder_helper_funcs); encoder 1518 drivers/gpu/drm/mgag200/mgag200_mode.c return encoder; encoder 1700 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_encoder *encoder; encoder 1712 drivers/gpu/drm/mgag200/mgag200_mode.c encoder = mga_encoder_init(mdev->dev); encoder 1713 drivers/gpu/drm/mgag200/mgag200_mode.c if (!encoder) { encoder 1724 drivers/gpu/drm/mgag200/mgag200_mode.c drm_connector_attach_encoder(connector, encoder); encoder 267 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_encoder *encoder; encoder 277 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) encoder 278 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c return dpu_encoder_get_intf_mode(encoder); encoder 425 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_encoder *encoder; encoder 460 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) encoder 461 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_trigger_kickoff_pending(encoder); encoder 607 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_encoder *encoder; encoder 626 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, encoder 628 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_prepare_for_kickoff(encoder); encoder 640 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) encoder 641 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_kickoff(encoder); encoder 692 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_encoder *encoder; encoder 711 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, encoder 717 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c if (dpu_encoder_get_intf_mode(encoder) == INTF_MODE_VIDEO) encoder 719 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_assign_crtc(encoder, NULL); encoder 741 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) encoder 742 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_register_frame_event_callback(encoder, NULL, NULL); encoder 765 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_encoder *encoder; encoder 780 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) { encoder 785 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c if (dpu_encoder_get_intf_mode(encoder) == INTF_MODE_VIDEO) encoder 787 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_register_frame_event_callback(encoder, encoder 797 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) encoder 798 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c dpu_encoder_assign_crtc(encoder, crtc); encoder 977 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c if (conn_iter->encoder == drm_enc) encoder 1964 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c static int dpu_encoder_late_register(struct drm_encoder *encoder) encoder 1966 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c return _dpu_encoder_init_debugfs(encoder); encoder 1969 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c static void dpu_encoder_early_unregister(struct drm_encoder *encoder) encoder 1971 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c struct dpu_encoder_virt *dpu_enc = to_dpu_encoder_virt(encoder); encoder 2299 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c enum dpu_intf_mode dpu_encoder_get_intf_mode(struct drm_encoder *encoder) encoder 2304 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c if (!encoder) { encoder 2308 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c dpu_enc = to_dpu_encoder_virt(encoder); encoder 34 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_get_hw_resources(struct drm_encoder *encoder, encoder 42 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_assign_crtc(struct drm_encoder *encoder, encoder 52 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_toggle_vblank_for_crtc(struct drm_encoder *encoder, encoder 62 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_register_frame_event_callback(struct drm_encoder *encoder, encoder 72 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_prepare_for_kickoff(struct drm_encoder *encoder); encoder 79 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_trigger_kickoff_pending(struct drm_encoder *encoder); encoder 86 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_kickoff(struct drm_encoder *encoder); encoder 117 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h enum dpu_intf_mode dpu_encoder_get_intf_mode(struct drm_encoder *encoder); encoder 123 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h void dpu_encoder_virt_runtime_resume(struct drm_encoder *encoder); encoder 116 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h int (*late_register)(struct dpu_encoder_phys *encoder, encoder 118 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h void (*prepare_commit)(struct dpu_encoder_phys *encoder); encoder 119 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h bool (*is_master)(struct dpu_encoder_phys *encoder); encoder 120 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h bool (*mode_fixup)(struct dpu_encoder_phys *encoder, encoder 123 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h void (*mode_set)(struct dpu_encoder_phys *encoder, encoder 126 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h void (*enable)(struct dpu_encoder_phys *encoder); encoder 127 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h void (*disable)(struct dpu_encoder_phys *encoder); encoder 128 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h int (*atomic_check)(struct dpu_encoder_phys *encoder, encoder 131 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h void (*destroy)(struct dpu_encoder_phys *encoder); encoder 132 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h void (*get_hw_resources)(struct dpu_encoder_phys *encoder, encoder 267 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder; encoder 269 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c drm_for_each_encoder_mask(encoder, crtc->dev, crtc->state->encoder_mask) { encoder 272 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c if (dpu_encoder_vsync_time(encoder, &vsync_time) == 0) encoder 287 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder; encoder 301 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c drm_for_each_encoder_mask(encoder, crtc->dev, encoder 303 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c dpu_encoder_prepare_commit(encoder); encoder 326 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c void dpu_kms_encoder_enable(struct drm_encoder *encoder) encoder 328 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c const struct drm_encoder_helper_funcs *funcs = encoder->helper_private; encoder 329 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_device *dev = encoder->dev; encoder 334 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c funcs->commit(encoder); encoder 338 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c if (!(crtc->state->encoder_mask & drm_encoder_mask(encoder))) encoder 361 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder; encoder 382 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 383 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c if (encoder->crtc != crtc) encoder 391 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c ret = dpu_encoder_wait_for_event(encoder, MSM_ENC_COMMIT_DONE); encoder 412 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder = NULL; encoder 419 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c encoder = dpu_encoder_init(dev, DRM_MODE_ENCODER_DSI); encoder 420 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c if (IS_ERR(encoder)) { encoder 422 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c return PTR_ERR(encoder); encoder 425 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c priv->encoders[priv->num_encoders++] = encoder; encoder 431 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c rc = msm_dsi_modeset_init(priv->dsi[i], dev, encoder); encoder 577 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder) encoder 647 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder, encoder 651 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct msm_drm_private *priv = encoder->dev->dev_private; encoder 656 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c info.intf_type = encoder->encoder_type; encoder 668 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c rc = dpu_encoder_setup(encoder->dev, encoder, &info); encoder 671 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c encoder->base.id, rc); encoder 1084 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct drm_encoder *encoder; encoder 1102 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c drm_for_each_encoder(encoder, ddev) encoder 1103 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c dpu_encoder_virt_runtime_resume(encoder); encoder 228 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h void dpu_kms_encoder_enable(struct drm_encoder *encoder); encoder 21 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c static struct mdp4_kms *get_kms(struct drm_encoder *encoder) encoder 23 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct msm_drm_private *priv = encoder->dev->dev_private; encoder 27 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c static void mdp4_dsi_encoder_destroy(struct drm_encoder *encoder) encoder 29 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct mdp4_dsi_encoder *mdp4_dsi_encoder = to_mdp4_dsi_encoder(encoder); encoder 31 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c drm_encoder_cleanup(encoder); encoder 39 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c static void mdp4_dsi_encoder_mode_set(struct drm_encoder *encoder, encoder 43 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 93 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c static void mdp4_dsi_encoder_disable(struct drm_encoder *encoder) encoder 95 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct mdp4_dsi_encoder *mdp4_dsi_encoder = to_mdp4_dsi_encoder(encoder); encoder 96 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 116 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c static void mdp4_dsi_encoder_enable(struct drm_encoder *encoder) encoder 118 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct mdp4_dsi_encoder *mdp4_dsi_encoder = to_mdp4_dsi_encoder(encoder); encoder 119 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 124 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c mdp4_crtc_set_config(encoder->crtc, encoder 133 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c mdp4_crtc_set_intf(encoder->crtc, INTF_DSI_VIDEO, 0); encoder 149 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct drm_encoder *encoder = NULL; encoder 159 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c encoder = &mdp4_dsi_encoder->base; encoder 161 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c drm_encoder_init(dev, encoder, &mdp4_dsi_encoder_funcs, encoder 163 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c drm_encoder_helper_add(encoder, &mdp4_dsi_encoder_helper_funcs); encoder 165 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c return encoder; encoder 168 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c if (encoder) encoder 169 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c mdp4_dsi_encoder_destroy(encoder); encoder 22 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c static struct mdp4_kms *get_kms(struct drm_encoder *encoder) encoder 24 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct msm_drm_private *priv = encoder->dev->dev_private; encoder 72 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c static void mdp4_dtv_encoder_destroy(struct drm_encoder *encoder) encoder 74 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_dtv_encoder *mdp4_dtv_encoder = to_mdp4_dtv_encoder(encoder); encoder 76 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c drm_encoder_cleanup(encoder); encoder 84 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c static void mdp4_dtv_encoder_mode_set(struct drm_encoder *encoder, encoder 88 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_dtv_encoder *mdp4_dtv_encoder = to_mdp4_dtv_encoder(encoder); encoder 89 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 142 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c static void mdp4_dtv_encoder_disable(struct drm_encoder *encoder) encoder 144 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_dtv_encoder *mdp4_dtv_encoder = to_mdp4_dtv_encoder(encoder); encoder 145 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 170 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c static void mdp4_dtv_encoder_enable(struct drm_encoder *encoder) encoder 172 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct drm_device *dev = encoder->dev; encoder 173 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_dtv_encoder *mdp4_dtv_encoder = to_mdp4_dtv_encoder(encoder); encoder 174 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 181 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c mdp4_crtc_set_config(encoder->crtc, encoder 186 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c mdp4_crtc_set_intf(encoder->crtc, INTF_LCDC_DTV, 1); encoder 216 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c long mdp4_dtv_round_pixclk(struct drm_encoder *encoder, unsigned long rate) encoder 218 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct mdp4_dtv_encoder *mdp4_dtv_encoder = to_mdp4_dtv_encoder(encoder); encoder 225 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct drm_encoder *encoder = NULL; encoder 235 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c encoder = &mdp4_dtv_encoder->base; encoder 237 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c drm_encoder_init(dev, encoder, &mdp4_dtv_encoder_funcs, encoder 239 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c drm_encoder_helper_add(encoder, &mdp4_dtv_encoder_helper_funcs); encoder 257 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c return encoder; encoder 260 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c if (encoder) encoder 261 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c mdp4_dtv_encoder_destroy(encoder); encoder 147 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c struct drm_encoder *encoder) encoder 150 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c switch (encoder->encoder_type) { encoder 152 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c return mdp4_dtv_round_pixclk(encoder, rate); encoder 244 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c struct drm_encoder *encoder; encoder 260 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c encoder = mdp4_lcdc_encoder_init(dev, panel_node); encoder 261 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c if (IS_ERR(encoder)) { encoder 263 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c return PTR_ERR(encoder); encoder 267 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c encoder->possible_crtcs = 1 << DMA_P; encoder 269 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c connector = mdp4_lvds_connector_init(dev, panel_node, encoder); encoder 275 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c priv->encoders[priv->num_encoders++] = encoder; encoder 280 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c encoder = mdp4_dtv_encoder_init(dev); encoder 281 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c if (IS_ERR(encoder)) { encoder 283 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c return PTR_ERR(encoder); encoder 287 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c encoder->possible_crtcs = 1 << 1; encoder 291 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c ret = msm_hdmi_modeset_init(priv->hdmi, dev, encoder); encoder 298 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c priv->encoders[priv->num_encoders++] = encoder; encoder 308 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c encoder = mdp4_dsi_encoder_init(dev); encoder 309 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c if (IS_ERR(encoder)) { encoder 310 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c ret = PTR_ERR(encoder); encoder 317 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c encoder->possible_crtcs = 1 << DMA_P; encoder 318 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c priv->encoders[priv->num_encoders++] = encoder; encoder 320 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c ret = msm_dsi_modeset_init(priv->dsi[dsi_id], dev, encoder); encoder 197 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h long mdp4_dtv_round_pixclk(struct drm_encoder *encoder, unsigned long rate); encoder 200 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h long mdp4_lcdc_round_pixclk(struct drm_encoder *encoder, unsigned long rate); encoder 205 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h struct device_node *panel_node, struct drm_encoder *encoder); encoder 27 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static struct mdp4_kms *get_kms(struct drm_encoder *encoder) encoder 29 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct msm_drm_private *priv = encoder->dev->dev_private; encoder 73 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static void mdp4_lcdc_encoder_destroy(struct drm_encoder *encoder) encoder 76 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c to_mdp4_lcdc_encoder(encoder); encoder 78 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c drm_encoder_cleanup(encoder); encoder 87 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static struct drm_connector *get_connector(struct drm_encoder *encoder) encoder 89 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_device *dev = encoder->dev; encoder 93 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c if (connector->encoder == encoder) encoder 99 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static void setup_phy(struct drm_encoder *encoder) encoder 101 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_device *dev = encoder->dev; encoder 102 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_connector *connector = get_connector(encoder); encoder 103 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 254 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static void mdp4_lcdc_encoder_mode_set(struct drm_encoder *encoder, encoder 259 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c to_mdp4_lcdc_encoder(encoder); encoder 260 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 313 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static void mdp4_lcdc_encoder_disable(struct drm_encoder *encoder) encoder 315 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_device *dev = encoder->dev; encoder 317 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c to_mdp4_lcdc_encoder(encoder); encoder 318 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 356 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c static void mdp4_lcdc_encoder_enable(struct drm_encoder *encoder) encoder 358 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_device *dev = encoder->dev; encoder 360 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c to_mdp4_lcdc_encoder(encoder); encoder 362 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct mdp4_kms *mdp4_kms = get_kms(encoder); encoder 382 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c mdp4_crtc_set_config(encoder->crtc, config); encoder 383 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c mdp4_crtc_set_intf(encoder->crtc, INTF_LCDC_DTV, 0); encoder 407 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c setup_phy(encoder); encoder 420 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c long mdp4_lcdc_round_pixclk(struct drm_encoder *encoder, unsigned long rate) encoder 423 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c to_mdp4_lcdc_encoder(encoder); encoder 431 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_encoder *encoder = NULL; encoder 444 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c encoder = &mdp4_lcdc_encoder->base; encoder 446 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c drm_encoder_init(dev, encoder, &mdp4_lcdc_encoder_funcs, encoder 448 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c drm_encoder_helper_add(encoder, &mdp4_lcdc_encoder_helper_funcs); encoder 485 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c return encoder; encoder 488 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c if (encoder) encoder 489 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c mdp4_lcdc_encoder_destroy(encoder); encoder 12 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c struct drm_encoder *encoder; encoder 69 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c struct drm_encoder *encoder = mdp4_lvds_connector->encoder; encoder 73 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c actual = mdp4_lcdc_round_pixclk(encoder, requested); encoder 99 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c struct device_node *panel_node, struct drm_encoder *encoder) encoder 108 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c mdp4_lvds_connector->encoder = encoder; encoder 122 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c drm_connector_attach_encoder(connector, encoder); encoder 11 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c static struct mdp5_kms *get_kms(struct drm_encoder *encoder) encoder 13 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct msm_drm_private *priv = encoder->dev->dev_private; encoder 39 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c static int pingpong_tearcheck_setup(struct drm_encoder *encoder, encoder 42 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 43 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct device *dev = encoder->dev->dev; encoder 46 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_hw_mixer *mixer = mdp5_crtc_get_mixer(encoder->crtc); encoder 87 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c static int pingpong_tearcheck_enable(struct drm_encoder *encoder) encoder 89 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 90 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_hw_mixer *mixer = mdp5_crtc_get_mixer(encoder->crtc); encoder 97 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c DRM_DEV_ERROR(encoder->dev->dev, encoder 103 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c DRM_DEV_ERROR(encoder->dev->dev, encoder 113 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c static void pingpong_tearcheck_disable(struct drm_encoder *encoder) encoder 115 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 116 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_hw_mixer *mixer = mdp5_crtc_get_mixer(encoder->crtc); encoder 123 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c void mdp5_cmd_encoder_mode_set(struct drm_encoder *encoder, encoder 130 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c pingpong_tearcheck_setup(encoder, mode); encoder 131 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c mdp5_crtc_set_pipeline(encoder->crtc); encoder 134 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c void mdp5_cmd_encoder_disable(struct drm_encoder *encoder) encoder 136 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_encoder *mdp5_cmd_enc = to_mdp5_encoder(encoder); encoder 139 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_pipeline *pipeline = mdp5_crtc_get_pipeline(encoder->crtc); encoder 144 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c pingpong_tearcheck_disable(encoder); encoder 154 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c void mdp5_cmd_encoder_enable(struct drm_encoder *encoder) encoder 156 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_encoder *mdp5_cmd_enc = to_mdp5_encoder(encoder); encoder 159 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_pipeline *pipeline = mdp5_crtc_get_pipeline(encoder->crtc); encoder 165 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c if (pingpong_tearcheck_enable(encoder)) encoder 175 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c int mdp5_cmd_encoder_set_split_display(struct drm_encoder *encoder, encoder 178 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct mdp5_encoder *mdp5_cmd_enc = to_mdp5_encoder(encoder); encoder 184 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c if (!encoder || !slave_encoder) encoder 187 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c mdp5_kms = get_kms(encoder); encoder 13 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static struct mdp5_kms *get_kms(struct drm_encoder *encoder) encoder 15 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct msm_drm_private *priv = encoder->dev->dev_private; encoder 81 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_encoder_destroy(struct drm_encoder *encoder) encoder 83 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 85 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c drm_encoder_cleanup(encoder); encoder 93 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_vid_encoder_mode_set(struct drm_encoder *encoder, encoder 97 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 98 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 99 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct drm_device *dev = encoder->dev; encoder 127 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (connector->encoder == encoder) { encoder 191 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_crtc_set_pipeline(encoder->crtc); encoder 194 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_vid_encoder_disable(struct drm_encoder *encoder) encoder 196 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 197 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 199 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_pipeline *pipeline = mdp5_crtc_get_pipeline(encoder->crtc); encoder 200 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_hw_mixer *mixer = mdp5_crtc_get_mixer(encoder->crtc); encoder 230 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_vid_encoder_enable(struct drm_encoder *encoder) encoder 232 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 233 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 236 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_pipeline *pipeline = mdp5_crtc_get_pipeline(encoder->crtc); encoder 254 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_encoder_mode_set(struct drm_encoder *encoder, encoder 258 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 262 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); encoder 264 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); encoder 267 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_encoder_disable(struct drm_encoder *encoder) encoder 269 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 273 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_cmd_encoder_disable(encoder); encoder 275 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_vid_encoder_disable(encoder); encoder 278 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static void mdp5_encoder_enable(struct drm_encoder *encoder) encoder 280 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 283 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct drm_crtc_state *cstate = encoder->crtc->state; encoder 285 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); encoder 288 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_cmd_encoder_enable(encoder); encoder 290 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_vid_encoder_enable(encoder); encoder 293 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c static int mdp5_encoder_atomic_check(struct drm_encoder *encoder, encoder 297 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 325 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c int mdp5_encoder_get_linecount(struct drm_encoder *encoder) encoder 327 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 328 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 334 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c u32 mdp5_encoder_get_framecount(struct drm_encoder *encoder) encoder 336 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 337 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_kms *mdp5_kms = get_kms(encoder); encoder 343 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c int mdp5_vid_encoder_set_split_display(struct drm_encoder *encoder, encoder 346 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 353 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (!encoder || !slave_encoder) encoder 356 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_kms = get_kms(encoder); encoder 385 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c void mdp5_encoder_set_intf_mode(struct drm_encoder *encoder, bool cmd_mode) encoder 387 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); encoder 407 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct drm_encoder *encoder = NULL; encoder 419 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c encoder = &mdp5_encoder->base; encoder 425 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c drm_encoder_init(dev, encoder, &mdp5_encoder_funcs, enc_type, NULL); encoder 427 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c drm_encoder_helper_add(encoder, &mdp5_encoder_helper_funcs); encoder 431 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c return encoder; encoder 434 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (encoder) encoder 435 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_encoder_destroy(encoder); encoder 198 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder) encoder 204 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder, encoder 209 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c return mdp5_cmd_encoder_set_split_display(encoder, encoder 212 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c return mdp5_vid_encoder_set_split_display(encoder, encoder 217 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder, encoder 220 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c mdp5_encoder_set_intf_mode(encoder, cmd_mode); encoder 347 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder; encoder 349 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder = mdp5_encoder_init(dev, intf, ctl); encoder 350 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (IS_ERR(encoder)) { encoder 352 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c return encoder; encoder 355 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c priv->encoders[priv->num_encoders++] = encoder; encoder 357 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c return encoder; encoder 385 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder; encoder 399 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder = construct_encoder(mdp5_kms, intf, ctl); encoder 400 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (IS_ERR(encoder)) { encoder 401 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c ret = PTR_ERR(encoder); encoder 405 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c ret = msm_edp_modeset_init(priv->edp, dev, encoder); encoder 417 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder = construct_encoder(mdp5_kms, intf, ctl); encoder 418 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (IS_ERR(encoder)) { encoder 419 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c ret = PTR_ERR(encoder); encoder 423 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c ret = msm_hdmi_modeset_init(priv->hdmi, dev, encoder); encoder 447 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder = construct_encoder(mdp5_kms, intf, ctl); encoder 448 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (IS_ERR(encoder)) { encoder 449 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c ret = PTR_ERR(encoder); encoder 453 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c ret = msm_dsi_modeset_init(priv->dsi[dsi_id], dev, encoder); encoder 542 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder = priv->encoders[i]; encoder 544 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder->possible_crtcs = (1 << priv->num_crtcs) - 1; encoder 589 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder; encoder 591 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c drm_for_each_encoder(encoder, dev) encoder 592 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (encoder->crtc == crtc) encoder 593 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c return encoder; encoder 605 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder; encoder 614 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder = get_encoder_from_crtc(crtc); encoder 615 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (!encoder) { encoder 639 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c line = mdp5_encoder_get_linecount(encoder); encoder 662 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c struct drm_encoder *encoder; encoder 671 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c encoder = get_encoder_from_crtc(crtc); encoder 672 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c if (!encoder) encoder 675 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c return mdp5_encoder_get_framecount(encoder); encoder 292 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h int mdp5_vid_encoder_set_split_display(struct drm_encoder *encoder, encoder 294 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h void mdp5_encoder_set_intf_mode(struct drm_encoder *encoder, bool cmd_mode); encoder 295 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h int mdp5_encoder_get_linecount(struct drm_encoder *encoder); encoder 296 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h u32 mdp5_encoder_get_framecount(struct drm_encoder *encoder); encoder 299 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h void mdp5_cmd_encoder_mode_set(struct drm_encoder *encoder, encoder 302 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h void mdp5_cmd_encoder_disable(struct drm_encoder *encoder); encoder 303 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h void mdp5_cmd_encoder_enable(struct drm_encoder *encoder); encoder 304 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h int mdp5_cmd_encoder_set_split_display(struct drm_encoder *encoder, encoder 307 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h static inline void mdp5_cmd_encoder_mode_set(struct drm_encoder *encoder, encoder 312 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h static inline void mdp5_cmd_encoder_disable(struct drm_encoder *encoder) encoder 315 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h static inline void mdp5_cmd_encoder_enable(struct drm_encoder *encoder) encoder 319 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h struct drm_encoder *encoder, struct drm_encoder *slave_encoder) encoder 13 drivers/gpu/drm/msm/dsi/dsi.c return msm_dsi->encoder; encoder 191 drivers/gpu/drm/msm/dsi/dsi.c struct drm_encoder *encoder) encoder 197 drivers/gpu/drm/msm/dsi/dsi.c if (WARN_ON(!encoder) || WARN_ON(!msm_dsi) || WARN_ON(!dev)) encoder 212 drivers/gpu/drm/msm/dsi/dsi.c msm_dsi->encoder = encoder; encoder 79 drivers/gpu/drm/msm/dsi/dsi.h struct drm_encoder *encoder; encoder 239 drivers/gpu/drm/msm/dsi/dsi_manager.c struct drm_encoder *encoder = msm_dsi_get_encoder(msm_dsi); encoder 241 drivers/gpu/drm/msm/dsi/dsi_manager.c if (encoder && kms->funcs->set_encoder_mode) encoder 242 drivers/gpu/drm/msm/dsi/dsi_manager.c kms->funcs->set_encoder_mode(kms, encoder, encoder 286 drivers/gpu/drm/msm/dsi/dsi_manager.c kms->funcs->set_split_display(kms, master_dsi->encoder, encoder 287 drivers/gpu/drm/msm/dsi/dsi_manager.c slave_dsi->encoder, encoder 344 drivers/gpu/drm/msm/dsi/dsi_manager.c struct drm_encoder *encoder = msm_dsi_get_encoder(msm_dsi); encoder 351 drivers/gpu/drm/msm/dsi/dsi_manager.c actual = kms->funcs->round_pixclk(kms, requested, encoder); encoder 617 drivers/gpu/drm/msm/dsi/dsi_manager.c drm_connector_attach_encoder(connector, msm_dsi->encoder); encoder 655 drivers/gpu/drm/msm/dsi/dsi_manager.c struct drm_encoder *encoder; encoder 667 drivers/gpu/drm/msm/dsi/dsi_manager.c encoder = msm_dsi->encoder; encoder 672 drivers/gpu/drm/msm/dsi/dsi_manager.c ret = drm_bridge_attach(encoder, bridge, NULL); encoder 689 drivers/gpu/drm/msm/dsi/dsi_manager.c struct drm_encoder *encoder; encoder 698 drivers/gpu/drm/msm/dsi/dsi_manager.c encoder = msm_dsi->encoder; encoder 701 drivers/gpu/drm/msm/dsi/dsi_manager.c drm_bridge_attach(encoder, ext_bridge, int_bridge); encoder 711 drivers/gpu/drm/msm/dsi/dsi_manager.c if (drm_connector_has_possible_encoder(connector, encoder)) encoder 140 drivers/gpu/drm/msm/edp/edp.c struct drm_encoder *encoder) encoder 146 drivers/gpu/drm/msm/edp/edp.c edp->encoder = encoder; encoder 181 drivers/gpu/drm/msm/edp/edp.c encoder->bridge = edp->bridge; encoder 33 drivers/gpu/drm/msm/edp/edp.h struct drm_encoder *encoder; encoder 58 drivers/gpu/drm/msm/edp/edp_bridge.c if ((connector->encoder != NULL) && encoder 59 drivers/gpu/drm/msm/edp/edp_bridge.c (connector->encoder->bridge == bridge)) { encoder 94 drivers/gpu/drm/msm/edp/edp_bridge.c ret = drm_bridge_attach(edp->encoder, bridge, NULL); encoder 69 drivers/gpu/drm/msm/edp/edp_connector.c requested, edp_connector->edp->encoder); encoder 129 drivers/gpu/drm/msm/edp/edp_connector.c drm_connector_attach_encoder(connector, edp->encoder); encoder 281 drivers/gpu/drm/msm/hdmi/hdmi.c struct drm_device *dev, struct drm_encoder *encoder) encoder 288 drivers/gpu/drm/msm/hdmi/hdmi.c hdmi->encoder = encoder; encoder 330 drivers/gpu/drm/msm/hdmi/hdmi.c encoder->bridge = hdmi->bridge; encoder 70 drivers/gpu/drm/msm/hdmi/hdmi.h struct drm_encoder *encoder; encoder 88 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c struct drm_crtc *crtc = hdmi->encoder->crtc; encoder 290 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c ret = drm_bridge_attach(hdmi->encoder, bridge, NULL); encoder 390 drivers/gpu/drm/msm/hdmi/hdmi_connector.c requested, hdmi_connector->hdmi->encoder); encoder 446 drivers/gpu/drm/msm/hdmi/hdmi_connector.c drm_connector_attach_encoder(connector, hdmi->encoder); encoder 347 drivers/gpu/drm/msm/msm_drv.h struct drm_encoder *encoder); encoder 355 drivers/gpu/drm/msm/msm_drv.h struct drm_encoder *encoder); encoder 362 drivers/gpu/drm/msm/msm_drv.h struct drm_encoder *encoder); encoder 372 drivers/gpu/drm/msm/msm_drv.h struct drm_encoder *encoder) encoder 115 drivers/gpu/drm/msm/msm_kms.h struct drm_encoder *encoder); encoder 117 drivers/gpu/drm/msm/msm_kms.h struct drm_encoder *encoder, encoder 121 drivers/gpu/drm/msm/msm_kms.h struct drm_encoder *encoder, encoder 253 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct drm_encoder *encoder; encoder 256 drivers/gpu/drm/nouveau/dispnv04/crtc.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 257 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 259 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (encoder->crtc == crtc && encoder 464 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct drm_encoder *encoder; encoder 468 drivers/gpu/drm/nouveau/dispnv04/crtc.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 469 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 472 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (encoder->crtc != crtc) encoder 40 drivers/gpu/drm/nouveau/dispnv04/dac.c int nv04_dac_output_offset(struct drm_encoder *encoder) encoder 42 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 131 drivers/gpu/drm/nouveau/dispnv04/dac.c static enum drm_connector_status nv04_dac_detect(struct drm_encoder *encoder, encoder 134 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 234 drivers/gpu/drm/nouveau/dispnv04/dac.c uint32_t nv17_dac_sample_load(struct drm_encoder *encoder) encoder 236 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 240 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 241 drivers/gpu/drm/nouveau/dispnv04/dac.c uint32_t sample, testval, regoffset = nv04_dac_output_offset(encoder); encoder 335 drivers/gpu/drm/nouveau/dispnv04/dac.c nv17_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector) encoder 337 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_drm *drm = nouveau_drm(encoder->dev); encoder 338 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 340 drivers/gpu/drm/nouveau/dispnv04/dac.c if (nv04_dac_in_use(encoder)) encoder 343 drivers/gpu/drm/nouveau/dispnv04/dac.c if (nv17_dac_sample_load(encoder) & encoder 353 drivers/gpu/drm/nouveau/dispnv04/dac.c static bool nv04_dac_mode_fixup(struct drm_encoder *encoder, encoder 357 drivers/gpu/drm/nouveau/dispnv04/dac.c if (nv04_dac_in_use(encoder)) encoder 363 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_prepare(struct drm_encoder *encoder) encoder 365 drivers/gpu/drm/nouveau/dispnv04/dac.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 366 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 367 drivers/gpu/drm/nouveau/dispnv04/dac.c int head = nouveau_crtc(encoder->crtc)->index; encoder 369 drivers/gpu/drm/nouveau/dispnv04/dac.c helper->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 374 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_mode_set(struct drm_encoder *encoder, encoder 378 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 380 drivers/gpu/drm/nouveau/dispnv04/dac.c int head = nouveau_crtc(encoder->crtc)->index; encoder 384 drivers/gpu/drm/nouveau/dispnv04/dac.c uint32_t dac_offset = nv04_dac_output_offset(encoder); encoder 393 drivers/gpu/drm/nouveau/dispnv04/dac.c if (rebind == encoder encoder 406 drivers/gpu/drm/nouveau/dispnv04/dac.c NVWriteRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + nv04_dac_output_offset(encoder), 0xf0000000); encoder 408 drivers/gpu/drm/nouveau/dispnv04/dac.c NVWriteRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + nv04_dac_output_offset(encoder), 0x00100000); encoder 411 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_commit(struct drm_encoder *encoder) encoder 413 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 414 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_drm *drm = nouveau_drm(encoder->dev); encoder 415 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 416 drivers/gpu/drm/nouveau/dispnv04/dac.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 418 drivers/gpu/drm/nouveau/dispnv04/dac.c helper->dpms(encoder, DRM_MODE_DPMS_ON); encoder 425 drivers/gpu/drm/nouveau/dispnv04/dac.c void nv04_dac_update_dacclk(struct drm_encoder *encoder, bool enable) encoder 427 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 428 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 432 drivers/gpu/drm/nouveau/dispnv04/dac.c int dacclk_off = NV_PRAMDAC_DACCLK + nv04_dac_output_offset(encoder); encoder 450 drivers/gpu/drm/nouveau/dispnv04/dac.c bool nv04_dac_in_use(struct drm_encoder *encoder) encoder 452 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 453 drivers/gpu/drm/nouveau/dispnv04/dac.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 455 drivers/gpu/drm/nouveau/dispnv04/dac.c return nv_gf4_disp_arch(encoder->dev) && encoder 459 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_dpms(struct drm_encoder *encoder, int mode) encoder 461 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 462 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_drm *drm = nouveau_drm(encoder->dev); encoder 471 drivers/gpu/drm/nouveau/dispnv04/dac.c nv04_dac_update_dacclk(encoder, mode == DRM_MODE_DPMS_ON); encoder 474 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_save(struct drm_encoder *encoder) encoder 476 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 477 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 481 drivers/gpu/drm/nouveau/dispnv04/dac.c nv04_dac_output_offset(encoder)); encoder 484 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_restore(struct drm_encoder *encoder) encoder 486 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 487 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_device *dev = encoder->dev; encoder 490 drivers/gpu/drm/nouveau/dispnv04/dac.c NVWriteRAMDAC(dev, 0, NV_PRAMDAC_DACCLK + nv04_dac_output_offset(encoder), encoder 496 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_destroy(struct drm_encoder *encoder) encoder 498 drivers/gpu/drm/nouveau/dispnv04/dac.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 500 drivers/gpu/drm/nouveau/dispnv04/dac.c drm_encoder_cleanup(encoder); encoder 532 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_encoder *encoder; encoder 538 drivers/gpu/drm/nouveau/dispnv04/dac.c encoder = to_drm_encoder(nv_encoder); encoder 551 drivers/gpu/drm/nouveau/dispnv04/dac.c drm_encoder_init(dev, encoder, &nv04_dac_funcs, DRM_MODE_ENCODER_DAC, encoder 553 drivers/gpu/drm/nouveau/dispnv04/dac.c drm_encoder_helper_add(encoder, helper); encoder 555 drivers/gpu/drm/nouveau/dispnv04/dac.c encoder->possible_crtcs = entry->heads; encoder 556 drivers/gpu/drm/nouveau/dispnv04/dac.c encoder->possible_clones = 0; encoder 558 drivers/gpu/drm/nouveau/dispnv04/dac.c drm_connector_attach_encoder(connector, encoder); encoder 113 drivers/gpu/drm/nouveau/dispnv04/dfp.c void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode) encoder 115 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 121 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_crtc = nouveau_crtc(encoder->crtc); encoder 132 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_crtc->fp_users |= 1 << nouveau_encoder(encoder)->dcb->index; encoder 139 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_crtc->fp_users &= ~(1 << nouveau_encoder(encoder)->dcb->index); encoder 152 drivers/gpu/drm/nouveau/dispnv04/dfp.c static struct drm_encoder *get_tmds_slave(struct drm_encoder *encoder) encoder 154 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 155 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 182 drivers/gpu/drm/nouveau/dispnv04/dfp.c static bool nv04_dfp_mode_fixup(struct drm_encoder *encoder, encoder 186 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 244 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_prepare(struct drm_encoder *encoder) encoder 246 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 247 drivers/gpu/drm/nouveau/dispnv04/dfp.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 248 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 249 drivers/gpu/drm/nouveau/dispnv04/dfp.c int head = nouveau_crtc(encoder->crtc)->index; encoder 254 drivers/gpu/drm/nouveau/dispnv04/dfp.c helper->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 279 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_mode_set(struct drm_encoder *encoder, encoder 283 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 286 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 290 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 293 drivers/gpu/drm/nouveau/dispnv04/dfp.c const struct drm_framebuffer *fb = encoder->crtc->primary->fb; encoder 445 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_commit(struct drm_encoder *encoder) encoder 447 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 449 drivers/gpu/drm/nouveau/dispnv04/dfp.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 450 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 451 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 453 drivers/gpu/drm/nouveau/dispnv04/dfp.c int head = nouveau_crtc(encoder->crtc)->index; encoder 468 drivers/gpu/drm/nouveau/dispnv04/dfp.c NVWriteRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + nv04_dac_output_offset(encoder), 0xf0000000); encoder 470 drivers/gpu/drm/nouveau/dispnv04/dfp.c NVWriteRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + nv04_dac_output_offset(encoder), 0x00100000); encoder 473 drivers/gpu/drm/nouveau/dispnv04/dfp.c slave_encoder = get_tmds_slave(encoder); encoder 478 drivers/gpu/drm/nouveau/dispnv04/dfp.c helper->dpms(encoder, DRM_MODE_DPMS_ON); encoder 485 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode) encoder 488 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 512 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_lvds_dpms(struct drm_encoder *encoder, int mode) encoder 514 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 515 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_crtc *crtc = encoder->crtc; encoder 517 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 548 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_backlight(encoder, mode); encoder 549 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_fp_control(encoder, mode); encoder 560 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_tmds_dpms(struct drm_encoder *encoder, int mode) encoder 562 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_drm *drm = nouveau_drm(encoder->dev); encoder 563 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 572 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_backlight(encoder, mode); encoder 573 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_fp_control(encoder, mode); encoder 576 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_save(struct drm_encoder *encoder) encoder 578 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 579 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 586 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_restore(struct drm_encoder *encoder) encoder 588 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 589 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 611 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_destroy(struct drm_encoder *encoder) encoder 613 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 615 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (get_slave_funcs(encoder)) encoder 616 drivers/gpu/drm/nouveau/dispnv04/dfp.c get_slave_funcs(encoder)->destroy(encoder); encoder 618 drivers/gpu/drm/nouveau/dispnv04/dfp.c drm_encoder_cleanup(encoder); encoder 622 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_tmds_slave_init(struct drm_encoder *encoder) encoder 624 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_device *dev = encoder->dev; encoder 625 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 643 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (!nv_gf4_disp_arch(dev) || !bus || get_tmds_slave(encoder)) encoder 650 drivers/gpu/drm/nouveau/dispnv04/dfp.c drm_i2c_encoder_init(dev, to_encoder_slave(encoder), encoder 681 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_encoder *encoder; encoder 704 drivers/gpu/drm/nouveau/dispnv04/dfp.c encoder = to_drm_encoder(nv_encoder); encoder 709 drivers/gpu/drm/nouveau/dispnv04/dfp.c drm_encoder_init(connector->dev, encoder, &nv04_dfp_funcs, type, NULL); encoder 710 drivers/gpu/drm/nouveau/dispnv04/dfp.c drm_encoder_helper_add(encoder, helper); encoder 712 drivers/gpu/drm/nouveau/dispnv04/dfp.c encoder->possible_crtcs = entry->heads; encoder 713 drivers/gpu/drm/nouveau/dispnv04/dfp.c encoder->possible_clones = 0; encoder 717 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_tmds_slave_init(encoder); encoder 719 drivers/gpu/drm/nouveau/dispnv04/dfp.c drm_connector_attach_encoder(connector, encoder); encoder 79 drivers/gpu/drm/nouveau/dispnv04/disp.c struct nouveau_encoder *encoder; encoder 96 drivers/gpu/drm/nouveau/dispnv04/disp.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.base.head) encoder 97 drivers/gpu/drm/nouveau/dispnv04/disp.c encoder->enc_save(&encoder->base.base); encoder 167 drivers/gpu/drm/nouveau/dispnv04/disp.c struct nouveau_encoder *encoder; encoder 171 drivers/gpu/drm/nouveau/dispnv04/disp.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.base.head) encoder 172 drivers/gpu/drm/nouveau/dispnv04/disp.c encoder->enc_restore(&encoder->base.base); encoder 194 drivers/gpu/drm/nouveau/dispnv04/disp.c struct drm_encoder *encoder; encoder 266 drivers/gpu/drm/nouveau/dispnv04/disp.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 267 drivers/gpu/drm/nouveau/dispnv04/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 102 drivers/gpu/drm/nouveau/dispnv04/disp.h uint32_t nv17_dac_sample_load(struct drm_encoder *encoder); encoder 103 drivers/gpu/drm/nouveau/dispnv04/disp.h int nv04_dac_output_offset(struct drm_encoder *encoder); encoder 104 drivers/gpu/drm/nouveau/dispnv04/disp.h void nv04_dac_update_dacclk(struct drm_encoder *encoder, bool enable); encoder 105 drivers/gpu/drm/nouveau/dispnv04/disp.h bool nv04_dac_in_use(struct drm_encoder *encoder); encoder 113 drivers/gpu/drm/nouveau/dispnv04/disp.h void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode); encoder 315 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c static void tv_setup_filter(struct drm_encoder *encoder) encoder 317 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 318 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 319 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_display_mode *mode = &encoder->crtc->mode; encoder 471 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c void nv17_tv_update_properties(struct drm_encoder *encoder) encoder 473 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_device *dev = encoder->dev; encoder 474 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 476 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 526 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c void nv17_tv_update_rescaler(struct drm_encoder *encoder) encoder 528 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_device *dev = encoder->dev; encoder 529 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 534 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c tv_setup_filter(encoder); encoder 542 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c void nv17_ctv_update_rescaler(struct drm_encoder *encoder) encoder 544 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_device *dev = encoder->dev; encoder 545 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 546 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c int head = nouveau_crtc(encoder->crtc)->index; encoder 548 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_display_mode *crtc_mode = &encoder->crtc->mode; encoder 550 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c &get_tv_norm(encoder)->ctv_enc_mode.mode; encoder 74 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c static void nv04_tv_dpms(struct drm_encoder *encoder, int mode) encoder 76 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct drm_device *dev = encoder->dev; encoder 78 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 88 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c int head = nouveau_crtc(encoder->crtc)->index; encoder 102 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c get_slave_funcs(encoder)->dpms(encoder, mode); encoder 124 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c static void nv04_tv_prepare(struct drm_encoder *encoder) encoder 126 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct drm_device *dev = encoder->dev; encoder 127 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c int head = nouveau_crtc(encoder->crtc)->index; encoder 128 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 130 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c helper->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 140 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c static void nv04_tv_mode_set(struct drm_encoder *encoder, encoder 144 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct drm_device *dev = encoder->dev; encoder 145 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 161 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); encoder 164 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c static void nv04_tv_commit(struct drm_encoder *encoder) encoder 166 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 167 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct drm_device *dev = encoder->dev; encoder 169 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 170 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 172 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c helper->dpms(encoder, DRM_MODE_DPMS_ON); encoder 179 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c static void nv04_tv_destroy(struct drm_encoder *encoder) encoder 181 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c get_slave_funcs(encoder)->destroy(encoder); encoder 182 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c drm_encoder_cleanup(encoder); encoder 184 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c kfree(encoder->helper_private); encoder 185 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c kfree(nouveau_encoder(encoder)); encoder 205 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct drm_encoder *encoder; encoder 223 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c encoder = to_drm_encoder(nv_encoder); encoder 225 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c drm_encoder_init(dev, encoder, &nv04_tv_funcs, DRM_MODE_ENCODER_TVDAC, encoder 227 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c drm_encoder_helper_add(encoder, &nv04_tv_helper_funcs); encoder 232 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c encoder->possible_crtcs = entry->heads; encoder 233 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c encoder->possible_clones = 0; encoder 238 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c ret = drm_i2c_encoder_init(dev, to_encoder_slave(encoder), encoder 245 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c get_slave_funcs(encoder)->create_resources(encoder, connector); encoder 246 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c drm_connector_attach_encoder(connector, encoder); encoder 251 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c drm_encoder_cleanup(encoder); encoder 45 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static uint32_t nv42_tv_sample_load(struct drm_encoder *encoder) encoder 47 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 50 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c uint32_t testval, regoffset = nv04_dac_output_offset(encoder); encoder 144 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_detect(struct drm_encoder *encoder, struct drm_connector *connector) encoder 146 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 149 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 153 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (nv04_dac_in_use(encoder)) encoder 160 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv42_tv_sample_load(encoder) >> 28 & 0xe; encoder 163 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_dac_sample_load(encoder) >> 28 & 0xe; encoder 200 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static int nv17_tv_get_ld_modes(struct drm_encoder *encoder, encoder 203 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 210 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_mode_duplicate(encoder->dev, tv_mode); encoder 230 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static int nv17_tv_get_hd_modes(struct drm_encoder *encoder, encoder 233 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 259 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_mode_duplicate(encoder->dev, output_mode); encoder 263 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, encoder 292 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static int nv17_tv_get_modes(struct drm_encoder *encoder, encoder 295 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 298 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c return nv17_tv_get_hd_modes(encoder, connector); encoder 300 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c return nv17_tv_get_ld_modes(encoder, connector); encoder 303 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static int nv17_tv_mode_valid(struct drm_encoder *encoder, encoder 306 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 344 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static bool nv17_tv_mode_fixup(struct drm_encoder *encoder, encoder 348 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 350 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (nv04_dac_in_use(encoder)) encoder 361 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_dpms(struct drm_encoder *encoder, int mode) encoder 363 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 366 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_state *regs = &to_tv_enc(encoder)->state; encoder 367 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 369 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (nouveau_encoder(encoder)->last_dpms == mode) encoder 371 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nouveau_encoder(encoder)->last_dpms = mode; encoder 374 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode, nouveau_encoder(encoder)->dcb->index); encoder 379 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dfp_update_fp_control(encoder, mode); encoder 382 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dfp_update_fp_control(encoder, DRM_MODE_DPMS_OFF); encoder 393 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_update_dacclk(encoder, mode == DRM_MODE_DPMS_ON); encoder 396 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_prepare(struct drm_encoder *encoder) encoder 398 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 400 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 401 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 402 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c int head = nouveau_crtc(encoder->crtc)->index; encoder 406 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_output_offset(encoder); encoder 409 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c helper->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 457 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_mode_set(struct drm_encoder *encoder, encoder 461 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 463 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c int head = nouveau_crtc(encoder->crtc)->index; encoder 465 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_state *tv_regs = &to_tv_enc(encoder)->state; encoder 466 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 572 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_commit(struct drm_encoder *encoder) encoder 574 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 576 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 577 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 578 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c const struct drm_encoder_helper_funcs *helper = encoder->helper_private; encoder 580 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (get_tv_norm(encoder)->kind == TV_ENC_MODE) { encoder 581 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_rescaler(encoder); encoder 582 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_properties(encoder); encoder 584 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_ctv_update_rescaler(encoder); encoder 587 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_state_load(dev, &to_tv_enc(encoder)->state); encoder 592 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_output_offset(encoder), encoder 596 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_output_offset(encoder), encoder 599 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c helper->dpms(encoder, DRM_MODE_DPMS_ON); encoder 606 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_save(struct drm_encoder *encoder) encoder 608 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 609 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 611 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nouveau_encoder(encoder)->restore.output = encoder 614 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_output_offset(encoder)); encoder 621 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_restore(struct drm_encoder *encoder) encoder 623 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 626 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_output_offset(encoder), encoder 627 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nouveau_encoder(encoder)->restore.output); encoder 629 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_state_load(dev, &to_tv_enc(encoder)->saved_state); encoder 631 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nouveau_encoder(encoder)->last_dpms = NV_DPMS_CLEARED; encoder 634 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static int nv17_tv_create_resources(struct drm_encoder *encoder, encoder 637 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_device *dev = encoder->dev; encoder 640 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 641 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct dcb_output *dcb = nouveau_encoder(encoder)->dcb; encoder 686 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static int nv17_tv_set_property(struct drm_encoder *encoder, encoder 691 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_mode_config *conf = &encoder->dev->mode_config; encoder 692 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_crtc *crtc = encoder->crtc; encoder 693 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 694 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); encoder 699 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (encoder->crtc) { encoder 701 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_ctv_update_rescaler(encoder); encoder 703 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_rescaler(encoder); encoder 711 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_properties(encoder); encoder 718 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_properties(encoder); encoder 725 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (encoder->crtc) encoder 726 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_rescaler(encoder); encoder 741 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_update_properties(encoder); encoder 761 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_destroy(struct drm_encoder *encoder) encoder 763 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); encoder 765 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_encoder_cleanup(encoder); encoder 793 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_encoder *encoder; encoder 809 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c encoder = to_drm_encoder(&tv_enc->base); encoder 814 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_encoder_init(dev, encoder, &nv17_tv_funcs, DRM_MODE_ENCODER_TVDAC, encoder 816 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_encoder_helper_add(encoder, &nv17_tv_helper_funcs); encoder 817 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c to_encoder_slave(encoder)->slave_funcs = &nv17_tv_slave_funcs; encoder 822 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c encoder->possible_crtcs = entry->heads; encoder 823 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c encoder->possible_clones = 0; encoder 825 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv17_tv_create_resources(encoder, connector); encoder 826 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_connector_attach_encoder(connector, encoder); encoder 124 drivers/gpu/drm/nouveau/dispnv04/tvnv17.h void nv17_tv_update_properties(struct drm_encoder *encoder); encoder 125 drivers/gpu/drm/nouveau/dispnv04/tvnv17.h void nv17_tv_update_rescaler(struct drm_encoder *encoder); encoder 126 drivers/gpu/drm/nouveau/dispnv04/tvnv17.h void nv17_ctv_update_rescaler(struct drm_encoder *encoder); encoder 65 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 305 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_outp_atomic_check_view(struct drm_encoder *encoder, encoder 314 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_drm *drm = nouveau_drm(encoder->dev); encoder 316 drivers/gpu/drm/nouveau/dispnv50/disp.c NV_ATOMIC(drm, "%s atomic_check\n", encoder->name); encoder 352 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_outp_atomic_check(struct drm_encoder *encoder, encoder 361 drivers/gpu/drm/nouveau/dispnv50/disp.c ret = nv50_outp_atomic_check_view(encoder, crtc_state, conn_state, encoder 376 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_dac_disable(struct drm_encoder *encoder) encoder 378 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 379 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_core *core = nv50_disp(encoder->dev)->core; encoder 387 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_dac_enable(struct drm_encoder *encoder) encoder 389 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 390 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 392 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_core *core = nv50_disp(encoder->dev)->core; encoder 399 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->crtc = encoder->crtc; encoder 403 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector) encoder 405 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 406 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 418 drivers/gpu/drm/nouveau/dispnv50/disp.c args.load.data = nouveau_drm(encoder->dev)->vbios.dactestval; encoder 438 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_dac_destroy(struct drm_encoder *encoder) encoder 440 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_cleanup(encoder); encoder 441 drivers/gpu/drm/nouveau/dispnv50/disp.c kfree(encoder); encoder 456 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 468 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder = to_drm_encoder(nv_encoder); encoder 469 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder->possible_crtcs = dcbe->heads; encoder 470 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder->possible_clones = 0; encoder 471 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_init(connector->dev, encoder, &nv50_dac_func, type, encoder 473 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_helper_add(encoder, &nv50_dac_help); encoder 475 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_connector_attach_encoder(connector, encoder); encoder 483 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) encoder 485 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 486 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 502 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_enable(struct drm_encoder *encoder, struct drm_display_mode *mode) encoder 504 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 505 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 507 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 536 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_hdmi_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc) encoder 538 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 539 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 555 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_hdmi_enable(struct drm_encoder *encoder, struct drm_display_mode *mode) encoder 557 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_drm *drm = nouveau_drm(encoder->dev); encoder 558 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 559 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 560 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 630 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_enable(encoder, mode); encoder 657 drivers/gpu/drm/nouveau/dispnv50/disp.c #define nv50_msto(p) container_of((p), struct nv50_msto, encoder) encoder 680 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder encoder; encoder 690 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev); encoder 697 drivers/gpu/drm/nouveau/dispnv50/disp.c NV_ATOMIC(drm, "%s: vcpi %d\n", msto->encoder.name, vcpi); encoder 717 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev); encoder 724 drivers/gpu/drm/nouveau/dispnv50/disp.c NV_ATOMIC(drm, "%s: msto cleanup\n", msto->encoder.name); encoder 736 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev); encoder 752 drivers/gpu/drm/nouveau/dispnv50/disp.c NV_ATOMIC(drm, "%s: msto prepare\n", msto->encoder.name); encoder 764 drivers/gpu/drm/nouveau/dispnv50/disp.c msto->encoder.name, msto->head->base.base.name, encoder 773 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_msto_atomic_check(struct drm_encoder *encoder, encoder 785 drivers/gpu/drm/nouveau/dispnv50/disp.c ret = nv50_outp_atomic_check_view(encoder, crtc_state, conn_state, encoder 834 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_msto_enable(struct drm_encoder *encoder) encoder 836 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_head *head = nv50_head(encoder->crtc); encoder 838 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_msto *msto = nv50_msto(encoder); encoder 846 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_connector_list_iter_begin(encoder->dev, &conn_iter); encoder 848 drivers/gpu/drm/nouveau/dispnv50/disp.c if (connector->state->best_encoder == &msto->encoder) { encoder 881 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_msto_disable(struct drm_encoder *encoder) encoder 883 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_msto *msto = nv50_msto(encoder); encoder 904 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_msto_destroy(struct drm_encoder *encoder) encoder 906 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_msto *msto = nv50_msto(encoder); encoder 907 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_cleanup(&msto->encoder); encoder 926 drivers/gpu/drm/nouveau/dispnv50/disp.c ret = drm_encoder_init(dev, &msto->encoder, &nv50_msto, encoder 934 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_helper_add(&msto->encoder, &nv50_msto_help); encoder 935 drivers/gpu/drm/nouveau/dispnv50/disp.c msto->encoder.possible_crtcs = heads; encoder 946 drivers/gpu/drm/nouveau/dispnv50/disp.c return &mstc->mstm->msto[head->base.index]->encoder; encoder 954 drivers/gpu/drm/nouveau/dispnv50/disp.c return &mstc->mstm->msto[0]->encoder; encoder 1096 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder); encoder 1109 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1117 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_for_each_encoder(encoder, mstm->outp->base.base.dev) { encoder 1118 drivers/gpu/drm/nouveau/dispnv50/disp.c if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST) { encoder 1119 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_msto *msto = nv50_msto(encoder); encoder 1133 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1139 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_for_each_encoder(encoder, mstm->outp->base.base.dev) { encoder 1140 drivers/gpu/drm/nouveau/dispnv50/disp.c if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST) { encoder 1141 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_msto *msto = nv50_msto(encoder); encoder 1427 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_sor_disable(struct drm_encoder *encoder) encoder 1429 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 1448 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_disable(encoder, nv_crtc); encoder 1455 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_sor_enable(struct drm_encoder *encoder) encoder 1457 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 1458 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 1470 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 1471 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_device *dev = encoder->dev; encoder 1479 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->crtc = encoder->crtc; encoder 1541 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_enable(encoder, mode); encoder 1559 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_sor_destroy(struct drm_encoder *encoder) encoder 1561 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 1563 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_cleanup(encoder); encoder 1564 drivers/gpu/drm/nouveau/dispnv50/disp.c kfree(encoder); encoder 1580 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1600 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder = to_drm_encoder(nv_encoder); encoder 1601 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder->possible_crtcs = dcbe->heads; encoder 1602 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder->possible_clones = 0; encoder 1603 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_init(connector->dev, encoder, &nv50_sor_func, type, encoder 1605 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_helper_add(encoder, &nv50_sor_help); encoder 1607 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_connector_attach_encoder(connector, encoder); encoder 1610 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_disp *disp = nv50_disp(encoder->dev); encoder 1649 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_pior_atomic_check(struct drm_encoder *encoder, encoder 1653 drivers/gpu/drm/nouveau/dispnv50/disp.c int ret = nv50_outp_atomic_check(encoder, crtc_state, conn_state); encoder 1661 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_pior_disable(struct drm_encoder *encoder) encoder 1663 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 1664 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_core *core = nv50_disp(encoder->dev)->core; encoder 1672 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_pior_enable(struct drm_encoder *encoder) encoder 1674 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); encoder 1675 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); encoder 1678 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nv50_core *core = nv50_disp(encoder->dev)->core; encoder 1703 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->crtc = encoder->crtc; encoder 1714 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_pior_destroy(struct drm_encoder *encoder) encoder 1716 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_cleanup(encoder); encoder 1717 drivers/gpu/drm/nouveau/dispnv50/disp.c kfree(encoder); encoder 1734 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1759 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder = to_drm_encoder(nv_encoder); encoder 1760 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder->possible_crtcs = dcbe->heads; encoder 1761 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder->possible_clones = 0; encoder 1762 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_init(connector->dev, encoder, &nv50_pior_func, type, encoder 1764 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_encoder_helper_add(encoder, &nv50_pior_help); encoder 1766 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_connector_attach_encoder(connector, encoder); encoder 1781 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1785 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_for_each_encoder(encoder, drm->dev) { encoder 1786 drivers/gpu/drm/nouveau/dispnv50/disp.c if (encoder->encoder_type != DRM_MODE_ENCODER_DPMST) { encoder 1787 drivers/gpu/drm/nouveau/dispnv50/disp.c mstm = nouveau_encoder(encoder)->dp.mstm; encoder 1799 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_for_each_encoder(encoder, drm->dev) { encoder 1800 drivers/gpu/drm/nouveau/dispnv50/disp.c if (encoder->encoder_type != DRM_MODE_ENCODER_DPMST) { encoder 1801 drivers/gpu/drm/nouveau/dispnv50/disp.c mstm = nouveau_encoder(encoder)->dp.mstm; encoder 1882 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1884 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder = outp->encoder; encoder 1885 drivers/gpu/drm/nouveau/dispnv50/disp.c help = encoder->helper_private; encoder 1887 drivers/gpu/drm/nouveau/dispnv50/disp.c NV_ATOMIC(drm, "%s: clr %02x (set %02x)\n", encoder->name, encoder 1891 drivers/gpu/drm/nouveau/dispnv50/disp.c help->disable(encoder); encoder 1913 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 1915 drivers/gpu/drm/nouveau/dispnv50/disp.c encoder = outp->encoder; encoder 1916 drivers/gpu/drm/nouveau/dispnv50/disp.c help = encoder->helper_private; encoder 1918 drivers/gpu/drm/nouveau/dispnv50/disp.c NV_ATOMIC(drm, "%s: set %02x (clr %02x)\n", encoder->name, encoder 1922 drivers/gpu/drm/nouveau/dispnv50/disp.c help->enable(encoder); encoder 2088 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_disp_outp_atomic_add(struct nv50_atom *atom, struct drm_encoder *encoder) encoder 2093 drivers/gpu/drm/nouveau/dispnv50/disp.c if (outp->encoder == encoder) encoder 2102 drivers/gpu/drm/nouveau/dispnv50/disp.c outp->encoder = encoder; encoder 2110 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder = old_connector_state->best_encoder; encoder 2121 drivers/gpu/drm/nouveau/dispnv50/disp.c outp = nv50_disp_outp_atomic_add(atom, encoder); encoder 2125 drivers/gpu/drm/nouveau/dispnv50/disp.c if (outp->encoder->encoder_type == DRM_MODE_ENCODER_DPMST) { encoder 2140 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder = connector_state->best_encoder; encoder 2150 drivers/gpu/drm/nouveau/dispnv50/disp.c outp = nv50_disp_outp_atomic_add(atom, encoder); encoder 2255 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 2265 drivers/gpu/drm/nouveau/dispnv50/disp.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2266 drivers/gpu/drm/nouveau/dispnv50/disp.c if (encoder->encoder_type != DRM_MODE_ENCODER_DPMST) { encoder 2267 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder = nouveau_encoder(encoder); encoder 2277 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_encoder *encoder; encoder 2282 drivers/gpu/drm/nouveau/dispnv50/disp.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2283 drivers/gpu/drm/nouveau/dispnv50/disp.c if (encoder->encoder_type != DRM_MODE_ENCODER_DPMST) { encoder 2285 drivers/gpu/drm/nouveau/dispnv50/disp.c nouveau_encoder(encoder); encoder 99 drivers/gpu/drm/nouveau/nouveau_backlight.c nv40_backlight_init(struct nouveau_encoder *encoder, encoder 103 drivers/gpu/drm/nouveau/nouveau_backlight.c struct nouveau_drm *drm = nouveau_drm(encoder->base.base.dev); encoder 396 drivers/gpu/drm/nouveau/nouveau_connector.c nouveau_encoder_connector_get(struct nouveau_encoder *encoder) encoder 398 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_device *dev = to_drm_encoder(encoder)->dev; encoder 402 drivers/gpu/drm/nouveau/nouveau_connector.c if (drm_connector->encoder == to_drm_encoder(encoder)) encoder 430 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_encoder *encoder; encoder 434 drivers/gpu/drm/nouveau/nouveau_connector.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 435 drivers/gpu/drm/nouveau/nouveau_connector.c nv_encoder = nouveau_encoder(encoder); encoder 634 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_encoder *encoder = to_drm_encoder(nv_encoder); encoder 636 drivers/gpu/drm/nouveau/nouveau_connector.c encoder->helper_private; encoder 638 drivers/gpu/drm/nouveau/nouveau_connector.c if (helper->detect(encoder, connector) == encoder 769 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_encoder *encoder = to_drm_encoder(nv_encoder); encoder 777 drivers/gpu/drm/nouveau/nouveau_connector.c return get_slave_funcs(encoder)->set_property( encoder 778 drivers/gpu/drm/nouveau/nouveau_connector.c encoder, connector, property, value); encoder 785 drivers/gpu/drm/nouveau/nouveau_connector.c if (connector->encoder && connector->encoder->crtc) { encoder 786 drivers/gpu/drm/nouveau/nouveau_connector.c ret = drm_crtc_helper_set_mode(connector->encoder->crtc, encoder 787 drivers/gpu/drm/nouveau/nouveau_connector.c &connector->encoder->crtc->mode, encoder 788 drivers/gpu/drm/nouveau/nouveau_connector.c connector->encoder->crtc->x, encoder 789 drivers/gpu/drm/nouveau/nouveau_connector.c connector->encoder->crtc->y, encoder 926 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_encoder *encoder = to_drm_encoder(nv_encoder); encoder 976 drivers/gpu/drm/nouveau/nouveau_connector.c ret = get_slave_funcs(encoder)->get_modes(encoder, connector); encoder 1039 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_encoder *encoder = to_drm_encoder(nv_encoder); encoder 1062 drivers/gpu/drm/nouveau/nouveau_connector.c return get_slave_funcs(encoder)->mode_valid(encoder, mode); encoder 139 drivers/gpu/drm/nouveau/nouveau_connector.h const struct drm_encoder *encoder; encoder 148 drivers/gpu/drm/nouveau/nouveau_connector.h encoder = &nv_encoder->base.base; encoder 149 drivers/gpu/drm/nouveau/nouveau_connector.h return encoder->encoder_type == DRM_MODE_ENCODER_DPMST; encoder 167 drivers/gpu/drm/nouveau/nouveau_connector.h if (connector->encoder && connector->encoder->crtc == crtc) { encoder 69 drivers/gpu/drm/nouveau/nouveau_encoder.h void (*enc_save)(struct drm_encoder *encoder); encoder 70 drivers/gpu/drm/nouveau/nouveau_encoder.h void (*enc_restore)(struct drm_encoder *encoder); encoder 105 drivers/gpu/drm/nouveau/nouveau_encoder.h nouveau_encoder_connector_get(struct nouveau_encoder *encoder); encoder 332 drivers/gpu/drm/omapdrm/omap_connector.c struct drm_encoder *encoder) encoder 23 drivers/gpu/drm/omapdrm/omap_connector.h struct drm_encoder *encoder); encoder 293 drivers/gpu/drm/omapdrm/omap_drv.c pipe->encoder = omap_encoder_init(dev, pipe->output); encoder 294 drivers/gpu/drm/omapdrm/omap_drv.c if (!pipe->encoder) encoder 298 drivers/gpu/drm/omapdrm/omap_drv.c ret = drm_bridge_attach(pipe->encoder, encoder 329 drivers/gpu/drm/omapdrm/omap_drv.c struct drm_encoder *encoder = pipe->encoder; encoder 334 drivers/gpu/drm/omapdrm/omap_drv.c encoder); encoder 338 drivers/gpu/drm/omapdrm/omap_drv.c drm_connector_attach_encoder(pipe->connector, encoder); encoder 352 drivers/gpu/drm/omapdrm/omap_drv.c encoder->possible_crtcs = 1 << i; encoder 37 drivers/gpu/drm/omapdrm/omap_drv.h struct drm_encoder *encoder; encoder 32 drivers/gpu/drm/omapdrm/omap_encoder.c static void omap_encoder_destroy(struct drm_encoder *encoder) encoder 34 drivers/gpu/drm/omapdrm/omap_encoder.c struct omap_encoder *omap_encoder = to_omap_encoder(encoder); encoder 36 drivers/gpu/drm/omapdrm/omap_encoder.c drm_encoder_cleanup(encoder); encoder 73 drivers/gpu/drm/omapdrm/omap_encoder.c struct drm_encoder *encoder, encoder 76 drivers/gpu/drm/omapdrm/omap_encoder.c struct omap_encoder *omap_encoder = to_omap_encoder(encoder); encoder 96 drivers/gpu/drm/omapdrm/omap_encoder.c static void omap_encoder_mode_set(struct drm_encoder *encoder, encoder 100 drivers/gpu/drm/omapdrm/omap_encoder.c struct omap_encoder *omap_encoder = to_omap_encoder(encoder); encoder 103 drivers/gpu/drm/omapdrm/omap_encoder.c struct drm_device *dev = encoder->dev; encoder 110 drivers/gpu/drm/omapdrm/omap_encoder.c if (connector->encoder == encoder) encoder 149 drivers/gpu/drm/omapdrm/omap_encoder.c omap_encoder_hdmi_mode_set(connector, encoder, adjusted_mode); encoder 152 drivers/gpu/drm/omapdrm/omap_encoder.c static void omap_encoder_disable(struct drm_encoder *encoder) encoder 154 drivers/gpu/drm/omapdrm/omap_encoder.c struct omap_encoder *omap_encoder = to_omap_encoder(encoder); encoder 156 drivers/gpu/drm/omapdrm/omap_encoder.c struct drm_device *dev = encoder->dev; encoder 189 drivers/gpu/drm/omapdrm/omap_encoder.c static void omap_encoder_enable(struct drm_encoder *encoder) encoder 191 drivers/gpu/drm/omapdrm/omap_encoder.c struct omap_encoder *omap_encoder = to_omap_encoder(encoder); encoder 193 drivers/gpu/drm/omapdrm/omap_encoder.c struct drm_device *dev = encoder->dev; encoder 223 drivers/gpu/drm/omapdrm/omap_encoder.c static int omap_encoder_atomic_check(struct drm_encoder *encoder, encoder 227 drivers/gpu/drm/omapdrm/omap_encoder.c struct omap_encoder *omap_encoder = to_omap_encoder(encoder); encoder 234 drivers/gpu/drm/omapdrm/omap_encoder.c dev_err(encoder->dev->dev, "invalid timings: %d\n", status); encoder 252 drivers/gpu/drm/omapdrm/omap_encoder.c struct drm_encoder *encoder = NULL; encoder 261 drivers/gpu/drm/omapdrm/omap_encoder.c encoder = &omap_encoder->base; encoder 263 drivers/gpu/drm/omapdrm/omap_encoder.c drm_encoder_init(dev, encoder, &omap_encoder_funcs, encoder 265 drivers/gpu/drm/omapdrm/omap_encoder.c drm_encoder_helper_add(encoder, &omap_encoder_helper_funcs); encoder 267 drivers/gpu/drm/omapdrm/omap_encoder.c return encoder; encoder 270 drivers/gpu/drm/omapdrm/omap_encoder.c if (encoder) encoder 271 drivers/gpu/drm/omapdrm/omap_encoder.c omap_encoder_destroy(encoder); encoder 1076 drivers/gpu/drm/qxl/qxl_display.c static void qxl_enc_destroy(struct drm_encoder *encoder) encoder 1078 drivers/gpu/drm/qxl/qxl_display.c drm_encoder_cleanup(encoder); encoder 1102 drivers/gpu/drm/qxl/qxl_display.c struct drm_encoder *encoder; encoder 1111 drivers/gpu/drm/qxl/qxl_display.c encoder = &qxl_output->enc; encoder 1120 drivers/gpu/drm/qxl/qxl_display.c encoder->possible_crtcs = 1 << num_output; encoder 1123 drivers/gpu/drm/qxl/qxl_display.c drm_encoder_helper_add(encoder, &qxl_enc_helper_funcs); encoder 91 drivers/gpu/drm/radeon/atombios_crtc.c to_radeon_encoder(radeon_crtc->encoder); encoder 564 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_encoder *encoder = radeon_crtc->encoder; encoder 565 drivers/gpu/drm/radeon/atombios_crtc.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 566 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 568 drivers/gpu/drm/radeon/atombios_crtc.c int encoder_mode = atombios_get_encoder_mode(encoder); encoder 572 drivers/gpu/drm/radeon/atombios_crtc.c bool is_duallink = radeon_dig_monitor_is_duallink(encoder, mode->clock); encoder 610 drivers/gpu/drm/radeon/atombios_crtc.c (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)) { encoder 650 drivers/gpu/drm/radeon/atombios_crtc.c if (encoder->encoder_type != DRM_MODE_ENCODER_DAC) encoder 652 drivers/gpu/drm/radeon/atombios_crtc.c if (encoder->encoder_type == DRM_MODE_ENCODER_LVDS) encoder 728 drivers/gpu/drm/radeon/atombios_crtc.c if (radeon_encoder_get_dp_bridge_encoder_id(encoder) != encoder 731 drivers/gpu/drm/radeon/atombios_crtc.c radeon_encoder_get_dp_bridge_encoder_id(encoder); encoder 969 drivers/gpu/drm/radeon/atombios_crtc.c to_radeon_encoder(radeon_crtc->encoder); encoder 970 drivers/gpu/drm/radeon/atombios_crtc.c int encoder_mode = atombios_get_encoder_mode(radeon_crtc->encoder); encoder 978 drivers/gpu/drm/radeon/atombios_crtc.c (radeon_encoder_get_dp_bridge_encoder_id(radeon_crtc->encoder) != ENCODER_OBJECT_ID_NONE)) { encoder 981 drivers/gpu/drm/radeon/atombios_crtc.c radeon_get_connector_for_encoder(radeon_crtc->encoder); encoder 1069 drivers/gpu/drm/radeon/atombios_crtc.c to_radeon_encoder(radeon_crtc->encoder); encoder 1074 drivers/gpu/drm/radeon/atombios_crtc.c int encoder_mode = atombios_get_encoder_mode(radeon_crtc->encoder); encoder 1773 drivers/gpu/drm/radeon/atombios_crtc.c if (test_radeon_crtc->encoder && encoder 1774 drivers/gpu/drm/radeon/atombios_crtc.c ENCODER_MODE_IS_DP(atombios_get_encoder_mode(test_radeon_crtc->encoder))) { encoder 1814 drivers/gpu/drm/radeon/atombios_crtc.c if (test_radeon_crtc->encoder && encoder 1815 drivers/gpu/drm/radeon/atombios_crtc.c !ENCODER_MODE_IS_DP(atombios_get_encoder_mode(test_radeon_crtc->encoder))) { encoder 1881 drivers/gpu/drm/radeon/atombios_crtc.c to_radeon_encoder(radeon_crtc->encoder); encoder 1886 drivers/gpu/drm/radeon/atombios_crtc.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder))) { encoder 1933 drivers/gpu/drm/radeon/atombios_crtc.c else if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder))) { encoder 1960 drivers/gpu/drm/radeon/atombios_crtc.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder))) { encoder 1983 drivers/gpu/drm/radeon/atombios_crtc.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder))) { encoder 2062 drivers/gpu/drm/radeon/atombios_crtc.c to_radeon_encoder(radeon_crtc->encoder); encoder 2103 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_encoder *encoder; encoder 2106 drivers/gpu/drm/radeon/atombios_crtc.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2107 drivers/gpu/drm/radeon/atombios_crtc.c if (encoder->crtc == crtc) { encoder 2108 drivers/gpu/drm/radeon/atombios_crtc.c radeon_crtc->encoder = encoder; encoder 2109 drivers/gpu/drm/radeon/atombios_crtc.c radeon_crtc->connector = radeon_get_connector_for_encoder(encoder); encoder 2113 drivers/gpu/drm/radeon/atombios_crtc.c if ((radeon_crtc->encoder == NULL) || (radeon_crtc->connector == NULL)) { encoder 2114 drivers/gpu/drm/radeon/atombios_crtc.c radeon_crtc->encoder = NULL; encoder 2118 drivers/gpu/drm/radeon/atombios_crtc.c if (radeon_crtc->encoder) { encoder 2120 drivers/gpu/drm/radeon/atombios_crtc.c to_radeon_encoder(radeon_crtc->encoder); encoder 2132 drivers/gpu/drm/radeon/atombios_crtc.c !ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder))) encoder 2222 drivers/gpu/drm/radeon/atombios_crtc.c radeon_crtc->encoder = NULL; encoder 2273 drivers/gpu/drm/radeon/atombios_crtc.c radeon_crtc->encoder = NULL; encoder 409 drivers/gpu/drm/radeon/atombios_dp.c int radeon_dp_get_panel_mode(struct drm_encoder *encoder, encoder 412 drivers/gpu/drm/radeon/atombios_dp.c struct drm_device *dev = encoder->dev; encoder 541 drivers/gpu/drm/radeon/atombios_dp.c struct drm_encoder *encoder; encoder 558 drivers/gpu/drm/radeon/atombios_dp.c atombios_dig_transmitter_setup(dp_info->encoder, encoder 584 drivers/gpu/drm/radeon/atombios_dp.c atombios_dig_encoder_setup(dp_info->encoder, rtp, 0); encoder 604 drivers/gpu/drm/radeon/atombios_dp.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(dp_info->encoder); encoder 634 drivers/gpu/drm/radeon/atombios_dp.c atombios_dig_encoder_setup(dp_info->encoder, encoder 659 drivers/gpu/drm/radeon/atombios_dp.c atombios_dig_encoder_setup(dp_info->encoder, encoder 786 drivers/gpu/drm/radeon/atombios_dp.c void radeon_dp_link_train(struct drm_encoder *encoder, encoder 789 drivers/gpu/drm/radeon/atombios_dp.c struct drm_device *dev = encoder->dev; encoder 791 drivers/gpu/drm/radeon/atombios_dp.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 846 drivers/gpu/drm/radeon/atombios_dp.c dp_info.encoder = encoder; encoder 95 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *encoder = &radeon_encoder->base; encoder 131 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_LCD_BLOFF, 0, 0); encoder 133 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_BL_BRIGHTNESS_CONTROL, 0, 0); encoder 134 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_LCD_BLON, 0, 0); encoder 163 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; encoder 173 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; encoder 230 drivers/gpu/drm/radeon/atombios_encoders.c pdata->encoder = radeon_encoder; encoder 289 drivers/gpu/drm/radeon/atombios_encoders.c void radeon_atom_backlight_init(struct radeon_encoder *encoder) encoder 293 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_backlight_exit(struct radeon_encoder *encoder) encoder 303 drivers/gpu/drm/radeon/atombios_encoders.c static bool radeon_atom_mode_fixup(struct drm_encoder *encoder, encoder 307 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 308 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 312 drivers/gpu/drm/radeon/atombios_encoders.c radeon_encoder_set_active_device(encoder); encoder 326 drivers/gpu/drm/radeon/atombios_encoders.c radeon_panel_mode_fixup(encoder, adjusted_mode); encoder 338 drivers/gpu/drm/radeon/atombios_encoders.c radeon_panel_mode_fixup(encoder, adjusted_mode); encoder 343 drivers/gpu/drm/radeon/atombios_encoders.c (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE))) { encoder 344 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 352 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dac_setup(struct drm_encoder *encoder, int action) encoder 354 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 356 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 404 drivers/gpu/drm/radeon/atombios_encoders.c atombios_tv_setup(struct drm_encoder *encoder, int action) encoder 406 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 408 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 459 drivers/gpu/drm/radeon/atombios_encoders.c static u8 radeon_atom_get_bpc(struct drm_encoder *encoder) encoder 463 drivers/gpu/drm/radeon/atombios_encoders.c if (encoder->crtc) { encoder 464 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 493 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dvo_setup(struct drm_encoder *encoder, int action) encoder 495 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 497 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 518 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 530 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 544 drivers/gpu/drm/radeon/atombios_encoders.c args.dvo_v4.ucBitPerColor = radeon_atom_get_bpc(encoder); encoder 565 drivers/gpu/drm/radeon/atombios_encoders.c atombios_digital_setup(struct drm_encoder *encoder, int action) encoder 567 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 569 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 579 drivers/gpu/drm/radeon/atombios_encoders.c if (atombios_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) encoder 621 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 660 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 678 drivers/gpu/drm/radeon/atombios_encoders.c atombios_get_encoder_mode(struct drm_encoder *encoder) encoder 680 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 682 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 688 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_encoder_is_digital(encoder)) { encoder 696 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE) encoder 704 drivers/gpu/drm/radeon/atombios_encoders.c connector = radeon_get_connector_for_encoder(encoder); encoder 709 drivers/gpu/drm/radeon/atombios_encoders.c connector = radeon_get_connector_for_encoder_init(encoder); encoder 846 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup2(struct drm_encoder *encoder, int action, int panel_mode, int enc_override) encoder 848 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 850 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 852 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 897 drivers/gpu/drm/radeon/atombios_encoders.c args.v1.ucEncoderMode = atombios_get_encoder_mode(encoder); encoder 901 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 934 drivers/gpu/drm/radeon/atombios_encoders.c args.v3.ucEncoderMode = atombios_get_encoder_mode(encoder); encoder 938 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 949 drivers/gpu/drm/radeon/atombios_encoders.c args.v3.ucBitPerColor = radeon_atom_get_bpc(encoder); encoder 957 drivers/gpu/drm/radeon/atombios_encoders.c args.v4.ucEncoderMode = atombios_get_encoder_mode(encoder); encoder 961 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 981 drivers/gpu/drm/radeon/atombios_encoders.c args.v4.ucBitPerColor = radeon_atom_get_bpc(encoder); encoder 1002 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(struct drm_encoder *encoder, int action, int panel_mode) encoder 1004 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup2(encoder, action, panel_mode, -1); encoder 1016 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup2(struct drm_encoder *encoder, int action, uint8_t lane_num, uint8_t lane_set, int fe) encoder 1018 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1020 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1036 drivers/gpu/drm/radeon/atombios_encoders.c connector = radeon_get_connector_for_encoder_init(encoder); encoder 1042 drivers/gpu/drm/radeon/atombios_encoders.c connector = radeon_get_connector_for_encoder(encoder); encoder 1057 drivers/gpu/drm/radeon/atombios_encoders.c if (encoder->crtc) { encoder 1058 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 1066 drivers/gpu/drm/radeon/atombios_encoders.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder))) encoder 1102 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1118 drivers/gpu/drm/radeon/atombios_encoders.c !radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) { encoder 1145 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1159 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1187 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1201 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1209 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1246 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1260 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1268 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1308 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1344 drivers/gpu/drm/radeon/atombios_encoders.c else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1349 drivers/gpu/drm/radeon/atombios_encoders.c args.v5.ucDigMode = atombios_get_encoder_mode(encoder); encoder 1383 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(struct drm_encoder *encoder, int action, uint8_t lane_num, uint8_t lane_set) encoder 1385 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup2(encoder, action, lane_num, lane_set, -1); encoder 1438 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(struct drm_encoder *encoder, encoder 1442 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1444 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1456 drivers/gpu/drm/radeon/atombios_encoders.c connector = radeon_get_connector_for_encoder_init(encoder); encoder 1458 drivers/gpu/drm/radeon/atombios_encoders.c connector = radeon_get_connector_for_encoder(encoder); encoder 1486 drivers/gpu/drm/radeon/atombios_encoders.c args.v1.sDigEncoder.ucEncoderMode = atombios_get_encoder_mode(encoder); encoder 1492 drivers/gpu/drm/radeon/atombios_encoders.c } else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1503 drivers/gpu/drm/radeon/atombios_encoders.c args.v3.sExtEncoder.ucEncoderMode = atombios_get_encoder_mode(encoder); encoder 1511 drivers/gpu/drm/radeon/atombios_encoders.c } else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) encoder 1526 drivers/gpu/drm/radeon/atombios_encoders.c args.v3.sExtEncoder.ucBitPerColor = radeon_atom_get_bpc(encoder); encoder 1541 drivers/gpu/drm/radeon/atombios_encoders.c atombios_yuv_setup(struct drm_encoder *encoder, bool enable) encoder 1543 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1545 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1546 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 1578 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(struct drm_encoder *encoder, int mode) encoder 1580 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1582 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1665 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode) encoder 1667 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1669 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1670 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *ext_encoder = radeon_get_external_encoder(encoder); encoder 1672 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 1693 drivers/gpu/drm/radeon/atombios_encoders.c dig->panel_mode = radeon_dp_get_panel_mode(encoder, connector); encoder 1696 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_SETUP, 0); encoder 1697 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, encoder 1702 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(encoder, ext_encoder, encoder 1707 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_SETUP, 0); encoder 1710 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, ATOM_ENABLE, 0); encoder 1711 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_SETUP, 0, 0); encoder 1713 drivers/gpu/drm/radeon/atombios_encoders.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) { encoder 1721 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_ENABLE, 0, 0); encoder 1722 drivers/gpu/drm/radeon/atombios_encoders.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) { encoder 1724 drivers/gpu/drm/radeon/atombios_encoders.c radeon_dp_link_train(encoder, connector); encoder 1726 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0); encoder 1732 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, encoder 1736 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(encoder, ext_encoder, ATOM_ENABLE); encoder 1747 drivers/gpu/drm/radeon/atombios_encoders.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) encoder 1748 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_DP_VIDEO_OFF, 0); encoder 1751 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(encoder, ext_encoder, ATOM_DISABLE); encoder 1753 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, encoder 1756 drivers/gpu/drm/radeon/atombios_encoders.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && encoder 1761 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, encoder 1765 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, encoder 1767 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_encoder_setup(encoder, ATOM_DISABLE, 0); encoder 1769 drivers/gpu/drm/radeon/atombios_encoders.c if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) && connector) { encoder 1783 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 1785 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1787 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1788 drivers/gpu/drm/radeon/atombios_encoders.c int encoder_mode = atombios_get_encoder_mode(encoder); encoder 1797 drivers/gpu/drm/radeon/atombios_encoders.c radeon_audio_dpms(encoder, mode); encoder 1808 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(encoder, mode); encoder 1815 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(encoder, mode); encoder 1821 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dvo_setup(encoder, ATOM_ENABLE); encoder 1826 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dvo_setup(encoder, ATOM_DISABLE); encoder 1830 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(encoder, mode); encoder 1832 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(encoder, mode); encoder 1839 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dac_setup(encoder, ATOM_ENABLE); encoder 1844 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dac_setup(encoder, ATOM_DISABLE); encoder 1848 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(encoder, mode); encoder 1854 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 1864 drivers/gpu/drm/radeon/atombios_encoders.c atombios_set_encoder_crtc_source(struct drm_encoder *encoder) encoder 1866 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 1868 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1869 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 1933 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE) { encoder 1934 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 1941 drivers/gpu/drm/radeon/atombios_encoders.c args.v2.ucEncodeMode = atombios_get_encoder_mode(encoder); encoder 1945 drivers/gpu/drm/radeon/atombios_encoders.c args.v2.ucEncodeMode = atombios_get_encoder_mode(encoder); encoder 2009 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 2013 drivers/gpu/drm/radeon/atombios_encoders.c atombios_set_mst_encoder_crtc_source(struct drm_encoder *encoder, int fe) encoder 2015 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2017 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 2060 drivers/gpu/drm/radeon/atombios_encoders.c atombios_apply_encoder_quirks(struct drm_encoder *encoder, encoder 2063 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2065 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2066 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 2114 drivers/gpu/drm/radeon/atombios_encoders.c int radeon_atom_pick_dig_encoder(struct drm_encoder *encoder, int fe_idx) encoder 2116 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2118 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 2119 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2210 drivers/gpu/drm/radeon/atombios_encoders.c if (encoder == test_encoder) encoder 2249 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *encoder; encoder 2251 drivers/gpu/drm/radeon/atombios_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2252 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2253 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *ext_encoder = radeon_get_external_encoder(encoder); encoder 2261 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dig_transmitter_setup(encoder, ATOM_TRANSMITTER_ACTION_INIT, 0, 0); encoder 2268 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(encoder, ext_encoder, encoder 2274 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_mode_set(struct drm_encoder *encoder, encoder 2278 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2280 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2281 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 2287 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 2291 drivers/gpu/drm/radeon/atombios_encoders.c atombios_yuv_setup(encoder, true); encoder 2293 drivers/gpu/drm/radeon/atombios_encoders.c atombios_yuv_setup(encoder, false); encoder 2301 drivers/gpu/drm/radeon/atombios_encoders.c atombios_digital_setup(encoder, PANEL_ENCODER_ACTION_ENABLE); encoder 2313 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dvo_setup(encoder, ATOM_ENABLE); encoder 2319 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dac_setup(encoder, ATOM_ENABLE); encoder 2322 drivers/gpu/drm/radeon/atombios_encoders.c atombios_tv_setup(encoder, ATOM_ENABLE); encoder 2324 drivers/gpu/drm/radeon/atombios_encoders.c atombios_tv_setup(encoder, ATOM_DISABLE); encoder 2329 drivers/gpu/drm/radeon/atombios_encoders.c atombios_apply_encoder_quirks(encoder, adjusted_mode); encoder 2331 drivers/gpu/drm/radeon/atombios_encoders.c encoder_mode = atombios_get_encoder_mode(encoder); encoder 2335 drivers/gpu/drm/radeon/atombios_encoders.c radeon_audio_mode_set(encoder, adjusted_mode); encoder 2339 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dac_load_detect(struct drm_encoder *encoder, struct drm_connector *connector) encoder 2341 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2343 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2388 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector) encoder 2390 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2392 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2396 drivers/gpu/drm/radeon/atombios_encoders.c if (!atombios_dac_load_detect(encoder, connector)) { encoder 2429 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_dig_detect(struct drm_encoder *encoder, struct drm_connector *connector) encoder 2431 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2433 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2435 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *ext_encoder = radeon_get_external_encoder(encoder); encoder 2448 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(encoder, ext_encoder, encoder 2476 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_ext_encoder_setup_ddc(struct drm_encoder *encoder) encoder 2478 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *ext_encoder = radeon_get_external_encoder(encoder); encoder 2482 drivers/gpu/drm/radeon/atombios_encoders.c atombios_external_encoder_setup(encoder, ext_encoder, encoder 2487 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_encoder_prepare(struct drm_encoder *encoder) encoder 2489 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 2490 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2491 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 2495 drivers/gpu/drm/radeon/atombios_encoders.c (radeon_encoder_get_dp_bridge_encoder_id(encoder) != encoder 2501 drivers/gpu/drm/radeon/atombios_encoders.c dig->dig_encoder = radeon_atom_pick_dig_encoder(encoder, -1); encoder 2512 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_output_lock(encoder, true); encoder 2528 drivers/gpu/drm/radeon/atombios_encoders.c atombios_set_encoder_crtc_source(encoder); encoder 2531 drivers/gpu/drm/radeon/atombios_encoders.c dce8_program_fmt(encoder); encoder 2533 drivers/gpu/drm/radeon/atombios_encoders.c dce4_program_fmt(encoder); encoder 2535 drivers/gpu/drm/radeon/atombios_encoders.c dce3_program_fmt(encoder); encoder 2537 drivers/gpu/drm/radeon/atombios_encoders.c avivo_program_fmt(encoder); encoder 2540 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_encoder_commit(struct drm_encoder *encoder) encoder 2543 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 2544 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_output_lock(encoder, false); encoder 2547 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_encoder_disable(struct drm_encoder *encoder) encoder 2549 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_device *dev = encoder->dev; encoder 2551 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2570 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 2577 drivers/gpu/drm/radeon/atombios_encoders.c atombios_digital_setup(encoder, PANEL_ENCODER_ACTION_DISABLE); encoder 2589 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dvo_setup(encoder, ATOM_DISABLE); encoder 2595 drivers/gpu/drm/radeon/atombios_encoders.c atombios_dac_setup(encoder, ATOM_DISABLE); encoder 2597 drivers/gpu/drm/radeon/atombios_encoders.c atombios_tv_setup(encoder, ATOM_DISABLE); encoder 2602 drivers/gpu/drm/radeon/atombios_encoders.c if (radeon_encoder_is_digital(encoder)) { encoder 2603 drivers/gpu/drm/radeon/atombios_encoders.c if (atombios_get_encoder_mode(encoder) == ATOM_ENCODER_MODE_HDMI) { encoder 2605 drivers/gpu/drm/radeon/atombios_encoders.c radeon_hdmi_enable(rdev, encoder, false); encoder 2607 drivers/gpu/drm/radeon/atombios_encoders.c if (atombios_get_encoder_mode(encoder) != ATOM_ENCODER_MODE_DP_MST) { encoder 2618 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_ext_prepare(struct drm_encoder *encoder) encoder 2623 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_ext_commit(struct drm_encoder *encoder) encoder 2629 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_ext_mode_set(struct drm_encoder *encoder, encoder 2636 drivers/gpu/drm/radeon/atombios_encoders.c static void radeon_atom_ext_disable(struct drm_encoder *encoder) encoder 2642 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_ext_dpms(struct drm_encoder *encoder, int mode) encoder 2675 drivers/gpu/drm/radeon/atombios_encoders.c void radeon_enc_destroy(struct drm_encoder *encoder) encoder 2677 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2681 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_cleanup(encoder); encoder 2731 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_encoder *encoder; encoder 2735 drivers/gpu/drm/radeon/atombios_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 2736 drivers/gpu/drm/radeon/atombios_encoders.c radeon_encoder = to_radeon_encoder(encoder); encoder 2749 drivers/gpu/drm/radeon/atombios_encoders.c encoder = &radeon_encoder->base; encoder 2752 drivers/gpu/drm/radeon/atombios_encoders.c encoder->possible_crtcs = 0x1; encoder 2756 drivers/gpu/drm/radeon/atombios_encoders.c encoder->possible_crtcs = 0x3; encoder 2759 drivers/gpu/drm/radeon/atombios_encoders.c encoder->possible_crtcs = 0xf; encoder 2762 drivers/gpu/drm/radeon/atombios_encoders.c encoder->possible_crtcs = 0x3f; encoder 2783 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2787 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2791 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_helper_add(encoder, &radeon_atom_dig_helper_funcs); encoder 2794 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2797 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_helper_add(encoder, &radeon_atom_dac_helper_funcs); encoder 2802 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2805 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_helper_add(encoder, &radeon_atom_dac_helper_funcs); encoder 2817 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2821 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2825 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2829 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_helper_add(encoder, &radeon_atom_dig_helper_funcs); encoder 2843 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2846 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2849 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_init(dev, encoder, &radeon_atom_enc_funcs, encoder 2851 drivers/gpu/drm/radeon/atombios_encoders.c drm_encoder_helper_add(encoder, &radeon_atom_ext_helper_funcs); encoder 8744 drivers/gpu/drm/radeon/cik.c void dce8_program_fmt(struct drm_encoder *encoder) encoder 8746 drivers/gpu/drm/radeon/cik.c struct drm_device *dev = encoder->dev; encoder 8748 drivers/gpu/drm/radeon/cik.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 8749 drivers/gpu/drm/radeon/cik.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 8750 drivers/gpu/drm/radeon/cik.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 30 drivers/gpu/drm/radeon/dce3_1_afmt.c void dce3_2_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, encoder 33 drivers/gpu/drm/radeon/dce3_1_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 48 drivers/gpu/drm/radeon/dce3_1_afmt.c void dce3_2_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, encoder 51 drivers/gpu/drm/radeon/dce3_1_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 66 drivers/gpu/drm/radeon/dce3_1_afmt.c void dce3_2_afmt_write_sad_regs(struct drm_encoder *encoder, encoder 70 drivers/gpu/drm/radeon/dce3_1_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 129 drivers/gpu/drm/radeon/dce3_1_afmt.c radeon_encoder = to_radeon_encoder(crtc->encoder); encoder 170 drivers/gpu/drm/radeon/dce3_1_afmt.c void dce3_2_hdmi_update_acr(struct drm_encoder *encoder, long offset, encoder 173 drivers/gpu/drm/radeon/dce3_1_afmt.c struct drm_device *dev = encoder->dev; encoder 202 drivers/gpu/drm/radeon/dce3_1_afmt.c void dce3_2_set_audio_packet(struct drm_encoder *encoder, u32 offset) encoder 204 drivers/gpu/drm/radeon/dce3_1_afmt.c struct drm_device *dev = encoder->dev; encoder 223 drivers/gpu/drm/radeon/dce3_1_afmt.c void dce3_2_set_mute(struct drm_encoder *encoder, u32 offset, bool mute) encoder 225 drivers/gpu/drm/radeon/dce3_1_afmt.c struct drm_device *dev = encoder->dev; encoder 79 drivers/gpu/drm/radeon/dce6_afmt.c struct drm_encoder *encoder; encoder 92 drivers/gpu/drm/radeon/dce6_afmt.c list_for_each_entry(encoder, &rdev->ddev->mode_config.encoder_list, head) { encoder 93 drivers/gpu/drm/radeon/dce6_afmt.c if (radeon_encoder_is_digital(encoder)) { encoder 94 drivers/gpu/drm/radeon/dce6_afmt.c radeon_encoder = to_radeon_encoder(encoder); encoder 110 drivers/gpu/drm/radeon/dce6_afmt.c void dce6_afmt_select_pin(struct drm_encoder *encoder) encoder 112 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 113 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 123 drivers/gpu/drm/radeon/dce6_afmt.c void dce6_afmt_write_latency_fields(struct drm_encoder *encoder, encoder 127 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 128 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 152 drivers/gpu/drm/radeon/dce6_afmt.c void dce6_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, encoder 155 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 156 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 177 drivers/gpu/drm/radeon/dce6_afmt.c void dce6_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, encoder 180 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 181 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 202 drivers/gpu/drm/radeon/dce6_afmt.c void dce6_afmt_write_sad_regs(struct drm_encoder *encoder, encoder 206 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 208 drivers/gpu/drm/radeon/dce6_afmt.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 1295 drivers/gpu/drm/radeon/evergreen.c void dce4_program_fmt(struct drm_encoder *encoder) encoder 1297 drivers/gpu/drm/radeon/evergreen.c struct drm_device *dev = encoder->dev; encoder 1299 drivers/gpu/drm/radeon/evergreen.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1300 drivers/gpu/drm/radeon/evergreen.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 1301 drivers/gpu/drm/radeon/evergreen.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 67 drivers/gpu/drm/radeon/evergreen_hdmi.c void evergreen_hdmi_update_acr(struct drm_encoder *encoder, long offset, encoder 70 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 74 drivers/gpu/drm/radeon/evergreen_hdmi.c if (encoder->crtc) { encoder 75 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 97 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_afmt_write_latency_fields(struct drm_encoder *encoder, encoder 100 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 119 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, encoder 122 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 137 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, encoder 140 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 155 drivers/gpu/drm/radeon/evergreen_hdmi.c void evergreen_hdmi_write_sad_regs(struct drm_encoder *encoder, encoder 159 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 306 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_set_vbi_packet(struct drm_encoder *encoder, u32 offset) encoder 308 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 317 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, u32 offset, int bpc) encoder 319 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 321 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 354 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_set_audio_packet(struct drm_encoder *encoder, u32 offset) encoder 356 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 389 drivers/gpu/drm/radeon/evergreen_hdmi.c void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute) encoder 391 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 400 drivers/gpu/drm/radeon/evergreen_hdmi.c void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable) encoder 402 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 404 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 411 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 440 drivers/gpu/drm/radeon/evergreen_hdmi.c void evergreen_dp_enable(struct drm_encoder *encoder, bool enable) encoder 442 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_device *dev = encoder->dev; encoder 444 drivers/gpu/drm/radeon/evergreen_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 446 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 453 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 296 drivers/gpu/drm/radeon/r600.c void dce3_program_fmt(struct drm_encoder *encoder) encoder 298 drivers/gpu/drm/radeon/r600.c struct drm_device *dev = encoder->dev; encoder 300 drivers/gpu/drm/radeon/r600.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 301 drivers/gpu/drm/radeon/r600.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 302 drivers/gpu/drm/radeon/r600.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 120 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_encoder *encoder; encoder 132 drivers/gpu/drm/radeon/r600_hdmi.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 133 drivers/gpu/drm/radeon/r600_hdmi.c if (!radeon_encoder_is_digital(encoder)) encoder 135 drivers/gpu/drm/radeon/r600_hdmi.c if (changed || r600_hdmi_buffer_status_changed(encoder)) encoder 136 drivers/gpu/drm/radeon/r600_hdmi.c r600_hdmi_update_audio_settings(encoder); encoder 177 drivers/gpu/drm/radeon/r600_hdmi.c void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, encoder 180 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 243 drivers/gpu/drm/radeon/r600_hdmi.c static void r600_hdmi_update_audio_infoframe(struct drm_encoder *encoder, encoder 246 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 248 drivers/gpu/drm/radeon/r600_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 262 drivers/gpu/drm/radeon/r600_hdmi.c static bool r600_hdmi_is_audio_buffer_filled(struct drm_encoder *encoder) encoder 264 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 266 drivers/gpu/drm/radeon/r600_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 276 drivers/gpu/drm/radeon/r600_hdmi.c int r600_hdmi_buffer_status_changed(struct drm_encoder *encoder) encoder 278 drivers/gpu/drm/radeon/r600_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 285 drivers/gpu/drm/radeon/r600_hdmi.c status = r600_hdmi_is_audio_buffer_filled(encoder); encoder 295 drivers/gpu/drm/radeon/r600_hdmi.c void r600_hdmi_audio_workaround(struct drm_encoder *encoder) encoder 297 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 299 drivers/gpu/drm/radeon/r600_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 306 drivers/gpu/drm/radeon/r600_hdmi.c r600_hdmi_is_audio_buffer_filled(encoder)) encoder 323 drivers/gpu/drm/radeon/r600_hdmi.c radeon_encoder = to_radeon_encoder(crtc->encoder); encoder 340 drivers/gpu/drm/radeon/r600_hdmi.c void r600_set_vbi_packet(struct drm_encoder *encoder, u32 offset) encoder 342 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 351 drivers/gpu/drm/radeon/r600_hdmi.c void r600_set_audio_packet(struct drm_encoder *encoder, u32 offset) encoder 353 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 393 drivers/gpu/drm/radeon/r600_hdmi.c void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute) encoder 395 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 411 drivers/gpu/drm/radeon/r600_hdmi.c void r600_hdmi_update_audio_settings(struct drm_encoder *encoder) encoder 413 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 415 drivers/gpu/drm/radeon/r600_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 429 drivers/gpu/drm/radeon/r600_hdmi.c r600_hdmi_is_audio_buffer_filled(encoder) ? "playing" : "stopped", encoder 459 drivers/gpu/drm/radeon/r600_hdmi.c r600_hdmi_update_audio_infoframe(encoder, buffer, sizeof(buffer)); encoder 469 drivers/gpu/drm/radeon/r600_hdmi.c void r600_hdmi_enable(struct drm_encoder *encoder, bool enable) encoder 471 drivers/gpu/drm/radeon/r600_hdmi.c struct drm_device *dev = encoder->dev; encoder 473 drivers/gpu/drm/radeon/r600_hdmi.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1906 drivers/gpu/drm/radeon/radeon.h void (*hdmi_enable)(struct drm_encoder *encoder, bool enable); encoder 1907 drivers/gpu/drm/radeon/radeon.h void (*hdmi_setmode)(struct drm_encoder *encoder, struct drm_display_mode *mode); encoder 400 drivers/gpu/drm/radeon/radeon_asic.h void r600_audio_set_dto(struct drm_encoder *encoder, u32 clock); encoder 401 drivers/gpu/drm/radeon/radeon_asic.h void r600_hdmi_update_avi_infoframe(struct drm_encoder *encoder, void *buffer, encoder 403 drivers/gpu/drm/radeon/radeon_asic.h void r600_hdmi_update_ACR(struct drm_encoder *encoder, uint32_t clock); encoder 404 drivers/gpu/drm/radeon/radeon_asic.h void r600_hdmi_audio_workaround(struct drm_encoder *encoder); encoder 405 drivers/gpu/drm/radeon/radeon_asic.h int r600_hdmi_buffer_status_changed(struct drm_encoder *encoder); encoder 406 drivers/gpu/drm/radeon/radeon_asic.h void r600_hdmi_update_audio_settings(struct drm_encoder *encoder); encoder 1341 drivers/gpu/drm/radeon/radeon_atombios.c bool radeon_atombios_get_tmds_info(struct radeon_encoder *encoder, encoder 1344 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->base.dev; encoder 1631 drivers/gpu/drm/radeon/radeon_atombios.c *encoder) encoder 1633 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->base.dev; encoder 1641 drivers/gpu/drm/radeon/radeon_atombios.c int encoder_enum = (encoder->encoder_enum & ENUM_ID_MASK) >> ENUM_ID_SHIFT; encoder 1695 drivers/gpu/drm/radeon/radeon_atombios.c encoder->native_mode = lvds->native_mode; encoder 1771 drivers/gpu/drm/radeon/radeon_atombios.c radeon_atombios_get_primary_dac_info(struct radeon_encoder *encoder) encoder 1773 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->base.dev; encoder 1957 drivers/gpu/drm/radeon/radeon_atombios.c radeon_atombios_get_tv_dac_info(struct radeon_encoder *encoder) encoder 1959 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->base.dev; encoder 4137 drivers/gpu/drm/radeon/radeon_atombios.c void radeon_atom_output_lock(struct drm_encoder *encoder, bool lock) encoder 4139 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->dev; encoder 4165 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_encoder *encoder, encoder 4172 drivers/gpu/drm/radeon/radeon_atombios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 4350 drivers/gpu/drm/radeon/radeon_atombios.c radeon_atombios_encoder_crtc_scratch_regs(struct drm_encoder *encoder, int crtc) encoder 4352 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->dev; encoder 4354 drivers/gpu/drm/radeon/radeon_atombios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 4405 drivers/gpu/drm/radeon/radeon_atombios.c radeon_atombios_encoder_dpms_scratch_regs(struct drm_encoder *encoder, bool on) encoder 4407 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_device *dev = encoder->dev; encoder 4409 drivers/gpu/drm/radeon/radeon_atombios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 41 drivers/gpu/drm/radeon/radeon_audio.c void dce3_2_afmt_write_sad_regs(struct drm_encoder *encoder, encoder 43 drivers/gpu/drm/radeon/radeon_audio.c void evergreen_hdmi_write_sad_regs(struct drm_encoder *encoder, encoder 45 drivers/gpu/drm/radeon/radeon_audio.c void dce6_afmt_write_sad_regs(struct drm_encoder *encoder, encoder 47 drivers/gpu/drm/radeon/radeon_audio.c void dce3_2_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, encoder 49 drivers/gpu/drm/radeon/radeon_audio.c void dce3_2_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, encoder 51 drivers/gpu/drm/radeon/radeon_audio.c void dce4_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, encoder 53 drivers/gpu/drm/radeon/radeon_audio.c void dce4_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, encoder 55 drivers/gpu/drm/radeon/radeon_audio.c void dce6_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, encoder 57 drivers/gpu/drm/radeon/radeon_audio.c void dce6_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, encoder 59 drivers/gpu/drm/radeon/radeon_audio.c void dce4_afmt_write_latency_fields(struct drm_encoder *encoder, encoder 61 drivers/gpu/drm/radeon/radeon_audio.c void dce6_afmt_write_latency_fields(struct drm_encoder *encoder, encoder 65 drivers/gpu/drm/radeon/radeon_audio.c void dce6_afmt_select_pin(struct drm_encoder *encoder); encoder 82 drivers/gpu/drm/radeon/radeon_audio.c void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, encoder 84 drivers/gpu/drm/radeon/radeon_audio.c void dce3_2_hdmi_update_acr(struct drm_encoder *encoder, long offset, encoder 86 drivers/gpu/drm/radeon/radeon_audio.c void evergreen_hdmi_update_acr(struct drm_encoder *encoder, long offset, encoder 88 drivers/gpu/drm/radeon/radeon_audio.c void r600_set_vbi_packet(struct drm_encoder *encoder, u32 offset); encoder 89 drivers/gpu/drm/radeon/radeon_audio.c void dce4_set_vbi_packet(struct drm_encoder *encoder, u32 offset); encoder 90 drivers/gpu/drm/radeon/radeon_audio.c void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, encoder 92 drivers/gpu/drm/radeon/radeon_audio.c void r600_set_audio_packet(struct drm_encoder *encoder, u32 offset); encoder 93 drivers/gpu/drm/radeon/radeon_audio.c void dce3_2_set_audio_packet(struct drm_encoder *encoder, u32 offset); encoder 94 drivers/gpu/drm/radeon/radeon_audio.c void dce4_set_audio_packet(struct drm_encoder *encoder, u32 offset); encoder 95 drivers/gpu/drm/radeon/radeon_audio.c void r600_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); encoder 96 drivers/gpu/drm/radeon/radeon_audio.c void dce3_2_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); encoder 97 drivers/gpu/drm/radeon/radeon_audio.c void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); encoder 98 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_hdmi_mode_set(struct drm_encoder *encoder, encoder 100 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_dp_mode_set(struct drm_encoder *encoder, encoder 102 drivers/gpu/drm/radeon/radeon_audio.c void r600_hdmi_enable(struct drm_encoder *encoder, bool enable); encoder 103 drivers/gpu/drm/radeon/radeon_audio.c void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable); encoder 104 drivers/gpu/drm/radeon/radeon_audio.c void evergreen_dp_enable(struct drm_encoder *encoder, bool enable); encoder 248 drivers/gpu/drm/radeon/radeon_audio.c struct drm_encoder *encoder; encoder 257 drivers/gpu/drm/radeon/radeon_audio.c list_for_each_entry(encoder, &rdev->ddev->mode_config.encoder_list, head) { encoder 258 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_encoder_is_digital(encoder)) { encoder 259 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder = to_radeon_encoder(encoder); encoder 359 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_write_sad_regs(struct drm_encoder *encoder) encoder 361 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 362 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 377 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->write_sad_regs(encoder, sads, sad_count); encoder 382 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_write_speaker_allocation(struct drm_encoder *encoder) encoder 384 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 385 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 401 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->write_speaker_allocation(encoder, sadb, sad_count); encoder 406 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_write_latency_fields(struct drm_encoder *encoder, encoder 409 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 410 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 416 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->write_latency_fields(encoder, connector, mode); encoder 419 drivers/gpu/drm/radeon/radeon_audio.c struct r600_audio_pin* radeon_audio_get_pin(struct drm_encoder *encoder) encoder 421 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 422 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 430 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_select_pin(struct drm_encoder *encoder) encoder 432 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 435 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->select_pin(encoder); encoder 439 drivers/gpu/drm/radeon/radeon_audio.c struct drm_encoder *encoder, encoder 444 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 450 drivers/gpu/drm/radeon/radeon_audio.c if (!radeon_encoder_is_digital(encoder)) encoder 470 drivers/gpu/drm/radeon/radeon_audio.c dig->pin = radeon_audio_get_pin(encoder); encoder 495 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_set_dto(struct drm_encoder *encoder, unsigned int clock) encoder 497 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 498 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 499 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_crtc *crtc = to_radeon_crtc(encoder->crtc); encoder 505 drivers/gpu/drm/radeon/radeon_audio.c static int radeon_audio_set_avi_packet(struct drm_encoder *encoder, encoder 508 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 509 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 511 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 622 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_update_acr(struct drm_encoder *encoder, unsigned int clock) encoder 625 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 632 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->update_acr(encoder, dig->afmt->offset, acr); encoder 635 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_set_vbi_packet(struct drm_encoder *encoder) encoder 637 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 644 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); encoder 647 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_hdmi_set_color_depth(struct drm_encoder *encoder) encoder 650 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 656 drivers/gpu/drm/radeon/radeon_audio.c if (encoder->crtc) { encoder 657 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 662 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->set_color_depth(encoder, dig->afmt->offset, bpc); encoder 665 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_set_audio_packet(struct drm_encoder *encoder) encoder 667 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 674 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->set_audio_packet(encoder, dig->afmt->offset); encoder 677 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_set_mute(struct drm_encoder *encoder, bool mute) encoder 679 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 686 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->set_mute(encoder, dig->afmt->offset, mute); encoder 692 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_hdmi_mode_set(struct drm_encoder *encoder, encoder 695 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 697 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 706 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_mute(encoder, true); encoder 708 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_speaker_allocation(encoder); encoder 709 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_sad_regs(encoder); encoder 710 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_latency_fields(encoder, mode); encoder 711 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_dto(encoder, mode->clock); encoder 712 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_vbi_packet(encoder); encoder 713 drivers/gpu/drm/radeon/radeon_audio.c radeon_hdmi_set_color_depth(encoder); encoder 714 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_update_acr(encoder, mode->clock); encoder 715 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_audio_packet(encoder); encoder 716 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_select_pin(encoder); encoder 718 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_audio_set_avi_packet(encoder, mode) < 0) encoder 721 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_mute(encoder, false); encoder 723 drivers/gpu/drm/radeon/radeon_audio.c radeon_hdmi_set_color_depth(encoder); encoder 725 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_audio_set_avi_packet(encoder, mode) < 0) encoder 730 drivers/gpu/drm/radeon/radeon_audio.c static void radeon_audio_dp_mode_set(struct drm_encoder *encoder, encoder 733 drivers/gpu/drm/radeon/radeon_audio.c struct drm_device *dev = encoder->dev; encoder 735 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 737 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 746 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_speaker_allocation(encoder); encoder 747 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_sad_regs(encoder); encoder 748 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_latency_fields(encoder, mode); encoder 749 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_dto(encoder, rdev->clock.vco_freq * 10); encoder 750 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_audio_packet(encoder); encoder 751 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_select_pin(encoder); encoder 753 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_audio_set_avi_packet(encoder, mode) < 0) encoder 758 drivers/gpu/drm/radeon/radeon_audio.c void radeon_audio_mode_set(struct drm_encoder *encoder, encoder 761 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 764 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->mode_set(encoder, mode); encoder 767 drivers/gpu/drm/radeon/radeon_audio.c void radeon_audio_dpms(struct drm_encoder *encoder, int mode) encoder 769 drivers/gpu/drm/radeon/radeon_audio.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 772 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->dpms(encoder, mode == DRM_MODE_DPMS_ON); encoder 46 drivers/gpu/drm/radeon/radeon_audio.h void (*select_pin)(struct drm_encoder *encoder); encoder 48 drivers/gpu/drm/radeon/radeon_audio.h void (*write_latency_fields)(struct drm_encoder *encoder, encoder 50 drivers/gpu/drm/radeon/radeon_audio.h void (*write_sad_regs)(struct drm_encoder *encoder, encoder 52 drivers/gpu/drm/radeon/radeon_audio.h void (*write_speaker_allocation)(struct drm_encoder *encoder, encoder 56 drivers/gpu/drm/radeon/radeon_audio.h void (*update_acr)(struct drm_encoder *encoder, long offset, encoder 58 drivers/gpu/drm/radeon/radeon_audio.h void (*set_vbi_packet)(struct drm_encoder *encoder, u32 offset); encoder 59 drivers/gpu/drm/radeon/radeon_audio.h void (*set_color_depth)(struct drm_encoder *encoder, u32 offset, int bpc); encoder 62 drivers/gpu/drm/radeon/radeon_audio.h void (*set_audio_packet)(struct drm_encoder *encoder, u32 offset); encoder 63 drivers/gpu/drm/radeon/radeon_audio.h void (*set_mute)(struct drm_encoder *encoder, u32 offset, bool mute); encoder 64 drivers/gpu/drm/radeon/radeon_audio.h void (*mode_set)(struct drm_encoder *encoder, encoder 66 drivers/gpu/drm/radeon/radeon_audio.h void (*dpms)(struct drm_encoder *encoder, bool mode); encoder 71 drivers/gpu/drm/radeon/radeon_audio.h struct drm_encoder *encoder, encoder 77 drivers/gpu/drm/radeon/radeon_audio.h struct r600_audio_pin *radeon_audio_get_pin(struct drm_encoder *encoder); encoder 79 drivers/gpu/drm/radeon/radeon_audio.h void radeon_audio_mode_set(struct drm_encoder *encoder, encoder 81 drivers/gpu/drm/radeon/radeon_audio.h void radeon_audio_dpms(struct drm_encoder *encoder, int mode); encoder 863 drivers/gpu/drm/radeon/radeon_combios.c *encoder) encoder 865 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 1014 drivers/gpu/drm/radeon/radeon_combios.c *encoder) encoder 1016 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 1173 drivers/gpu/drm/radeon/radeon_combios.c *encoder) encoder 1175 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 1292 drivers/gpu/drm/radeon/radeon_combios.c encoder->native_mode = lvds->native_mode; encoder 1317 drivers/gpu/drm/radeon/radeon_combios.c bool radeon_legacy_get_tmds_info_from_table(struct radeon_encoder *encoder, encoder 1320 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 1333 drivers/gpu/drm/radeon/radeon_combios.c bool radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder *encoder, encoder 1336 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 1386 drivers/gpu/drm/radeon/radeon_combios.c bool radeon_legacy_get_ext_tmds_info_from_table(struct radeon_encoder *encoder, encoder 1389 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 1410 drivers/gpu/drm/radeon/radeon_combios.c bool radeon_legacy_get_ext_tmds_info_from_combios(struct radeon_encoder *encoder, encoder 1413 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->base.dev; encoder 2837 drivers/gpu/drm/radeon/radeon_combios.c void radeon_external_tmds_setup(struct drm_encoder *encoder) encoder 2839 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 2884 drivers/gpu/drm/radeon/radeon_combios.c bool radeon_combios_external_tmds_setup(struct drm_encoder *encoder) encoder 2886 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->dev; encoder 2888 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 3441 drivers/gpu/drm/radeon/radeon_combios.c void radeon_combios_output_lock(struct drm_encoder *encoder, bool lock) encoder 3443 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->dev; encoder 3459 drivers/gpu/drm/radeon/radeon_combios.c struct drm_encoder *encoder, encoder 3466 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 3561 drivers/gpu/drm/radeon/radeon_combios.c radeon_combios_encoder_crtc_scratch_regs(struct drm_encoder *encoder, int crtc) encoder 3563 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->dev; encoder 3565 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 3596 drivers/gpu/drm/radeon/radeon_combios.c radeon_combios_encoder_dpms_scratch_regs(struct drm_encoder *encoder, bool on) encoder 3598 drivers/gpu/drm/radeon/radeon_combios.c struct drm_device *dev = encoder->dev; encoder 3600 drivers/gpu/drm/radeon/radeon_combios.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 110 drivers/gpu/drm/radeon/radeon_connectors.c static void radeon_property_change_mode(struct drm_encoder *encoder) encoder 112 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_crtc *crtc = encoder->crtc; encoder 162 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = connector_funcs->best_encoder(connector); encoder 163 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 249 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 256 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 257 drivers/gpu/drm/radeon/radeon_connectors.c if ((encoder == best_encoder) && (status == connector_status_connected)) encoder 263 drivers/gpu/drm/radeon/radeon_connectors.c radeon_atombios_connected_scratch_regs(connector, encoder, connected); encoder 265 drivers/gpu/drm/radeon/radeon_connectors.c radeon_combios_connected_scratch_regs(connector, encoder, connected); encoder 271 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 274 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 275 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder->encoder_type == encoder_type) encoder 276 drivers/gpu/drm/radeon/radeon_connectors.c return encoder; encoder 382 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 386 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) encoder 387 drivers/gpu/drm/radeon/radeon_connectors.c return encoder; encoder 394 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = radeon_best_single_encoder(connector); encoder 397 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder == NULL) encoder 400 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 421 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder, encoder 440 drivers/gpu/drm/radeon/radeon_connectors.c if (enc == encoder) { encoder 469 drivers/gpu/drm/radeon/radeon_connectors.c static struct drm_display_mode *radeon_fp_native_mode(struct drm_encoder *encoder) encoder 471 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_device *dev = encoder->dev; encoder 472 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 500 drivers/gpu/drm/radeon/radeon_connectors.c static void radeon_add_common_modes(struct drm_encoder *encoder, struct drm_connector *connector) encoder 502 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_device *dev = encoder->dev; encoder 503 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 556 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 564 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 565 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 568 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 584 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 585 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 588 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 599 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 600 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 603 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 613 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 614 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 617 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 627 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 628 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 631 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 641 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 642 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 645 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 654 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TVDAC); encoder 655 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) { encoder 656 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_DAC); encoder 659 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 662 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 691 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_find_encoder(connector, DRM_MODE_ENCODER_TMDS); encoder 692 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 695 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 716 drivers/gpu/drm/radeon/radeon_connectors.c if (connector->encoder) encoder 717 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(connector->encoder); encoder 743 drivers/gpu/drm/radeon/radeon_connectors.c if (connector->encoder) encoder 744 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(connector->encoder); encoder 755 drivers/gpu/drm/radeon/radeon_connectors.c if (connector->encoder && connector->encoder->crtc) { encoder 756 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_crtc *crtc = connector->encoder->crtc; encoder 772 drivers/gpu/drm/radeon/radeon_connectors.c static void radeon_fixup_lvds_native_mode(struct drm_encoder *encoder, encoder 775 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 809 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 816 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_best_single_encoder(connector); encoder 817 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 818 drivers/gpu/drm/radeon/radeon_connectors.c radeon_fixup_lvds_native_mode(encoder, connector); encoder 820 drivers/gpu/drm/radeon/radeon_connectors.c radeon_add_common_modes(encoder, connector); encoder 825 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_best_single_encoder(connector); encoder 826 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 830 drivers/gpu/drm/radeon/radeon_connectors.c mode = radeon_fp_native_mode(encoder); encoder 838 drivers/gpu/drm/radeon/radeon_connectors.c radeon_add_common_modes(encoder, connector); encoder 847 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = radeon_best_single_encoder(connector); encoder 852 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 853 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 880 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = radeon_best_single_encoder(connector); encoder 890 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 891 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 953 drivers/gpu/drm/radeon/radeon_connectors.c if (connector->encoder) encoder 954 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(connector->encoder); encoder 1024 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1036 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_best_single_encoder(connector); encoder 1037 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 1077 drivers/gpu/drm/radeon/radeon_connectors.c if (radeon_connector->dac_load_detect && encoder) { encoder 1078 drivers/gpu/drm/radeon/radeon_connectors.c encoder_funcs = encoder->helper_private; encoder 1079 drivers/gpu/drm/radeon/radeon_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1086 drivers/gpu/drm/radeon/radeon_connectors.c ret = radeon_connector_analog_encoder_conflict_solve(connector, encoder, ret, true); encoder 1129 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1131 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_best_single_encoder(connector); encoder 1132 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 1138 drivers/gpu/drm/radeon/radeon_connectors.c radeon_add_common_modes(encoder, connector); encoder 1159 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1174 drivers/gpu/drm/radeon/radeon_connectors.c encoder = radeon_best_single_encoder(connector); encoder 1175 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 1178 drivers/gpu/drm/radeon/radeon_connectors.c encoder_funcs = encoder->helper_private; encoder 1179 drivers/gpu/drm/radeon/radeon_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1182 drivers/gpu/drm/radeon/radeon_connectors.c ret = radeon_connector_analog_encoder_conflict_solve(connector, encoder, ret, false); encoder 1246 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = NULL; encoder 1368 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1369 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder->encoder_type != DRM_MODE_ENCODER_DAC && encoder 1370 drivers/gpu/drm/radeon/radeon_connectors.c encoder->encoder_type != DRM_MODE_ENCODER_TVDAC) encoder 1373 drivers/gpu/drm/radeon/radeon_connectors.c encoder_funcs = encoder->helper_private; encoder 1378 drivers/gpu/drm/radeon/radeon_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1389 drivers/gpu/drm/radeon/radeon_connectors.c lret = encoder_funcs->detect(encoder, connector); encoder 1390 drivers/gpu/drm/radeon/radeon_connectors.c DRM_DEBUG_KMS("load_detect %x returned: %x\n",encoder->encoder_type,lret); encoder 1400 drivers/gpu/drm/radeon/radeon_connectors.c encoder) { encoder 1401 drivers/gpu/drm/radeon/radeon_connectors.c ret = radeon_connector_analog_encoder_conflict_solve(connector, encoder, ret, true); encoder 1425 drivers/gpu/drm/radeon/radeon_connectors.c encoder = connector_funcs->best_encoder(connector); encoder 1426 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder && (encoder->encoder_type == DRM_MODE_ENCODER_TMDS)) { encoder 1428 drivers/gpu/drm/radeon/radeon_connectors.c radeon_audio_detect(connector, encoder, ret); encoder 1445 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1448 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1450 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder->encoder_type == DRM_MODE_ENCODER_TMDS) encoder 1451 drivers/gpu/drm/radeon/radeon_connectors.c return encoder; encoder 1453 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder->encoder_type == DRM_MODE_ENCODER_DAC || encoder 1454 drivers/gpu/drm/radeon/radeon_connectors.c encoder->encoder_type == DRM_MODE_ENCODER_TVDAC) encoder 1455 drivers/gpu/drm/radeon/radeon_connectors.c return encoder; encoder 1463 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) encoder 1464 drivers/gpu/drm/radeon/radeon_connectors.c return encoder; encoder 1536 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = radeon_best_single_encoder(connector); encoder 1556 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) encoder 1557 drivers/gpu/drm/radeon/radeon_connectors.c radeon_atom_ext_encoder_setup_ddc(encoder); encoder 1564 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 1565 drivers/gpu/drm/radeon/radeon_connectors.c radeon_fixup_lvds_native_mode(encoder, connector); encoder 1567 drivers/gpu/drm/radeon/radeon_connectors.c radeon_add_common_modes(encoder, connector); encoder 1572 drivers/gpu/drm/radeon/radeon_connectors.c if (!encoder) encoder 1576 drivers/gpu/drm/radeon/radeon_connectors.c mode = radeon_fp_native_mode(encoder); encoder 1584 drivers/gpu/drm/radeon/radeon_connectors.c radeon_add_common_modes(encoder, connector); encoder 1590 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) encoder 1591 drivers/gpu/drm/radeon/radeon_connectors.c radeon_atom_ext_encoder_setup_ddc(encoder); encoder 1604 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1608 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1609 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 1625 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1630 drivers/gpu/drm/radeon/radeon_connectors.c drm_connector_for_each_possible_encoder(connector, encoder, i) { encoder 1631 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 1661 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = radeon_best_single_encoder(connector); encoder 1682 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 1683 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1712 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 1714 drivers/gpu/drm/radeon/radeon_connectors.c radeon_atom_ext_encoder_setup_ddc(encoder); encoder 1719 drivers/gpu/drm/radeon/radeon_connectors.c const struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private; encoder 1720 drivers/gpu/drm/radeon/radeon_connectors.c ret = encoder_funcs->detect(encoder, connector); encoder 1752 drivers/gpu/drm/radeon/radeon_connectors.c if ((radeon_audio != 0) && encoder) { encoder 1754 drivers/gpu/drm/radeon/radeon_connectors.c radeon_audio_detect(connector, encoder, ret); encoder 1778 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder = radeon_best_single_encoder(connector); encoder 1783 drivers/gpu/drm/radeon/radeon_connectors.c if (encoder) { encoder 1784 drivers/gpu/drm/radeon/radeon_connectors.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1871 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_encoder *encoder; encoder 1909 drivers/gpu/drm/radeon/radeon_connectors.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 1910 drivers/gpu/drm/radeon/radeon_connectors.c radeon_encoder = to_radeon_encoder(encoder); encoder 772 drivers/gpu/drm/radeon/radeon_display.c struct drm_encoder *encoder; encoder 812 drivers/gpu/drm/radeon/radeon_display.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 813 drivers/gpu/drm/radeon/radeon_display.c radeon_encoder = to_radeon_encoder(encoder); encoder 1688 drivers/gpu/drm/radeon/radeon_display.c struct drm_encoder *encoder; encoder 1700 drivers/gpu/drm/radeon/radeon_display.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 1701 drivers/gpu/drm/radeon/radeon_display.c if (encoder->crtc != crtc) encoder 1703 drivers/gpu/drm/radeon/radeon_display.c radeon_encoder = to_radeon_encoder(encoder); encoder 1704 drivers/gpu/drm/radeon/radeon_display.c connector = radeon_get_connector_for_encoder(encoder); encoder 332 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_connector *radeon_mst_find_connector(struct drm_encoder *encoder) encoder 334 drivers/gpu/drm/radeon/radeon_dp_mst.c struct drm_device *dev = encoder->dev; encoder 339 drivers/gpu/drm/radeon/radeon_dp_mst.c if (!connector->encoder) encoder 344 drivers/gpu/drm/radeon/radeon_dp_mst.c DRM_DEBUG_KMS("checking %p vs %p\n", connector->encoder, encoder); encoder 345 drivers/gpu/drm/radeon/radeon_dp_mst.c if (connector->encoder == encoder) encoder 356 drivers/gpu/drm/radeon/radeon_dp_mst.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(radeon_crtc->encoder); encoder 379 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_mst_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 381 drivers/gpu/drm/radeon/radeon_dp_mst.c struct drm_device *dev = encoder->dev; encoder 396 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_connector = radeon_mst_find_connector(encoder); encoder 400 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_encoder = to_radeon_encoder(encoder); encoder 408 drivers/gpu/drm/radeon/radeon_dp_mst.c crtc = encoder->crtc; encoder 420 drivers/gpu/drm/radeon/radeon_dp_mst.c atombios_set_mst_encoder_crtc_source(encoder, mst_enc->fe); encoder 432 drivers/gpu/drm/radeon/radeon_dp_mst.c mst_enc->fe = radeon_atom_pick_dig_encoder(encoder, radeon_crtc->crtc_id); encoder 436 drivers/gpu/drm/radeon/radeon_dp_mst.c atombios_set_mst_encoder_crtc_source(encoder, mst_enc->fe); encoder 506 drivers/gpu/drm/radeon/radeon_dp_mst.c static bool radeon_mst_mode_fixup(struct drm_encoder *encoder, encoder 511 drivers/gpu/drm/radeon/radeon_dp_mst.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 534 drivers/gpu/drm/radeon/radeon_dp_mst.c static void radeon_mst_encoder_prepare(struct drm_encoder *encoder) encoder 541 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_connector = radeon_mst_find_connector(encoder); encoder 543 drivers/gpu/drm/radeon/radeon_dp_mst.c DRM_DEBUG_KMS("failed to find connector %p\n", encoder); encoder 546 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_encoder = to_radeon_encoder(encoder); encoder 548 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_mst_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 561 drivers/gpu/drm/radeon/radeon_dp_mst.c atombios_set_mst_encoder_crtc_source(encoder, dig_enc->dig_encoder); encoder 569 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_mst_encoder_mode_set(struct drm_encoder *encoder, encoder 576 drivers/gpu/drm/radeon/radeon_dp_mst.c static void radeon_mst_encoder_commit(struct drm_encoder *encoder) encoder 578 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_mst_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 590 drivers/gpu/drm/radeon/radeon_dp_mst.c static void radeon_dp_mst_encoder_destroy(struct drm_encoder *encoder) encoder 592 drivers/gpu/drm/radeon/radeon_dp_mst.c drm_encoder_cleanup(encoder); encoder 593 drivers/gpu/drm/radeon/radeon_dp_mst.c kfree(encoder); encoder 607 drivers/gpu/drm/radeon/radeon_dp_mst.c struct drm_encoder *encoder; encoder 621 drivers/gpu/drm/radeon/radeon_dp_mst.c encoder = &radeon_encoder->base; encoder 624 drivers/gpu/drm/radeon/radeon_dp_mst.c encoder->possible_crtcs = 0x1; encoder 628 drivers/gpu/drm/radeon/radeon_dp_mst.c encoder->possible_crtcs = 0x3; encoder 631 drivers/gpu/drm/radeon/radeon_dp_mst.c encoder->possible_crtcs = 0xf; encoder 634 drivers/gpu/drm/radeon/radeon_dp_mst.c encoder->possible_crtcs = 0x3f; encoder 640 drivers/gpu/drm/radeon/radeon_dp_mst.c drm_encoder_helper_add(encoder, &radeon_mst_helper_funcs); encoder 43 drivers/gpu/drm/radeon/radeon_encoders.c static uint32_t radeon_encoder_clones(struct drm_encoder *encoder) encoder 45 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 47 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 67 drivers/gpu/drm/radeon/radeon_encoders.c if (clone_encoder == encoder) encoder 81 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_encoder *encoder; encoder 83 drivers/gpu/drm/radeon/radeon_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 84 drivers/gpu/drm/radeon/radeon_encoders.c encoder->possible_clones = radeon_encoder_clones(encoder); encoder 208 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_encoder *encoder; encoder 214 drivers/gpu/drm/radeon/radeon_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 215 drivers/gpu/drm/radeon/radeon_encoders.c radeon_encoder = to_radeon_encoder(encoder); encoder 217 drivers/gpu/drm/radeon/radeon_encoders.c drm_connector_attach_encoder(connector, encoder); encoder 225 drivers/gpu/drm/radeon/radeon_encoders.c void radeon_encoder_set_active_device(struct drm_encoder *encoder) encoder 227 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 228 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 232 drivers/gpu/drm/radeon/radeon_encoders.c if (connector->encoder == encoder) { encoder 237 drivers/gpu/drm/radeon/radeon_encoders.c radeon_connector->devices, encoder->encoder_type); encoder 243 drivers/gpu/drm/radeon/radeon_encoders.c radeon_get_connector_for_encoder(struct drm_encoder *encoder) encoder 245 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 246 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 268 drivers/gpu/drm/radeon/radeon_encoders.c radeon_get_connector_for_encoder_init(struct drm_encoder *encoder) encoder 270 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 271 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 283 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_encoder *radeon_get_external_encoder(struct drm_encoder *encoder) encoder 285 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 286 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 294 drivers/gpu/drm/radeon/radeon_encoders.c if (other_encoder == encoder) encoder 304 drivers/gpu/drm/radeon/radeon_encoders.c u16 radeon_encoder_get_dp_bridge_encoder_id(struct drm_encoder *encoder) encoder 306 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_encoder *other_encoder = radeon_get_external_encoder(encoder); encoder 322 drivers/gpu/drm/radeon/radeon_encoders.c void radeon_panel_mode_fixup(struct drm_encoder *encoder, encoder 325 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 326 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 369 drivers/gpu/drm/radeon/radeon_encoders.c bool radeon_dig_monitor_is_duallink(struct drm_encoder *encoder, encoder 372 drivers/gpu/drm/radeon/radeon_encoders.c struct drm_device *dev = encoder->dev; encoder 378 drivers/gpu/drm/radeon/radeon_encoders.c connector = radeon_get_connector_for_encoder(encoder); encoder 383 drivers/gpu/drm/radeon/radeon_encoders.c connector = radeon_get_connector_for_encoder_init(encoder); encoder 433 drivers/gpu/drm/radeon/radeon_encoders.c bool radeon_encoder_is_digital(struct drm_encoder *encoder) encoder 435 drivers/gpu/drm/radeon/radeon_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 579 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_encoder *encoder; encoder 591 drivers/gpu/drm/radeon/radeon_legacy_crtc.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 592 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (encoder->crtc == crtc) { encoder 593 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 721 drivers/gpu/drm/radeon/radeon_legacy_crtc.c radeon_legacy_tv_adjust_crtc_reg(encoder, &crtc_h_total_disp, encoder 738 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_encoder *encoder; encoder 785 drivers/gpu/drm/radeon/radeon_legacy_crtc.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 786 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (encoder->crtc == crtc) { encoder 787 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 794 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (encoder->encoder_type != DRM_MODE_ENCODER_DAC) encoder 796 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (encoder->encoder_type == DRM_MODE_ENCODER_LVDS) { encoder 798 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 859 drivers/gpu/drm/radeon/radeon_legacy_crtc.c radeon_legacy_tv_adjust_pll2(encoder, &htotal_cntl, encoder 923 drivers/gpu/drm/radeon/radeon_legacy_crtc.c radeon_legacy_tv_adjust_pll1(encoder, &htotal_cntl, &pll_ref_div, encoder 43 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_encoder_disable(struct drm_encoder *encoder) encoder 45 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 48 drivers/gpu/drm/radeon/radeon_legacy_encoders.c encoder_funcs = encoder->helper_private; encoder 49 drivers/gpu/drm/radeon/radeon_legacy_encoders.c encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF); encoder 53 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_update(struct drm_encoder *encoder, int mode) encoder 55 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 57 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 136 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 138 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 142 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_dpms(struct drm_encoder *encoder, int mode) encoder 144 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 145 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 158 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_lvds_update(encoder, mode); encoder 161 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_prepare(struct drm_encoder *encoder) encoder 163 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 166 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 168 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 169 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_lvds_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 172 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_commit(struct drm_encoder *encoder) encoder 174 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 176 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_lvds_dpms(encoder, DRM_MODE_DPMS_ON); encoder 178 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, false); encoder 180 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, false); encoder 183 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_mode_set(struct drm_encoder *encoder, encoder 187 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 189 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 190 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 204 drivers/gpu/drm/radeon/radeon_legacy_encoders.c atombios_digital_setup(encoder, PANEL_ENCODER_ACTION_ENABLE); encoder 248 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 250 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 253 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static bool radeon_legacy_mode_fixup(struct drm_encoder *encoder, encoder 257 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 260 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_encoder_set_active_device(encoder); encoder 265 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_panel_mode_fixup(encoder, adjusted_mode); encoder 344 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; encoder 355 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; encoder 409 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata->encoder = radeon_encoder; encoder 492 drivers/gpu/drm/radeon/radeon_legacy_encoders.c void radeon_legacy_backlight_init(struct radeon_encoder *encoder) encoder 496 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_backlight_exit(struct radeon_encoder *encoder) encoder 503 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_lvds_enc_destroy(struct drm_encoder *encoder) encoder 505 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 511 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_cleanup(encoder); encoder 519 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_primary_dac_dpms(struct drm_encoder *encoder, int mode) encoder 521 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 555 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 557 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 561 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_primary_dac_prepare(struct drm_encoder *encoder) encoder 563 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 566 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 568 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 569 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_primary_dac_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 572 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_primary_dac_commit(struct drm_encoder *encoder) encoder 574 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 576 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_primary_dac_dpms(encoder, DRM_MODE_DPMS_ON); encoder 579 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, false); encoder 581 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, false); encoder 584 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_primary_dac_mode_set(struct drm_encoder *encoder, encoder 588 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 590 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 591 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 636 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 638 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 641 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static enum drm_connector_status radeon_legacy_primary_dac_detect(struct drm_encoder *encoder, encoder 644 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 731 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_int_dpms(struct drm_encoder *encoder, int mode) encoder 733 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 752 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 754 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 758 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_int_prepare(struct drm_encoder *encoder) encoder 760 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 763 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 765 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 766 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tmds_int_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 769 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_int_commit(struct drm_encoder *encoder) encoder 771 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 773 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tmds_int_dpms(encoder, DRM_MODE_DPMS_ON); encoder 776 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 778 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 781 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_int_mode_set(struct drm_encoder *encoder, encoder 785 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 787 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 788 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 876 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 878 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 895 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_ext_dpms(struct drm_encoder *encoder, int mode) encoder 897 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 918 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 920 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 924 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_ext_prepare(struct drm_encoder *encoder) encoder 926 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 929 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 931 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 932 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tmds_ext_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 935 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_ext_commit(struct drm_encoder *encoder) encoder 937 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 938 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tmds_ext_dpms(encoder, DRM_MODE_DPMS_ON); encoder 941 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, false); encoder 943 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, false); encoder 946 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_ext_mode_set(struct drm_encoder *encoder, encoder 950 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 952 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 953 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 960 drivers/gpu/drm/radeon/radeon_legacy_encoders.c atombios_dvo_setup(encoder, ATOM_ENABLE); encoder 986 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (!radeon_combios_external_tmds_setup(encoder)) encoder 987 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_external_tmds_setup(encoder); encoder 1010 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 1012 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 1015 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_ext_tmds_enc_destroy(struct drm_encoder *encoder) encoder 1017 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1020 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_cleanup(encoder); encoder 1038 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tv_dac_dpms(struct drm_encoder *encoder, int mode) encoder 1040 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 1042 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1123 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 1125 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); encoder 1129 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tv_dac_prepare(struct drm_encoder *encoder) encoder 1131 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 1134 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 1136 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 1137 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tv_dac_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 1140 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tv_dac_commit(struct drm_encoder *encoder) encoder 1142 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_device *rdev = encoder->dev->dev_private; encoder 1144 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tv_dac_dpms(encoder, DRM_MODE_DPMS_ON); encoder 1147 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atom_output_lock(encoder, true); encoder 1149 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_output_lock(encoder, true); encoder 1152 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tv_dac_mode_set(struct drm_encoder *encoder, encoder 1156 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 1158 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_crtc *radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 1159 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1297 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tv_mode_set(encoder, mode, adjusted_mode); encoder 1300 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 1302 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_crtc_scratch_regs(encoder, radeon_crtc->crtc_id); encoder 1306 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static bool r300_legacy_tv_detect(struct drm_encoder *encoder, encoder 1309 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 1377 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static bool radeon_legacy_tv_detect(struct drm_encoder *encoder, encoder 1380 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 1387 drivers/gpu/drm/radeon/radeon_legacy_encoders.c return r300_legacy_tv_detect(encoder, connector); encoder 1441 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static bool radeon_legacy_ext_dac_detect(struct drm_encoder *encoder, encoder 1444 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 1531 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static enum drm_connector_status radeon_legacy_tv_dac_detect(struct drm_encoder *encoder, encoder 1534 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->dev; encoder 1540 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 1549 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (encoder->crtc != crtc) { encoder 1563 drivers/gpu/drm/radeon/radeon_legacy_encoders.c tv_detect = radeon_legacy_tv_detect(encoder, connector); encoder 1577 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (radeon_legacy_ext_dac_detect(encoder, connector)) encoder 1698 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static struct radeon_encoder_int_tmds *radeon_legacy_get_tmds_info(struct radeon_encoder *encoder) encoder 1700 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->base.dev; encoder 1711 drivers/gpu/drm/radeon/radeon_legacy_encoders.c ret = radeon_atombios_get_tmds_info(encoder, tmds); encoder 1713 drivers/gpu/drm/radeon/radeon_legacy_encoders.c ret = radeon_legacy_get_tmds_info_from_combios(encoder, tmds); encoder 1716 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_get_tmds_info_from_table(encoder, tmds); encoder 1721 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static struct radeon_encoder_ext_tmds *radeon_legacy_get_ext_tmds_info(struct radeon_encoder *encoder) encoder 1723 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_device *dev = encoder->base.dev; encoder 1736 drivers/gpu/drm/radeon/radeon_legacy_encoders.c ret = radeon_legacy_get_ext_tmds_info_from_combios(encoder, tmds); encoder 1739 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_get_ext_tmds_info_from_table(encoder, tmds); encoder 1748 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_encoder *encoder; encoder 1752 drivers/gpu/drm/radeon/radeon_legacy_encoders.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 1753 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_encoder = to_radeon_encoder(encoder); encoder 1766 drivers/gpu/drm/radeon/radeon_legacy_encoders.c encoder = &radeon_encoder->base; encoder 1768 drivers/gpu/drm/radeon/radeon_legacy_encoders.c encoder->possible_crtcs = 0x1; encoder 1770 drivers/gpu/drm/radeon/radeon_legacy_encoders.c encoder->possible_crtcs = 0x3; encoder 1781 drivers/gpu/drm/radeon/radeon_legacy_encoders.c encoder->possible_crtcs = 0x1; encoder 1782 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_init(dev, encoder, &radeon_legacy_lvds_enc_funcs, encoder 1784 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_helper_add(encoder, &radeon_legacy_lvds_helper_funcs); encoder 1792 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_init(dev, encoder, &radeon_legacy_tmds_int_enc_funcs, encoder 1794 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_helper_add(encoder, &radeon_legacy_tmds_int_helper_funcs); encoder 1798 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_init(dev, encoder, &radeon_legacy_primary_dac_enc_funcs, encoder 1800 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_helper_add(encoder, &radeon_legacy_primary_dac_helper_funcs); encoder 1807 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_init(dev, encoder, &radeon_legacy_tv_dac_enc_funcs, encoder 1809 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_helper_add(encoder, &radeon_legacy_tv_dac_helper_funcs); encoder 1816 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_init(dev, encoder, &radeon_legacy_tmds_ext_enc_funcs, encoder 1818 drivers/gpu/drm/radeon/radeon_legacy_encoders.c drm_encoder_helper_add(encoder, &radeon_legacy_tmds_ext_helper_funcs); encoder 277 drivers/gpu/drm/radeon/radeon_legacy_tv.c static void radeon_wait_pll_lock(struct drm_encoder *encoder, unsigned n_tests, encoder 280 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct drm_device *dev = encoder->dev; encoder 424 drivers/gpu/drm/radeon/radeon_legacy_tv.c static bool radeon_legacy_tv_init_restarts(struct drm_encoder *encoder) encoder 426 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 524 drivers/gpu/drm/radeon/radeon_legacy_tv.c void radeon_legacy_tv_mode_set(struct drm_encoder *encoder, encoder 528 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct drm_device *dev = encoder->dev; encoder 530 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 550 drivers/gpu/drm/radeon/radeon_legacy_tv.c radeon_crtc = to_radeon_crtc(encoder->crtc); encoder 743 drivers/gpu/drm/radeon/radeon_legacy_tv.c radeon_legacy_tv_init_restarts(encoder); encoder 767 drivers/gpu/drm/radeon/radeon_legacy_tv.c radeon_wait_pll_lock(encoder, 200, 800, 135); encoder 771 drivers/gpu/drm/radeon/radeon_legacy_tv.c radeon_wait_pll_lock(encoder, 300, 160, 27); encoder 772 drivers/gpu/drm/radeon/radeon_legacy_tv.c radeon_wait_pll_lock(encoder, 200, 800, 135); encoder 830 drivers/gpu/drm/radeon/radeon_legacy_tv.c void radeon_legacy_tv_adjust_crtc_reg(struct drm_encoder *encoder, encoder 834 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 877 drivers/gpu/drm/radeon/radeon_legacy_tv.c void radeon_legacy_tv_adjust_pll1(struct drm_encoder *encoder, encoder 881 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 897 drivers/gpu/drm/radeon/radeon_legacy_tv.c void radeon_legacy_tv_adjust_pll2(struct drm_encoder *encoder, encoder 901 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 287 drivers/gpu/drm/radeon/radeon_mode.h struct radeon_encoder *encoder; encoder 365 drivers/gpu/drm/radeon/radeon_mode.h struct drm_encoder *encoder; encoder 726 drivers/gpu/drm/radeon/radeon_mode.h struct drm_encoder *encoder, encoder 730 drivers/gpu/drm/radeon/radeon_mode.h struct drm_encoder *encoder, encoder 734 drivers/gpu/drm/radeon/radeon_mode.h radeon_get_connector_for_encoder(struct drm_encoder *encoder); encoder 736 drivers/gpu/drm/radeon/radeon_mode.h radeon_get_connector_for_encoder_init(struct drm_encoder *encoder); encoder 737 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_dig_monitor_is_duallink(struct drm_encoder *encoder, encoder 740 drivers/gpu/drm/radeon/radeon_mode.h extern u16 radeon_encoder_get_dp_bridge_encoder_id(struct drm_encoder *encoder); encoder 752 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_dp_link_train(struct drm_encoder *encoder, encoder 757 drivers/gpu/drm/radeon/radeon_mode.h extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, encoder 765 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_dig_encoder_setup(struct drm_encoder *encoder, int action, int panel_mode); encoder 766 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_dig_encoder_setup2(struct drm_encoder *encoder, int action, int panel_mode, int enc_override); encoder 769 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_dig_transmitter_setup(struct drm_encoder *encoder, encoder 772 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_dig_transmitter_setup2(struct drm_encoder *encoder, encoder 775 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_set_mst_encoder_crtc_source(struct drm_encoder *encoder, encoder 777 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_atom_ext_encoder_setup_ddc(struct drm_encoder *encoder); encoder 778 drivers/gpu/drm/radeon/radeon_mode.h extern struct drm_encoder *radeon_get_external_encoder(struct drm_encoder *encoder); encoder 838 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_dvo_setup(struct drm_encoder *encoder, int action); encoder 839 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_digital_setup(struct drm_encoder *encoder, int action); encoder 840 drivers/gpu/drm/radeon/radeon_mode.h extern int atombios_get_encoder_mode(struct drm_encoder *encoder); encoder 842 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_encoder_set_active_device(struct drm_encoder *encoder); encoder 843 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_encoder_is_digital(struct drm_encoder *encoder); encoder 890 drivers/gpu/drm/radeon/radeon_mode.h radeon_atombios_get_lvds_info(struct radeon_encoder *encoder); encoder 891 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_atombios_get_tmds_info(struct radeon_encoder *encoder, encoder 893 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder *encoder, encoder 895 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_legacy_get_tmds_info_from_table(struct radeon_encoder *encoder, encoder 897 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_legacy_get_ext_tmds_info_from_combios(struct radeon_encoder *encoder, encoder 899 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_legacy_get_ext_tmds_info_from_table(struct radeon_encoder *encoder, encoder 902 drivers/gpu/drm/radeon/radeon_mode.h radeon_atombios_get_primary_dac_info(struct radeon_encoder *encoder); encoder 904 drivers/gpu/drm/radeon/radeon_mode.h radeon_atombios_get_tv_dac_info(struct radeon_encoder *encoder); encoder 906 drivers/gpu/drm/radeon/radeon_mode.h radeon_combios_get_lvds_info(struct radeon_encoder *encoder); encoder 907 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_combios_get_ext_tmds_info(struct radeon_encoder *encoder); encoder 909 drivers/gpu/drm/radeon/radeon_mode.h radeon_combios_get_tv_dac_info(struct radeon_encoder *encoder); encoder 911 drivers/gpu/drm/radeon/radeon_mode.h radeon_combios_get_primary_dac_info(struct radeon_encoder *encoder); encoder 912 drivers/gpu/drm/radeon/radeon_mode.h extern bool radeon_combios_external_tmds_setup(struct drm_encoder *encoder); encoder 913 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_external_tmds_setup(struct drm_encoder *encoder); encoder 914 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_combios_output_lock(struct drm_encoder *encoder, bool lock); encoder 916 drivers/gpu/drm/radeon/radeon_mode.h extern void radeon_atom_output_lock(struct drm_encoder *encoder, bool lock); encoder 921 drivers/gpu/drm/radeon/radeon_mode.h radeon_atombios_encoder_crtc_scratch_regs(struct drm_encoder *encoder, int crtc); encoder 923 drivers/gpu/drm/radeon/radeon_mode.h radeon_atombios_encoder_dpms_scratch_regs(struct drm_encoder *encoder, bool on); encoder 925 drivers/gpu/drm/radeon/radeon_mode.h radeon_combios_encoder_crtc_scratch_regs(struct drm_encoder *encoder, int crtc); encoder 927 drivers/gpu/drm/radeon/radeon_mode.h radeon_combios_encoder_dpms_scratch_regs(struct drm_encoder *encoder, bool on); encoder 946 drivers/gpu/drm/radeon/radeon_mode.h void radeon_enc_destroy(struct drm_encoder *encoder); encoder 952 drivers/gpu/drm/radeon/radeon_mode.h void radeon_panel_mode_fixup(struct drm_encoder *encoder, encoder 957 drivers/gpu/drm/radeon/radeon_mode.h void radeon_legacy_tv_adjust_crtc_reg(struct drm_encoder *encoder, encoder 960 drivers/gpu/drm/radeon/radeon_mode.h void radeon_legacy_tv_adjust_pll1(struct drm_encoder *encoder, encoder 963 drivers/gpu/drm/radeon/radeon_mode.h void radeon_legacy_tv_adjust_pll2(struct drm_encoder *encoder, encoder 966 drivers/gpu/drm/radeon/radeon_mode.h void radeon_legacy_tv_mode_set(struct drm_encoder *encoder, encoder 971 drivers/gpu/drm/radeon/radeon_mode.h void avivo_program_fmt(struct drm_encoder *encoder); encoder 972 drivers/gpu/drm/radeon/radeon_mode.h void dce3_program_fmt(struct drm_encoder *encoder); encoder 973 drivers/gpu/drm/radeon/radeon_mode.h void dce4_program_fmt(struct drm_encoder *encoder); encoder 974 drivers/gpu/drm/radeon/radeon_mode.h void dce8_program_fmt(struct drm_encoder *encoder); encoder 1000 drivers/gpu/drm/radeon/radeon_mode.h int radeon_atom_pick_dig_encoder(struct drm_encoder *encoder, int fe_idx); encoder 158 drivers/gpu/drm/radeon/rs600.c void avivo_program_fmt(struct drm_encoder *encoder) encoder 160 drivers/gpu/drm/radeon/rs600.c struct drm_device *dev = encoder->dev; encoder 162 drivers/gpu/drm/radeon/rs600.c struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); encoder 163 drivers/gpu/drm/radeon/rs600.c struct drm_connector *connector = radeon_get_connector_for_encoder(encoder); encoder 644 drivers/gpu/drm/rcar-du/rcar_du_crtc.c struct drm_encoder *encoder; encoder 649 drivers/gpu/drm/rcar-du/rcar_du_crtc.c drm_for_each_encoder_mask(encoder, crtc->dev, state->encoder_mask) { encoder 653 drivers/gpu/drm/rcar-du/rcar_du_crtc.c if (encoder->encoder_type == DRM_MODE_ENCODER_VIRTUAL) encoder 656 drivers/gpu/drm/rcar-du/rcar_du_crtc.c renc = to_rcar_encoder(encoder); encoder 679 drivers/gpu/drm/rcar-du/rcar_du_crtc.c struct rcar_du_encoder *encoder = encoder 684 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_lvds_clk_enable(encoder->base.bridge, encoder 703 drivers/gpu/drm/rcar-du/rcar_du_crtc.c struct rcar_du_encoder *encoder = encoder 710 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_lvds_clk_disable(encoder->base.bridge); encoder 57 drivers/gpu/drm/rcar-du/rcar_du_encoder.c struct drm_encoder *encoder; encoder 67 drivers/gpu/drm/rcar-du/rcar_du_encoder.c encoder = rcar_encoder_to_drm_encoder(renc); encoder 112 drivers/gpu/drm/rcar-du/rcar_du_encoder.c ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, encoder 117 drivers/gpu/drm/rcar-du/rcar_du_encoder.c drm_encoder_helper_add(encoder, &encoder_helper_funcs); encoder 123 drivers/gpu/drm/rcar-du/rcar_du_encoder.c ret = drm_bridge_attach(encoder, bridge, NULL); encoder 125 drivers/gpu/drm/rcar-du/rcar_du_encoder.c drm_encoder_cleanup(encoder); encoder 131 drivers/gpu/drm/rcar-du/rcar_du_encoder.c if (encoder->name) encoder 132 drivers/gpu/drm/rcar-du/rcar_du_encoder.c encoder->funcs->destroy(encoder); encoder 624 drivers/gpu/drm/rcar-du/rcar_du_kms.c struct drm_encoder *encoder; encoder 739 drivers/gpu/drm/rcar-du/rcar_du_kms.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 740 drivers/gpu/drm/rcar-du/rcar_du_kms.c struct rcar_du_encoder *renc = to_rcar_encoder(encoder); encoder 744 drivers/gpu/drm/rcar-du/rcar_du_kms.c encoder->possible_crtcs = route->possible_crtcs; encoder 745 drivers/gpu/drm/rcar-du/rcar_du_kms.c encoder->possible_clones = (1 << num_encoders) - 1; encoder 140 drivers/gpu/drm/rcar-du/rcar_du_writeback.c static int rcar_du_wb_enc_atomic_check(struct drm_encoder *encoder, encoder 147 drivers/gpu/drm/rcar-du/rcar_du_writeback.c struct drm_device *dev = encoder->dev; encoder 203 drivers/gpu/drm/rcar-du/rcar_du_writeback.c wb_conn->encoder.possible_crtcs = 1 << drm_crtc_index(&rcrtc->crtc); encoder 461 drivers/gpu/drm/rcar-du/rcar_lvds.c if (lvds->bridge.encoder) { encoder 466 drivers/gpu/drm/rcar-du/rcar_lvds.c if (drm_crtc_index(lvds->bridge.encoder->crtc) == 2) encoder 613 drivers/gpu/drm/rcar-du/rcar_lvds.c struct drm_encoder *encoder = bridge->encoder; encoder 618 drivers/gpu/drm/rcar-du/rcar_lvds.c return drm_bridge_attach(bridge->encoder, lvds->next_bridge, encoder 632 drivers/gpu/drm/rcar-du/rcar_lvds.c ret = drm_connector_attach_encoder(connector, encoder); encoder 61 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct drm_encoder encoder; encoder 132 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c rockchip_dp_drm_encoder_mode_fixup(struct drm_encoder *encoder, encoder 140 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c static void rockchip_dp_drm_encoder_mode_set(struct drm_encoder *encoder, encoder 148 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct drm_crtc *rockchip_dp_drm_get_new_crtc(struct drm_encoder *encoder, encoder 154 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c connector = drm_atomic_get_new_connector_for_encoder(state, encoder); encoder 165 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c static void rockchip_dp_drm_encoder_enable(struct drm_encoder *encoder, encoder 168 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct rockchip_dp_device *dp = to_dp(encoder); encoder 174 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c crtc = rockchip_dp_drm_get_new_crtc(encoder, state); encoder 183 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c ret = drm_of_encoder_active_endpoint_id(dp->dev->of_node, encoder); encoder 207 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c static void rockchip_dp_drm_encoder_disable(struct drm_encoder *encoder, encoder 210 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct rockchip_dp_device *dp = to_dp(encoder); encoder 215 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c crtc = rockchip_dp_drm_get_new_crtc(encoder, state); encoder 231 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c rockchip_dp_drm_encoder_atomic_check(struct drm_encoder *encoder, encoder 303 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct drm_encoder *encoder = &dp->encoder; encoder 308 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, encoder 310 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c DRM_DEBUG_KMS("possible_crtcs = 0x%x\n", encoder->possible_crtcs); encoder 312 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c ret = drm_encoder_init(drm_dev, encoder, &rockchip_dp_encoder_funcs, encoder 319 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c drm_encoder_helper_add(encoder, &rockchip_dp_encoder_helper_funcs); encoder 339 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c dp->plat_data.encoder = &dp->encoder; encoder 347 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c dp->encoder.funcs->destroy(&dp->encoder); encoder 357 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c dp->encoder.funcs->destroy(&dp->encoder); encoder 32 drivers/gpu/drm/rockchip/cdn-dp-core.c container_of(c, struct cdn_dp_device, encoder) encoder 540 drivers/gpu/drm/rockchip/cdn-dp-core.c static void cdn_dp_encoder_mode_set(struct drm_encoder *encoder, encoder 544 drivers/gpu/drm/rockchip/cdn-dp-core.c struct cdn_dp_device *dp = encoder_to_dp(encoder); encoder 586 drivers/gpu/drm/rockchip/cdn-dp-core.c static void cdn_dp_encoder_enable(struct drm_encoder *encoder) encoder 588 drivers/gpu/drm/rockchip/cdn-dp-core.c struct cdn_dp_device *dp = encoder_to_dp(encoder); encoder 591 drivers/gpu/drm/rockchip/cdn-dp-core.c ret = drm_of_encoder_active_endpoint_id(dp->dev->of_node, encoder); encoder 645 drivers/gpu/drm/rockchip/cdn-dp-core.c static void cdn_dp_encoder_disable(struct drm_encoder *encoder) encoder 647 drivers/gpu/drm/rockchip/cdn-dp-core.c struct cdn_dp_device *dp = encoder_to_dp(encoder); encoder 673 drivers/gpu/drm/rockchip/cdn-dp-core.c static int cdn_dp_encoder_atomic_check(struct drm_encoder *encoder, encoder 1009 drivers/gpu/drm/rockchip/cdn-dp-core.c struct drm_encoder *encoder; encoder 1027 drivers/gpu/drm/rockchip/cdn-dp-core.c encoder = &dp->encoder; encoder 1029 drivers/gpu/drm/rockchip/cdn-dp-core.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, encoder 1031 drivers/gpu/drm/rockchip/cdn-dp-core.c DRM_DEBUG_KMS("possible_crtcs = 0x%x\n", encoder->possible_crtcs); encoder 1033 drivers/gpu/drm/rockchip/cdn-dp-core.c ret = drm_encoder_init(drm_dev, encoder, &cdn_dp_encoder_funcs, encoder 1040 drivers/gpu/drm/rockchip/cdn-dp-core.c drm_encoder_helper_add(encoder, &cdn_dp_encoder_helper_funcs); encoder 1056 drivers/gpu/drm/rockchip/cdn-dp-core.c ret = drm_connector_attach_encoder(connector, encoder); encoder 1085 drivers/gpu/drm/rockchip/cdn-dp-core.c drm_encoder_cleanup(encoder); encoder 1092 drivers/gpu/drm/rockchip/cdn-dp-core.c struct drm_encoder *encoder = &dp->encoder; encoder 1096 drivers/gpu/drm/rockchip/cdn-dp-core.c cdn_dp_encoder_disable(encoder); encoder 1097 drivers/gpu/drm/rockchip/cdn-dp-core.c encoder->funcs->destroy(encoder); encoder 68 drivers/gpu/drm/rockchip/cdn-dp-core.h struct drm_encoder encoder; encoder 214 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct drm_encoder encoder; encoder 588 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dw_mipi_dsi_encoder_atomic_check(struct drm_encoder *encoder, encoder 593 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct dw_mipi_dsi_rockchip *dsi = to_dsi(encoder); encoder 617 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c static void dw_mipi_dsi_encoder_enable(struct drm_encoder *encoder) encoder 619 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct dw_mipi_dsi_rockchip *dsi = to_dsi(encoder); encoder 623 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c &dsi->encoder); encoder 649 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c static void dw_mipi_dsi_encoder_disable(struct drm_encoder *encoder) encoder 651 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct dw_mipi_dsi_rockchip *dsi = to_dsi(encoder); encoder 672 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct drm_encoder *encoder = &dsi->encoder; encoder 675 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, encoder 678 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c ret = drm_encoder_init(drm_dev, encoder, &dw_mipi_dsi_encoder_funcs, encoder 685 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c drm_encoder_helper_add(encoder, &dw_mipi_dsi_encoder_helper_funcs); encoder 809 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c ret = dw_mipi_dsi_bind(dsi->dmd, &dsi->encoder); encoder 69 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c struct drm_encoder encoder; encoder 244 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c static void dw_hdmi_rockchip_encoder_disable(struct drm_encoder *encoder) encoder 249 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c dw_hdmi_rockchip_encoder_mode_fixup(struct drm_encoder *encoder, encoder 256 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c static void dw_hdmi_rockchip_encoder_mode_set(struct drm_encoder *encoder, encoder 260 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c struct rockchip_hdmi *hdmi = to_rockchip_hdmi(encoder); encoder 265 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c static void dw_hdmi_rockchip_encoder_enable(struct drm_encoder *encoder) encoder 267 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c struct rockchip_hdmi *hdmi = to_rockchip_hdmi(encoder); encoder 274 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c ret = drm_of_encoder_active_endpoint_id(hdmi->dev->of_node, encoder); encoder 296 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c dw_hdmi_rockchip_encoder_atomic_check(struct drm_encoder *encoder, encoder 493 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c struct drm_encoder *encoder; encoder 513 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c encoder = &hdmi->encoder; encoder 515 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); encoder 522 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c if (encoder->possible_crtcs == 0) encoder 546 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c drm_encoder_helper_add(encoder, &dw_hdmi_rockchip_encoder_helper_funcs); encoder 547 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c drm_encoder_init(drm, encoder, &dw_hdmi_rockchip_encoder_funcs, encoder 552 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); encoder 560 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c drm_encoder_cleanup(encoder); encoder 58 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_encoder encoder; encoder 481 drivers/gpu/drm/rockchip/inno_hdmi.c static void inno_hdmi_encoder_mode_set(struct drm_encoder *encoder, encoder 485 drivers/gpu/drm/rockchip/inno_hdmi.c struct inno_hdmi *hdmi = to_inno_hdmi(encoder); encoder 493 drivers/gpu/drm/rockchip/inno_hdmi.c static void inno_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 495 drivers/gpu/drm/rockchip/inno_hdmi.c struct inno_hdmi *hdmi = to_inno_hdmi(encoder); encoder 500 drivers/gpu/drm/rockchip/inno_hdmi.c static void inno_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 502 drivers/gpu/drm/rockchip/inno_hdmi.c struct inno_hdmi *hdmi = to_inno_hdmi(encoder); encoder 507 drivers/gpu/drm/rockchip/inno_hdmi.c static bool inno_hdmi_encoder_mode_fixup(struct drm_encoder *encoder, encoder 515 drivers/gpu/drm/rockchip/inno_hdmi.c inno_hdmi_encoder_atomic_check(struct drm_encoder *encoder, encoder 605 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_encoder *encoder = &hdmi->encoder; encoder 608 drivers/gpu/drm/rockchip/inno_hdmi.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node); encoder 616 drivers/gpu/drm/rockchip/inno_hdmi.c if (encoder->possible_crtcs == 0) encoder 619 drivers/gpu/drm/rockchip/inno_hdmi.c drm_encoder_helper_add(encoder, &inno_hdmi_encoder_helper_funcs); encoder 620 drivers/gpu/drm/rockchip/inno_hdmi.c drm_encoder_init(drm, encoder, &inno_hdmi_encoder_funcs, encoder 630 drivers/gpu/drm/rockchip/inno_hdmi.c drm_connector_attach_encoder(&hdmi->connector, encoder); encoder 886 drivers/gpu/drm/rockchip/inno_hdmi.c hdmi->encoder.funcs->destroy(&hdmi->encoder); encoder 900 drivers/gpu/drm/rockchip/inno_hdmi.c hdmi->encoder.funcs->destroy(&hdmi->encoder); encoder 49 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_encoder encoder; encoder 378 drivers/gpu/drm/rockchip/rk3066_hdmi.c rk3066_hdmi_encoder_mode_set(struct drm_encoder *encoder, encoder 382 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct rk3066_hdmi *hdmi = to_rk3066_hdmi(encoder); encoder 388 drivers/gpu/drm/rockchip/rk3066_hdmi.c static void rk3066_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 390 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct rk3066_hdmi *hdmi = to_rk3066_hdmi(encoder); encoder 393 drivers/gpu/drm/rockchip/rk3066_hdmi.c mux = drm_of_encoder_active_endpoint_id(hdmi->dev->of_node, encoder); encoder 407 drivers/gpu/drm/rockchip/rk3066_hdmi.c static void rk3066_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 409 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct rk3066_hdmi *hdmi = to_rk3066_hdmi(encoder); encoder 425 drivers/gpu/drm/rockchip/rk3066_hdmi.c rk3066_hdmi_encoder_mode_fixup(struct drm_encoder *encoder, encoder 433 drivers/gpu/drm/rockchip/rk3066_hdmi.c rk3066_hdmi_encoder_atomic_check(struct drm_encoder *encoder, encoder 504 drivers/gpu/drm/rockchip/rk3066_hdmi.c return &hdmi->encoder; encoder 544 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_encoder *encoder = &hdmi->encoder; encoder 547 drivers/gpu/drm/rockchip/rk3066_hdmi.c encoder->possible_crtcs = encoder 556 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (encoder->possible_crtcs == 0) encoder 559 drivers/gpu/drm/rockchip/rk3066_hdmi.c drm_encoder_helper_add(encoder, &rk3066_hdmi_encoder_helper_funcs); encoder 560 drivers/gpu/drm/rockchip/rk3066_hdmi.c drm_encoder_init(drm, encoder, &rk3066_hdmi_encoder_funcs, encoder 571 drivers/gpu/drm/rockchip/rk3066_hdmi.c drm_connector_attach_encoder(&hdmi->connector, encoder); encoder 825 drivers/gpu/drm/rockchip/rk3066_hdmi.c hdmi->encoder.funcs->destroy(&hdmi->encoder); encoder 840 drivers/gpu/drm/rockchip/rk3066_hdmi.c hdmi->encoder.funcs->destroy(&hdmi->encoder); encoder 37 drivers/gpu/drm/rockchip/rockchip_lvds.c container_of(c, struct rockchip_lvds, encoder) encoder 65 drivers/gpu/drm/rockchip/rockchip_lvds.c struct drm_encoder encoder; encoder 211 drivers/gpu/drm/rockchip/rockchip_lvds.c static void rockchip_lvds_grf_config(struct drm_encoder *encoder, encoder 214 drivers/gpu/drm/rockchip/rockchip_lvds.c struct rockchip_lvds *lvds = encoder_to_lvds(encoder); encoder 244 drivers/gpu/drm/rockchip/rockchip_lvds.c struct drm_encoder *encoder) encoder 252 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = drm_of_encoder_active_endpoint_id(lvds->dev->of_node, encoder); encoder 268 drivers/gpu/drm/rockchip/rockchip_lvds.c rockchip_lvds_encoder_atomic_check(struct drm_encoder *encoder, encoder 280 drivers/gpu/drm/rockchip/rockchip_lvds.c static void rockchip_lvds_encoder_enable(struct drm_encoder *encoder) encoder 282 drivers/gpu/drm/rockchip/rockchip_lvds.c struct rockchip_lvds *lvds = encoder_to_lvds(encoder); encoder 283 drivers/gpu/drm/rockchip/rockchip_lvds.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 292 drivers/gpu/drm/rockchip/rockchip_lvds.c rockchip_lvds_grf_config(encoder, mode); encoder 293 drivers/gpu/drm/rockchip/rockchip_lvds.c rockchip_lvds_set_vop_source(lvds, encoder); encoder 297 drivers/gpu/drm/rockchip/rockchip_lvds.c static void rockchip_lvds_encoder_disable(struct drm_encoder *encoder) encoder 299 drivers/gpu/drm/rockchip/rockchip_lvds.c struct rockchip_lvds *lvds = encoder_to_lvds(encoder); encoder 338 drivers/gpu/drm/rockchip/rockchip_lvds.c struct drm_encoder *encoder; encoder 400 drivers/gpu/drm/rockchip/rockchip_lvds.c encoder = &lvds->encoder; encoder 401 drivers/gpu/drm/rockchip/rockchip_lvds.c encoder->possible_crtcs = drm_of_find_possible_crtcs(drm_dev, encoder 404 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = drm_encoder_init(drm_dev, encoder, &rockchip_lvds_encoder_funcs, encoder 412 drivers/gpu/drm/rockchip/rockchip_lvds.c drm_encoder_helper_add(encoder, &rockchip_lvds_encoder_helper_funcs); encoder 429 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = drm_connector_attach_encoder(connector, encoder); encoder 443 drivers/gpu/drm/rockchip/rockchip_lvds.c ret = drm_bridge_attach(encoder, lvds->bridge, NULL); encoder 460 drivers/gpu/drm/rockchip/rockchip_lvds.c drm_encoder_cleanup(encoder); encoder 474 drivers/gpu/drm/rockchip/rockchip_lvds.c rockchip_lvds_encoder_disable(&lvds->encoder); encoder 479 drivers/gpu/drm/rockchip/rockchip_lvds.c drm_encoder_cleanup(&lvds->encoder); encoder 20 drivers/gpu/drm/rockchip/rockchip_rgb.c #define encoder_to_rgb(c) container_of(c, struct rockchip_rgb, encoder) encoder 26 drivers/gpu/drm/rockchip/rockchip_rgb.c struct drm_encoder encoder; encoder 31 drivers/gpu/drm/rockchip/rockchip_rgb.c rockchip_rgb_encoder_atomic_check(struct drm_encoder *encoder, encoder 78 drivers/gpu/drm/rockchip/rockchip_rgb.c struct drm_encoder *encoder; encoder 124 drivers/gpu/drm/rockchip/rockchip_rgb.c encoder = &rgb->encoder; encoder 125 drivers/gpu/drm/rockchip/rockchip_rgb.c encoder->possible_crtcs = drm_crtc_mask(crtc); encoder 127 drivers/gpu/drm/rockchip/rockchip_rgb.c ret = drm_encoder_init(drm_dev, encoder, &rockchip_rgb_encoder_funcs, encoder 135 drivers/gpu/drm/rockchip/rockchip_rgb.c drm_encoder_helper_add(encoder, &rockchip_rgb_encoder_helper_funcs); encoder 145 drivers/gpu/drm/rockchip/rockchip_rgb.c ret = drm_bridge_attach(encoder, rgb->bridge, NULL); encoder 155 drivers/gpu/drm/rockchip/rockchip_rgb.c drm_encoder_cleanup(encoder); encoder 163 drivers/gpu/drm/rockchip/rockchip_rgb.c drm_encoder_cleanup(&rgb->encoder); encoder 498 drivers/gpu/drm/shmobile/shmob_drm_crtc.c container_of(e, struct shmob_drm_encoder, encoder) encoder 500 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 502 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct shmob_drm_encoder *senc = to_shmob_encoder(encoder); encoder 503 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct shmob_drm_device *sdev = encoder->dev->dev_private; encoder 514 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static bool shmob_drm_encoder_mode_fixup(struct drm_encoder *encoder, encoder 518 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_device *dev = encoder->dev; encoder 536 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_encoder_mode_prepare(struct drm_encoder *encoder) encoder 541 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_encoder_mode_set(struct drm_encoder *encoder, encoder 548 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_encoder_mode_commit(struct drm_encoder *encoder) encoder 561 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_encoder_destroy(struct drm_encoder *encoder) encoder 563 drivers/gpu/drm/shmobile/shmob_drm_crtc.c drm_encoder_cleanup(encoder); encoder 572 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_encoder *encoder = &sdev->encoder.encoder; encoder 575 drivers/gpu/drm/shmobile/shmob_drm_crtc.c sdev->encoder.dpms = DRM_MODE_DPMS_OFF; encoder 577 drivers/gpu/drm/shmobile/shmob_drm_crtc.c encoder->possible_crtcs = 1; encoder 579 drivers/gpu/drm/shmobile/shmob_drm_crtc.c ret = drm_encoder_init(sdev->ddev, encoder, &encoder_funcs, encoder 584 drivers/gpu/drm/shmobile/shmob_drm_crtc.c drm_encoder_helper_add(encoder, &encoder_helper_funcs); encoder 631 drivers/gpu/drm/shmobile/shmob_drm_crtc.c return scon->encoder; encoder 655 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_encoder *encoder) encoder 660 drivers/gpu/drm/shmobile/shmob_drm_crtc.c sdev->connector.encoder = encoder; encoder 676 drivers/gpu/drm/shmobile/shmob_drm_crtc.c ret = drm_connector_attach_encoder(connector, encoder); encoder 35 drivers/gpu/drm/shmobile/shmob_drm_crtc.h struct drm_encoder encoder; encoder 41 drivers/gpu/drm/shmobile/shmob_drm_crtc.h struct drm_encoder *encoder; encoder 53 drivers/gpu/drm/shmobile/shmob_drm_crtc.h struct drm_encoder *encoder); encoder 37 drivers/gpu/drm/shmobile/shmob_drm_drv.h struct shmob_drm_encoder encoder; encoder 133 drivers/gpu/drm/shmobile/shmob_drm_kms.c shmob_drm_connector_create(sdev, &sdev->encoder.encoder); encoder 97 drivers/gpu/drm/sti/sti_dvo.c struct drm_encoder *encoder; encoder 103 drivers/gpu/drm/sti/sti_dvo.c struct drm_encoder *encoder; encoder 283 drivers/gpu/drm/sti/sti_dvo.c struct sti_mixer *mixer = to_sti_mixer(dvo->encoder->crtc); encoder 427 drivers/gpu/drm/sti/sti_dvo.c struct drm_encoder *encoder; encoder 429 drivers/gpu/drm/sti/sti_dvo.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 430 drivers/gpu/drm/sti/sti_dvo.c if (encoder->encoder_type == DRM_MODE_ENCODER_LVDS) encoder 431 drivers/gpu/drm/sti/sti_dvo.c return encoder; encoder 441 drivers/gpu/drm/sti/sti_dvo.c struct drm_encoder *encoder; encoder 450 drivers/gpu/drm/sti/sti_dvo.c encoder = sti_dvo_find_encoder(drm_dev); encoder 451 drivers/gpu/drm/sti/sti_dvo.c if (!encoder) encoder 469 drivers/gpu/drm/sti/sti_dvo.c err = drm_bridge_attach(encoder, bridge, NULL); encoder 476 drivers/gpu/drm/sti/sti_dvo.c connector->encoder = encoder; encoder 477 drivers/gpu/drm/sti/sti_dvo.c dvo->encoder = encoder; encoder 488 drivers/gpu/drm/sti/sti_dvo.c err = drm_connector_attach_encoder(drm_connector, encoder); encoder 256 drivers/gpu/drm/sti/sti_hda.c struct drm_encoder *encoder; encoder 664 drivers/gpu/drm/sti/sti_hda.c struct drm_encoder *encoder; encoder 666 drivers/gpu/drm/sti/sti_hda.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 667 drivers/gpu/drm/sti/sti_hda.c if (encoder->encoder_type == DRM_MODE_ENCODER_DAC) encoder 668 drivers/gpu/drm/sti/sti_hda.c return encoder; encoder 678 drivers/gpu/drm/sti/sti_hda.c struct drm_encoder *encoder; encoder 687 drivers/gpu/drm/sti/sti_hda.c encoder = sti_hda_find_encoder(drm_dev); encoder 688 drivers/gpu/drm/sti/sti_hda.c if (!encoder) encoder 703 drivers/gpu/drm/sti/sti_hda.c drm_bridge_attach(encoder, bridge, NULL); encoder 705 drivers/gpu/drm/sti/sti_hda.c connector->encoder = encoder; encoder 716 drivers/gpu/drm/sti/sti_hda.c err = drm_connector_attach_encoder(drm_connector, encoder); encoder 161 drivers/gpu/drm/sti/sti_hdmi.c struct drm_encoder *encoder; encoder 1137 drivers/gpu/drm/sti/sti_hdmi.c struct drm_encoder *encoder; encoder 1139 drivers/gpu/drm/sti/sti_hdmi.c list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { encoder 1140 drivers/gpu/drm/sti/sti_hdmi.c if (encoder->encoder_type == DRM_MODE_ENCODER_TMDS) encoder 1141 drivers/gpu/drm/sti/sti_hdmi.c return encoder; encoder 1257 drivers/gpu/drm/sti/sti_hdmi.c struct drm_encoder *encoder; encoder 1266 drivers/gpu/drm/sti/sti_hdmi.c encoder = sti_hdmi_find_encoder(drm_dev); encoder 1267 drivers/gpu/drm/sti/sti_hdmi.c if (!encoder) encoder 1282 drivers/gpu/drm/sti/sti_hdmi.c drm_bridge_attach(encoder, bridge, NULL); encoder 1284 drivers/gpu/drm/sti/sti_hdmi.c connector->encoder = encoder; encoder 1302 drivers/gpu/drm/sti/sti_hdmi.c err = drm_connector_attach_encoder(drm_connector, encoder); encoder 124 drivers/gpu/drm/sti/sti_tvout.c struct drm_encoder encoder; encoder 129 drivers/gpu/drm/sti/sti_tvout.c container_of(x, struct sti_tvout_encoder, encoder) encoder 585 drivers/gpu/drm/sti/sti_tvout.c static void sti_tvout_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 589 drivers/gpu/drm/sti/sti_tvout.c static void sti_tvout_encoder_mode_set(struct drm_encoder *encoder, encoder 595 drivers/gpu/drm/sti/sti_tvout.c static void sti_tvout_encoder_destroy(struct drm_encoder *encoder) encoder 597 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout_encoder *sti_encoder = to_sti_tvout_encoder(encoder); encoder 599 drivers/gpu/drm/sti/sti_tvout.c drm_encoder_cleanup(encoder); encoder 603 drivers/gpu/drm/sti/sti_tvout.c static int sti_tvout_late_register(struct drm_encoder *encoder) encoder 605 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 611 drivers/gpu/drm/sti/sti_tvout.c ret = tvout_debugfs_init(tvout, encoder->dev->primary); encoder 619 drivers/gpu/drm/sti/sti_tvout.c static void sti_tvout_early_unregister(struct drm_encoder *encoder) encoder 621 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 635 drivers/gpu/drm/sti/sti_tvout.c static void sti_dvo_encoder_enable(struct drm_encoder *encoder) encoder 637 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 639 drivers/gpu/drm/sti/sti_tvout.c tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode); encoder 641 drivers/gpu/drm/sti/sti_tvout.c tvout_dvo_start(tvout, sti_crtc_is_main(encoder->crtc)); encoder 644 drivers/gpu/drm/sti/sti_tvout.c static void sti_dvo_encoder_disable(struct drm_encoder *encoder) encoder 646 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 663 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout_encoder *encoder; encoder 666 drivers/gpu/drm/sti/sti_tvout.c encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL); encoder 667 drivers/gpu/drm/sti/sti_tvout.c if (!encoder) encoder 670 drivers/gpu/drm/sti/sti_tvout.c encoder->tvout = tvout; encoder 672 drivers/gpu/drm/sti/sti_tvout.c drm_encoder = &encoder->encoder; encoder 685 drivers/gpu/drm/sti/sti_tvout.c static void sti_hda_encoder_enable(struct drm_encoder *encoder) encoder 687 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 689 drivers/gpu/drm/sti/sti_tvout.c tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode); encoder 691 drivers/gpu/drm/sti/sti_tvout.c tvout_hda_start(tvout, sti_crtc_is_main(encoder->crtc)); encoder 694 drivers/gpu/drm/sti/sti_tvout.c static void sti_hda_encoder_disable(struct drm_encoder *encoder) encoder 696 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 715 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout_encoder *encoder; encoder 718 drivers/gpu/drm/sti/sti_tvout.c encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL); encoder 719 drivers/gpu/drm/sti/sti_tvout.c if (!encoder) encoder 722 drivers/gpu/drm/sti/sti_tvout.c encoder->tvout = tvout; encoder 724 drivers/gpu/drm/sti/sti_tvout.c drm_encoder = &encoder->encoder; encoder 736 drivers/gpu/drm/sti/sti_tvout.c static void sti_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 738 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 740 drivers/gpu/drm/sti/sti_tvout.c tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode); encoder 742 drivers/gpu/drm/sti/sti_tvout.c tvout_hdmi_start(tvout, sti_crtc_is_main(encoder->crtc)); encoder 745 drivers/gpu/drm/sti/sti_tvout.c static void sti_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 747 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout *tvout = to_sti_tvout(encoder); encoder 763 drivers/gpu/drm/sti/sti_tvout.c struct sti_tvout_encoder *encoder; encoder 766 drivers/gpu/drm/sti/sti_tvout.c encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL); encoder 767 drivers/gpu/drm/sti/sti_tvout.c if (!encoder) encoder 770 drivers/gpu/drm/sti/sti_tvout.c encoder->tvout = tvout; encoder 772 drivers/gpu/drm/sti/sti_tvout.c drm_encoder = &encoder->encoder; encoder 1045 drivers/gpu/drm/stm/ltdc.c struct drm_encoder *encoder; encoder 1048 drivers/gpu/drm/stm/ltdc.c encoder = devm_kzalloc(ddev->dev, sizeof(*encoder), GFP_KERNEL); encoder 1049 drivers/gpu/drm/stm/ltdc.c if (!encoder) encoder 1052 drivers/gpu/drm/stm/ltdc.c encoder->possible_crtcs = CRTC_MASK; encoder 1053 drivers/gpu/drm/stm/ltdc.c encoder->possible_clones = 0; /* No cloning support */ encoder 1055 drivers/gpu/drm/stm/ltdc.c drm_encoder_init(ddev, encoder, <dc_encoder_funcs, encoder 1058 drivers/gpu/drm/stm/ltdc.c ret = drm_bridge_attach(encoder, bridge, NULL); encoder 1060 drivers/gpu/drm/stm/ltdc.c drm_encoder_cleanup(encoder); encoder 1064 drivers/gpu/drm/stm/ltdc.c DRM_DEBUG_DRIVER("Bridge encoder:%d created\n", encoder->base.id); encoder 38 drivers/gpu/drm/sun4i/sun4i_crtc.c struct drm_encoder *encoder; encoder 40 drivers/gpu/drm/sun4i/sun4i_crtc.c drm_for_each_encoder(encoder, crtc->dev) encoder 41 drivers/gpu/drm/sun4i/sun4i_crtc.c if (encoder->crtc == crtc) encoder 42 drivers/gpu/drm/sun4i/sun4i_crtc.c return encoder; encoder 106 drivers/gpu/drm/sun4i/sun4i_crtc.c struct drm_encoder *encoder = sun4i_crtc_get_encoder(crtc); encoder 113 drivers/gpu/drm/sun4i/sun4i_crtc.c sun4i_tcon_set_status(scrtc->tcon, encoder, false); encoder 127 drivers/gpu/drm/sun4i/sun4i_crtc.c struct drm_encoder *encoder = sun4i_crtc_get_encoder(crtc); encoder 132 drivers/gpu/drm/sun4i/sun4i_crtc.c sun4i_tcon_set_status(scrtc->tcon, encoder, true); encoder 140 drivers/gpu/drm/sun4i/sun4i_crtc.c struct drm_encoder *encoder = sun4i_crtc_get_encoder(crtc); encoder 143 drivers/gpu/drm/sun4i/sun4i_crtc.c sun4i_tcon_mode_set(scrtc->tcon, encoder, mode); encoder 247 drivers/gpu/drm/sun4i/sun4i_hdmi.h struct drm_encoder encoder; encoder 32 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c drm_encoder_to_sun4i_hdmi(struct drm_encoder *encoder) encoder 34 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c return container_of(encoder, struct sun4i_hdmi, encoder 35 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c encoder); encoder 71 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c static int sun4i_hdmi_atomic_check(struct drm_encoder *encoder, encoder 83 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c static void sun4i_hdmi_disable(struct drm_encoder *encoder) encoder 85 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); encoder 97 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c static void sun4i_hdmi_enable(struct drm_encoder *encoder) encoder 99 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 100 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); encoder 119 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c static void sun4i_hdmi_mode_set(struct drm_encoder *encoder, encoder 123 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); encoder 180 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c static enum drm_mode_status sun4i_hdmi_mode_valid(struct drm_encoder *encoder, encoder 183 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); encoder 611 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c drm_encoder_helper_add(&hdmi->encoder, encoder 614 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c &hdmi->encoder, encoder 623 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c hdmi->encoder.possible_crtcs = drm_of_find_possible_crtcs(drm, encoder 625 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c if (!hdmi->encoder.possible_crtcs) { encoder 660 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c drm_connector_attach_encoder(&hdmi->connector, &hdmi->encoder); encoder 666 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c drm_encoder_cleanup(&hdmi->encoder); encoder 21 drivers/gpu/drm/sun4i/sun4i_lvds.c struct drm_encoder encoder; encoder 34 drivers/gpu/drm/sun4i/sun4i_lvds.c drm_encoder_to_sun4i_lvds(struct drm_encoder *encoder) encoder 36 drivers/gpu/drm/sun4i/sun4i_lvds.c return container_of(encoder, struct sun4i_lvds, encoder 37 drivers/gpu/drm/sun4i/sun4i_lvds.c encoder); encoder 69 drivers/gpu/drm/sun4i/sun4i_lvds.c static void sun4i_lvds_encoder_enable(struct drm_encoder *encoder) encoder 71 drivers/gpu/drm/sun4i/sun4i_lvds.c struct sun4i_lvds *lvds = drm_encoder_to_sun4i_lvds(encoder); encoder 81 drivers/gpu/drm/sun4i/sun4i_lvds.c static void sun4i_lvds_encoder_disable(struct drm_encoder *encoder) encoder 83 drivers/gpu/drm/sun4i/sun4i_lvds.c struct sun4i_lvds *lvds = drm_encoder_to_sun4i_lvds(encoder); encoder 104 drivers/gpu/drm/sun4i/sun4i_lvds.c struct drm_encoder *encoder; encoder 112 drivers/gpu/drm/sun4i/sun4i_lvds.c encoder = &lvds->encoder; encoder 121 drivers/gpu/drm/sun4i/sun4i_lvds.c drm_encoder_helper_add(&lvds->encoder, encoder 124 drivers/gpu/drm/sun4i/sun4i_lvds.c &lvds->encoder, encoder 134 drivers/gpu/drm/sun4i/sun4i_lvds.c lvds->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc); encoder 148 drivers/gpu/drm/sun4i/sun4i_lvds.c &lvds->encoder); encoder 158 drivers/gpu/drm/sun4i/sun4i_lvds.c ret = drm_bridge_attach(encoder, bridge, NULL); encoder 168 drivers/gpu/drm/sun4i/sun4i_lvds.c drm_encoder_cleanup(&lvds->encoder); encoder 23 drivers/gpu/drm/sun4i/sun4i_rgb.c struct drm_encoder encoder; encoder 38 drivers/gpu/drm/sun4i/sun4i_rgb.c drm_encoder_to_sun4i_rgb(struct drm_encoder *encoder) encoder 40 drivers/gpu/drm/sun4i/sun4i_rgb.c return container_of(encoder, struct sun4i_rgb, encoder 41 drivers/gpu/drm/sun4i/sun4i_rgb.c encoder); encoder 160 drivers/gpu/drm/sun4i/sun4i_rgb.c static void sun4i_rgb_encoder_enable(struct drm_encoder *encoder) encoder 162 drivers/gpu/drm/sun4i/sun4i_rgb.c struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); encoder 172 drivers/gpu/drm/sun4i/sun4i_rgb.c static void sun4i_rgb_encoder_disable(struct drm_encoder *encoder) encoder 174 drivers/gpu/drm/sun4i/sun4i_rgb.c struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); encoder 190 drivers/gpu/drm/sun4i/sun4i_rgb.c static void sun4i_rgb_enc_destroy(struct drm_encoder *encoder) encoder 192 drivers/gpu/drm/sun4i/sun4i_rgb.c drm_encoder_cleanup(encoder); encoder 201 drivers/gpu/drm/sun4i/sun4i_rgb.c struct drm_encoder *encoder; encoder 209 drivers/gpu/drm/sun4i/sun4i_rgb.c encoder = &rgb->encoder; encoder 218 drivers/gpu/drm/sun4i/sun4i_rgb.c drm_encoder_helper_add(&rgb->encoder, encoder 221 drivers/gpu/drm/sun4i/sun4i_rgb.c &rgb->encoder, encoder 231 drivers/gpu/drm/sun4i/sun4i_rgb.c rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc); encoder 245 drivers/gpu/drm/sun4i/sun4i_rgb.c &rgb->encoder); encoder 255 drivers/gpu/drm/sun4i/sun4i_rgb.c ret = drm_bridge_attach(encoder, rgb->bridge, NULL); encoder 265 drivers/gpu/drm/sun4i/sun4i_rgb.c drm_encoder_cleanup(&rgb->encoder); encoder 41 drivers/gpu/drm/sun4i/sun4i_tcon.c static struct drm_connector *sun4i_tcon_get_connector(const struct drm_encoder *encoder) encoder 46 drivers/gpu/drm/sun4i/sun4i_tcon.c drm_connector_list_iter_begin(encoder->dev, &iter); encoder 48 drivers/gpu/drm/sun4i/sun4i_tcon.c if (connector->encoder == encoder) { encoder 57 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun4i_tcon_get_pixel_depth(const struct drm_encoder *encoder) encoder 62 drivers/gpu/drm/sun4i/sun4i_tcon.c connector = sun4i_tcon_get_connector(encoder); encoder 117 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder, encoder 148 drivers/gpu/drm/sun4i/sun4i_tcon.c if (sun4i_tcon_get_pixel_depth(encoder) == 18) encoder 163 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder, encoder 169 drivers/gpu/drm/sun4i/sun4i_tcon.c switch (encoder->encoder_type) { encoder 187 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon_lvds_set_status(tcon, encoder, false); encoder 194 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon_lvds_set_status(tcon, encoder, true); encoder 238 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder) encoder 243 drivers/gpu/drm/sun4i/sun4i_tcon.c ret = tcon->quirks->set_mux(tcon, encoder); encoder 246 drivers/gpu/drm/sun4i/sun4i_tcon.c encoder->name, encoder->crtc->name, ret); encoder 332 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder, encoder 336 drivers/gpu/drm/sun4i/sun4i_tcon.c struct sun6i_dsi *dsi = encoder_to_sun6i_dsi(encoder); encoder 349 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_dithering(tcon, sun4i_tcon_get_connector(encoder)); encoder 403 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder, encoder 417 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_dithering(tcon, sun4i_tcon_get_connector(encoder)); encoder 454 drivers/gpu/drm/sun4i/sun4i_tcon.c if (sun4i_tcon_get_pixel_depth(encoder) == 24) encoder 480 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder, encoder 483 drivers/gpu/drm/sun4i/sun4i_tcon.c struct drm_connector *connector = sun4i_tcon_get_connector(encoder); encoder 675 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder, encoder 678 drivers/gpu/drm/sun4i/sun4i_tcon.c switch (encoder->encoder_type) { encoder 681 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_cpu(tcon, encoder, mode); encoder 684 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_lvds(tcon, encoder, mode); encoder 687 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_rgb(tcon, encoder, mode); encoder 688 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon_set_mux(tcon, 0, encoder); encoder 693 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon_set_mux(tcon, 1, encoder); encoder 1320 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder) encoder 1322 drivers/gpu/drm/sun4i/sun4i_tcon.c struct sun4i_tcon *tcon0 = sun4i_get_tcon0(encoder->dev); encoder 1328 drivers/gpu/drm/sun4i/sun4i_tcon.c switch (encoder->encoder_type) { encoder 1344 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder) encoder 1348 drivers/gpu/drm/sun4i/sun4i_tcon.c if (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC) encoder 1360 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder) encoder 1362 drivers/gpu/drm/sun4i/sun4i_tcon.c struct sun4i_tcon *tcon0 = sun4i_get_tcon0(encoder->dev); encoder 1368 drivers/gpu/drm/sun4i/sun4i_tcon.c switch (encoder->encoder_type) { encoder 1385 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_encoder *encoder) encoder 1410 drivers/gpu/drm/sun4i/sun4i_tcon.c encoder->encoder_type == DRM_MODE_ENCODER_TMDS) { encoder 274 drivers/gpu/drm/sun4i/sun4i_tcon.h const struct drm_encoder *encoder, encoder 277 drivers/gpu/drm/sun4i/sun4i_tcon.h const struct drm_encoder *encoder, bool enable); encoder 171 drivers/gpu/drm/sun4i/sun4i_tv.c struct drm_encoder encoder; encoder 271 drivers/gpu/drm/sun4i/sun4i_tv.c drm_encoder_to_sun4i_tv(struct drm_encoder *encoder) encoder 273 drivers/gpu/drm/sun4i/sun4i_tv.c return container_of(encoder, struct sun4i_tv, encoder 274 drivers/gpu/drm/sun4i/sun4i_tv.c encoder); encoder 341 drivers/gpu/drm/sun4i/sun4i_tv.c static void sun4i_tv_disable(struct drm_encoder *encoder) encoder 343 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); encoder 344 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc); encoder 355 drivers/gpu/drm/sun4i/sun4i_tv.c static void sun4i_tv_enable(struct drm_encoder *encoder) encoder 357 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); encoder 358 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc); encoder 369 drivers/gpu/drm/sun4i/sun4i_tv.c static void sun4i_tv_mode_set(struct drm_encoder *encoder, encoder 373 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); encoder 476 drivers/gpu/drm/sun4i/sun4i_tv.c static void sun4i_tv_destroy(struct drm_encoder *encoder) encoder 478 drivers/gpu/drm/sun4i/sun4i_tv.c drm_encoder_cleanup(encoder); encoder 593 drivers/gpu/drm/sun4i/sun4i_tv.c drm_encoder_helper_add(&tv->encoder, encoder 596 drivers/gpu/drm/sun4i/sun4i_tv.c &tv->encoder, encoder 605 drivers/gpu/drm/sun4i/sun4i_tv.c tv->encoder.possible_crtcs = drm_of_find_possible_crtcs(drm, encoder 607 drivers/gpu/drm/sun4i/sun4i_tv.c if (!tv->encoder.possible_crtcs) { encoder 624 drivers/gpu/drm/sun4i/sun4i_tv.c drm_connector_attach_encoder(&tv->connector, &tv->encoder); encoder 629 drivers/gpu/drm/sun4i/sun4i_tv.c drm_encoder_cleanup(&tv->encoder); encoder 643 drivers/gpu/drm/sun4i/sun4i_tv.c drm_encoder_cleanup(&tv->encoder); encoder 716 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c static void sun6i_dsi_encoder_enable(struct drm_encoder *encoder) encoder 718 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 719 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct sun6i_dsi *dsi = encoder_to_sun6i_dsi(encoder); encoder 776 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c static void sun6i_dsi_encoder_disable(struct drm_encoder *encoder) encoder 778 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct sun6i_dsi *dsi = encoder_to_sun6i_dsi(encoder); encoder 1033 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c drm_encoder_helper_add(&dsi->encoder, encoder 1036 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c &dsi->encoder, encoder 1044 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c dsi->encoder.possible_crtcs = BIT(0); encoder 1057 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c drm_connector_attach_encoder(&dsi->connector, &dsi->encoder); encoder 1063 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c drm_encoder_cleanup(&dsi->encoder); encoder 20 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h struct drm_encoder encoder; encoder 45 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h static inline struct sun6i_dsi *encoder_to_sun6i_dsi(const struct drm_encoder *encoder) encoder 47 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h return container_of(encoder, struct sun6i_dsi, encoder); encoder 17 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c static void sun8i_dw_hdmi_encoder_mode_set(struct drm_encoder *encoder, encoder 21 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c struct sun8i_dw_hdmi *hdmi = encoder_to_sun8i_dw_hdmi(encoder); encoder 131 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c struct drm_encoder *encoder; encoder 144 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c encoder = &hdmi->encoder; encoder 148 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c encoder->possible_crtcs = encoder 156 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c if (encoder->possible_crtcs == 0) encoder 222 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c drm_encoder_helper_add(encoder, &sun8i_dw_hdmi_encoder_helper_funcs); encoder 223 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c drm_encoder_init(drm, encoder, &sun8i_dw_hdmi_encoder_funcs, encoder 233 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c hdmi->hdmi = dw_hdmi_bind(pdev, encoder, plat_data); encoder 247 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c drm_encoder_cleanup(encoder); encoder 188 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h struct drm_encoder encoder; encoder 198 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h encoder_to_sun8i_dw_hdmi(struct drm_encoder *encoder) encoder 200 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h return container_of(encoder, struct sun8i_dw_hdmi, encoder); encoder 128 drivers/gpu/drm/tegra/drm.h struct drm_encoder encoder; encoder 134 drivers/gpu/drm/tegra/drm.h return container_of(e, struct tegra_output, encoder); encoder 155 drivers/gpu/drm/tegra/drm.h void tegra_output_encoder_destroy(struct drm_encoder *encoder); encoder 202 drivers/gpu/drm/tegra/dsi.c struct drm_crtc *crtc = dsi->output.encoder.crtc; encoder 846 drivers/gpu/drm/tegra/dsi.c static void tegra_dsi_encoder_disable(struct drm_encoder *encoder) encoder 848 drivers/gpu/drm/tegra/dsi.c struct tegra_output *output = encoder_to_output(encoder); encoder 849 drivers/gpu/drm/tegra/dsi.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 904 drivers/gpu/drm/tegra/dsi.c static void tegra_dsi_encoder_enable(struct drm_encoder *encoder) encoder 906 drivers/gpu/drm/tegra/dsi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 907 drivers/gpu/drm/tegra/dsi.c struct tegra_output *output = encoder_to_output(encoder); encoder 908 drivers/gpu/drm/tegra/dsi.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 945 drivers/gpu/drm/tegra/dsi.c tegra_dsi_encoder_atomic_check(struct drm_encoder *encoder, encoder 949 drivers/gpu/drm/tegra/dsi.c struct tegra_output *output = encoder_to_output(encoder); encoder 1048 drivers/gpu/drm/tegra/dsi.c drm_encoder_init(drm, &dsi->output.encoder, encoder 1051 drivers/gpu/drm/tegra/dsi.c drm_encoder_helper_add(&dsi->output.encoder, encoder 1055 drivers/gpu/drm/tegra/dsi.c &dsi->output.encoder); encoder 1063 drivers/gpu/drm/tegra/dsi.c dsi->output.encoder.possible_crtcs = 0x3; encoder 1032 drivers/gpu/drm/tegra/hdmi.c struct drm_crtc *crtc = hdmi->output.encoder.crtc; encoder 1143 drivers/gpu/drm/tegra/hdmi.c static void tegra_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 1145 drivers/gpu/drm/tegra/hdmi.c struct tegra_output *output = encoder_to_output(encoder); encoder 1146 drivers/gpu/drm/tegra/hdmi.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 1177 drivers/gpu/drm/tegra/hdmi.c static void tegra_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 1179 drivers/gpu/drm/tegra/hdmi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 1181 drivers/gpu/drm/tegra/hdmi.c struct tegra_output *output = encoder_to_output(encoder); encoder 1182 drivers/gpu/drm/tegra/hdmi.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 1399 drivers/gpu/drm/tegra/hdmi.c tegra_hdmi_encoder_atomic_check(struct drm_encoder *encoder, encoder 1403 drivers/gpu/drm/tegra/hdmi.c struct tegra_output *output = encoder_to_output(encoder); encoder 1440 drivers/gpu/drm/tegra/hdmi.c drm_encoder_init(drm, &hdmi->output.encoder, &tegra_hdmi_encoder_funcs, encoder 1442 drivers/gpu/drm/tegra/hdmi.c drm_encoder_helper_add(&hdmi->output.encoder, encoder 1446 drivers/gpu/drm/tegra/hdmi.c &hdmi->output.encoder); encoder 1455 drivers/gpu/drm/tegra/hdmi.c hdmi->output.encoder.possible_crtcs = 0x3; encoder 77 drivers/gpu/drm/tegra/output.c void tegra_output_encoder_destroy(struct drm_encoder *encoder) encoder 79 drivers/gpu/drm/tegra/output.c drm_encoder_cleanup(encoder); encoder 237 drivers/gpu/drm/tegra/output.c output->encoder.possible_crtcs = mask; encoder 117 drivers/gpu/drm/tegra/rgb.c static void tegra_rgb_encoder_disable(struct drm_encoder *encoder) encoder 119 drivers/gpu/drm/tegra/rgb.c struct tegra_output *output = encoder_to_output(encoder); encoder 132 drivers/gpu/drm/tegra/rgb.c static void tegra_rgb_encoder_enable(struct drm_encoder *encoder) encoder 134 drivers/gpu/drm/tegra/rgb.c struct tegra_output *output = encoder_to_output(encoder); encoder 168 drivers/gpu/drm/tegra/rgb.c tegra_rgb_encoder_atomic_check(struct drm_encoder *encoder, encoder 172 drivers/gpu/drm/tegra/rgb.c struct tegra_output *output = encoder_to_output(encoder); encoder 284 drivers/gpu/drm/tegra/rgb.c drm_encoder_init(drm, &output->encoder, &tegra_rgb_encoder_funcs, encoder 286 drivers/gpu/drm/tegra/rgb.c drm_encoder_helper_add(&output->encoder, encoder 290 drivers/gpu/drm/tegra/rgb.c &output->encoder); encoder 304 drivers/gpu/drm/tegra/rgb.c output->encoder.possible_crtcs = drm_crtc_mask(&dc->base); encoder 1039 drivers/gpu/drm/tegra/sor.c struct tegra_dc *dc = to_tegra_dc(sor->output.encoder.crtc); encoder 1267 drivers/gpu/drm/tegra/sor.c struct drm_crtc *crtc = sor->output.encoder.crtc; encoder 1429 drivers/gpu/drm/tegra/sor.c struct drm_crtc *crtc = sor->output.encoder.crtc; encoder 1587 drivers/gpu/drm/tegra/sor.c static void tegra_sor_edp_disable(struct drm_encoder *encoder) encoder 1589 drivers/gpu/drm/tegra/sor.c struct tegra_output *output = encoder_to_output(encoder); encoder 1590 drivers/gpu/drm/tegra/sor.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 1679 drivers/gpu/drm/tegra/sor.c static void tegra_sor_edp_enable(struct drm_encoder *encoder) encoder 1681 drivers/gpu/drm/tegra/sor.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 1682 drivers/gpu/drm/tegra/sor.c struct tegra_output *output = encoder_to_output(encoder); encoder 1683 drivers/gpu/drm/tegra/sor.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 1985 drivers/gpu/drm/tegra/sor.c tegra_sor_encoder_atomic_check(struct drm_encoder *encoder, encoder 1989 drivers/gpu/drm/tegra/sor.c struct tegra_output *output = encoder_to_output(encoder); encoder 2371 drivers/gpu/drm/tegra/sor.c mode = &sor->output.encoder.crtc->state->adjusted_mode; encoder 2380 drivers/gpu/drm/tegra/sor.c static void tegra_sor_hdmi_disable(struct drm_encoder *encoder) encoder 2382 drivers/gpu/drm/tegra/sor.c struct tegra_output *output = encoder_to_output(encoder); encoder 2383 drivers/gpu/drm/tegra/sor.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 2421 drivers/gpu/drm/tegra/sor.c static void tegra_sor_hdmi_enable(struct drm_encoder *encoder) encoder 2423 drivers/gpu/drm/tegra/sor.c struct tegra_output *output = encoder_to_output(encoder); encoder 2425 drivers/gpu/drm/tegra/sor.c struct tegra_dc *dc = to_tegra_dc(encoder->crtc); encoder 2436 drivers/gpu/drm/tegra/sor.c mode = &encoder->crtc->state->adjusted_mode; encoder 2812 drivers/gpu/drm/tegra/sor.c int encoder = DRM_MODE_ENCODER_NONE; encoder 2819 drivers/gpu/drm/tegra/sor.c encoder = DRM_MODE_ENCODER_TMDS; encoder 2823 drivers/gpu/drm/tegra/sor.c encoder = DRM_MODE_ENCODER_LVDS; encoder 2828 drivers/gpu/drm/tegra/sor.c encoder = DRM_MODE_ENCODER_TMDS; encoder 2832 drivers/gpu/drm/tegra/sor.c encoder = DRM_MODE_ENCODER_TMDS; encoder 2845 drivers/gpu/drm/tegra/sor.c drm_encoder_init(drm, &sor->output.encoder, &tegra_sor_encoder_funcs, encoder 2846 drivers/gpu/drm/tegra/sor.c encoder, NULL); encoder 2847 drivers/gpu/drm/tegra/sor.c drm_encoder_helper_add(&sor->output.encoder, helpers); encoder 2850 drivers/gpu/drm/tegra/sor.c &sor->output.encoder); encoder 43 drivers/gpu/drm/tilcdc/tilcdc_external.c struct drm_encoder *encoder) encoder 48 drivers/gpu/drm/tilcdc/tilcdc_external.c if (drm_connector_has_possible_encoder(connector, encoder)) encoder 53 drivers/gpu/drm/tilcdc/tilcdc_external.c encoder->name, encoder->base.id); encoder 61 drivers/gpu/drm/tilcdc/tilcdc_external.c struct drm_encoder *encoder; encoder 63 drivers/gpu/drm/tilcdc/tilcdc_external.c list_for_each_entry(encoder, &ddev->mode_config.encoder_list, head) encoder 64 drivers/gpu/drm/tilcdc/tilcdc_external.c if (encoder->possible_crtcs & (1 << priv->crtc->index)) encoder 67 drivers/gpu/drm/tilcdc/tilcdc_external.c if (!encoder) { encoder 73 drivers/gpu/drm/tilcdc/tilcdc_external.c tilcdc_encoder_find_connector(ddev, encoder); encoder 43 drivers/gpu/drm/tilcdc/tilcdc_panel.c static void panel_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 45 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct panel_encoder *panel_encoder = to_panel_encoder(encoder); encoder 60 drivers/gpu/drm/tilcdc/tilcdc_panel.c static void panel_encoder_prepare(struct drm_encoder *encoder) encoder 62 drivers/gpu/drm/tilcdc/tilcdc_panel.c panel_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 65 drivers/gpu/drm/tilcdc/tilcdc_panel.c static void panel_encoder_commit(struct drm_encoder *encoder) encoder 67 drivers/gpu/drm/tilcdc/tilcdc_panel.c panel_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 70 drivers/gpu/drm/tilcdc/tilcdc_panel.c static void panel_encoder_mode_set(struct drm_encoder *encoder, encoder 92 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct drm_encoder *encoder; encoder 102 drivers/gpu/drm/tilcdc/tilcdc_panel.c encoder = &panel_encoder->base; encoder 103 drivers/gpu/drm/tilcdc/tilcdc_panel.c encoder->possible_crtcs = 1; encoder 105 drivers/gpu/drm/tilcdc/tilcdc_panel.c ret = drm_encoder_init(dev, encoder, &panel_encoder_funcs, encoder 110 drivers/gpu/drm/tilcdc/tilcdc_panel.c drm_encoder_helper_add(encoder, &panel_encoder_helper_funcs); encoder 112 drivers/gpu/drm/tilcdc/tilcdc_panel.c return encoder; encoder 115 drivers/gpu/drm/tilcdc/tilcdc_panel.c drm_encoder_cleanup(encoder); encoder 126 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct drm_encoder *encoder; /* our connected encoder */ encoder 170 drivers/gpu/drm/tilcdc/tilcdc_panel.c return panel_connector->encoder; encoder 187 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct panel_module *mod, struct drm_encoder *encoder) encoder 198 drivers/gpu/drm/tilcdc/tilcdc_panel.c panel_connector->encoder = encoder; encoder 210 drivers/gpu/drm/tilcdc/tilcdc_panel.c ret = drm_connector_attach_encoder(connector, encoder); encoder 229 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct drm_encoder *encoder; encoder 232 drivers/gpu/drm/tilcdc/tilcdc_panel.c encoder = panel_encoder_create(dev, panel_mod); encoder 233 drivers/gpu/drm/tilcdc/tilcdc_panel.c if (!encoder) encoder 236 drivers/gpu/drm/tilcdc/tilcdc_panel.c connector = panel_connector_create(dev, panel_mod, encoder); encoder 240 drivers/gpu/drm/tilcdc/tilcdc_panel.c priv->encoders[priv->num_encoders++] = encoder; encoder 244 drivers/gpu/drm/tilcdc/tilcdc_panel.c to_panel_encoder(encoder)->mod->info); encoder 52 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c static void tfp410_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 54 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c struct tfp410_encoder *tfp410_encoder = to_tfp410_encoder(encoder); encoder 70 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c static void tfp410_encoder_prepare(struct drm_encoder *encoder) encoder 72 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c tfp410_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); encoder 75 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c static void tfp410_encoder_commit(struct drm_encoder *encoder) encoder 77 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c tfp410_encoder_dpms(encoder, DRM_MODE_DPMS_ON); encoder 80 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c static void tfp410_encoder_mode_set(struct drm_encoder *encoder, encoder 102 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c struct drm_encoder *encoder; encoder 113 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c encoder = &tfp410_encoder->base; encoder 114 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c encoder->possible_crtcs = 1; encoder 116 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c ret = drm_encoder_init(dev, encoder, &tfp410_encoder_funcs, encoder 121 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c drm_encoder_helper_add(encoder, &tfp410_encoder_helper_funcs); encoder 123 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c return encoder; encoder 126 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c drm_encoder_cleanup(encoder); encoder 137 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c struct drm_encoder *encoder; /* our connected encoder */ encoder 183 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c return tfp410_connector->encoder; encoder 201 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c struct tfp410_module *mod, struct drm_encoder *encoder) encoder 212 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c tfp410_connector->encoder = encoder; encoder 227 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c ret = drm_connector_attach_encoder(connector, encoder); encoder 246 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c struct drm_encoder *encoder; encoder 249 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c encoder = tfp410_encoder_create(dev, tfp410_mod); encoder 250 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c if (!encoder) encoder 253 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c connector = tfp410_connector_create(dev, tfp410_mod, encoder); encoder 257 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c priv->encoders[priv->num_encoders++] = encoder; encoder 134 drivers/gpu/drm/udl/udl_connector.c int udl_connector_init(struct drm_device *dev, struct drm_encoder *encoder) encoder 149 drivers/gpu/drm/udl/udl_connector.c drm_connector_attach_encoder(connector, encoder); encoder 101 drivers/gpu/drm/udl/udl_drv.h int udl_connector_init(struct drm_device *dev, struct drm_encoder *encoder); encoder 16 drivers/gpu/drm/udl/udl_encoder.c static void udl_enc_destroy(struct drm_encoder *encoder) encoder 18 drivers/gpu/drm/udl/udl_encoder.c drm_encoder_cleanup(encoder); encoder 19 drivers/gpu/drm/udl/udl_encoder.c kfree(encoder); encoder 22 drivers/gpu/drm/udl/udl_encoder.c static void udl_encoder_disable(struct drm_encoder *encoder) encoder 26 drivers/gpu/drm/udl/udl_encoder.c static void udl_encoder_prepare(struct drm_encoder *encoder) encoder 30 drivers/gpu/drm/udl/udl_encoder.c static void udl_encoder_commit(struct drm_encoder *encoder) encoder 34 drivers/gpu/drm/udl/udl_encoder.c static void udl_encoder_mode_set(struct drm_encoder *encoder, encoder 41 drivers/gpu/drm/udl/udl_encoder.c udl_encoder_dpms(struct drm_encoder *encoder, int mode) encoder 59 drivers/gpu/drm/udl/udl_encoder.c struct drm_encoder *encoder; encoder 61 drivers/gpu/drm/udl/udl_encoder.c encoder = kzalloc(sizeof(struct drm_encoder), GFP_KERNEL); encoder 62 drivers/gpu/drm/udl/udl_encoder.c if (!encoder) encoder 65 drivers/gpu/drm/udl/udl_encoder.c drm_encoder_init(dev, encoder, &udl_enc_funcs, DRM_MODE_ENCODER_TMDS, encoder 67 drivers/gpu/drm/udl/udl_encoder.c drm_encoder_helper_add(encoder, &udl_helper_funcs); encoder 68 drivers/gpu/drm/udl/udl_encoder.c encoder->possible_crtcs = 1; encoder 69 drivers/gpu/drm/udl/udl_encoder.c return encoder; encoder 430 drivers/gpu/drm/udl/udl_modeset.c struct drm_encoder *encoder; encoder 446 drivers/gpu/drm/udl/udl_modeset.c encoder = udl_encoder_init(dev); encoder 448 drivers/gpu/drm/udl/udl_modeset.c udl_connector_init(dev, encoder); encoder 633 drivers/gpu/drm/vboxvideo/vbox_mode.c static void vbox_encoder_destroy(struct drm_encoder *encoder) encoder 635 drivers/gpu/drm/vboxvideo/vbox_mode.c drm_encoder_cleanup(encoder); encoder 636 drivers/gpu/drm/vboxvideo/vbox_mode.c kfree(encoder); encoder 829 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_encoder *encoder) encoder 854 drivers/gpu/drm/vboxvideo/vbox_mode.c drm_connector_attach_encoder(connector, encoder); encoder 900 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_encoder *encoder; encoder 920 drivers/gpu/drm/vboxvideo/vbox_mode.c encoder = vbox_encoder_init(dev, i); encoder 921 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!encoder) { encoder 925 drivers/gpu/drm/vboxvideo/vbox_mode.c ret = vbox_connector_init(dev, vbox_crtc, encoder); encoder 285 drivers/gpu/drm/vc4/vc4_crtc.c return connector->encoder; encoder 295 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_encoder *encoder = vc4_get_crtc_encoder(crtc); encoder 296 drivers/gpu/drm/vc4/vc4_crtc.c struct vc4_encoder *vc4_encoder = to_vc4_encoder(encoder); encoder 1084 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_encoder *encoder; encoder 1086 drivers/gpu/drm/vc4/vc4_crtc.c drm_for_each_encoder(encoder, drm) { encoder 1092 drivers/gpu/drm/vc4/vc4_crtc.c encoder->encoder_type == DRM_MODE_ENCODER_VIRTUAL) { encoder 1093 drivers/gpu/drm/vc4/vc4_crtc.c encoder->possible_crtcs |= drm_crtc_mask(crtc); encoder 1097 drivers/gpu/drm/vc4/vc4_crtc.c vc4_encoder = to_vc4_encoder(encoder); encoder 1101 drivers/gpu/drm/vc4/vc4_crtc.c encoder->possible_crtcs |= drm_crtc_mask(crtc); encoder 87 drivers/gpu/drm/vc4/vc4_dpi.c struct drm_encoder *encoder; encoder 107 drivers/gpu/drm/vc4/vc4_dpi.c to_vc4_dpi_encoder(struct drm_encoder *encoder) encoder 109 drivers/gpu/drm/vc4/vc4_dpi.c return container_of(encoder, struct vc4_dpi_encoder, base.base); encoder 121 drivers/gpu/drm/vc4/vc4_dpi.c static void vc4_dpi_encoder_disable(struct drm_encoder *encoder) encoder 123 drivers/gpu/drm/vc4/vc4_dpi.c struct vc4_dpi_encoder *vc4_encoder = to_vc4_dpi_encoder(encoder); encoder 129 drivers/gpu/drm/vc4/vc4_dpi.c static void vc4_dpi_encoder_enable(struct drm_encoder *encoder) encoder 131 drivers/gpu/drm/vc4/vc4_dpi.c struct drm_device *dev = encoder->dev; encoder 132 drivers/gpu/drm/vc4/vc4_dpi.c struct drm_display_mode *mode = &encoder->crtc->mode; encoder 133 drivers/gpu/drm/vc4/vc4_dpi.c struct vc4_dpi_encoder *vc4_encoder = to_vc4_dpi_encoder(encoder); encoder 147 drivers/gpu/drm/vc4/vc4_dpi.c if (connector_scan->encoder == encoder) { encoder 209 drivers/gpu/drm/vc4/vc4_dpi.c static enum drm_mode_status vc4_dpi_encoder_mode_valid(struct drm_encoder *encoder, encoder 254 drivers/gpu/drm/vc4/vc4_dpi.c return drm_bridge_attach(dpi->encoder, bridge, NULL); encoder 276 drivers/gpu/drm/vc4/vc4_dpi.c dpi->encoder = &vc4_dpi_encoder->base.base; encoder 311 drivers/gpu/drm/vc4/vc4_dpi.c drm_encoder_init(drm, dpi->encoder, &vc4_dpi_encoder_funcs, encoder 313 drivers/gpu/drm/vc4/vc4_dpi.c drm_encoder_helper_add(dpi->encoder, &vc4_dpi_encoder_helper_funcs); encoder 328 drivers/gpu/drm/vc4/vc4_dpi.c drm_encoder_cleanup(dpi->encoder); encoder 342 drivers/gpu/drm/vc4/vc4_dpi.c drm_encoder_cleanup(dpi->encoder); encoder 436 drivers/gpu/drm/vc4/vc4_drv.h to_vc4_encoder(struct drm_encoder *encoder) encoder 438 drivers/gpu/drm/vc4/vc4_drv.h return container_of(encoder, struct vc4_encoder, base); encoder 499 drivers/gpu/drm/vc4/vc4_dsi.c struct drm_encoder *encoder; encoder 598 drivers/gpu/drm/vc4/vc4_dsi.c to_vc4_dsi_encoder(struct drm_encoder *encoder) encoder 600 drivers/gpu/drm/vc4/vc4_dsi.c return container_of(encoder, struct vc4_dsi_encoder, base.base); encoder 653 drivers/gpu/drm/vc4/vc4_dsi.c static void vc4_dsi_encoder_destroy(struct drm_encoder *encoder) encoder 655 drivers/gpu/drm/vc4/vc4_dsi.c drm_encoder_cleanup(encoder); encoder 749 drivers/gpu/drm/vc4/vc4_dsi.c static void vc4_dsi_encoder_disable(struct drm_encoder *encoder) encoder 751 drivers/gpu/drm/vc4/vc4_dsi.c struct vc4_dsi_encoder *vc4_encoder = to_vc4_dsi_encoder(encoder); encoder 779 drivers/gpu/drm/vc4/vc4_dsi.c static bool vc4_dsi_encoder_mode_fixup(struct drm_encoder *encoder, encoder 783 drivers/gpu/drm/vc4/vc4_dsi.c struct vc4_dsi_encoder *vc4_encoder = to_vc4_dsi_encoder(encoder); encoder 818 drivers/gpu/drm/vc4/vc4_dsi.c static void vc4_dsi_encoder_enable(struct drm_encoder *encoder) encoder 820 drivers/gpu/drm/vc4/vc4_dsi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 821 drivers/gpu/drm/vc4/vc4_dsi.c struct vc4_dsi_encoder *vc4_encoder = to_vc4_dsi_encoder(encoder); encoder 1464 drivers/gpu/drm/vc4/vc4_dsi.c dsi->encoder = &vc4_dsi_encoder->base.base; encoder 1598 drivers/gpu/drm/vc4/vc4_dsi.c drm_encoder_init(drm, dsi->encoder, &vc4_dsi_encoder_funcs, encoder 1600 drivers/gpu/drm/vc4/vc4_dsi.c drm_encoder_helper_add(dsi->encoder, &vc4_dsi_encoder_helper_funcs); encoder 1602 drivers/gpu/drm/vc4/vc4_dsi.c ret = drm_bridge_attach(dsi->encoder, dsi->bridge, NULL); encoder 1612 drivers/gpu/drm/vc4/vc4_dsi.c dsi->encoder->bridge = NULL; encoder 1634 drivers/gpu/drm/vc4/vc4_dsi.c vc4_dsi_encoder_destroy(dsi->encoder); encoder 74 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder; encoder 110 drivers/gpu/drm/vc4/vc4_hdmi.c to_vc4_hdmi_encoder(struct drm_encoder *encoder) encoder 112 drivers/gpu/drm/vc4/vc4_hdmi.c return container_of(encoder, struct vc4_hdmi_encoder, base.base); encoder 123 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder; encoder 229 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder = vc4_connector->encoder; encoder 230 drivers/gpu/drm/vc4/vc4_hdmi.c struct vc4_hdmi_encoder *vc4_encoder = to_vc4_hdmi_encoder(encoder); encoder 270 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder) encoder 282 drivers/gpu/drm/vc4/vc4_hdmi.c hdmi_connector->encoder = encoder; encoder 301 drivers/gpu/drm/vc4/vc4_hdmi.c drm_connector_attach_encoder(connector, encoder); encoder 306 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_encoder_destroy(struct drm_encoder *encoder) encoder 308 drivers/gpu/drm/vc4/vc4_hdmi.c drm_encoder_cleanup(encoder); encoder 315 drivers/gpu/drm/vc4/vc4_hdmi.c static int vc4_hdmi_stop_packet(struct drm_encoder *encoder, encoder 318 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *dev = encoder->dev; encoder 329 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_write_infoframe(struct drm_encoder *encoder, encoder 332 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *dev = encoder->dev; encoder 348 drivers/gpu/drm/vc4/vc4_hdmi.c ret = vc4_hdmi_stop_packet(encoder, frame->any.type); encoder 377 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_set_avi_infoframe(struct drm_encoder *encoder) encoder 379 drivers/gpu/drm/vc4/vc4_hdmi.c struct vc4_hdmi_encoder *vc4_encoder = to_vc4_hdmi_encoder(encoder); encoder 380 drivers/gpu/drm/vc4/vc4_hdmi.c struct vc4_dev *vc4 = encoder->dev->dev_private; encoder 383 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_crtc *crtc = encoder->crtc; encoder 406 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_write_infoframe(encoder, &frame); encoder 409 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_set_spd_infoframe(struct drm_encoder *encoder) encoder 422 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_write_infoframe(encoder, &frame); encoder 425 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_set_audio_infoframe(struct drm_encoder *encoder) encoder 427 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *drm = encoder->dev; encoder 440 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_write_infoframe(encoder, &frame); encoder 443 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_set_infoframes(struct drm_encoder *encoder) encoder 445 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_set_avi_infoframe(encoder); encoder 446 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_set_spd_infoframe(encoder); encoder 449 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 451 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *dev = encoder->dev; encoder 469 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 471 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; encoder 472 drivers/gpu/drm/vc4/vc4_hdmi.c struct vc4_hdmi_encoder *vc4_encoder = to_vc4_hdmi_encoder(encoder); encoder 473 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *dev = encoder->dev; encoder 658 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_set_infoframes(encoder); encoder 715 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *drm = hdmi->encoder->dev; encoder 734 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder = hdmi->encoder; encoder 735 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_crtc *crtc = encoder->crtc; encoder 736 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *drm = encoder->dev; encoder 772 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder = hdmi->encoder; encoder 773 drivers/gpu/drm/vc4/vc4_hdmi.c struct vc4_dev *vc4 = to_vc4_dev(encoder->dev); encoder 785 drivers/gpu/drm/vc4/vc4_hdmi.c if (!encoder->crtc || !(HDMI_READ(VC4_HDMI_RAM_PACKET_CONFIG) & encoder 804 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder = hdmi->encoder; encoder 805 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *drm = encoder->dev; encoder 810 drivers/gpu/drm/vc4/vc4_hdmi.c ret = vc4_hdmi_stop_packet(encoder, HDMI_INFOFRAME_TYPE_AUDIO); encoder 838 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder = hdmi->encoder; encoder 839 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *drm = encoder->dev; encoder 911 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_encoder *encoder = hdmi->encoder; encoder 912 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_device *drm = encoder->dev; encoder 917 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_set_audio_infoframe(encoder); encoder 1321 drivers/gpu/drm/vc4/vc4_hdmi.c hdmi->encoder = &vc4_hdmi_encoder->base.base; encoder 1409 drivers/gpu/drm/vc4/vc4_hdmi.c drm_encoder_init(drm, hdmi->encoder, &vc4_hdmi_encoder_funcs, encoder 1411 drivers/gpu/drm/vc4/vc4_hdmi.c drm_encoder_helper_add(hdmi->encoder, &vc4_hdmi_encoder_helper_funcs); encoder 1413 drivers/gpu/drm/vc4/vc4_hdmi.c hdmi->connector = vc4_hdmi_connector_init(drm, hdmi->encoder); encoder 1467 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_encoder_destroy(hdmi->encoder); encoder 1486 drivers/gpu/drm/vc4/vc4_hdmi.c vc4_hdmi_encoder_destroy(hdmi->encoder); encoder 156 drivers/gpu/drm/vc4/vc4_txp.c static inline struct vc4_txp *encoder_to_vc4_txp(struct drm_encoder *encoder) encoder 158 drivers/gpu/drm/vc4/vc4_txp.c return container_of(encoder, struct vc4_txp, connector.encoder); encoder 335 drivers/gpu/drm/vc4/vc4_txp.c static void vc4_txp_encoder_disable(struct drm_encoder *encoder) encoder 337 drivers/gpu/drm/vc4/vc4_txp.c struct vc4_txp *txp = encoder_to_vc4_txp(encoder); encoder 160 drivers/gpu/drm/vc4/vc4_vec.c struct drm_encoder *encoder; encoder 182 drivers/gpu/drm/vc4/vc4_vec.c to_vc4_vec_encoder(struct drm_encoder *encoder) encoder 184 drivers/gpu/drm/vc4/vc4_vec.c return container_of(encoder, struct vc4_vec_encoder, base.base); encoder 196 drivers/gpu/drm/vc4/vc4_vec.c struct drm_encoder *encoder; encoder 360 drivers/gpu/drm/vc4/vc4_vec.c vec_connector->encoder = vec->encoder; encoder 372 drivers/gpu/drm/vc4/vc4_vec.c drm_connector_attach_encoder(connector, vec->encoder); encoder 381 drivers/gpu/drm/vc4/vc4_vec.c static void vc4_vec_encoder_disable(struct drm_encoder *encoder) encoder 383 drivers/gpu/drm/vc4/vc4_vec.c struct vc4_vec_encoder *vc4_vec_encoder = to_vc4_vec_encoder(encoder); encoder 403 drivers/gpu/drm/vc4/vc4_vec.c static void vc4_vec_encoder_enable(struct drm_encoder *encoder) encoder 405 drivers/gpu/drm/vc4/vc4_vec.c struct vc4_vec_encoder *vc4_vec_encoder = to_vc4_vec_encoder(encoder); encoder 473 drivers/gpu/drm/vc4/vc4_vec.c static bool vc4_vec_encoder_mode_fixup(struct drm_encoder *encoder, encoder 480 drivers/gpu/drm/vc4/vc4_vec.c static void vc4_vec_encoder_atomic_mode_set(struct drm_encoder *encoder, encoder 484 drivers/gpu/drm/vc4/vc4_vec.c struct vc4_vec_encoder *vc4_vec_encoder = to_vc4_vec_encoder(encoder); encoder 490 drivers/gpu/drm/vc4/vc4_vec.c static int vc4_vec_encoder_atomic_check(struct drm_encoder *encoder, encoder 549 drivers/gpu/drm/vc4/vc4_vec.c vec->encoder = &vc4_vec_encoder->base.base; encoder 569 drivers/gpu/drm/vc4/vc4_vec.c drm_encoder_init(drm, vec->encoder, &vc4_vec_encoder_funcs, encoder 571 drivers/gpu/drm/vc4/vc4_vec.c drm_encoder_helper_add(vec->encoder, &vc4_vec_encoder_helper_funcs); encoder 588 drivers/gpu/drm/vc4/vc4_vec.c drm_encoder_cleanup(vec->encoder); encoder 602 drivers/gpu/drm/vc4/vc4_vec.c drm_encoder_cleanup(vec->encoder); encoder 138 drivers/gpu/drm/virtio/virtgpu_display.c static void virtio_gpu_enc_mode_set(struct drm_encoder *encoder, encoder 144 drivers/gpu/drm/virtio/virtgpu_display.c static void virtio_gpu_enc_enable(struct drm_encoder *encoder) encoder 148 drivers/gpu/drm/virtio/virtgpu_display.c static void virtio_gpu_enc_disable(struct drm_encoder *encoder) encoder 255 drivers/gpu/drm/virtio/virtgpu_display.c struct drm_encoder *encoder = &output->enc; encoder 282 drivers/gpu/drm/virtio/virtgpu_display.c drm_encoder_init(dev, encoder, &virtio_gpu_enc_funcs, encoder 284 drivers/gpu/drm/virtio/virtgpu_display.c drm_encoder_helper_add(encoder, &virtio_gpu_enc_helper_funcs); encoder 285 drivers/gpu/drm/virtio/virtgpu_display.c encoder->possible_crtcs = 1 << index; encoder 287 drivers/gpu/drm/virtio/virtgpu_display.c drm_connector_attach_encoder(connector, encoder); encoder 64 drivers/gpu/drm/vkms/vkms_drv.h struct drm_encoder encoder; encoder 43 drivers/gpu/drm/vkms/vkms_output.c struct drm_encoder *encoder = &output->encoder; encoder 73 drivers/gpu/drm/vkms/vkms_output.c ret = drm_encoder_init(dev, encoder, &vkms_encoder_funcs, encoder 79 drivers/gpu/drm/vkms/vkms_output.c encoder->possible_crtcs = 1; encoder 81 drivers/gpu/drm/vkms/vkms_output.c ret = drm_connector_attach_encoder(connector, encoder); encoder 92 drivers/gpu/drm/vkms/vkms_output.c drm_encoder_cleanup(encoder); encoder 49 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c drm_encoder_cleanup(&du->encoder); encoder 338 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h struct drm_encoder encoder; encoder 39 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c container_of(x, struct vmw_legacy_display_unit, base.encoder) encoder 246 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c static void vmw_ldu_encoder_destroy(struct drm_encoder *encoder) encoder 248 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c vmw_ldu_destroy(vmw_encoder_to_ldu(encoder)); encoder 358 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c struct drm_encoder *encoder; encoder 369 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c encoder = &ldu->base.encoder; encoder 429 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ret = drm_encoder_init(dev, encoder, &vmw_legacy_encoder_funcs, encoder 436 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c (void) drm_connector_attach_encoder(connector, encoder); encoder 437 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c encoder->possible_crtcs = (1 << unit); encoder 438 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c encoder->possible_clones = 0; encoder 476 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c drm_encoder_cleanup(encoder); encoder 40 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c container_of(x, struct vmw_screen_object_unit, base.encoder) encoder 328 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c static void vmw_sou_encoder_destroy(struct drm_encoder *encoder) encoder 330 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c vmw_sou_destroy(vmw_encoder_to_sou(encoder)); encoder 831 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c struct drm_encoder *encoder; encoder 842 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c encoder = &sou->base.encoder; encoder 901 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c ret = drm_encoder_init(dev, encoder, &vmw_screen_object_encoder_funcs, encoder 908 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c (void) drm_connector_attach_encoder(connector, encoder); encoder 909 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c encoder->possible_crtcs = (1 << unit); encoder 910 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c encoder->possible_clones = 0; encoder 943 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c drm_encoder_cleanup(encoder); encoder 41 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c container_of(x, struct vmw_screen_target_display_unit, base.encoder) encoder 937 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c static void vmw_stdu_encoder_destroy(struct drm_encoder *encoder) encoder 939 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_stdu_destroy(vmw_encoder_to_stdu(encoder)); encoder 1730 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c struct drm_encoder *encoder; encoder 1742 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c encoder = &stdu->base.encoder; encoder 1796 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ret = drm_encoder_init(dev, encoder, &vmw_stdu_encoder_funcs, encoder 1803 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c (void) drm_connector_attach_encoder(connector, encoder); encoder 1804 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c encoder->possible_crtcs = (1 << unit); encoder 1805 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c encoder->possible_clones = 0; encoder 1837 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c drm_encoder_cleanup(encoder); encoder 39 drivers/gpu/drm/zte/zx_hdmi.c struct drm_encoder encoder; encoder 139 drivers/gpu/drm/zte/zx_hdmi.c static void zx_hdmi_encoder_mode_set(struct drm_encoder *encoder, encoder 143 drivers/gpu/drm/zte/zx_hdmi.c struct zx_hdmi *hdmi = to_zx_hdmi(encoder); encoder 225 drivers/gpu/drm/zte/zx_hdmi.c static void zx_hdmi_encoder_enable(struct drm_encoder *encoder) encoder 227 drivers/gpu/drm/zte/zx_hdmi.c struct zx_hdmi *hdmi = to_zx_hdmi(encoder); encoder 235 drivers/gpu/drm/zte/zx_hdmi.c vou_inf_enable(VOU_HDMI, encoder->crtc); encoder 238 drivers/gpu/drm/zte/zx_hdmi.c static void zx_hdmi_encoder_disable(struct drm_encoder *encoder) encoder 240 drivers/gpu/drm/zte/zx_hdmi.c struct zx_hdmi *hdmi = to_zx_hdmi(encoder); encoder 242 drivers/gpu/drm/zte/zx_hdmi.c vou_inf_disable(VOU_HDMI, encoder->crtc); encoder 312 drivers/gpu/drm/zte/zx_hdmi.c struct drm_encoder *encoder = &hdmi->encoder; encoder 314 drivers/gpu/drm/zte/zx_hdmi.c encoder->possible_crtcs = VOU_CRTC_MASK; encoder 316 drivers/gpu/drm/zte/zx_hdmi.c drm_encoder_init(drm, encoder, &zx_hdmi_encoder_funcs, encoder 318 drivers/gpu/drm/zte/zx_hdmi.c drm_encoder_helper_add(encoder, &zx_hdmi_encoder_helper_funcs); encoder 327 drivers/gpu/drm/zte/zx_hdmi.c drm_connector_attach_encoder(&hdmi->connector, encoder); encoder 365 drivers/gpu/drm/zte/zx_hdmi.c struct drm_encoder *encoder = &hdmi->encoder; encoder 367 drivers/gpu/drm/zte/zx_hdmi.c vou_inf_hdmi_audio_sel(encoder->crtc, VOU_HDMI_AUD_SPDIF); encoder 726 drivers/gpu/drm/zte/zx_hdmi.c hdmi->encoder.funcs->destroy(&hdmi->encoder); encoder 30 drivers/gpu/drm/zte/zx_tvenc.c struct drm_encoder encoder; encoder 147 drivers/gpu/drm/zte/zx_tvenc.c static void zx_tvenc_encoder_mode_set(struct drm_encoder *encoder, encoder 151 drivers/gpu/drm/zte/zx_tvenc.c struct zx_tvenc *tvenc = to_zx_tvenc(encoder); encoder 159 drivers/gpu/drm/zte/zx_tvenc.c zx_vou_config_dividers(encoder->crtc, configs, ARRAY_SIZE(configs)); encoder 188 drivers/gpu/drm/zte/zx_tvenc.c static void zx_tvenc_encoder_enable(struct drm_encoder *encoder) encoder 190 drivers/gpu/drm/zte/zx_tvenc.c struct zx_tvenc *tvenc = to_zx_tvenc(encoder); encoder 197 drivers/gpu/drm/zte/zx_tvenc.c vou_inf_enable(VOU_TV_ENC, encoder->crtc); encoder 202 drivers/gpu/drm/zte/zx_tvenc.c static void zx_tvenc_encoder_disable(struct drm_encoder *encoder) encoder 204 drivers/gpu/drm/zte/zx_tvenc.c struct zx_tvenc *tvenc = to_zx_tvenc(encoder); encoder 209 drivers/gpu/drm/zte/zx_tvenc.c vou_inf_disable(VOU_TV_ENC, encoder->crtc); encoder 279 drivers/gpu/drm/zte/zx_tvenc.c struct drm_encoder *encoder = &tvenc->encoder; encoder 286 drivers/gpu/drm/zte/zx_tvenc.c encoder->possible_crtcs = BIT(1); encoder 288 drivers/gpu/drm/zte/zx_tvenc.c drm_encoder_init(drm, encoder, &zx_tvenc_encoder_funcs, encoder 290 drivers/gpu/drm/zte/zx_tvenc.c drm_encoder_helper_add(encoder, &zx_tvenc_encoder_helper_funcs); encoder 298 drivers/gpu/drm/zte/zx_tvenc.c drm_connector_attach_encoder(connector, encoder); encoder 35 drivers/gpu/drm/zte/zx_vga.c struct drm_encoder encoder; encoder 47 drivers/gpu/drm/zte/zx_vga.c static void zx_vga_encoder_enable(struct drm_encoder *encoder) encoder 49 drivers/gpu/drm/zte/zx_vga.c struct zx_vga *vga = to_zx_vga(encoder); encoder 56 drivers/gpu/drm/zte/zx_vga.c vou_inf_enable(VOU_VGA, encoder->crtc); encoder 59 drivers/gpu/drm/zte/zx_vga.c static void zx_vga_encoder_disable(struct drm_encoder *encoder) encoder 61 drivers/gpu/drm/zte/zx_vga.c struct zx_vga *vga = to_zx_vga(encoder); encoder 64 drivers/gpu/drm/zte/zx_vga.c vou_inf_disable(VOU_VGA, encoder->crtc); encoder 150 drivers/gpu/drm/zte/zx_vga.c struct drm_encoder *encoder = &vga->encoder; encoder 155 drivers/gpu/drm/zte/zx_vga.c encoder->possible_crtcs = VOU_CRTC_MASK; encoder 157 drivers/gpu/drm/zte/zx_vga.c ret = drm_encoder_init(drm, encoder, &zx_vga_encoder_funcs, encoder 164 drivers/gpu/drm/zte/zx_vga.c drm_encoder_helper_add(encoder, &zx_vga_encoder_helper_funcs); encoder 177 drivers/gpu/drm/zte/zx_vga.c ret = drm_connector_attach_encoder(connector, encoder); encoder 188 drivers/gpu/drm/zte/zx_vga.c drm_encoder_cleanup(encoder); encoder 56 drivers/input/misc/rotary_encoder.c static unsigned int rotary_encoder_get_state(struct rotary_encoder *encoder) encoder 61 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) { encoder 62 drivers/input/misc/rotary_encoder.c int val = gpiod_get_value_cansleep(encoder->gpios->desc[i]); encoder 65 drivers/input/misc/rotary_encoder.c if (encoder->encoding == ROTENC_GRAY && ret & 1) encoder 74 drivers/input/misc/rotary_encoder.c static void rotary_encoder_report_event(struct rotary_encoder *encoder) encoder 76 drivers/input/misc/rotary_encoder.c if (encoder->relative_axis) { encoder 77 drivers/input/misc/rotary_encoder.c input_report_rel(encoder->input, encoder 78 drivers/input/misc/rotary_encoder.c encoder->axis, encoder->dir); encoder 80 drivers/input/misc/rotary_encoder.c unsigned int pos = encoder->pos; encoder 82 drivers/input/misc/rotary_encoder.c if (encoder->dir < 0) { encoder 84 drivers/input/misc/rotary_encoder.c if (encoder->rollover) encoder 85 drivers/input/misc/rotary_encoder.c pos += encoder->steps; encoder 90 drivers/input/misc/rotary_encoder.c if (encoder->rollover || pos < encoder->steps) encoder 94 drivers/input/misc/rotary_encoder.c if (encoder->rollover) encoder 95 drivers/input/misc/rotary_encoder.c pos %= encoder->steps; encoder 97 drivers/input/misc/rotary_encoder.c encoder->pos = pos; encoder 98 drivers/input/misc/rotary_encoder.c input_report_abs(encoder->input, encoder->axis, encoder->pos); encoder 101 drivers/input/misc/rotary_encoder.c input_sync(encoder->input); encoder 106 drivers/input/misc/rotary_encoder.c struct rotary_encoder *encoder = dev_id; encoder 109 drivers/input/misc/rotary_encoder.c mutex_lock(&encoder->access_mutex); encoder 111 drivers/input/misc/rotary_encoder.c state = rotary_encoder_get_state(encoder); encoder 115 drivers/input/misc/rotary_encoder.c if (encoder->armed) { encoder 116 drivers/input/misc/rotary_encoder.c rotary_encoder_report_event(encoder); encoder 117 drivers/input/misc/rotary_encoder.c encoder->armed = false; encoder 123 drivers/input/misc/rotary_encoder.c if (encoder->armed) encoder 124 drivers/input/misc/rotary_encoder.c encoder->dir = 2 - state; encoder 128 drivers/input/misc/rotary_encoder.c encoder->armed = true; encoder 132 drivers/input/misc/rotary_encoder.c mutex_unlock(&encoder->access_mutex); encoder 139 drivers/input/misc/rotary_encoder.c struct rotary_encoder *encoder = dev_id; encoder 142 drivers/input/misc/rotary_encoder.c mutex_lock(&encoder->access_mutex); encoder 144 drivers/input/misc/rotary_encoder.c state = rotary_encoder_get_state(encoder); encoder 147 drivers/input/misc/rotary_encoder.c encoder->dir = ((encoder->last_stable - state + 1) % 4) - 1; encoder 149 drivers/input/misc/rotary_encoder.c if (state != encoder->last_stable) { encoder 150 drivers/input/misc/rotary_encoder.c rotary_encoder_report_event(encoder); encoder 151 drivers/input/misc/rotary_encoder.c encoder->last_stable = state; encoder 155 drivers/input/misc/rotary_encoder.c mutex_unlock(&encoder->access_mutex); encoder 162 drivers/input/misc/rotary_encoder.c struct rotary_encoder *encoder = dev_id; encoder 165 drivers/input/misc/rotary_encoder.c mutex_lock(&encoder->access_mutex); encoder 167 drivers/input/misc/rotary_encoder.c state = rotary_encoder_get_state(encoder); encoder 169 drivers/input/misc/rotary_encoder.c if ((encoder->last_stable + 1) % 4 == state) encoder 170 drivers/input/misc/rotary_encoder.c encoder->dir = 1; encoder 171 drivers/input/misc/rotary_encoder.c else if (encoder->last_stable == (state + 1) % 4) encoder 172 drivers/input/misc/rotary_encoder.c encoder->dir = -1; encoder 176 drivers/input/misc/rotary_encoder.c rotary_encoder_report_event(encoder); encoder 179 drivers/input/misc/rotary_encoder.c encoder->last_stable = state; encoder 180 drivers/input/misc/rotary_encoder.c mutex_unlock(&encoder->access_mutex); encoder 188 drivers/input/misc/rotary_encoder.c struct rotary_encoder *encoder; encoder 195 drivers/input/misc/rotary_encoder.c encoder = devm_kzalloc(dev, sizeof(struct rotary_encoder), GFP_KERNEL); encoder 196 drivers/input/misc/rotary_encoder.c if (!encoder) encoder 199 drivers/input/misc/rotary_encoder.c mutex_init(&encoder->access_mutex); encoder 201 drivers/input/misc/rotary_encoder.c device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps); encoder 217 drivers/input/misc/rotary_encoder.c encoder->rollover = encoder 224 drivers/input/misc/rotary_encoder.c encoder->encoding = ROTENC_GRAY; encoder 228 drivers/input/misc/rotary_encoder.c encoder->encoding = ROTENC_BINARY; encoder 234 drivers/input/misc/rotary_encoder.c device_property_read_u32(dev, "linux,axis", &encoder->axis); encoder 235 drivers/input/misc/rotary_encoder.c encoder->relative_axis = encoder 238 drivers/input/misc/rotary_encoder.c encoder->gpios = devm_gpiod_get_array(dev, NULL, GPIOD_IN); encoder 239 drivers/input/misc/rotary_encoder.c if (IS_ERR(encoder->gpios)) { encoder 240 drivers/input/misc/rotary_encoder.c err = PTR_ERR(encoder->gpios); encoder 245 drivers/input/misc/rotary_encoder.c if (encoder->gpios->ndescs < 2) { encoder 254 drivers/input/misc/rotary_encoder.c encoder->input = input; encoder 260 drivers/input/misc/rotary_encoder.c if (encoder->relative_axis) encoder 261 drivers/input/misc/rotary_encoder.c input_set_capability(input, EV_REL, encoder->axis); encoder 264 drivers/input/misc/rotary_encoder.c encoder->axis, 0, encoder->steps, 0, 1); encoder 266 drivers/input/misc/rotary_encoder.c switch (steps_per_period >> (encoder->gpios->ndescs - 2)) { encoder 269 drivers/input/misc/rotary_encoder.c encoder->last_stable = rotary_encoder_get_state(encoder); encoder 273 drivers/input/misc/rotary_encoder.c encoder->last_stable = rotary_encoder_get_state(encoder); encoder 284 drivers/input/misc/rotary_encoder.c encoder->irq = encoder 286 drivers/input/misc/rotary_encoder.c encoder->gpios->ndescs, sizeof(*encoder->irq), encoder 288 drivers/input/misc/rotary_encoder.c if (!encoder->irq) encoder 291 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) { encoder 292 drivers/input/misc/rotary_encoder.c encoder->irq[i] = gpiod_to_irq(encoder->gpios->desc[i]); encoder 294 drivers/input/misc/rotary_encoder.c err = devm_request_threaded_irq(dev, encoder->irq[i], encoder 298 drivers/input/misc/rotary_encoder.c DRV_NAME, encoder); encoder 301 drivers/input/misc/rotary_encoder.c encoder->irq[i], i); encoder 315 drivers/input/misc/rotary_encoder.c platform_set_drvdata(pdev, encoder); encoder 322 drivers/input/misc/rotary_encoder.c struct rotary_encoder *encoder = dev_get_drvdata(dev); encoder 326 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) encoder 327 drivers/input/misc/rotary_encoder.c enable_irq_wake(encoder->irq[i]); encoder 335 drivers/input/misc/rotary_encoder.c struct rotary_encoder *encoder = dev_get_drvdata(dev); encoder 339 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) encoder 340 drivers/input/misc/rotary_encoder.c disable_irq_wake(encoder->irq[i]); encoder 63 drivers/media/i2c/adv7170.c struct adv7170 *encoder = to_adv7170(sd); encoder 65 drivers/media/i2c/adv7170.c encoder->reg[reg] = value; encoder 80 drivers/media/i2c/adv7170.c struct adv7170 *encoder = to_adv7170(sd); encoder 96 drivers/media/i2c/adv7170.c encoder->reg[reg++] = data[1]; encoder 186 drivers/media/i2c/adv7170.c struct adv7170 *encoder = to_adv7170(sd); encoder 192 drivers/media/i2c/adv7170.c if (encoder->input == 0) encoder 198 drivers/media/i2c/adv7170.c if (encoder->input == 0) encoder 208 drivers/media/i2c/adv7170.c encoder->norm = std; encoder 215 drivers/media/i2c/adv7170.c struct adv7170 *encoder = to_adv7170(sd); encoder 248 drivers/media/i2c/adv7170.c encoder->input = input; encoder 340 drivers/media/i2c/adv7170.c struct adv7170 *encoder; encoder 351 drivers/media/i2c/adv7170.c encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); encoder 352 drivers/media/i2c/adv7170.c if (encoder == NULL) encoder 354 drivers/media/i2c/adv7170.c sd = &encoder->sd; encoder 356 drivers/media/i2c/adv7170.c encoder->norm = V4L2_STD_NTSC; encoder 357 drivers/media/i2c/adv7170.c encoder->input = 0; encoder 194 drivers/media/i2c/adv7175.c struct adv7175 *encoder = to_adv7175(sd); encoder 198 drivers/media/i2c/adv7175.c if (encoder->input == 0) encoder 204 drivers/media/i2c/adv7175.c if (encoder->input == 0) encoder 216 drivers/media/i2c/adv7175.c if (encoder->input == 0) encoder 226 drivers/media/i2c/adv7175.c encoder->norm = std; encoder 233 drivers/media/i2c/adv7175.c struct adv7175 *encoder = to_adv7175(sd); encoder 243 drivers/media/i2c/adv7175.c if (encoder->norm & V4L2_STD_NTSC) encoder 247 drivers/media/i2c/adv7175.c if (encoder->norm & V4L2_STD_SECAM) encoder 259 drivers/media/i2c/adv7175.c if (encoder->norm & V4L2_STD_NTSC) encoder 272 drivers/media/i2c/adv7175.c if (encoder->norm & V4L2_STD_NTSC) encoder 286 drivers/media/i2c/adv7175.c encoder->input = input; encoder 396 drivers/media/i2c/adv7175.c struct adv7175 *encoder; encoder 406 drivers/media/i2c/adv7175.c encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); encoder 407 drivers/media/i2c/adv7175.c if (encoder == NULL) encoder 409 drivers/media/i2c/adv7175.c sd = &encoder->sd; encoder 411 drivers/media/i2c/adv7175.c encoder->norm = V4L2_STD_NTSC; encoder 412 drivers/media/i2c/adv7175.c encoder->input = 0; encoder 55 drivers/media/i2c/bt856.c static inline int bt856_write(struct bt856 *encoder, u8 reg, u8 value) encoder 57 drivers/media/i2c/bt856.c struct i2c_client *client = v4l2_get_subdevdata(&encoder->sd); encoder 59 drivers/media/i2c/bt856.c encoder->reg[reg - BT856_REG_OFFSET] = value; encoder 63 drivers/media/i2c/bt856.c static inline int bt856_setbit(struct bt856 *encoder, u8 reg, u8 bit, u8 value) encoder 65 drivers/media/i2c/bt856.c return bt856_write(encoder, reg, encoder 66 drivers/media/i2c/bt856.c (encoder->reg[reg - BT856_REG_OFFSET] & ~(1 << bit)) | encoder 70 drivers/media/i2c/bt856.c static void bt856_dump(struct bt856 *encoder) encoder 74 drivers/media/i2c/bt856.c v4l2_info(&encoder->sd, "register dump:\n"); encoder 76 drivers/media/i2c/bt856.c printk(KERN_CONT " %02x", encoder->reg[i]); encoder 84 drivers/media/i2c/bt856.c struct bt856 *encoder = to_bt856(sd); encoder 88 drivers/media/i2c/bt856.c bt856_write(encoder, 0xdc, 0x18); encoder 89 drivers/media/i2c/bt856.c bt856_write(encoder, 0xda, 0); encoder 90 drivers/media/i2c/bt856.c bt856_write(encoder, 0xde, 0); encoder 92 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 3, 1); encoder 94 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 4, 1); encoder 96 drivers/media/i2c/bt856.c if (encoder->norm & V4L2_STD_NTSC) encoder 97 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 2, 0); encoder 99 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 2, 1); encoder 101 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 1, 1); encoder 102 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 4, 0); encoder 103 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 3, 1); encoder 105 drivers/media/i2c/bt856.c bt856_dump(encoder); encoder 111 drivers/media/i2c/bt856.c struct bt856 *encoder = to_bt856(sd); encoder 116 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 2, 0); encoder 118 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 2, 1); encoder 119 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xda, 0, 0); encoder 124 drivers/media/i2c/bt856.c encoder->norm = std; encoder 126 drivers/media/i2c/bt856.c bt856_dump(encoder); encoder 133 drivers/media/i2c/bt856.c struct bt856 *encoder = to_bt856(sd); encoder 142 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 4, 0); encoder 143 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 3, 1); encoder 144 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 3, 1); encoder 145 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 6, 0); encoder 148 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 4, 0); encoder 149 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 3, 1); encoder 150 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 3, 1); encoder 151 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 6, 1); encoder 154 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 3, 0); encoder 155 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 4, 1); encoder 162 drivers/media/i2c/bt856.c bt856_dump(encoder); encoder 187 drivers/media/i2c/bt856.c struct bt856 *encoder; encoder 197 drivers/media/i2c/bt856.c encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); encoder 198 drivers/media/i2c/bt856.c if (encoder == NULL) encoder 200 drivers/media/i2c/bt856.c sd = &encoder->sd; encoder 202 drivers/media/i2c/bt856.c encoder->norm = V4L2_STD_NTSC; encoder 204 drivers/media/i2c/bt856.c bt856_write(encoder, 0xdc, 0x18); encoder 205 drivers/media/i2c/bt856.c bt856_write(encoder, 0xda, 0); encoder 206 drivers/media/i2c/bt856.c bt856_write(encoder, 0xde, 0); encoder 208 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 3, 1); encoder 210 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 4, 1); encoder 212 drivers/media/i2c/bt856.c if (encoder->norm & V4L2_STD_NTSC) encoder 213 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 2, 0); encoder 215 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 2, 1); encoder 217 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xdc, 1, 1); encoder 218 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 4, 0); encoder 219 drivers/media/i2c/bt856.c bt856_setbit(encoder, 0xde, 3, 1); encoder 222 drivers/media/i2c/bt856.c bt856_dump(encoder); encoder 49 drivers/media/i2c/bt866.c static int bt866_write(struct bt866 *encoder, u8 subaddr, u8 data) encoder 51 drivers/media/i2c/bt866.c struct i2c_client *client = v4l2_get_subdevdata(&encoder->sd); encoder 58 drivers/media/i2c/bt866.c encoder->reg[subaddr] = data; encoder 118 drivers/media/i2c/bt866.c struct bt866 *encoder = to_bt866(sd); encoder 123 drivers/media/i2c/bt866.c bt866_write(encoder, init[i], init[i+1]); encoder 125 drivers/media/i2c/bt866.c val = encoder->reg[0xdc]; encoder 132 drivers/media/i2c/bt866.c bt866_write(encoder, 0xdc, val); encoder 134 drivers/media/i2c/bt866.c val = encoder->reg[0xcc]; encoder 139 drivers/media/i2c/bt866.c bt866_write(encoder, 0xcc, val); encoder 157 drivers/media/i2c/bt866.c val = encoder->reg[0xdc]; encoder 179 drivers/media/i2c/bt866.c struct bt866 *encoder; encoder 185 drivers/media/i2c/bt866.c encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); encoder 186 drivers/media/i2c/bt866.c if (encoder == NULL) encoder 188 drivers/media/i2c/bt866.c sd = &encoder->sd; encoder 58 drivers/media/i2c/saa7185.c struct saa7185 *encoder = to_saa7185(sd); encoder 61 drivers/media/i2c/saa7185.c encoder->reg[reg] = value; encoder 69 drivers/media/i2c/saa7185.c struct saa7185 *encoder = to_saa7185(sd); encoder 85 drivers/media/i2c/saa7185.c encoder->reg[reg++] = data[1]; encoder 209 drivers/media/i2c/saa7185.c struct saa7185 *encoder = to_saa7185(sd); encoder 212 drivers/media/i2c/saa7185.c if (encoder->norm & V4L2_STD_NTSC) encoder 221 drivers/media/i2c/saa7185.c struct saa7185 *encoder = to_saa7185(sd); encoder 229 drivers/media/i2c/saa7185.c encoder->norm = std; encoder 236 drivers/media/i2c/saa7185.c struct saa7185 *encoder = to_saa7185(sd); encoder 246 drivers/media/i2c/saa7185.c saa7185_write(sd, 0x61, (encoder->reg[0x61] & 0xf7) | 0x08); encoder 254 drivers/media/i2c/saa7185.c saa7185_write(sd, 0x61, (encoder->reg[0x61] & 0xf7) | 0x00); encoder 263 drivers/media/i2c/saa7185.c saa7185_write(sd, 0x61, (encoder->reg[0x61] & 0xf7) | 0x08); encoder 297 drivers/media/i2c/saa7185.c struct saa7185 *encoder; encoder 307 drivers/media/i2c/saa7185.c encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); encoder 308 drivers/media/i2c/saa7185.c if (encoder == NULL) encoder 310 drivers/media/i2c/saa7185.c encoder->norm = V4L2_STD_NTSC; encoder 311 drivers/media/i2c/saa7185.c sd = &encoder->sd; encoder 328 drivers/media/i2c/saa7185.c struct saa7185 *encoder = to_saa7185(sd); encoder 332 drivers/media/i2c/saa7185.c saa7185_write(sd, 0x61, (encoder->reg[0x61]) | 0x40); encoder 278 drivers/media/platform/rcar_jpu.c bool encoder; encoder 666 drivers/media/platform/rcar_jpu.c if (ctx->encoder) encoder 679 drivers/media/platform/rcar_jpu.c static struct jpu_fmt *jpu_find_format(bool encoder, u32 pixelformat, encoder 684 drivers/media/platform/rcar_jpu.c if (encoder) encoder 726 drivers/media/platform/rcar_jpu.c return jpu_enum_fmt(f, ctx->encoder ? JPU_ENC_CAPTURE : encoder 735 drivers/media/platform/rcar_jpu.c return jpu_enum_fmt(f, ctx->encoder ? JPU_ENC_OUTPUT : JPU_DEC_OUTPUT); encoder 778 drivers/media/platform/rcar_jpu.c fmt = jpu_find_format(ctx->encoder, pix->pixelformat, f_type); encoder 783 drivers/media/platform/rcar_jpu.c if (ctx->encoder) encoder 789 drivers/media/platform/rcar_jpu.c fmt = jpu_find_format(ctx->encoder, pixelformat, f_type); encoder 807 drivers/media/platform/rcar_jpu.c if (pix->plane_fmt[0].sizeimage <= 0 || ctx->encoder) encoder 919 drivers/media/platform/rcar_jpu.c if (ctx->encoder) { encoder 988 drivers/media/platform/rcar_jpu.c if (!ctx->encoder) encoder 1069 drivers/media/platform/rcar_jpu.c if (!ctx->encoder && !V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) encoder 1081 drivers/media/platform/rcar_jpu.c if (!ctx->encoder && V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { encoder 1137 drivers/media/platform/rcar_jpu.c if (!ctx->encoder || vb->state != VB2_BUF_STATE_DONE || encoder 1247 drivers/media/platform/rcar_jpu.c ctx->encoder = vfd == &jpu->vfd_encoder; encoder 1375 drivers/media/platform/rcar_jpu.c if (ctx->encoder) { encoder 1389 drivers/media/platform/rcar_jpu.c if (ctx->encoder) { encoder 1535 drivers/media/platform/rcar_jpu.c if (curr_ctx->encoder) { encoder 247 drivers/mfd/timberdale.c .encoder = { encoder 191 drivers/staging/media/hantro/hantro.h struct hantro_func *encoder; encoder 656 drivers/staging/media/hantro/hantro_drv.c vpu->encoder = func; encoder 707 drivers/staging/media/hantro/hantro_drv.c func = vpu->encoder; encoder 4437 fs/nfsd/nfs4xdr.c nfsd4_enc encoder; encoder 4455 fs/nfsd/nfs4xdr.c encoder = nfsd4_enc_ops[op->opnum]; encoder 4456 fs/nfsd/nfs4xdr.c op->status = encoder(resp, op->status, &op->u); encoder 28 include/drm/bridge/analogix_dp.h struct drm_encoder *encoder; encoder 150 include/drm/bridge/dw_hdmi.h struct drm_encoder *encoder, encoder 56 include/drm/bridge/dw_mipi_dsi.h int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct drm_encoder *encoder); encoder 464 include/drm/drm_atomic.h struct drm_encoder *encoder); encoder 467 include/drm/drm_atomic.h struct drm_encoder *encoder); encoder 382 include/drm/drm_bridge.h struct drm_encoder *encoder; encoder 406 include/drm/drm_bridge.h int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge, encoder 1304 include/drm/drm_connector.h struct drm_encoder *encoder; encoder 1430 include/drm/drm_connector.h struct drm_encoder *encoder); encoder 1593 include/drm/drm_connector.h struct drm_encoder *encoder); encoder 1613 include/drm/drm_connector.h #define drm_connector_for_each_possible_encoder(connector, encoder, __i) \ encoder 1616 include/drm/drm_connector.h for_each_if((encoder) = \ encoder 54 include/drm/drm_crtc_helper.h bool drm_helper_encoder_in_use(struct drm_encoder *encoder); encoder 48 include/drm/drm_encoder.h void (*reset)(struct drm_encoder *encoder); encoder 57 include/drm/drm_encoder.h void (*destroy)(struct drm_encoder *encoder); encoder 72 include/drm/drm_encoder.h int (*late_register)(struct drm_encoder *encoder); encoder 83 include/drm/drm_encoder.h void (*early_unregister)(struct drm_encoder *encoder); encoder 184 include/drm/drm_encoder.h struct drm_encoder *encoder, encoder 195 include/drm/drm_encoder.h static inline unsigned int drm_encoder_index(const struct drm_encoder *encoder) encoder 197 include/drm/drm_encoder.h return encoder->index; encoder 207 include/drm/drm_encoder.h static inline u32 drm_encoder_mask(const struct drm_encoder *encoder) encoder 209 include/drm/drm_encoder.h return 1 << drm_encoder_index(encoder); encoder 219 include/drm/drm_encoder.h static inline bool drm_encoder_crtc_ok(struct drm_encoder *encoder, encoder 222 include/drm/drm_encoder.h return !!(encoder->possible_crtcs & drm_crtc_mask(crtc)); encoder 245 include/drm/drm_encoder.h void drm_encoder_cleanup(struct drm_encoder *encoder); encoder 255 include/drm/drm_encoder.h #define drm_for_each_encoder_mask(encoder, dev, encoder_mask) \ encoder 256 include/drm/drm_encoder.h list_for_each_entry((encoder), &(dev)->mode_config.encoder_list, head) \ encoder 257 include/drm/drm_encoder.h for_each_if ((encoder_mask) & drm_encoder_mask(encoder)) encoder 266 include/drm/drm_encoder.h #define drm_for_each_encoder(encoder, dev) \ encoder 267 include/drm/drm_encoder.h list_for_each_entry(encoder, &(dev)->mode_config.encoder_list, head) encoder 49 include/drm/drm_encoder_slave.h void (*set_config)(struct drm_encoder *encoder, encoder 52 include/drm/drm_encoder_slave.h void (*destroy)(struct drm_encoder *encoder); encoder 53 include/drm/drm_encoder_slave.h void (*dpms)(struct drm_encoder *encoder, int mode); encoder 54 include/drm/drm_encoder_slave.h void (*save)(struct drm_encoder *encoder); encoder 55 include/drm/drm_encoder_slave.h void (*restore)(struct drm_encoder *encoder); encoder 56 include/drm/drm_encoder_slave.h bool (*mode_fixup)(struct drm_encoder *encoder, encoder 59 include/drm/drm_encoder_slave.h int (*mode_valid)(struct drm_encoder *encoder, encoder 61 include/drm/drm_encoder_slave.h void (*mode_set)(struct drm_encoder *encoder, encoder 65 include/drm/drm_encoder_slave.h enum drm_connector_status (*detect)(struct drm_encoder *encoder, encoder 67 include/drm/drm_encoder_slave.h int (*get_modes)(struct drm_encoder *encoder, encoder 69 include/drm/drm_encoder_slave.h int (*create_resources)(struct drm_encoder *encoder, encoder 71 include/drm/drm_encoder_slave.h int (*set_property)(struct drm_encoder *encoder, encoder 105 include/drm/drm_encoder_slave.h struct drm_encoder_slave *encoder, encoder 125 include/drm/drm_encoder_slave.h struct drm_encoder_slave *encoder); encoder 135 include/drm/drm_encoder_slave.h static inline struct i2c_client *drm_i2c_encoder_get_client(struct drm_encoder *encoder) encoder 137 include/drm/drm_encoder_slave.h return (struct i2c_client *)to_encoder_slave(encoder)->bus_priv; encoder 160 include/drm/drm_encoder_slave.h void drm_i2c_encoder_destroy(struct drm_encoder *encoder); encoder 167 include/drm/drm_encoder_slave.h void drm_i2c_encoder_dpms(struct drm_encoder *encoder, int mode); encoder 168 include/drm/drm_encoder_slave.h bool drm_i2c_encoder_mode_fixup(struct drm_encoder *encoder, encoder 171 include/drm/drm_encoder_slave.h void drm_i2c_encoder_prepare(struct drm_encoder *encoder); encoder 172 include/drm/drm_encoder_slave.h void drm_i2c_encoder_commit(struct drm_encoder *encoder); encoder 173 include/drm/drm_encoder_slave.h void drm_i2c_encoder_mode_set(struct drm_encoder *encoder, encoder 176 include/drm/drm_encoder_slave.h enum drm_connector_status drm_i2c_encoder_detect(struct drm_encoder *encoder, encoder 178 include/drm/drm_encoder_slave.h void drm_i2c_encoder_save(struct drm_encoder *encoder); encoder 179 include/drm/drm_encoder_slave.h void drm_i2c_encoder_restore(struct drm_encoder *encoder); encoder 489 include/drm/drm_modeset_helper_vtables.h void (*dpms)(struct drm_encoder *encoder, int mode); encoder 565 include/drm/drm_modeset_helper_vtables.h bool (*mode_fixup)(struct drm_encoder *encoder, encoder 582 include/drm/drm_modeset_helper_vtables.h void (*prepare)(struct drm_encoder *encoder); encoder 597 include/drm/drm_modeset_helper_vtables.h void (*commit)(struct drm_encoder *encoder); encoder 621 include/drm/drm_modeset_helper_vtables.h void (*mode_set)(struct drm_encoder *encoder, encoder 644 include/drm/drm_modeset_helper_vtables.h void (*atomic_mode_set)(struct drm_encoder *encoder, encoder 662 include/drm/drm_modeset_helper_vtables.h struct drm_crtc *(*get_crtc)(struct drm_encoder *encoder); encoder 679 include/drm/drm_modeset_helper_vtables.h enum drm_connector_status (*detect)(struct drm_encoder *encoder, encoder 702 include/drm/drm_modeset_helper_vtables.h void (*atomic_disable)(struct drm_encoder *encoder, encoder 725 include/drm/drm_modeset_helper_vtables.h void (*atomic_enable)(struct drm_encoder *encoder, encoder 759 include/drm/drm_modeset_helper_vtables.h void (*disable)(struct drm_encoder *encoder); encoder 777 include/drm/drm_modeset_helper_vtables.h void (*enable)(struct drm_encoder *encoder); encoder 815 include/drm/drm_modeset_helper_vtables.h int (*atomic_check)(struct drm_encoder *encoder, encoder 825 include/drm/drm_modeset_helper_vtables.h static inline void drm_encoder_helper_add(struct drm_encoder *encoder, encoder 828 include/drm/drm_modeset_helper_vtables.h encoder->helper_private = funcs; encoder 32 include/drm/drm_of.h struct drm_encoder *encoder, encoder 68 include/drm/drm_of.h struct drm_encoder *encoder, encoder 111 include/drm/drm_of.h struct drm_encoder *encoder) encoder 114 include/drm/drm_of.h int ret = drm_of_encoder_active_endpoint(node, encoder, encoder 121 include/drm/drm_of.h struct drm_encoder *encoder) encoder 124 include/drm/drm_of.h int ret = drm_of_encoder_active_endpoint(node, encoder, encoder 165 include/drm/drm_simple_kms_helper.h struct drm_encoder encoder; encoder 28 include/drm/drm_writeback.h struct drm_encoder encoder; encoder 18 include/linux/platform_data/media/timb_video.h } encoder;