Lines Matching full:request

73 static void advance(struct i915_request *request)  in advance()  argument
75 list_del_init(&request->mock.link); in advance()
76 i915_request_mark_complete(request); in advance()
77 GEM_BUG_ON(!i915_request_completed(request)); in advance()
79 intel_engine_queue_breadcrumbs(request->engine); in advance()
85 struct i915_request *request; in hw_delay_complete() local
90 /* Timer fired, first request is complete */ in hw_delay_complete()
91 request = first_request(engine); in hw_delay_complete()
92 if (request) in hw_delay_complete()
93 advance(request); in hw_delay_complete()
97 * requeue the timer for the next delayed request. in hw_delay_complete()
99 while ((request = first_request(engine))) { in hw_delay_complete()
100 if (request->mock.delay) { in hw_delay_complete()
102 jiffies + request->mock.delay); in hw_delay_complete()
106 advance(request); in hw_delay_complete()
166 static int mock_request_alloc(struct i915_request *request) in mock_request_alloc() argument
168 INIT_LIST_HEAD(&request->mock.link); in mock_request_alloc()
169 request->mock.delay = 0; in mock_request_alloc()
174 static int mock_emit_flush(struct i915_request *request, in mock_emit_flush() argument
180 static u32 *mock_emit_breadcrumb(struct i915_request *request, u32 *cs) in mock_emit_breadcrumb() argument
185 static void mock_submit_request(struct i915_request *request) in mock_submit_request() argument
188 container_of(request->engine, typeof(*engine), base); in mock_submit_request()
191 i915_request_submit(request); in mock_submit_request()
194 list_add_tail(&request->mock.link, &engine->hw_queue); in mock_submit_request()
195 if (list_is_first(&request->mock.link, &engine->hw_queue)) { in mock_submit_request()
196 if (request->mock.delay) in mock_submit_request()
198 jiffies + request->mock.delay); in mock_submit_request()
200 advance(request); in mock_submit_request()
220 struct i915_request *request; in mock_cancel_requests() local
226 list_for_each_entry(request, &engine->active.requests, sched.link) { in mock_cancel_requests()
227 if (!i915_request_signaled(request)) in mock_cancel_requests()
228 dma_fence_set_error(&request->fence, -EIO); in mock_cancel_requests()
230 i915_request_mark_complete(request); in mock_cancel_requests()
304 struct i915_request *request, *rn; in mock_engine_flush() local
309 list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link) in mock_engine_flush()
310 advance(request); in mock_engine_flush()