/Zephyr-latest/include/zephyr/net/ |
D | net_stats.h | 883 #define NET_STATS_GET_COLLECTOR_NAME(dev_id, sfx) net_stats_##dev_id##_##sfx##_collector argument 884 #define NET_STATS_GET_VAR(dev_id, sfx, var) zephyr_net_##var argument 885 #define NET_STATS_GET_INSTANCE(dev_id, sfx, _not_used) STRINGIFY(_##dev_id##_##sfx) argument 922 #define NET_STATS_PROMETHEUS_IPV6(iface, dev_id, sfx) \ argument 925 NET_STATS_GET_INSTANCE(dev_id, sfx, ipv6_sent), \ 927 NET_STATS_GET_COLLECTOR_NAME(dev_id, sfx), \ 928 NET_STATS_GET_VAR(dev_id, sfx, ipv6_sent), \ 932 NET_STATS_GET_INSTANCE(dev_id, sfx, ipv6_recv), \ 934 NET_STATS_GET_COLLECTOR_NAME(dev_id, sfx), \ 935 NET_STATS_GET_VAR(dev_id, sfx, ipv6_recv), \ [all …]
|
D | conn_mgr_connectivity_impl.h | 151 #define CONN_MGR_CONN_BINDING_GET_NAME(dev_id, sfx) __conn_mgr_bndg_##dev_id##_##sfx argument 152 #define CONN_MGR_CONN_BINDING_GET_DATA(dev_id, sfx) __conn_mgr_bndg_data_##dev_id##_##sfx argument 153 #define CONN_MGR_CONN_BINDING_GET_MUTEX(dev_id, sfx) __conn_mgr_bndg_mutex_##dev_id##_##sfx argument 213 #define CONN_MGR_BIND_CONN_INST(dev_id, inst, conn_id) \ argument 214 K_MUTEX_DEFINE(CONN_MGR_CONN_BINDING_GET_MUTEX(dev_id, inst)); \ 216 CONN_MGR_CONN_BINDING_GET_DATA(dev_id, inst); \ 218 CONN_MGR_CONN_BINDING_GET_NAME(dev_id, inst)) = { \ 219 .iface = NET_IF_GET(dev_id, inst), \ 221 .ctx = &(CONN_MGR_CONN_BINDING_GET_DATA(dev_id, inst)), \ 222 .mutex = &(CONN_MGR_CONN_BINDING_GET_MUTEX(dev_id, inst)) \ [all …]
|
D | virtual.h | 304 #define Z_NET_VIRTUAL_INTERFACE_INIT(node_id, dev_id, name, init_fn, \ argument 306 Z_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \ 310 #define Z_NET_VIRTUAL_INTERFACE_INIT_INSTANCE(node_id, dev_id, name, \ argument 313 Z_NET_DEVICE_INIT_INSTANCE(node_id, dev_id, name, inst, \ 340 #define NET_VIRTUAL_INTERFACE_INIT(dev_id, name, init_fn, pm, data, \ argument 342 Z_NET_VIRTUAL_INTERFACE_INIT(DT_INVALID_NODE, dev_id, name, \ 368 #define NET_VIRTUAL_INTERFACE_INIT_INSTANCE(dev_id, name, inst, \ argument 371 Z_NET_VIRTUAL_INTERFACE_INIT_INSTANCE(DT_INVALID_NODE, dev_id, \
|
D | net_if.h | 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)) = { \ [all …]
|
/Zephyr-latest/include/zephyr/ |
D | device.h | 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 [all …]
|
/Zephyr-latest/drivers/hwinfo/ |
D | hwinfo_sam0.c | 20 struct sam0_uid dev_id; in z_impl_hwinfo_get_device_id() local 22 dev_id.id[0] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 24 dev_id.id[1] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 26 dev_id.id[2] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 28 dev_id.id[3] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 31 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 32 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 35 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_imxrt.c | 18 struct imxrt_uid dev_id; in z_impl_hwinfo_get_device_id() local 21 dev_id.id[0] = sys_cpu_to_be32(OCOTP->FUSEN[17].FUSE); in z_impl_hwinfo_get_device_id() 22 dev_id.id[1] = sys_cpu_to_be32(OCOTP->FUSEN[16].FUSE); in z_impl_hwinfo_get_device_id() 24 dev_id.id[0] = sys_cpu_to_be32(OCOTP->CFG2); in z_impl_hwinfo_get_device_id() 25 dev_id.id[1] = sys_cpu_to_be32(OCOTP->CFG1); in z_impl_hwinfo_get_device_id() 28 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 29 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 32 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_numaker.c | 18 struct numaker_uid dev_id; in z_impl_hwinfo_get_device_id() local 23 dev_id.id[0] = sys_cpu_to_be32(FMC_ReadUID(0)); in z_impl_hwinfo_get_device_id() 24 dev_id.id[1] = sys_cpu_to_be32(FMC_ReadUID(1)); in z_impl_hwinfo_get_device_id() 25 dev_id.id[2] = sys_cpu_to_be32(FMC_ReadUID(2)); in z_impl_hwinfo_get_device_id() 27 length = MIN(length, sizeof(dev_id.id)); in z_impl_hwinfo_get_device_id() 28 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_numaker_rmc.c | 18 struct numaker_uid dev_id; in z_impl_hwinfo_get_device_id() local 23 dev_id.id[0] = sys_cpu_to_be32(RMC_ReadUID(0)); in z_impl_hwinfo_get_device_id() 24 dev_id.id[1] = sys_cpu_to_be32(RMC_ReadUID(1)); in z_impl_hwinfo_get_device_id() 25 dev_id.id[2] = sys_cpu_to_be32(RMC_ReadUID(2)); in z_impl_hwinfo_get_device_id() 27 length = MIN(length, sizeof(dev_id.id)); in z_impl_hwinfo_get_device_id() 28 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_mcux_syscon.c | 22 struct uid dev_id; in z_impl_hwinfo_get_device_id() local 29 dev_id.id[i] = sys_cpu_to_be32(uid_addr[i]); in z_impl_hwinfo_get_device_id() 32 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 33 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 36 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_stm32.c | 24 struct stm32_uid dev_id; in z_impl_hwinfo_get_device_id() local 30 dev_id.id[0] = sys_cpu_to_be32(LL_GetUID_Word2()); in z_impl_hwinfo_get_device_id() 31 dev_id.id[1] = sys_cpu_to_be32(LL_GetUID_Word1()); in z_impl_hwinfo_get_device_id() 32 dev_id.id[2] = sys_cpu_to_be32(LL_GetUID_Word0()); in z_impl_hwinfo_get_device_id() 38 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 39 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 42 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_nrf.c | 27 struct nrf_uid dev_id; in z_impl_hwinfo_get_device_id() local 54 dev_id.id[0] = sys_cpu_to_be32(buf[1]); in z_impl_hwinfo_get_device_id() 55 dev_id.id[1] = sys_cpu_to_be32(buf[0]); in z_impl_hwinfo_get_device_id() 57 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 58 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 61 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | mspi.h | 431 const struct mspi_dev_id *dev_id; member 477 const struct mspi_dev_id *dev_id, 484 const struct mspi_dev_id *dev_id, 488 const struct mspi_dev_id *dev_id, 494 const struct mspi_dev_id *dev_id, 498 const struct mspi_dev_id *dev_id, 502 const struct mspi_dev_id *dev_id, const uint32_t param_mask, 579 const struct mspi_dev_id *dev_id, 584 const struct mspi_dev_id *dev_id, in z_impl_mspi_dev_config() argument 590 return api->dev_config(controller, dev_id, param_mask, cfg); in z_impl_mspi_dev_config() [all …]
|
/Zephyr-latest/include/zephyr/pm/ |
D | device.h | 273 #define Z_PM_DEVICE_NAME(dev_id) _CONCAT(__pm_device_, dev_id) argument 287 #define Z_PM_DEVICE_DEFINE_SLOT(dev_id) \ argument 289 _CONCAT(__pm_slot_, dev_id)) 291 #define Z_PM_DEVICE_DEFINE_SLOT(dev_id) argument 302 #define Z_PM_DEVICE_DEFINE(node_id, dev_id, pm_action_cb, isr_safe) \ argument 303 Z_PM_DEVICE_DEFINE_SLOT(dev_id); \ 305 Z_PM_DEVICE_NAME(dev_id) = \ 306 Z_PM_DEVICE_INIT(Z_PM_DEVICE_NAME(dev_id), node_id, \ 314 #define Z_PM_DEVICE_GET(dev_id) ((struct pm_device_base *)&Z_PM_DEVICE_NAME(dev_id)) argument 317 #define Z_PM_DEVICE_DEFINE(node_id, dev_id, pm_action_cb, isr_safe) argument [all …]
|
/Zephyr-latest/drivers/mspi/ |
D | mspi_emul.c | 49 const struct mspi_dev_id *dev_id; member 77 const struct mspi_dev_id *dev_id) in mspi_verify_device() argument 85 if (dev_id->ce.port == data->mspicfg.ce_group[i].port && in mspi_verify_device() 86 dev_id->ce.pin == data->mspicfg.ce_group[i].pin && in mspi_verify_device() 87 dev_id->ce.dt_flags == data->mspicfg.ce_group[i].dt_flags) { in mspi_verify_device() 93 device_index != dev_id->dev_idx) { in mspi_verify_device() 98 if (dev_id->dev_idx >= data->mspicfg.num_periph) { in mspi_verify_device() 400 evt->evt_data.dev_id = ctx->owner; in emul_mspi_trigger_event() 509 const struct mspi_dev_id *dev_id, in mspi_emul_dev_config() argument 516 if (data->dev_id != dev_id) { in mspi_emul_dev_config() [all …]
|
D | mspi_ambiq_ap3.c | 63 struct mspi_dev_id *dev_id; member 273 const struct mspi_dev_id *dev_id) in mspi_verify_device() argument 280 if (dev_id->ce.port == cfg->mspicfg.ce_group[i].port && in mspi_verify_device() 281 dev_id->ce.pin == cfg->mspicfg.ce_group[i].pin && in mspi_verify_device() 282 dev_id->ce.dt_flags == cfg->mspicfg.ce_group[i].dt_flags) { in mspi_verify_device() 288 device_index != dev_id->dev_idx) { in mspi_verify_device() 521 const struct mspi_dev_id *dev_id, in mspi_ambiq_dev_config() argument 530 if (data->dev_id != dev_id) { in mspi_ambiq_dev_config() 536 ret = mspi_verify_device(controller, dev_id); in mspi_ambiq_dev_config() 550 data->dev_id = (struct mspi_dev_id *)dev_id; in mspi_ambiq_dev_config() [all …]
|
/Zephyr-latest/tests/bluetooth/shell/ |
D | run-bsim.sh | 36 for dev_id in $(seq 1 ${num_devices}); do 37 echo "Start device $dev_id" 38 $image -s=shell-sim -d=$dev_id -RealEncryption=1 -rs=$dev_id -attach_uart -wait_uart &
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | probe_rs.py | 14 dev_id=None, argument 24 if dev_id is not None: 25 self.args += ['--probe', dev_id] 39 dev_id=True, 63 dev_id=args.dev_id,
|
D | ezflashcli.py | 15 def __init__(self, cfg, tool, dev_id=None, tool_opt=None, erase=False, reset=True): argument 20 self.dev_id = dev_id 35 return RunnerCaps(commands={'flash'}, dev_id=True, tool_opt=True, erase=True, reset=True) 55 return EzFlashCliBinaryRunner(cfg, tool=args.tool, dev_id=args.dev_id, 70 if self.dev_id is not None:
|
D | silabs_commander.py | 21 def __init__(self, cfg, device, dev_id, commander, dt_flash, erase, speed, tool_opt): argument 29 self.dev_id = dev_id 46 dev_id=True, flash_addr=True, erase=True, 74 dev_id=args.dev_id, 87 if self.dev_id: 88 opts.extend(['--serialno', self.dev_id])
|
D | dfu.py | 19 def __init__(self, cfg, dev_id, alt, img, exe='dfu-util', argument 23 self.dev_id = dev_id # Used only for error checking in do_run 45 return RunnerCaps(commands={'flash'}, dev_id=True, flash_addr=True) 92 ret = DfuUtilBinaryRunner(cfg, args.dev_id, args.alt, args.img, 111 if not self.dev_id:
|
/Zephyr-latest/tests/drivers/mspi/api/src/ |
D | main.c | 47 static struct mspi_dev_id dev_id[] = { variable 84 ret = mspi_dev_config(mspi_bus, &dev_id[dev_idx], in ZTEST() 89 ret = mspi_xip_config(mspi_bus, &dev_id[dev_idx], &xip_cfg[dev_idx]); in ZTEST() 94 ret = mspi_scramble_config(mspi_bus, &dev_id[dev_idx], &scramble_cfg[dev_idx]); in ZTEST() 102 ret = mspi_timing_config(mspi_bus, &dev_id[dev_idx], timing_cfg_mask, &timing_cfg); in ZTEST() 106 ret = mspi_register_callback(mspi_bus, &dev_id[dev_idx], in ZTEST()
|
/Zephyr-latest/include/zephyr/net/conn_mgr/ |
D | connectivity_wifi_mgmt.h | 31 #define CONNECTIVITY_WIFI_MGMT_BIND(dev_id) \ argument 34 CONN_MGR_BIND_CONN(dev_id, CONNECTIVITY_WIFI_MGMT)))
|
/Zephyr-latest/drivers/memc/ |
D | memc_mspi_aps6404l.c | 44 struct mspi_dev_id dev_id; member 96 ret = mspi_transceive(cfg->bus, &cfg->dev_id, (const struct mspi_xfer *)&data->trans); in memc_mspi_aps6404l_command_write() 129 ret = mspi_transceive(cfg->bus, &cfg->dev_id, (const struct mspi_xfer *)&data->trans); in memc_mspi_aps6404l_command_read() 147 while (mspi_dev_config(cfg->bus, &cfg->dev_id, in acquire() 152 while (mspi_dev_config(cfg->bus, &cfg->dev_id, in acquire() 229 mspi_dev_config(cfg->bus, &cfg->dev_id, MSPI_DEVICE_CONFIG_FREQUENCY, in memc_mspi_aps6404l_half_sleep_exit() 243 ret = mspi_dev_config(cfg->bus, &cfg->dev_id, MSPI_DEVICE_CONFIG_FREQUENCY, in memc_mspi_aps6404l_half_sleep_exit() 297 if (mspi_dev_config(cfg->bus, &cfg->dev_id, MSPI_DEVICE_CONFIG_ALL, in memc_mspi_aps6404l_init() 313 if (mspi_dev_config(cfg->bus, &cfg->dev_id, MSPI_DEVICE_CONFIG_ALL, &cfg->serial_cfg)) { in memc_mspi_aps6404l_init() 340 if (mspi_dev_config(cfg->bus, &cfg->dev_id, MSPI_DEVICE_CONFIG_ALL, &cfg->tar_dev_cfg)) { in memc_mspi_aps6404l_init() [all …]
|
/Zephyr-latest/samples/drivers/mspi/mspi_async/src/ |
D | main.c | 138 struct mspi_dev_id dev_id = MSPI_DEVICE_ID_DT(MSPI_TARGET); in main() local 149 ret = mspi_dev_config(controller, &dev_id, MSPI_DEVICE_CONFIG_NONE, NULL); in main() 158 ret = mspi_register_callback(controller, &dev_id, MSPI_BUS_XFER_COMPLETE, in main() 165 ret = mspi_transceive(controller, &dev_id, &xfer1); in main() 174 ret = mspi_register_callback(controller, &dev_id, MSPI_BUS_XFER_COMPLETE, in main() 181 ret = mspi_transceive(controller, &dev_id, &xfer2); in main()
|