Lines Matching refs:ldu
61 static void vmw_ldu_destroy(struct vmw_legacy_display_unit *ldu) in vmw_ldu_destroy() argument
63 list_del_init(&ldu->active); in vmw_ldu_destroy()
64 vmw_du_cleanup(&ldu->base); in vmw_ldu_destroy()
65 kfree(ldu); in vmw_ldu_destroy()
181 struct vmw_legacy_display_unit *ldu) in vmw_ldu_del_active() argument
184 if (list_empty(&ldu->active)) in vmw_ldu_del_active()
188 list_del_init(&ldu->active); in vmw_ldu_del_active()
199 struct vmw_legacy_display_unit *ldu, in vmw_ldu_add_active() argument
215 if (!list_empty(&ldu->active)) in vmw_ldu_add_active()
220 if (entry->base.unit > ldu->base.unit) in vmw_ldu_add_active()
226 list_add(&ldu->active, at); in vmw_ldu_add_active()
337 struct vmw_legacy_display_unit *ldu; in vmw_ldu_primary_plane_atomic_update() local
342 ldu = vmw_crtc_to_ldu(crtc); in vmw_ldu_primary_plane_atomic_update()
349 vmw_ldu_add_active(dev_priv, ldu, vfb); in vmw_ldu_primary_plane_atomic_update()
351 vmw_ldu_del_active(dev_priv, ldu); in vmw_ldu_primary_plane_atomic_update()
427 struct vmw_legacy_display_unit *ldu; in vmw_ldu_init() local
436 ldu = kzalloc(sizeof(*ldu), GFP_KERNEL); in vmw_ldu_init()
437 if (!ldu) in vmw_ldu_init()
440 ldu->base.unit = unit; in vmw_ldu_init()
441 crtc = &ldu->base.crtc; in vmw_ldu_init()
442 encoder = &ldu->base.encoder; in vmw_ldu_init()
443 connector = &ldu->base.connector; in vmw_ldu_init()
444 primary = &ldu->base.primary; in vmw_ldu_init()
445 cursor = &ldu->base.cursor; in vmw_ldu_init()
447 INIT_LIST_HEAD(&ldu->active); in vmw_ldu_init()
449 ldu->base.pref_active = (unit == 0); in vmw_ldu_init()
450 ldu->base.pref_width = dev_priv->initial_width; in vmw_ldu_init()
451 ldu->base.pref_height = dev_priv->initial_height; in vmw_ldu_init()
452 ldu->base.pref_mode = NULL; in vmw_ldu_init()
458 ldu->base.is_implicit = true; in vmw_ldu_init()
485 drm_plane_cleanup(&ldu->base.primary); in vmw_ldu_init()
552 kfree(ldu); in vmw_ldu_init()