Lines Matching full:front

166 void __intel_fb_invalidate(struct intel_frontbuffer *front,  in __intel_fb_invalidate()  argument
170 struct drm_i915_private *i915 = intel_bo_to_i915(front->obj); in __intel_fb_invalidate()
187 void __intel_fb_flush(struct intel_frontbuffer *front, in __intel_fb_flush() argument
191 struct drm_i915_private *i915 = intel_bo_to_i915(front->obj); in __intel_fb_flush()
207 struct intel_frontbuffer *front = in frontbuffer_active() local
208 container_of(ref, typeof(*front), write); in frontbuffer_active()
210 kref_get(&front->ref); in frontbuffer_active()
216 struct intel_frontbuffer *front = in frontbuffer_retire() local
217 container_of(ref, typeof(*front), write); in frontbuffer_retire()
219 intel_frontbuffer_flush(front, ORIGIN_CS); in frontbuffer_retire()
220 intel_frontbuffer_put(front); in frontbuffer_retire()
224 __releases(&intel_bo_to_i915(front->obj)->display.fb_tracking.lock) in frontbuffer_release()
226 struct intel_frontbuffer *front = in frontbuffer_release() local
227 container_of(ref, typeof(*front), ref); in frontbuffer_release()
228 struct drm_i915_gem_object *obj = front->obj; in frontbuffer_release()
230 drm_WARN_ON(&intel_bo_to_i915(obj)->drm, atomic_read(&front->bits)); in frontbuffer_release()
237 i915_active_fini(&front->write); in frontbuffer_release()
240 kfree_rcu(front, rcu); in frontbuffer_release()
247 struct intel_frontbuffer *front, *cur; in intel_frontbuffer_get() local
249 front = i915_gem_object_get_frontbuffer(obj); in intel_frontbuffer_get()
250 if (front) in intel_frontbuffer_get()
251 return front; in intel_frontbuffer_get()
253 front = kmalloc(sizeof(*front), GFP_KERNEL); in intel_frontbuffer_get()
254 if (!front) in intel_frontbuffer_get()
257 front->obj = obj; in intel_frontbuffer_get()
258 kref_init(&front->ref); in intel_frontbuffer_get()
259 atomic_set(&front->bits, 0); in intel_frontbuffer_get()
260 i915_active_init(&front->write, in intel_frontbuffer_get()
266 cur = i915_gem_object_set_frontbuffer(obj, front); in intel_frontbuffer_get()
268 if (cur != front) in intel_frontbuffer_get()
269 kfree(front); in intel_frontbuffer_get()
273 void intel_frontbuffer_put(struct intel_frontbuffer *front) in intel_frontbuffer_put() argument
275 kref_put_lock(&front->ref, in intel_frontbuffer_put()
277 &intel_bo_to_i915(front->obj)->display.fb_tracking.lock); in intel_frontbuffer_put()