Searched refs:fake_device (Results 1 – 3 of 3) sorted by relevance
177 struct fake_device { struct185 struct fake_device *fake_dev; in hid_test_uclogic_params_cleanup_event_hooks() argument191 fake_dev = kunit_kzalloc(test, sizeof(struct fake_device), GFP_KERNEL); in hid_test_uclogic_params_cleanup_event_hooks()
1057 struct fake_driver *fake_device; in fake_init() local1082 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()
849 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!");