Searched refs:mock (Results 1 – 14 of 14) sorted by relevance
/linux/drivers/gpu/drm/i915/gem/selftests/ |
A D | mock_dmabuf.c | 59 put_page(mock->pages[i]); in mock_dmabuf_release() 61 kfree(mock); in mock_dmabuf_release() 69 vaddr = vm_map_ram(mock->pages, mock->npages, 0); in mock_dmabuf_vmap() 100 struct mock_dmabuf *mock; in mock_dmabuf() local 105 mock = kmalloc(sizeof(*mock) + npages * sizeof(struct page *), in mock_dmabuf() 107 if (!mock) in mock_dmabuf() 110 mock->npages = npages; in mock_dmabuf() 113 if (!mock->pages[i]) in mock_dmabuf() 120 exp_info.priv = mock; in mock_dmabuf() 130 put_page(mock->pages[i]); in mock_dmabuf() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | mock_engine.c | 80 mock.link); in first_request() 110 if (request->mock.delay) { in hw_delay_complete() 202 request->mock.delay = 0; in mock_request_alloc() 229 if (request->mock.delay) in mock_submit_request() 277 struct mock_engine *mock = in mock_reset_cancel() local 282 del_timer_sync(&mock->hw_delay); in mock_reset_cancel() 292 list_for_each_entry(rq, &mock->hw_queue, mock.link) { in mock_reset_cancel() 309 struct mock_engine *mock = in mock_engine_release() local 413 struct mock_engine *mock = in mock_engine_flush() local 419 spin_lock_irq(&mock->hw_lock); in mock_engine_flush() [all …]
|
A D | selftest_execlists.c | 2777 rq->mock.link.next = &(*prev)->mock.link; in create_gang() 3013 struct i915_request *n = list_next_entry(rq, mock.link); in live_preempt_gang()
|
/linux/tools/testing/kunit/ |
A D | kunit_tool_test.py | 10 from unittest import mock 211 print_mock = mock.patch('builtins.print').start() 322 mock.patch.object(signal, 'signal').start() 323 self.addCleanup(mock.patch.stopall) 407 self.addCleanup(mock.patch.stopall) 409 self.linux_source_mock = mock.Mock() 538 @mock.patch.object(kunit_kernel, 'LinuxSourceTree') 580 @mock.patch.object(kunit, '_list_tests') 586 mock_tests.assert_called_once_with(mock.ANY, 593 @mock.patch.object(kunit, '_list_tests') [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_selftest.c | 70 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);
|
A D | mock_request.c | 40 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()
|
/linux/tools/testing/cxl/test/ |
A D | mock.c | 12 static LIST_HEAD(mock); 16 list_add_rcu(&ops->list, &mock); in register_cxl_mock_ops() 32 return list_first_or_null_rcu(&mock, struct cxl_mock_ops, list); in get_cxl_mock_ops()
|
A D | Kbuild | 9 cxl_mock-y := mock.o
|
/linux/drivers/net/dsa/ |
A D | Kconfig | 20 tristate "DSA mock-up Ethernet switch chip support" 23 This enables support for a fake mock-up switch chip which
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_selftest.h | 37 int mock; member
|
A D | i915_request.h | 341 } mock;)
|
/linux/Documentation/dev-tools/kunit/ |
A D | usage.rst | 154 struct mock *mock = ctx->mock; 160 ret = mock->do_expect(mock,
|
A D | index.rst | 24 KUnit is heavily inspired by JUnit, Python's unittest.mock, and
|
/linux/Documentation/networking/ |
A D | nexthop-group-resilient.rst | 278 The netdevsim driver implements a mock offload of resilient groups, and
|
Completed in 28 milliseconds