mock               12 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock = to_mock(attachment->dmabuf);
mock               21 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	err = sg_alloc_table(st, mock->npages, GFP_KERNEL);
mock               26 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	for (i = 0; i < mock->npages; i++) {
mock               27 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 		sg_set_page(sg, mock->pages[i], PAGE_SIZE, 0);
mock               56 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock = to_mock(dma_buf);
mock               59 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	for (i = 0; i < mock->npages; i++)
mock               60 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 		put_page(mock->pages[i]);
mock               62 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	kfree(mock);
mock               67 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock = to_mock(dma_buf);
mock               69 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	return vm_map_ram(mock->pages, mock->npages, 0, PAGE_KERNEL);
mock               74 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock = to_mock(dma_buf);
mock               76 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	vm_unmap_ram(vaddr, mock->npages);
mock               81 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock = to_mock(dma_buf);
mock               83 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	return kmap(mock->pages[page_num]);
mock               88 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock = to_mock(dma_buf);
mock               90 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	return kunmap(mock->pages[page_num]);
mock              111 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	struct mock_dmabuf *mock;
mock              116 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	mock = kmalloc(sizeof(*mock) + npages * sizeof(struct page *),
mock              118 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	if (!mock)
mock              121 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	mock->npages = npages;
mock              123 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 		mock->pages[i] = alloc_page(GFP_KERNEL);
mock              124 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 		if (!mock->pages[i])
mock              131 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	exp_info.priv = mock;
mock              141 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 		put_page(mock->pages[i]);
mock              142 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c 	kfree(mock);
mock               70 drivers/gpu/drm/i915/gt/mock_engine.c 					mock.link);
mock               75 drivers/gpu/drm/i915/gt/mock_engine.c 	list_del_init(&request->mock.link);
mock              100 drivers/gpu/drm/i915/gt/mock_engine.c 		if (request->mock.delay) {
mock              102 drivers/gpu/drm/i915/gt/mock_engine.c 				  jiffies + request->mock.delay);
mock              168 drivers/gpu/drm/i915/gt/mock_engine.c 	INIT_LIST_HEAD(&request->mock.link);
mock              169 drivers/gpu/drm/i915/gt/mock_engine.c 	request->mock.delay = 0;
mock              194 drivers/gpu/drm/i915/gt/mock_engine.c 	list_add_tail(&request->mock.link, &engine->hw_queue);
mock              195 drivers/gpu/drm/i915/gt/mock_engine.c 	if (list_is_first(&request->mock.link, &engine->hw_queue)) {
mock              196 drivers/gpu/drm/i915/gt/mock_engine.c 		if (request->mock.delay)
mock              198 drivers/gpu/drm/i915/gt/mock_engine.c 				  jiffies + request->mock.delay);
mock              302 drivers/gpu/drm/i915/gt/mock_engine.c 	struct mock_engine *mock =
mock              303 drivers/gpu/drm/i915/gt/mock_engine.c 		container_of(engine, typeof(*mock), base);
mock              306 drivers/gpu/drm/i915/gt/mock_engine.c 	del_timer_sync(&mock->hw_delay);
mock              308 drivers/gpu/drm/i915/gt/mock_engine.c 	spin_lock_irq(&mock->hw_lock);
mock              309 drivers/gpu/drm/i915/gt/mock_engine.c 	list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link)
mock              311 drivers/gpu/drm/i915/gt/mock_engine.c 	spin_unlock_irq(&mock->hw_lock);
mock              320 drivers/gpu/drm/i915/gt/mock_engine.c 	struct mock_engine *mock =
mock              321 drivers/gpu/drm/i915/gt/mock_engine.c 		container_of(engine, typeof(*mock), base);
mock              323 drivers/gpu/drm/i915/gt/mock_engine.c 	GEM_BUG_ON(timer_pending(&mock->hw_delay));
mock              235 drivers/gpu/drm/i915/i915_request.h 	} mock;)
mock               37 drivers/gpu/drm/i915/i915_selftest.h 	int mock;
mock               63 drivers/gpu/drm/i915/selftests/i915_selftest.c 		int (*mock)(void);
mock               68 drivers/gpu/drm/i915/selftests/i915_selftest.c #define selftest(n, f) [mock_##n] = { .name = #n, { .mock = f } },
mock              142 drivers/gpu/drm/i915/selftests/i915_selftest.c 			err = st->mock();
mock              164 drivers/gpu/drm/i915/selftests/i915_selftest.c 	if (!i915_selftest.mock)
mock              167 drivers/gpu/drm/i915/selftests/i915_selftest.c 	err = run_selftests(mock, NULL);
mock              169 drivers/gpu/drm/i915/selftests/i915_selftest.c 		i915_selftest.mock = err;
mock              173 drivers/gpu/drm/i915/selftests/i915_selftest.c 	if (i915_selftest.mock < 0) {
mock              174 drivers/gpu/drm/i915/selftests/i915_selftest.c 		i915_selftest.mock = -ENOTTY;
mock              358 drivers/gpu/drm/i915/selftests/i915_selftest.c module_param_named_unsafe(mock_selftests, i915_selftest.mock, int, 0400);
mock               40 drivers/gpu/drm/i915/selftests/mock_request.c 	request->mock.delay = delay;
mock               51 drivers/gpu/drm/i915/selftests/mock_request.c 	was_queued = !list_empty(&request->mock.link);
mock               52 drivers/gpu/drm/i915/selftests/mock_request.c 	list_del_init(&request->mock.link);