Lines Matching refs:msm_fb

40 	struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb);  in msm_framebuffer_dirtyfb()  local
45 if (refcount_read(&msm_fb->dirtyfb) == 1) in msm_framebuffer_dirtyfb()
82 struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb); in msm_framebuffer_prepare() local
86 refcount_inc(&msm_fb->dirtyfb); in msm_framebuffer_prepare()
88 atomic_inc(&msm_fb->prepare_count); in msm_framebuffer_prepare()
91 ret = msm_gem_get_and_pin_iova(fb->obj[i], aspace, &msm_fb->iova[i]); in msm_framebuffer_prepare()
93 fb->base.id, i, msm_fb->iova[i], ret); in msm_framebuffer_prepare()
105 struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb); in msm_framebuffer_cleanup() local
109 refcount_dec(&msm_fb->dirtyfb); in msm_framebuffer_cleanup()
114 if (!atomic_dec_return(&msm_fb->prepare_count)) in msm_framebuffer_cleanup()
115 memset(msm_fb->iova, 0, sizeof(msm_fb->iova)); in msm_framebuffer_cleanup()
121 struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb); in msm_framebuffer_iova() local
122 return msm_fb->iova[plane] + fb->offsets[plane]; in msm_framebuffer_iova()
132 struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb); in msm_framebuffer_format() local
133 return msm_fb->format; in msm_framebuffer_format()
174 struct msm_framebuffer *msm_fb = NULL; in msm_framebuffer_init() local
193 msm_fb = kzalloc(sizeof(*msm_fb), GFP_KERNEL); in msm_framebuffer_init()
194 if (!msm_fb) { in msm_framebuffer_init()
199 fb = &msm_fb->base; in msm_framebuffer_init()
201 msm_fb->format = format; in msm_framebuffer_init()
222 msm_fb->base.obj[i] = bos[i]; in msm_framebuffer_init()
233 refcount_set(&msm_fb->dirtyfb, 1); in msm_framebuffer_init()
240 kfree(msm_fb); in msm_framebuffer_init()