Lines Matching refs:rq
15 static int request_sync(struct i915_request *rq) in request_sync() argument
17 struct intel_timeline *tl = i915_request_timeline(rq); in request_sync()
22 i915_request_get(rq); in request_sync()
25 __i915_request_commit(rq); in request_sync()
26 rq->sched.attr.priority = I915_PRIORITY_BARRIER; in request_sync()
27 __i915_request_queue_bh(rq); in request_sync()
29 timeout = i915_request_wait(rq, 0, HZ / 10); in request_sync()
33 i915_request_retire_upto(rq); in request_sync()
35 lockdep_unpin_lock(&tl->mutex, rq->cookie); in request_sync()
38 i915_request_put(rq); in request_sync()
51 struct i915_request *rq; in context_sync() local
57 rq = list_last_entry(&tl->requests, typeof(*rq), link); in context_sync()
58 i915_request_get(rq); in context_sync()
60 timeout = i915_request_wait(rq, 0, HZ / 10); in context_sync()
64 i915_request_retire_upto(rq); in context_sync()
66 i915_request_put(rq); in context_sync()
78 struct i915_request *rq; in __live_context_size() local
114 rq = intel_context_create_request(ce); in __live_context_size()
116 if (IS_ERR(rq)) { in __live_context_size()
117 err = PTR_ERR(rq); in __live_context_size()
121 err = request_sync(rq); in __live_context_size()
126 rq = intel_engine_create_kernel_request(engine); in __live_context_size()
127 if (IS_ERR(rq)) { in __live_context_size()
128 err = PTR_ERR(rq); in __live_context_size()
131 err = request_sync(rq); in __live_context_size()
234 struct i915_request *rq; in __live_active_context() local
238 rq = intel_context_create_request(ce); in __live_active_context()
239 if (IS_ERR(rq)) { in __live_active_context()
240 err = PTR_ERR(rq); in __live_active_context()
244 err = request_sync(rq); in __live_active_context()
327 struct i915_request *rq; in __remote_sync() local
334 rq = intel_context_create_request(ce); in __remote_sync()
335 if (IS_ERR(rq)) { in __remote_sync()
336 err = PTR_ERR(rq); in __remote_sync()
340 err = intel_context_prepare_remote_request(remote, rq); in __remote_sync()
342 i915_request_add(rq); in __remote_sync()
346 err = request_sync(rq); in __remote_sync()