Lines Matching refs:dev_id
3243 #define NET_PROMETHEUS_GET_COLLECTOR_NAME(dev_id, sfx) \ argument
3244 net_stats_##dev_id##_##sfx##_collector
3245 #define NET_PROMETHEUS_INIT(dev_id, sfx) \ argument
3247 (.collector = &NET_PROMETHEUS_GET_COLLECTOR_NAME(dev_id, sfx),))
3249 #define NET_IF_GET_NAME(dev_id, sfx) __net_if_##dev_id##_##sfx argument
3250 #define NET_IF_DEV_GET_NAME(dev_id, sfx) __net_if_dev_##dev_id##_##sfx argument
3252 #define NET_IF_GET(dev_id, sfx) \ argument
3253 ((struct net_if *)&NET_IF_GET_NAME(dev_id, sfx))
3261 #define NET_IF_INIT(dev_id, sfx, _l2, _mtu, _num_configs) \ argument
3263 NET_IF_DEV_GET_NAME(dev_id, sfx)) = { \
3264 .dev = &(DEVICE_NAME_GET(dev_id)), \
3266 .l2_data = &(NET_L2_GET_DATA(dev_id, sfx)), \
3271 NET_IF_GET_NAME(dev_id, sfx)[_num_configs] \
3273 dev_id) = { \
3275 .if_dev = &(NET_IF_DEV_GET_NAME(dev_id, sfx)), \
3281 NET_PROMETHEUS_GET_COLLECTOR_NAME(dev_id, \
3284 NET_IF_GET(dev_id, sfx)); \
3285 NET_STATS_PROMETHEUS(NET_IF_GET(dev_id, sfx), \
3286 dev_id, sfx);))
3288 #define NET_IF_OFFLOAD_INIT(dev_id, sfx, _mtu) \ argument
3290 NET_IF_DEV_GET_NAME(dev_id, sfx)) = { \
3291 .dev = &(DEVICE_NAME_GET(dev_id)), \
3297 NET_IF_GET_NAME(dev_id, sfx)[NET_IF_MAX_CONFIGS] \
3299 dev_id) = { \
3301 .if_dev = &(NET_IF_DEV_GET_NAME(dev_id, sfx)), \
3307 NET_PROMETHEUS_GET_COLLECTOR_NAME(dev_id, \
3310 NET_IF_GET(dev_id, sfx)); \
3311 NET_STATS_PROMETHEUS(NET_IF_GET(dev_id, sfx), \
3312 dev_id, sfx);))
3319 #define Z_NET_DEVICE_INIT_INSTANCE(node_id, dev_id, name, instance, \ argument
3322 Z_DEVICE_STATE_DEFINE(dev_id); \
3323 Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, pm, data, \
3325 &Z_DEVICE_STATE_NAME(dev_id)); \
3326 NET_L2_DATA_INIT(dev_id, instance, l2_ctx_type); \
3327 NET_IF_INIT(dev_id, instance, l2, mtu, NET_IF_MAX_CONFIGS)
3329 #define Z_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \ argument
3331 Z_NET_DEVICE_INIT_INSTANCE(node_id, dev_id, name, 0, init_fn, \
3354 #define NET_DEVICE_INIT(dev_id, name, init_fn, pm, data, config, prio, \ argument
3356 Z_NET_DEVICE_INIT(DT_INVALID_NODE, dev_id, name, init_fn, pm, \
3417 #define NET_DEVICE_INIT_INSTANCE(dev_id, name, instance, init_fn, pm, \ argument
3420 Z_NET_DEVICE_INIT_INSTANCE(DT_INVALID_NODE, dev_id, name, \
3467 #define Z_NET_DEVICE_OFFLOAD_INIT(node_id, dev_id, name, init_fn, pm, \ argument
3469 Z_DEVICE_STATE_DEFINE(dev_id); \
3470 Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, pm, data, \
3472 &Z_DEVICE_STATE_NAME(dev_id)); \
3473 NET_IF_OFFLOAD_INIT(dev_id, 0, mtu)
3494 #define NET_DEVICE_OFFLOAD_INIT(dev_id, name, init_fn, pm, data, \ argument
3496 Z_NET_DEVICE_OFFLOAD_INIT(DT_INVALID_NODE, dev_id, name, \