Lines Matching refs:c

64 	struct msm_commit *c = kzalloc(sizeof(*c), GFP_KERNEL);  in commit_init()  local
66 if (!c) in commit_init()
69 c->dev = state->dev; in commit_init()
70 c->state = state; in commit_init()
76 INIT_FENCE_CB(&c->fence_cb, fence_cb); in commit_init()
78 return c; in commit_init()
81 static void commit_destroy(struct msm_commit *c) in commit_destroy() argument
83 end_atomic(c->dev->dev_private, c->crtc_mask); in commit_destroy()
84 kfree(c); in commit_destroy()
90 static void complete_commit(struct msm_commit *c) in complete_commit() argument
92 struct drm_atomic_state *state = c->state; in complete_commit()
126 commit_destroy(c); in complete_commit()
131 struct msm_commit *c = in fence_cb() local
133 complete_commit(c); in fence_cb()
136 static void add_fb(struct msm_commit *c, struct drm_framebuffer *fb) in add_fb() argument
139 c->fence = max(c->fence, msm_gem_fence(to_msm_bo(obj), MSM_PREP_READ)); in add_fb()
182 struct msm_commit *c; in msm_atomic_commit() local
189 c = commit_init(state); in msm_atomic_commit()
190 if (!c) in msm_atomic_commit()
200 c->crtc_mask |= (1 << drm_crtc_index(crtc)); in msm_atomic_commit()
214 add_fb(c, new_state->fb); in msm_atomic_commit()
221 ret = start_atomic(dev->dev_private, c->crtc_mask); in msm_atomic_commit()
223 kfree(c); in msm_atomic_commit()
252 msm_queue_fence_cb(dev, &c->fence_cb, c->fence); in msm_atomic_commit()
258 ret = msm_wait_fence_interruptable(dev, c->fence, &timeout); in msm_atomic_commit()
261 commit_destroy(c); in msm_atomic_commit()
265 complete_commit(c); in msm_atomic_commit()