Lines Matching refs:mock
97 mock.link); in first_request()
102 list_del_init(&request->mock.link); in advance()
127 if (request->mock.delay) { in hw_delay_complete()
129 jiffies + request->mock.delay); in hw_delay_complete()
219 INIT_LIST_HEAD(&request->mock.link); in mock_request_alloc()
220 request->mock.delay = 0; in mock_request_alloc()
245 list_add_tail(&request->mock.link, &engine->hw_queue); in mock_submit_request()
246 if (list_is_first(&request->mock.link, &engine->hw_queue)) { in mock_submit_request()
247 if (request->mock.delay) in mock_submit_request()
249 jiffies + request->mock.delay); in mock_submit_request()
295 struct mock_engine *mock = in mock_reset_cancel() local
296 container_of(engine, typeof(*mock), base); in mock_reset_cancel()
300 del_timer_sync(&mock->hw_delay); in mock_reset_cancel()
310 list_for_each_entry(rq, &mock->hw_queue, mock.link) { in mock_reset_cancel()
316 INIT_LIST_HEAD(&mock->hw_queue); in mock_reset_cancel()
327 struct mock_engine *mock = in mock_engine_release() local
328 container_of(engine, typeof(*mock), base); in mock_engine_release()
330 GEM_BUG_ON(timer_pending(&mock->hw_delay)); in mock_engine_release()
431 struct mock_engine *mock = in mock_engine_flush() local
432 container_of(engine, typeof(*mock), base); in mock_engine_flush()
435 del_timer_sync(&mock->hw_delay); in mock_engine_flush()
437 spin_lock_irq(&mock->hw_lock); in mock_engine_flush()
438 list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link) in mock_engine_flush()
440 spin_unlock_irq(&mock->hw_lock); in mock_engine_flush()