Lines Matching full:managed
20 * DOC: managed resources
22 * Inspired by struct &device managed resources, but tied to the lifetime of
32 * Note that release actions and managed memory can also be added and removed
34 * safe. But it is recommended to use managed resources only for resources that
68 list_for_each_entry_safe(dr, tmp, &dev->managed.resources, node.entry) { in drm_managed_release()
120 spin_lock_irqsave(&dev->managed.lock, flags); in add_dr()
121 list_add(&dr->node.entry, &dev->managed.resources); in add_dr()
122 spin_unlock_irqrestore(&dev->managed.lock, flags); in add_dr()
130 WARN_ON(dev->managed.final_kfree); in drmm_add_final_kfree()
133 dev->managed.final_kfree = container; in drmm_add_final_kfree()
179 * drmm_kmalloc - &drm_device managed kmalloc()
184 * This is a &drm_device managed version of kmalloc(). The allocated memory is
207 * drmm_kstrdup - &drm_device managed kstrdup()
212 * This is a &drm_device managed version of kstrdup(). The allocated memory is
233 * drmm_kfree - &drm_device managed kfree()
237 * This is a &drm_device managed version of kfree() which can be used to
249 spin_lock_irqsave(&dev->managed.lock, flags); in drmm_kfree()
250 list_for_each_entry(dr, &dev->managed.resources, node.entry) { in drmm_kfree()
257 spin_unlock_irqrestore(&dev->managed.lock, flags); in drmm_kfree()