Lines Matching refs:dev_id

96 #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)  argument
141 #define DEVICE_DEFINE(dev_id, name, init_fn, pm, data, config, level, prio, \ argument
143 Z_DEVICE_STATE_DEFINE(dev_id); \
144 Z_DEVICE_DEFINE(DT_INVALID_NODE, dev_id, name, init_fn, pm, data, \
146 &Z_DEVICE_STATE_NAME(dev_id))
333 #define DEVICE_GET(dev_id) (&DEVICE_NAME_GET(dev_id)) argument
349 #define DEVICE_DECLARE(dev_id) \ argument
350 static const struct device DEVICE_NAME_GET(dev_id)
369 #define DEVICE_INIT_GET(dev_id) (&Z_INIT_ENTRY_NAME(DEVICE_NAME_GET(dev_id))) argument
791 #define Z_DEVICE_STATE_NAME(dev_id) _CONCAT(__devstate_, dev_id) argument
798 #define Z_DEVICE_STATE_DEFINE(dev_id) \ argument
799 static Z_DECL_ALIGN(struct device_state) Z_DEVICE_STATE_NAME(dev_id) \
810 #define Z_DEVICE_DEPS_NAME(dev_id) _CONCAT(__devicedeps_, dev_id) argument
865 #define Z_DEVICE_DEPS_DEFINE(node_id, dev_id, ...) \ argument
867 dev_id)[]; \
870 Z_DEVICE_DEPS_NAME(dev_id)[] = { \
957 #define Z_DEVICE_DT_METADATA_NAME_GET(dev_id) UTIL_CAT(__dev_dt_meta_, dev_id) argument
963 #define Z_DEVICE_DT_NODELABELS_NAME_GET(dev_id) UTIL_CAT(__dev_dt_nodelabels_, dev_id) argument
971 #define Z_DEVICE_DT_METADATA_DEFINE(node_id, dev_id) \ argument
973 Z_DEVICE_DT_NODELABELS_NAME_GET(dev_id) = { \
979 Z_DEVICE_DT_METADATA_NAME_GET(dev_id) = { \
980 .nl = &Z_DEVICE_DT_NODELABELS_NAME_GET(dev_id), \
1077 #define Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, pm, data, config, level, prio, api, state, \ argument
1083 Z_DEVICE_SECTION_NAME(level, prio), DEVICE_NAME_GET(dev_id)) = \
1084 Z_DEVICE_INIT(name, pm, data, config, api, state, deps, node_id, dev_id)
1107 #define Z_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, init_fn_, level, prio) \ argument
1112 Z_INIT_ENTRY_NAME(DEVICE_NAME_GET(dev_id)) = { \
1115 Z_DEVICE_INIT_ENTRY_DEV(node_id, dev_id), \
1118 #define Z_DEFER_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, init_fn_) \ argument
1121 Z_INIT_ENTRY_NAME(DEVICE_NAME_GET(dev_id)) = { \
1124 Z_DEVICE_INIT_ENTRY_DEV(node_id, dev_id), \
1133 # define Z_DEVICE_INIT_ENTRY_DEV(node_id, dev_id) { Z_DEV_ENTRY_DEV(node_id, dev_id) } argument
1135 # define Z_DEVICE_INIT_ENTRY_DEV(node_id, dev_id) Z_DEV_ENTRY_DEV(node_id, dev_id) argument
1138 #define Z_DEV_ENTRY_DEV(node_id, dev_id) \ argument
1139 COND_CODE_1(Z_DEVICE_IS_MUTABLE(node_id), (.dev_rw), (.dev)) = &DEVICE_NAME_GET(dev_id)
1162 #define Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, pm, data, config, \ argument
1167 (Z_DEVICE_DEPS_DEFINE(node_id, dev_id, __VA_ARGS__);)) \
1171 (Z_DEVICE_DT_METADATA_DEFINE(node_id, dev_id);))))\
1173 Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, pm, data, config, level, \
1174 prio, api, state, Z_DEVICE_DEPS_NAME(dev_id)); \
1176 (Z_DEFER_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, \
1178 (Z_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, init_fn, \