Home
last modified time | relevance | path

Searched refs:vc4_state (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/gpu/drm/vc4/
H A Dvc4_plane.c284 struct vc4_plane_state *vc4_state; in vc4_plane_duplicate_state() local
290 vc4_state = kmemdup(plane->state, sizeof(*vc4_state), GFP_KERNEL); in vc4_plane_duplicate_state()
291 if (!vc4_state) in vc4_plane_duplicate_state()
294 memset(&vc4_state->lbm, 0, sizeof(vc4_state->lbm)); in vc4_plane_duplicate_state()
297 if (vc4_state->upm_handle[i]) in vc4_plane_duplicate_state()
298 refcount_inc(&hvs->upm_refcounts[vc4_state->upm_handle[i]].refcount); in vc4_plane_duplicate_state()
301 vc4_state->dlist_initialized = 0; in vc4_plane_duplicate_state()
303 __drm_atomic_helper_plane_duplicate_state(plane, &vc4_state->base); in vc4_plane_duplicate_state()
305 if (vc4_state->dlist) { in vc4_plane_duplicate_state()
306 vc4_state->dlist = kmemdup(vc4_state->dlist, in vc4_plane_duplicate_state()
[all …]
H A Dvc4_crtc.c715 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(state); in vc4_crtc_get_margins() local
720 *left = vc4_state->margins.left; in vc4_crtc_get_margins()
721 *right = vc4_state->margins.right; in vc4_crtc_get_margins()
722 *top = vc4_state->margins.top; in vc4_crtc_get_margins()
723 *bottom = vc4_state->margins.bottom; in vc4_crtc_get_margins()
747 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc4_crtc_atomic_check() local
763 vc4_state->hvs_load = max(mode->clock * mode->hdisplay / mode->htotal + 8000, in vc4_crtc_atomic_check()
766 vc4_state->hvs_load = mode->clock * 1000; in vc4_crtc_atomic_check()
775 if (memcmp(&vc4_state->margins, &conn_state->tv.margins, in vc4_crtc_atomic_check()
776 sizeof(vc4_state->margins))) { in vc4_crtc_atomic_check()
[all …]
H A Dvc4_hvs.c426 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc->state); in vc4_hvs_lut_load() local
444 (vc4_state->assigned_channel * 3 * crtc->gamma_size)); in vc4_hvs_lut_load()
793 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc4_hvs_atomic_check() local
824 ret = drm_mm_insert_node(&vc4->hvs->dlist_mm, &vc4_state->mm, in vc4_hvs_atomic_check()
840 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc->state); in vc4_hvs_install_dlist() local
847 HVS_WRITE(SCALER6_DISPX_LPTRS(vc4_state->assigned_channel), in vc4_hvs_install_dlist()
848 VC4_SET_FIELD(vc4_state->mm.start, in vc4_hvs_install_dlist()
851 HVS_WRITE(SCALER_DISPLISTX(vc4_state->assigned_channel), in vc4_hvs_install_dlist()
852 vc4_state->mm.start); in vc4_hvs_install_dlist()
861 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc->state); in vc4_hvs_update_dlist() local
[all …]
H A Dvc4_kms.c223 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc4_hvs_pv_muxing_commit() local
230 if (vc4_state->assigned_channel != 2) in vc4_hvs_pv_muxing_commit()
267 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc5_hvs_pv_muxing_commit() local
269 unsigned int channel = vc4_state->assigned_channel; in vc5_hvs_pv_muxing_commit()
271 if (!vc4_state->update_muxing) in vc5_hvs_pv_muxing_commit()
341 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); in vc6_hvs_pv_muxing_commit() local
347 if (!vc4_state->update_muxing) in vc6_hvs_pv_muxing_commit()
350 if (vc4_state->assigned_channel != 1) in vc6_hvs_pv_muxing_commit()
H A Dvc4_txp.c243 struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(state); in vc4_txp_armed() local
245 vc4_state->txp_armed = true; in vc4_txp_armed()