Home | History | Annotate | Download | only in drm

Lines Matching refs:fb

75 	int (*create_handle)(struct drm_framebuffer *fb,
81 * Optional callback for the dirty fb IOCTL.
108 * Note that the fb is refcounted for the benefit of driver internals,
113 * hold a ref to the fb even though it has already been removed from
136 * @comm: Name of the process allocating the fb, used for fb dumping.
221 struct drm_framebuffer *fb,
226 void drm_framebuffer_remove(struct drm_framebuffer *fb);
227 void drm_framebuffer_cleanup(struct drm_framebuffer *fb);
228 void drm_framebuffer_unregister_private(struct drm_framebuffer *fb);
232 * @fb: DRM framebuffer
236 static inline void drm_framebuffer_get(struct drm_framebuffer *fb)
238 drm_mode_object_get(&fb->base);
243 * @fb: DRM framebuffer
248 static inline void drm_framebuffer_put(struct drm_framebuffer *fb)
250 drm_mode_object_put(&fb->base);
255 * @fb: framebuffer
259 static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb)
261 return kref_read(&fb->base.refcount);
265 * drm_framebuffer_assign - store a reference to the fb
267 * @fb: new framebuffer (maybe NULL)
273 struct drm_framebuffer *fb)
275 if (fb)
276 drm_framebuffer_get(fb);
279 *p = fb;
284 * @fb: the loop cursor
290 #define drm_for_each_fb(fb, dev) \
292 fb = list_first_entry(&(dev)->mode_config.fb_list, \
294 &fb->head != (&(dev)->mode_config.fb_list); \
295 fb = list_next_entry(fb, head))
298 const struct drm_framebuffer *fb, int plane);
300 const struct drm_framebuffer *fb, int plane);