Lines Matching refs:vc4_state

678 	struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(state);  in vc4_crtc_get_margins()  local
683 *left = vc4_state->margins.left; in vc4_crtc_get_margins()
684 *right = vc4_state->margins.right; in vc4_crtc_get_margins()
685 *top = vc4_state->margins.top; in vc4_crtc_get_margins()
686 *bottom = vc4_state->margins.bottom; in vc4_crtc_get_margins()
710 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc4_crtc_atomic_check() local
726 vc4_state->hvs_load = max(mode->clock * mode->hdisplay / mode->htotal + 8000, in vc4_crtc_atomic_check()
729 vc4_state->hvs_load = mode->clock * 1000; in vc4_crtc_atomic_check()
738 vc4_state->margins.left = conn_state->tv.margins.left; in vc4_crtc_atomic_check()
739 vc4_state->margins.right = conn_state->tv.margins.right; in vc4_crtc_atomic_check()
740 vc4_state->margins.top = conn_state->tv.margins.top; in vc4_crtc_atomic_check()
741 vc4_state->margins.bottom = conn_state->tv.margins.bottom; in vc4_crtc_atomic_check()
1057 struct vc4_crtc_state *vc4_state, *old_vc4_state; in vc4_crtc_duplicate_state() local
1059 vc4_state = kzalloc(sizeof(*vc4_state), GFP_KERNEL); in vc4_crtc_duplicate_state()
1060 if (!vc4_state) in vc4_crtc_duplicate_state()
1064 vc4_state->margins = old_vc4_state->margins; in vc4_crtc_duplicate_state()
1065 vc4_state->assigned_channel = old_vc4_state->assigned_channel; in vc4_crtc_duplicate_state()
1067 __drm_atomic_helper_crtc_duplicate_state(crtc, &vc4_state->base); in vc4_crtc_duplicate_state()
1068 return &vc4_state->base; in vc4_crtc_duplicate_state()
1075 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(state); in vc4_crtc_destroy_state() local
1077 if (drm_mm_node_allocated(&vc4_state->mm)) { in vc4_crtc_destroy_state()
1081 drm_mm_remove_node(&vc4_state->mm); in vc4_crtc_destroy_state()