Home
last modified time | relevance | path

Searched refs:init_fn (Results 1 – 17 of 17) sorted by relevance

/Zephyr-Core-3.7.0/include/zephyr/
Dinit.h105 union init_function init_fn; member
222 #define SYS_INIT(init_fn, level, prio) \ argument
223 SYS_INIT_NAMED(init_fn, init_fn, level, prio)
241 Z_INIT_ENTRY_NAME(name) = {.init_fn = {.sys = (init_fn_)}, \
Ddevice.h134 #define DEVICE_DEFINE(dev_id, name, init_fn, pm, data, config, level, prio, \ argument
137 Z_DEVICE_DEFINE(DT_INVALID_NODE, dev_id, name, init_fn, pm, data, \
195 #define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \ argument
199 DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \
1110 .init_fn = {COND_CODE_1(Z_DEVICE_IS_MUTABLE(node_id), (.dev_rw), (.dev)) = \
1119 .init_fn = {COND_CODE_1(Z_DEVICE_IS_MUTABLE(node_id), (.dev_rw), (.dev)) = \
1159 #define Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, pm, data, config, \ argument
1174 init_fn)), \
1175 (Z_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, init_fn, \
/Zephyr-Core-3.7.0/include/zephyr/net/
Dvirtual.h301 #define Z_NET_VIRTUAL_INTERFACE_INIT(node_id, dev_id, name, init_fn, \ argument
303 Z_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \
308 inst, init_fn, pm, data, \ argument
311 init_fn, pm, data, \
337 #define NET_VIRTUAL_INTERFACE_INIT(dev_id, name, init_fn, pm, data, \ argument
340 init_fn, pm, data, config, prio, \
366 init_fn, pm, data, \ argument
370 init_fn, pm, data, config, \
Dethernet.h1143 init_fn, pm, data, config, prio, \ argument
1146 init_fn, pm, data, config, prio, \
1153 init_fn, pm, data, config, prio, \ argument
1156 Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, pm, data, \
1162 #define Z_ETH_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \ argument
1165 init_fn, pm, data, config, prio, \
1187 #define ETH_NET_DEVICE_INIT(dev_id, name, init_fn, pm, data, config, \ argument
1189 Z_ETH_NET_DEVICE_INIT(DT_INVALID_NODE, dev_id, name, init_fn, \
1214 #define ETH_NET_DEVICE_INIT_INSTANCE(dev_id, name, instance, init_fn, \ argument
1217 instance, init_fn, pm, data, \
[all …]
Dnet_if.h3202 init_fn, pm, data, config, prio, \ argument
3205 Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, pm, data, \
3211 #define Z_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \ argument
3213 Z_NET_DEVICE_INIT_INSTANCE(node_id, dev_id, name, 0, init_fn, \
3236 #define NET_DEVICE_INIT(dev_id, name, init_fn, pm, data, config, prio, \ argument
3238 Z_NET_DEVICE_INIT(DT_INVALID_NODE, dev_id, name, init_fn, pm, \
3259 #define NET_DEVICE_DT_DEFINE(node_id, init_fn, pm, data, \ argument
3262 DEVICE_DT_NAME(node_id), init_fn, pm, data, \
3299 #define NET_DEVICE_INIT_INSTANCE(dev_id, name, instance, init_fn, pm, \ argument
3303 instance, init_fn, pm, data, config, \
[all …]
/Zephyr-Core-3.7.0/tests/lib/devicetree/devices/src/
Dmain.c90 zassert_equal(DEVICE_INIT_DT_GET(TEST_GPIO)->init_fn.dev, dev_init); in ZTEST()
91 zassert_equal(DEVICE_INIT_DT_GET(TEST_I2C)->init_fn.dev, dev_init); in ZTEST()
92 zassert_equal(DEVICE_INIT_DT_GET(TEST_DEVA)->init_fn.dev, dev_init); in ZTEST()
93 zassert_equal(DEVICE_INIT_DT_GET(TEST_DEVB)->init_fn.dev, dev_init); in ZTEST()
94 zassert_equal(DEVICE_INIT_DT_GET(TEST_GPIOX)->init_fn.dev, dev_init); in ZTEST()
95 zassert_equal(DEVICE_INIT_DT_GET(TEST_DEVC)->init_fn.dev, dev_init); in ZTEST()
96 zassert_equal(DEVICE_INIT_DT_GET(TEST_PARTITION)->init_fn.dev, dev_init); in ZTEST()
97 zassert_equal(DEVICE_INIT_DT_GET(TEST_GPIO_INJECTED)->init_fn.dev, dev_init); in ZTEST()
98 zassert_equal(DEVICE_INIT_GET(manual_dev)->init_fn.dev, dev_init); in ZTEST()
99 zassert_equal(DEVICE_INIT_DT_GET(TEST_NOLABEL)->init_fn.dev, dev_init); in ZTEST()
/Zephyr-Core-3.7.0/tests/kernel/device/src/
Dmain.c263 static int init_fn(void) in init_fn() function
269 SYS_INIT(init_fn, APPLICATION, 0);
270 SYS_INIT_NAMED(init1, init_fn, APPLICATION, 1);
271 SYS_INIT_NAMED(init2, init_fn, APPLICATION, 2);
272 SYS_INIT_NAMED(init3, init_fn, APPLICATION, 2);
/Zephyr-Core-3.7.0/modules/lvgl/input/
Dlvgl_common_input.c70 #define LV_DEV_INIT(node_id, init_fn) \ argument
72 int ret = init_fn(DEVICE_DT_GET(node_id)); \
/Zephyr-Core-3.7.0/include/zephyr/drivers/i3c/
Ddevicetree.h153 #define I3C_DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \ argument
155 DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Demul.h142 #define EMUL_DT_DEFINE(node_id, init_fn, data_ptr, cfg_ptr, bus_api, _backend_api) \ argument
150 .init = (init_fn), \
Dcan.h729 #define Z_CAN_INIT_FN(dev_id, init_fn) \ argument
737 if (!is_null_no_warn(init_fn)) { \
738 return init_fn(dev); \
766 #define CAN_DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \ argument
769 Z_CAN_INIT_FN(Z_DEVICE_DT_DEV_ID(node_id), init_fn) \
789 #define CAN_DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \ argument
791 DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \
Dsmbus.h441 #define Z_SMBUS_INIT_FN(dev_name, init_fn) \ argument
452 return init_fn(dev); \
504 #define SMBUS_DEVICE_DT_DEFINE(node_id, init_fn, pm_device, \ argument
509 Z_SMBUS_INIT_FN(Z_DEVICE_DT_DEV_NAME(node_id), init_fn) \
530 #define SMBUS_DEVICE_DT_DEFINE(node_id, init_fn, pm_device, \ argument
533 DEVICE_DT_DEFINE(node_id, &init_fn, pm_device, \
Dspi.h510 #define Z_SPI_INIT_FN(dev_id, init_fn) \ argument
518 return init_fn(dev); \
540 #define SPI_DEVICE_DT_DEFINE(node_id, init_fn, pm_device, \ argument
544 Z_SPI_INIT_FN(Z_DEVICE_DT_DEV_ID(node_id), init_fn) \
578 #define SPI_DEVICE_DT_DEFINE(node_id, init_fn, pm, \ argument
583 DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \
Di2c.h608 #define Z_I2C_INIT_FN(dev_id, init_fn) \ argument
616 if (!is_null_no_warn(init_fn)) { \
617 return init_fn(dev); \
652 #define I2C_DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \ argument
655 Z_I2C_INIT_FN(Z_DEVICE_DT_DEV_ID(node_id), init_fn) \
673 #define I2C_DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \ argument
675 DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, \
Dsensor.h1395 #define SENSOR_DEVICE_DT_DEFINE(node_id, init_fn, pm_device, \ argument
1398 DEVICE_DT_DEFINE(node_id, init_fn, pm_device, \
/Zephyr-Core-3.7.0/include/zephyr/sensing/
Dsensing_sensor.h370 init_fn, pm_device, \ argument
373 SENSOR_DEVICE_DT_DEFINE(node, init_fn, pm_device, \
/Zephyr-Core-3.7.0/kernel/
Dinit.c311 if (entry->init_fn.dev != NULL) { in do_device_init()
312 rc = entry->init_fn.dev(dev); in do_device_init()
372 result = entry->init_fn.sys(); in z_sys_init_run_level()