Home
last modified time | relevance | path

Searched refs:ipu_state (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/ingenic/
Dingenic-ipu.c332 struct ingenic_ipu_private_state *ipu_state; in ingenic_ipu_plane_atomic_update() local
338 ipu_state = ingenic_ipu_get_new_priv_state(ipu, state); in ingenic_ipu_plane_atomic_update()
339 if (WARN_ON(!ipu_state)) in ingenic_ipu_plane_atomic_update()
514 upscaling_w = ipu_state->num_w > ipu_state->denom_w; in ingenic_ipu_plane_atomic_update()
518 if (ipu_state->num_w != 1 || ipu_state->denom_w != 1) { in ingenic_ipu_plane_atomic_update()
520 coef_index |= (ipu_state->denom_w - 1) << 16; in ingenic_ipu_plane_atomic_update()
522 coef_index |= (ipu_state->num_w - 1) << 16; in ingenic_ipu_plane_atomic_update()
526 upscaling_h = ipu_state->num_h > ipu_state->denom_h; in ingenic_ipu_plane_atomic_update()
530 if (ipu_state->num_h != 1 || ipu_state->denom_h != 1) { in ingenic_ipu_plane_atomic_update()
532 coef_index |= ipu_state->denom_h - 1; in ingenic_ipu_plane_atomic_update()
[all …]
Dingenic-drm-drv.c342 struct drm_plane_state *f1_state, *f0_state, *ipu_state = NULL; in ingenic_drm_crtc_atomic_check() local
362 ipu_state = drm_atomic_get_plane_state(crtc_state->state, in ingenic_drm_crtc_atomic_check()
364 if (IS_ERR(ipu_state)) in ingenic_drm_crtc_atomic_check()
365 return PTR_ERR(ipu_state); in ingenic_drm_crtc_atomic_check()
368 if (f1_state->fb && ipu_state->fb) { in ingenic_drm_crtc_atomic_check()
376 !(ipu_state && ipu_state->fb); in ingenic_drm_crtc_atomic_check()
/drivers/gpu/drm/imx/
Dipuv3-plane.c301 struct ipu_plane_state *ipu_state; in ipu_plane_state_reset() local
304 ipu_state = to_ipu_plane_state(plane->state); in ipu_plane_state_reset()
306 kfree(ipu_state); in ipu_plane_state_reset()
310 ipu_state = kzalloc(sizeof(*ipu_state), GFP_KERNEL); in ipu_plane_state_reset()
312 if (ipu_state) in ipu_plane_state_reset()
313 __drm_atomic_helper_plane_reset(plane, &ipu_state->base); in ipu_plane_state_reset()
334 struct ipu_plane_state *ipu_state = to_ipu_plane_state(state); in ipu_plane_destroy_state() local
337 kfree(ipu_state); in ipu_plane_destroy_state()
582 struct ipu_plane_state *ipu_state = to_ipu_plane_state(new_state); in ipu_plane_atomic_update() local
628 if (ipu_state->use_pre) { in ipu_plane_atomic_update()
[all …]