Lines Matching full:fb
74 int (*create_handle)(struct drm_framebuffer *fb,
80 * Optional callback for the dirty fb IOCTL.
109 * Note that the fb is refcounted for the benefit of driver internals,
114 * hold a ref to the fb even though it has already been removed from
137 * @comm: Name of the process allocating the fb, used for fb dumping.
214 struct drm_framebuffer *fb,
219 void drm_framebuffer_remove(struct drm_framebuffer *fb);
220 void drm_framebuffer_cleanup(struct drm_framebuffer *fb);
221 void drm_framebuffer_unregister_private(struct drm_framebuffer *fb);
225 * @fb: DRM framebuffer
229 static inline void drm_framebuffer_get(struct drm_framebuffer *fb) in drm_framebuffer_get() argument
231 drm_mode_object_get(&fb->base); in drm_framebuffer_get()
236 * @fb: DRM framebuffer
241 static inline void drm_framebuffer_put(struct drm_framebuffer *fb) in drm_framebuffer_put() argument
243 drm_mode_object_put(&fb->base); in drm_framebuffer_put()
248 * @fb: framebuffer
252 static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb) in drm_framebuffer_read_refcount() argument
254 return kref_read(&fb->base.refcount); in drm_framebuffer_read_refcount()
258 * drm_framebuffer_assign - store a reference to the fb
260 * @fb: new framebuffer (maybe NULL)
266 struct drm_framebuffer *fb) in drm_framebuffer_assign() argument
268 if (fb) in drm_framebuffer_assign()
269 drm_framebuffer_get(fb); in drm_framebuffer_assign()
272 *p = fb; in drm_framebuffer_assign()
277 * @fb: the loop cursor
283 #define drm_for_each_fb(fb, dev) \ argument
285 fb = list_first_entry(&(dev)->mode_config.fb_list, \
287 &fb->head != (&(dev)->mode_config.fb_list); \
288 fb = list_next_entry(fb, head))