Lines Matching full:device

8 #include <zephyr/device.h>
28 /* A device without init call */
32 /* To access from userspace, the device needs an API. Use a dummy GPIO one */
43 * @brief Test cases to verify device objects
45 * Verify zephyr device driver apis with different device types
47 * @defgroup kernel_device_tests Device
55 * @brief Test device object binding
57 * Validates device binding for an existing and a non-existing device object.
58 * It creates a dummy_driver device object with basic init and configuration
62 * 1. A non-existing device object.
63 * 2. An existing device object with basic init and configuration information.
64 * 3. A failed init device object.
70 ZTEST(device, test_dummy_device) in ZTEST() argument
72 const struct device *dev; in ZTEST()
74 /* Validates device binding for a non-existing device object */ in ZTEST()
78 /* Validates device binding for an existing device object */ in ZTEST()
82 /* Validates device binding for an existing device object */ in ZTEST()
86 /* device_get_binding() returns false for device object in ZTEST()
94 * @brief Test device binding for existing device
96 * Validates device binding for an existing device object.
100 ZTEST_USER(device, test_dynamic_name) in ZTEST_USER() argument
102 const struct device *mux; in ZTEST_USER()
111 * @brief Test device binding for non-existing device
113 * Validates binding of a random device driver(non-defined driver) named
118 ZTEST_USER(device, test_bogus_dynamic_name) in ZTEST_USER() argument
120 const struct device *mux; in ZTEST_USER()
129 * @brief Test device binding for passing null name
131 * Validates device binding for device object when given dynamic name is null.
135 ZTEST_USER(device, test_null_dynamic_name) in ZTEST_USER() argument
141 const struct device *mux; in ZTEST_USER()
215 ZTEST(device, test_pre_kernel_detection) in ZTEST() argument
246 * @brief Test system device list query API.
253 ZTEST(device, test_device_list) in ZTEST() argument
255 struct device const *devices; in ZTEST()
274 ZTEST(device, test_sys_init_multiple) in ZTEST() argument
287 * @brief Test initialization level for device driver instances
289 * @details After the defined device instances have initialized, we check the
296 ZTEST(device, test_device_init_level) in ZTEST() argument
314 * @brief Test initialization priorities for device driver instances
316 * @details After the defined device instances have initialized, we check the
323 ZTEST(device, test_device_init_priority) in ZTEST() argument
341 * @brief Test initialization sub-priorities for device driver instances
343 * @details After the defined device instances have initialized, we check the
350 ZTEST(device, test_device_init_sub_priority) in ZTEST() argument
361 * @brief Test abstraction of device drivers with common functionalities
363 * @details Abstraction of device drivers with common functionalities
365 * and device drivers, where such interface is implemented by individual
366 * device drivers. We verify this by following step:
375 ZTEST(device, test_abstraction_driver_common) in ZTEST() argument
377 const struct device *dev; in ZTEST()
404 ZTEST(device, test_deferred_init) in ZTEST() argument
416 ZTEST(device, test_device_api) in ZTEST() argument
418 const struct device *dev; in ZTEST()
430 ZTEST_USER(device, test_deferred_init_user) in ZTEST_USER() argument
455 ZTEST_SUITE(device, NULL, user_setup, NULL, NULL, NULL);