Lines Matching defs:dev
12 typedef void (*drmres_release_t)(struct drm_device *dev, void *res);
16 * @dev: DRM device
17 * @action: function which should be called when @dev is released
21 * list of cleanup actions for @dev. The cleanup actions will be run in reverse
22 * order in the final drm_dev_put() call for @dev.
24 #define drmm_add_action(dev, action, data) \
25 __drmm_add_action(dev, action, data, #action)
27 int __must_check __drmm_add_action(struct drm_device *dev,
33 * @dev: DRM device
34 * @action: function which should be called when @dev is released
40 #define drmm_add_action_or_reset(dev, action, data) \
41 __drmm_add_action_or_reset(dev, action, data, #action)
43 int __must_check __drmm_add_action_or_reset(struct drm_device *dev,
47 void drmm_add_final_kfree(struct drm_device *dev, void *container);
49 void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) __malloc;
53 * @dev: DRM device
61 static inline void *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp)
63 return drmm_kmalloc(dev, size, gfp | __GFP_ZERO);
68 * @dev: DRM device
77 static inline void *drmm_kmalloc_array(struct drm_device *dev,
85 return drmm_kmalloc(dev, bytes, flags);
90 * @dev: DRM device
99 static inline void *drmm_kcalloc(struct drm_device *dev,
102 return drmm_kmalloc_array(dev, n, size, flags | __GFP_ZERO);
105 char *drmm_kstrdup(struct drm_device *dev, const char *s, gfp_t gfp);
107 void drmm_kfree(struct drm_device *dev, void *data);