Lines Matching refs:crtc
314 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, stdtable->crtc[i]); in ast_set_std_reg()
316 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, stdtable->crtc[i]); in ast_set_std_reg()
318 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, stdtable->crtc[i]); in ast_set_std_reg()
607 if (new_plane_state->crtc) in ast_primary_plane_helper_atomic_check()
608 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_plane_state->crtc); in ast_primary_plane_helper_atomic_check()
617 if (drm_WARN_ON(dev, new_plane_state->crtc)) /* cannot legally happen */ in ast_primary_plane_helper_atomic_check()
655 struct drm_crtc *crtc = plane_state->crtc; in ast_primary_plane_helper_atomic_update() local
656 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ast_primary_plane_helper_atomic_update()
863 if (new_plane_state->crtc) in ast_cursor_plane_helper_atomic_check()
864 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_plane_state->crtc); in ast_cursor_plane_helper_atomic_check()
1004 static void ast_crtc_dpms(struct drm_crtc *crtc, int mode) in ast_crtc_dpms() argument
1006 struct ast_device *ast = to_ast_device(crtc->dev); in ast_crtc_dpms()
1020 ast_set_dp501_video_output(crtc->dev, 1); in ast_crtc_dpms()
1023 ast_dp_power_on_off(crtc->dev, AST_DP_POWER_ON); in ast_crtc_dpms()
1025 ast_dp_set_on_off(crtc->dev, 1); in ast_crtc_dpms()
1028 ast_state = to_ast_crtc_state(crtc->state); in ast_crtc_dpms()
1036 if (crtc->state->gamma_lut) in ast_crtc_dpms()
1037 ast_crtc_set_gamma(ast, format, crtc->state->gamma_lut->data); in ast_crtc_dpms()
1047 ast_set_dp501_video_output(crtc->dev, 0); in ast_crtc_dpms()
1050 ast_dp_set_on_off(crtc->dev, 0); in ast_crtc_dpms()
1051 ast_dp_power_on_off(crtc->dev, AST_DP_POWER_OFF); in ast_crtc_dpms()
1061 ast_crtc_helper_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode) in ast_crtc_helper_mode_valid() argument
1063 struct ast_device *ast = to_ast_device(crtc->dev); in ast_crtc_helper_mode_valid()
1132 static int ast_crtc_helper_atomic_check(struct drm_crtc *crtc, in ast_crtc_helper_atomic_check() argument
1135 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ast_crtc_helper_atomic_check()
1136 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state, crtc); in ast_crtc_helper_atomic_check()
1138 struct drm_device *dev = crtc->dev; in ast_crtc_helper_atomic_check()
1183 ast_crtc_helper_atomic_flush(struct drm_crtc *crtc, in ast_crtc_helper_atomic_flush() argument
1187 crtc); in ast_crtc_helper_atomic_flush()
1188 struct drm_device *dev = crtc->dev; in ast_crtc_helper_atomic_flush()
1208 ast_dp_set_mode(crtc, vbios_mode_info); in ast_crtc_helper_atomic_flush()
1211 static void ast_crtc_helper_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *state) in ast_crtc_helper_atomic_enable() argument
1213 struct drm_device *dev = crtc->dev; in ast_crtc_helper_atomic_enable()
1215 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ast_crtc_helper_atomic_enable()
1229 ast_crtc_dpms(crtc, DRM_MODE_DPMS_ON); in ast_crtc_helper_atomic_enable()
1232 static void ast_crtc_helper_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *state) in ast_crtc_helper_atomic_disable() argument
1234 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state, crtc); in ast_crtc_helper_atomic_disable()
1235 struct drm_device *dev = crtc->dev; in ast_crtc_helper_atomic_disable()
1238 ast_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); in ast_crtc_helper_atomic_disable()
1267 static void ast_crtc_reset(struct drm_crtc *crtc) in ast_crtc_reset() argument
1272 if (crtc->state) in ast_crtc_reset()
1273 crtc->funcs->atomic_destroy_state(crtc, crtc->state); in ast_crtc_reset()
1276 __drm_atomic_helper_crtc_reset(crtc, &ast_state->base); in ast_crtc_reset()
1278 __drm_atomic_helper_crtc_reset(crtc, NULL); in ast_crtc_reset()
1282 ast_crtc_atomic_duplicate_state(struct drm_crtc *crtc) in ast_crtc_atomic_duplicate_state() argument
1285 struct drm_device *dev = crtc->dev; in ast_crtc_atomic_duplicate_state()
1287 if (drm_WARN_ON(dev, !crtc->state)) in ast_crtc_atomic_duplicate_state()
1293 __drm_atomic_helper_crtc_duplicate_state(crtc, &new_ast_state->base); in ast_crtc_atomic_duplicate_state()
1295 ast_state = to_ast_crtc_state(crtc->state); in ast_crtc_atomic_duplicate_state()
1304 static void ast_crtc_atomic_destroy_state(struct drm_crtc *crtc, in ast_crtc_atomic_destroy_state() argument
1325 struct drm_crtc *crtc = &ast->crtc; in ast_crtc_init() local
1328 ret = drm_crtc_init_with_planes(dev, crtc, &ast->primary_plane.base, in ast_crtc_init()
1334 drm_mode_crtc_set_gamma_size(crtc, AST_LUT_SIZE); in ast_crtc_init()
1335 drm_crtc_enable_color_mgmt(crtc, 0, false, AST_LUT_SIZE); in ast_crtc_init()
1337 drm_crtc_helper_add(crtc, &ast_crtc_helper_funcs); in ast_crtc_init()
1426 struct drm_crtc *crtc = &ast->crtc; in ast_vga_output_init() local
1435 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_vga_output_init()
1532 struct drm_crtc *crtc = &ast->crtc; in ast_sil164_output_init() local
1541 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_sil164_output_init()
1631 struct drm_crtc *crtc = &ast->crtc; in ast_dp501_output_init() local
1639 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_dp501_output_init()
1741 struct drm_crtc *crtc = &ast->crtc; in ast_astdp_output_init() local
1749 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_astdp_output_init()
1835 struct drm_crtc *crtc = &ast->crtc; in ast_bmc_output_init() local
1846 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_bmc_output_init()