Lines Matching refs:amdgpu_encoder
139 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_get_monitor_bpc() local
140 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_connector_get_monitor_bpc()
377 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_get_native_mode() local
382 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_get_native_mode()
389 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_get_native_mode()
391 amdgpu_encoder->native_mode.clock = 0; in amdgpu_get_native_mode()
399 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_lcd_native_mode() local
401 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lcd_native_mode()
437 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_add_common_modes() local
439 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_add_common_modes()
465 if (amdgpu_encoder->devices & (ATOM_DEVICE_TV_SUPPORT)) { in amdgpu_connector_add_common_modes()
470 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in amdgpu_connector_add_common_modes()
492 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_connector_set_property() local
503 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_set_property()
505 if (!amdgpu_encoder->enc_priv) in amdgpu_connector_set_property()
508 dig = amdgpu_encoder->enc_priv; in amdgpu_connector_set_property()
512 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
523 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_set_property()
527 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
538 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_set_property()
542 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
552 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_set_property()
554 if (amdgpu_encoder->underscan_type != val) { in amdgpu_connector_set_property()
555 amdgpu_encoder->underscan_type = val; in amdgpu_connector_set_property()
556 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
566 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_set_property()
568 if (amdgpu_encoder->underscan_hborder != val) { in amdgpu_connector_set_property()
569 amdgpu_encoder->underscan_hborder = val; in amdgpu_connector_set_property()
570 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
580 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_set_property()
582 if (amdgpu_encoder->underscan_vborder != val) { in amdgpu_connector_set_property()
583 amdgpu_encoder->underscan_vborder = val; in amdgpu_connector_set_property()
584 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
602 amdgpu_encoder = to_amdgpu_encoder(connector->encoder); in amdgpu_connector_set_property()
605 amdgpu_encoder = to_amdgpu_encoder(connector_funcs->best_encoder(connector)); in amdgpu_connector_set_property()
615 if (amdgpu_encoder->rmx_type == rmx_type) in amdgpu_connector_set_property()
619 (amdgpu_encoder->native_mode.clock == 0)) in amdgpu_connector_set_property()
622 amdgpu_encoder->rmx_type = rmx_type; in amdgpu_connector_set_property()
624 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_property()
634 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_fixup_lcd_native_mode() local
635 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_fixup_lcd_native_mode()
662 amdgpu_encoder->rmx_type = RMX_OFF; in amdgpu_connector_fixup_lcd_native_mode()
712 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_lvds_mode_valid() local
713 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lvds_mode_valid()
723 if (amdgpu_encoder->rmx_type == RMX_OFF) { in amdgpu_connector_lvds_mode_valid()
750 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_lvds_detect() local
751 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lvds_detect()
793 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_connector_set_lcd_property() local
801 amdgpu_encoder = to_amdgpu_encoder(connector->encoder); in amdgpu_connector_set_lcd_property()
804 amdgpu_encoder = to_amdgpu_encoder(connector_funcs->best_encoder(connector)); in amdgpu_connector_set_lcd_property()
814 if (amdgpu_encoder->rmx_type == rmx_type) in amdgpu_connector_set_lcd_property()
817 amdgpu_encoder->rmx_type = rmx_type; in amdgpu_connector_set_lcd_property()
819 amdgpu_connector_property_change_mode(&amdgpu_encoder->base); in amdgpu_connector_set_lcd_property()
1301 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_connector_encoder_get_dp_bridge_encoder_id() local
1313 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_encoder_get_dp_bridge_encoder_id()
1315 switch (amdgpu_encoder->encoder_id) { in amdgpu_connector_encoder_get_dp_bridge_encoder_id()
1318 return amdgpu_encoder->encoder_id; in amdgpu_connector_encoder_get_dp_bridge_encoder_id()
1330 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_connector_encoder_is_hbr2() local
1342 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_encoder_is_hbr2()
1343 if (amdgpu_encoder->caps & ATOM_ENCODER_CAP_RECORD_HBR2) in amdgpu_connector_encoder_is_hbr2()
1392 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_dp_detect() local
1393 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_dp_detect()
1472 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_dp_mode_valid() local
1473 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_dp_mode_valid()
1483 if (amdgpu_encoder->rmx_type == RMX_OFF) { in amdgpu_connector_dp_mode_valid()
1548 struct amdgpu_encoder *amdgpu_encoder; in amdgpu_connector_add() local
1579 amdgpu_encoder = to_amdgpu_encoder(encoder); in amdgpu_connector_add()
1580 if (amdgpu_encoder->devices & supported_device) { in amdgpu_connector_add()
1581 switch (amdgpu_encoder->encoder_id) { in amdgpu_connector_add()