Lines Matching refs:omap_fb

88 	struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb);  in get_linear_addr()  local
89 struct plane *plane = &omap_fb->planes[n]; in get_linear_addr()
141 struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); in omap_framebuffer_update_scanout() local
142 const struct drm_format_info *format = omap_fb->format; in omap_framebuffer_update_scanout()
260 struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); in omap_framebuffer_pin() local
263 mutex_lock(&omap_fb->lock); in omap_framebuffer_pin()
265 if (omap_fb->pin_count > 0) { in omap_framebuffer_pin()
266 omap_fb->pin_count++; in omap_framebuffer_pin()
267 mutex_unlock(&omap_fb->lock); in omap_framebuffer_pin()
272 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_pin()
279 omap_fb->pin_count++; in omap_framebuffer_pin()
281 mutex_unlock(&omap_fb->lock); in omap_framebuffer_pin()
287 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_pin()
292 mutex_unlock(&omap_fb->lock); in omap_framebuffer_pin()
300 struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); in omap_framebuffer_unpin() local
303 mutex_lock(&omap_fb->lock); in omap_framebuffer_unpin()
305 omap_fb->pin_count--; in omap_framebuffer_unpin()
307 if (omap_fb->pin_count > 0) { in omap_framebuffer_unpin()
308 mutex_unlock(&omap_fb->lock); in omap_framebuffer_unpin()
313 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_unpin()
318 mutex_unlock(&omap_fb->lock); in omap_framebuffer_unpin()
372 struct omap_framebuffer *omap_fb = NULL; in omap_framebuffer_init() local
395 omap_fb = kzalloc(sizeof(*omap_fb), GFP_KERNEL); in omap_framebuffer_init()
396 if (!omap_fb) { in omap_framebuffer_init()
401 fb = &omap_fb->base; in omap_framebuffer_init()
402 omap_fb->format = format; in omap_framebuffer_init()
403 mutex_init(&omap_fb->lock); in omap_framebuffer_init()
425 struct plane *plane = &omap_fb->planes[i]; in omap_framebuffer_init()
456 kfree(omap_fb); in omap_framebuffer_init()