Lines Matching refs:vc4_state

617 	struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(state);  in vc4_crtc_get_margins()  local
622 *left = vc4_state->margins.left; in vc4_crtc_get_margins()
623 *right = vc4_state->margins.right; in vc4_crtc_get_margins()
624 *top = vc4_state->margins.top; in vc4_crtc_get_margins()
625 *bottom = vc4_state->margins.bottom; in vc4_crtc_get_margins()
649 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc4_crtc_atomic_check() local
663 vc4_state->margins.left = conn_state->tv.margins.left; in vc4_crtc_atomic_check()
664 vc4_state->margins.right = conn_state->tv.margins.right; in vc4_crtc_atomic_check()
665 vc4_state->margins.top = conn_state->tv.margins.top; in vc4_crtc_atomic_check()
666 vc4_state->margins.bottom = conn_state->tv.margins.bottom; in vc4_crtc_atomic_check()
694 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc->state); in vc4_crtc_handle_page_flip() local
695 u32 chan = vc4_state->assigned_channel; in vc4_crtc_handle_page_flip()
700 (vc4_state->mm.start == HVS_READ(SCALER_DISPLACTX(chan)) || in vc4_crtc_handle_page_flip()
701 vc4_state->feed_txp)) { in vc4_crtc_handle_page_flip()
872 struct vc4_crtc_state *vc4_state, *old_vc4_state; in vc4_crtc_duplicate_state() local
874 vc4_state = kzalloc(sizeof(*vc4_state), GFP_KERNEL); in vc4_crtc_duplicate_state()
875 if (!vc4_state) in vc4_crtc_duplicate_state()
879 vc4_state->feed_txp = old_vc4_state->feed_txp; in vc4_crtc_duplicate_state()
880 vc4_state->margins = old_vc4_state->margins; in vc4_crtc_duplicate_state()
881 vc4_state->assigned_channel = old_vc4_state->assigned_channel; in vc4_crtc_duplicate_state()
883 __drm_atomic_helper_crtc_duplicate_state(crtc, &vc4_state->base); in vc4_crtc_duplicate_state()
884 return &vc4_state->base; in vc4_crtc_duplicate_state()
891 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(state); in vc4_crtc_destroy_state() local
893 if (drm_mm_node_allocated(&vc4_state->mm)) { in vc4_crtc_destroy_state()
897 drm_mm_remove_node(&vc4_state->mm); in vc4_crtc_destroy_state()