Lines Matching refs:rq

46 	struct i915_request *rq;
90 err = fn(migrate, &ww, src, dst, &rq);
96 if (rq) {
97 i915_request_wait(rq, 0, HZ);
98 i915_request_put(rq);
107 if (rq) {
108 if (i915_request_wait(rq, 0, HZ) < 0) {
112 i915_request_put(rq);
147 struct i915_request *rq;
163 rq = i915_request_create(ce);
164 if (IS_ERR(rq)) {
165 err = PTR_ERR(rq);
170 err = i915_request_await_deps(rq, deps);
174 if (rq->engine->emit_init_breadcrumb) {
175 err = rq->engine->emit_init_breadcrumb(rq);
184 err = emit_no_arbitration(rq);
188 len = emit_pte(rq, &it, pat_index, true, offset, CHUNK_SZ);
194 err = rq->engine->emit_flush(rq, EMIT_INVALIDATE);
198 err = emit_copy_ccs(rq, offset, dst_access,
203 err = rq->engine->emit_flush(rq, EMIT_INVALIDATE);
209 *out = i915_request_get(rq);
210 i915_request_add(rq);
265 struct i915_request *rq;
304 true, &rq);
305 if (rq && !err) {
306 if (i915_request_wait(rq, 0, HZ) < 0) {
311 i915_request_put(rq);
312 rq = NULL;
318 err = fn(migrate, &ww, obj, val, &rq);
319 if (rq && !err) {
320 if (i915_request_wait(rq, 0, HZ) < 0) {
324 i915_request_put(rq);
325 rq = NULL;
355 false, &rq);
356 if (rq && !err) {
357 if (i915_request_wait(rq, 0, HZ) < 0) {
362 i915_request_put(rq);
363 rq = NULL;
398 if (rq && err != -EINVAL) {
399 i915_request_wait(rq, 0, HZ);
400 i915_request_put(rq);
553 struct i915_request *rq, *prev;
561 * rq->reserved_space when returning from emit_pte(), if the ring is
590 rq = igt_spinner_create_request(&st.spin, ce, MI_ARB_CHECK);
591 if (IS_ERR(rq)) {
592 err = PTR_ERR(rq);
596 i915_request_add(rq);
597 if (!igt_wait_for_spinner(&st.spin, rq)) {
608 * resulting in crashes when later submitting the rq.
614 i915_request_add(rq);
616 rq = i915_request_create(ce);
617 if (IS_ERR(rq)) {
618 err = PTR_ERR(rq);
622 sz = (rq->ring->space - rq->reserved_space) / sizeof(u32) -
624 sz = min_t(u32, sz, (SZ_1K - rq->reserved_space) / sizeof(u32) -
626 cs = intel_ring_begin(rq, sz);
634 intel_ring_advance(rq, cs);
636 pr_info("%s emit=%u sz=%d\n", __func__, rq->ring->emit, sz);
638 prev = rq;
639 } while (rq->ring->space > (rq->reserved_space +
649 pr_info("%s emite_pte ring space=%u\n", __func__, rq->ring->space);
651 len = emit_pte(rq, &it, obj->pat_index, false, 0, CHUNK_SZ);
662 i915_request_add(rq); /* GEM_BUG_ON(rq->reserved_space > ring->space)? */
854 struct i915_request *rq;
860 is_lmem, 0, &rq);
861 if (rq) {
862 if (i915_request_wait(rq, 0, MAX_SCHEDULE_TIMEOUT) < 0)
864 i915_request_put(rq);
933 struct i915_request *rq;
943 &rq);
944 if (rq) {
945 if (i915_request_wait(rq, 0, MAX_SCHEDULE_TIMEOUT) < 0)
947 i915_request_put(rq);