Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Dmock_dmabuf.c12 struct mock_dmabuf *mock = to_mock(attachment->dmabuf); in mock_map_dma_buf() local
21 err = sg_alloc_table(st, mock->npages, GFP_KERNEL); in mock_map_dma_buf()
26 for (i = 0; i < mock->npages; i++) { in mock_map_dma_buf()
27 sg_set_page(sg, mock->pages[i], PAGE_SIZE, 0); in mock_map_dma_buf()
55 struct mock_dmabuf *mock = to_mock(dma_buf); in mock_dmabuf_release() local
58 for (i = 0; i < mock->npages; i++) in mock_dmabuf_release()
59 put_page(mock->pages[i]); in mock_dmabuf_release()
61 kfree(mock); in mock_dmabuf_release()
66 struct mock_dmabuf *mock = to_mock(dma_buf); in mock_dmabuf_vmap() local
68 return vm_map_ram(mock->pages, mock->npages, 0); in mock_dmabuf_vmap()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dmock_engine.c88 mock.link); in first_request()
93 list_del_init(&request->mock.link); in advance()
118 if (request->mock.delay) { in hw_delay_complete()
120 jiffies + request->mock.delay); in hw_delay_complete()
202 INIT_LIST_HEAD(&request->mock.link); in mock_request_alloc()
203 request->mock.delay = 0; in mock_request_alloc()
228 list_add_tail(&request->mock.link, &engine->hw_queue); in mock_submit_request()
229 if (list_is_first(&request->mock.link, &engine->hw_queue)) { in mock_submit_request()
230 if (request->mock.delay) in mock_submit_request()
232 jiffies + request->mock.delay); in mock_submit_request()
[all …]
Dselftest_lrc.c2732 rq->mock.link.next = &(*prev)->mock.link; in create_gang()
2973 struct i915_request *n = list_next_entry(rq, mock.link); in live_preempt_gang()
/kernel/linux/linux-5.10/tools/testing/kunit/
Dkunit_tool_test.py10 from unittest import mock
179 print_mock = mock.patch('builtins.print').start()
294 self.print_mock = mock.patch('builtins.print').start()
295 self.addCleanup(mock.patch.stopall)
297 self.linux_source_mock = mock.Mock()
298 self.linux_source_mock.build_reconfig = mock.Mock(return_value=True)
299 self.linux_source_mock.build_um_kernel = mock.Mock(return_value=True)
300 self.linux_source_mock.run_kernel = mock.Mock(return_value=all_passed_log)
329 self.linux_source_mock.run_kernel = mock.Mock(return_value=[])
336 self.linux_source_mock.run_kernel = mock.Mock(return_value=[])
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_selftest.c70 int (*mock)(void); member
75 #define selftest(n, f) [mock_##n] = { .name = #n, { .mock = f } },
162 err = st->mock(); in __run_selftests()
184 if (!i915_selftest.mock) in i915_mock_selftests()
187 err = run_selftests(mock, NULL); in i915_mock_selftests()
189 i915_selftest.mock = err; in i915_mock_selftests()
193 if (i915_selftest.mock < 0) { in i915_mock_selftests()
194 i915_selftest.mock = -ENOTTY; in i915_mock_selftests()
432 module_param_named_unsafe(mock_selftests, i915_selftest.mock, int, 0400);
Dmock_request.c40 request->mock.delay = delay; in mock_request()
51 was_queued = !list_empty(&request->mock.link); in mock_cancel_request()
52 list_del_init(&request->mock.link); in mock_cancel_request()
/kernel/linux/build/test/fuzztest/sched/endscene_fuzzer/
DBUILD.gn24 "//foundation/multimedia/image_framework/mock/native/include/log",
39 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
/kernel/linux/build/test/fuzztest/sched/beginframefreq_fuzzer/
DBUILD.gn25 "//foundation/multimedia/image_framework/mock/native/include/log",
40 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
/kernel/linux/build/test/fuzztest/sched/endframefreq_fuzzer/
DBUILD.gn25 "//foundation/multimedia/image_framework/mock/native/include/log",
40 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
/kernel/linux/build/test/fuzztest/sched/setmargin_fuzzer/
DBUILD.gn24 "//foundation/multimedia/image_framework/mock/native/include/log",
39 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
/kernel/linux/build/test/fuzztest/sched/addthreadtortg_fuzzer/
DBUILD.gn25 "//foundation/multimedia/image_framework/mock/native/include/log",
40 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
/kernel/linux/build/test/fuzztest/sched/searchrtgfortid_fuzzer/
DBUILD.gn25 "//foundation/multimedia/image_framework/mock/native/include/log",
40 "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
/kernel/linux/linux-5.10/drivers/net/dsa/
DKconfig20 tristate "DSA mock-up Ethernet switch chip support"
24 This enables support for a fake mock-up switch chip which
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_selftest.h37 int mock; member
Di915_request.h292 } mock;)
/kernel/linux/linux-5.10/Documentation/dev-tools/kunit/
Dusage.rst153 struct mock *mock = ctx->mock;
159 ret = mock->do_expect(mock,
Dindex.rst22 KUnit is heavily inspired by JUnit, Python's unittest.mock, and