Lines Matching refs:ldu
60 static void vmw_ldu_destroy(struct vmw_legacy_display_unit *ldu) in vmw_ldu_destroy() argument
62 list_del_init(&ldu->active); in vmw_ldu_destroy()
63 vmw_du_cleanup(&ldu->base); in vmw_ldu_destroy()
64 kfree(ldu); in vmw_ldu_destroy()
139 struct vmw_legacy_display_unit *ldu) in vmw_ldu_del_active() argument
142 if (list_empty(&ldu->active)) in vmw_ldu_del_active()
146 list_del_init(&ldu->active); in vmw_ldu_del_active()
158 struct vmw_legacy_display_unit *ldu, in vmw_ldu_add_active() argument
175 if (!list_empty(&ldu->active)) in vmw_ldu_add_active()
180 if (entry->base.unit > ldu->base.unit) in vmw_ldu_add_active()
186 list_add(&ldu->active, at); in vmw_ldu_add_active()
293 struct vmw_legacy_display_unit *ldu; in vmw_ldu_primary_plane_atomic_update() local
299 ldu = vmw_crtc_to_ldu(crtc); in vmw_ldu_primary_plane_atomic_update()
306 vmw_ldu_add_active(dev_priv, ldu, vfb); in vmw_ldu_primary_plane_atomic_update()
308 vmw_ldu_del_active(dev_priv, ldu); in vmw_ldu_primary_plane_atomic_update()
361 struct vmw_legacy_display_unit *ldu; in vmw_ldu_init() local
370 ldu = kzalloc(sizeof(*ldu), GFP_KERNEL); in vmw_ldu_init()
371 if (!ldu) in vmw_ldu_init()
374 ldu->base.unit = unit; in vmw_ldu_init()
375 crtc = &ldu->base.crtc; in vmw_ldu_init()
376 encoder = &ldu->base.encoder; in vmw_ldu_init()
377 connector = &ldu->base.connector; in vmw_ldu_init()
378 primary = &ldu->base.primary; in vmw_ldu_init()
379 cursor = &ldu->base.cursor; in vmw_ldu_init()
381 INIT_LIST_HEAD(&ldu->active); in vmw_ldu_init()
383 ldu->base.pref_active = (unit == 0); in vmw_ldu_init()
384 ldu->base.pref_width = dev_priv->initial_width; in vmw_ldu_init()
385 ldu->base.pref_height = dev_priv->initial_height; in vmw_ldu_init()
386 ldu->base.pref_mode = NULL; in vmw_ldu_init()
392 ldu->base.is_implicit = true; in vmw_ldu_init()
419 drm_plane_cleanup(&ldu->base.primary); in vmw_ldu_init()
486 kfree(ldu); in vmw_ldu_init()