Home
last modified time | relevance | path

Searched refs:fake_device (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/hid/
H A Dhid-uclogic-params-test.c177 struct fake_device { struct
185 struct fake_device *fake_dev; in hid_test_uclogic_params_cleanup_event_hooks() argument
191 fake_dev = kunit_kzalloc(test, sizeof(struct fake_device), GFP_KERNEL); in hid_test_uclogic_params_cleanup_event_hooks()
/linux/drivers/staging/vme_user/
H A Dvme_fake.c1057 struct fake_driver *fake_device; in fake_init() local
1082 fake_device = kzalloc(sizeof(*fake_device), GFP_KERNEL); in fake_init()
1083 if (!fake_device) { in fake_init()
1088 fake_bridge->driver_priv = fake_device; in fake_init()
1092 fake_device->parent = fake_bridge; in fake_init()
1095 mutex_init(&fake_device->vme_int); in fake_init()
1097 tasklet_init(&fake_device->int_tasklet, fake_VIRQ_tasklet, in fake_init()
1229 kfree(fake_device); in fake_init()
/linux/Documentation/dev-tools/kunit/
H A Dusage.rst849 struct device *fake_device;
853 fake_device = kunit_device_register(test, "my_device");
854 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fake_device)
857 dev_managed_string = devm_kstrdup(fake_device, "Hello, World!");