Lines Matching refs:vcstate
857 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(vp->crtc.state); in vop2_setup_csc_mode() local
859 int is_output_yuv = is_yuv_output(vcstate->bus_format); in vop2_setup_csc_mode()
861 int output_csc = vcstate->color_space; in vop2_setup_csc_mode()
1487 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(crtc->state); in vop2_dither_setup() local
1489 switch (vcstate->bus_format) { in vop2_dither_setup()
1507 if (vcstate->output_mode != ROCKCHIP_OUT_MODE_AAAA) in vop2_dither_setup()
1679 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(crtc->state); in rk3588_calc_cru_cfg() local
1680 int output_mode = vcstate->output_mode; in rk3588_calc_cru_cfg()
1928 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(crtc->state); in vop2_crtc_atomic_enable() local
1950 drm_mode_vrefresh(mode), vcstate->output_type, vp->id); in vop2_crtc_atomic_enable()
1967 vcstate->yuv_overlay = is_yuv_output(vcstate->bus_format); in vop2_crtc_atomic_enable()
1972 if (vcstate->bus_flags & DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE) in vop2_crtc_atomic_enable()
1995 if (vcstate->output_mode == ROCKCHIP_OUT_MODE_AAAA && in vop2_crtc_atomic_enable()
1999 out_mode = vcstate->output_mode; in vop2_crtc_atomic_enable()
2003 if (vop2_output_uv_swap(vcstate->bus_format, vcstate->output_mode)) in vop2_crtc_atomic_enable()
2005 if (vop2_output_rg_swap(vop2, vcstate->bus_format)) in vop2_crtc_atomic_enable()
2008 if (vcstate->yuv_overlay) in vop2_crtc_atomic_enable()
2317 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(vp->crtc.state); in vop2_setup_layer_mixer() local
2321 if (vcstate->yuv_overlay) in vop2_setup_layer_mixer()
2518 struct rockchip_crtc_state *vcstate; in vop2_crtc_duplicate_state() local
2523 vcstate = kmemdup(to_rockchip_crtc_state(crtc->state), in vop2_crtc_duplicate_state()
2524 sizeof(*vcstate), GFP_KERNEL); in vop2_crtc_duplicate_state()
2525 if (!vcstate) in vop2_crtc_duplicate_state()
2528 __drm_atomic_helper_crtc_duplicate_state(crtc, &vcstate->base); in vop2_crtc_duplicate_state()
2530 return &vcstate->base; in vop2_crtc_duplicate_state()
2536 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(state); in vop2_crtc_destroy_state() local
2538 __drm_atomic_helper_crtc_destroy_state(&vcstate->base); in vop2_crtc_destroy_state()
2539 kfree(vcstate); in vop2_crtc_destroy_state()
2544 struct rockchip_crtc_state *vcstate = in vop2_crtc_reset() local
2545 kzalloc(sizeof(*vcstate), GFP_KERNEL); in vop2_crtc_reset()
2550 if (vcstate) in vop2_crtc_reset()
2551 __drm_atomic_helper_crtc_reset(crtc, &vcstate->base); in vop2_crtc_reset()