Lines Matching full:kunit

3  * KUnit-managed device implementation
6 * lifecycle is managed by KUnit.
15 #include <kunit/test.h>
16 #include <kunit/device.h>
17 #include <kunit/resource.h>
25 /* The root device for the KUnit bus, parent of all kunit_devices. */
28 /* A device owned by a KUnit test. */
31 /* The KUnit test which owns this device. */
32 struct kunit *owner;
33 /* If the driver is managed by KUnit and unique to this device. */
40 .name = "kunit",
48 kunit_bus_device = root_device_register("kunit"); in kunit_bus_init()
58 /* Unregister the 'kunit_bus' in case the KUnit module is unloaded. */
72 /* Release a 'fake' KUnit device. */
79 * Create and register a KUnit-managed struct device_driver on the kunit_bus.
82 struct device_driver *kunit_driver_create(struct kunit *test, const char *name) in kunit_driver_create()
108 static struct kunit_device *kunit_device_register_internal(struct kunit *test, in kunit_device_register_internal()
146 * Create and register a new KUnit-managed device, using the user-supplied device_driver.
149 struct device *kunit_device_register_with_driver(struct kunit *test, in kunit_device_register_with_driver()
163 * Create and register a new KUnit-managed device, including a matching device_driver.
166 struct device *kunit_device_register(struct kunit *test, const char *name) in kunit_device_register()
189 /* Unregisters a KUnit-managed device early (including the driver, if automatically created). */
190 void kunit_device_unregister(struct kunit *test, struct device *dev) in kunit_device_unregister()