| /subsys/pm/policy/ |
| A D | policy_device_lock.c | 25 #define PM_CONSTRAINTS_NAME(node_id) _CONCAT(__devicepmconstraints_, node_id) argument 34 .state = PM_STATE_DT_INIT(node_id), \ 35 .substate_id = DT_PROP_OR(node_id, substate_id, 0), \ 42 COND_CODE_1(DT_NODE_HAS_STATUS_OKAY(DT_PHANDLE_BY_IDX(node_id, \ 44 (PM_STATE_CONSTRAINT_INIT(DT_PHANDLE_BY_IDX(node_id, \ 53 PM_STATE_CONSTRAINT_DEFINE, (), node_id) \ 59 #define CONSTRAINTS_DEFINE(node_id) \ argument 61 PM_CONSTRAINTS_NAME(node_id)[] = \ 62 PM_STATE_CONSTRAINTS_DEFINE(node_id); 66 (CONSTRAINTS_DEFINE(node_id))) [all …]
|
| A D | policy_state_lock.c | 17 #define DT_SUB_LOCK_INIT(node_id) \ argument 18 { .state = PM_STATE_DT_INIT(node_id), \ 19 .substate_id = DT_PROP_OR(node_id, substate_id, 0), \ 20 .exit_latency_us = DT_PROP_OR(node_id, exit_latency_us, 0), \
|
| /subsys/bluetooth/mesh/ |
| A D | priv_beacon_srv.c | 138 uint16_t net_idx, uint8_t node_id) in node_id_status_rsp() argument 145 net_buf_simple_add_u8(&buf, node_id); in node_id_status_rsp() 154 uint8_t node_id, status; in handle_node_id_get() local 160 node_id_status_rsp(mod, ctx, status, net_idx, node_id); in handle_node_id_get() 169 uint8_t node_id, status; in handle_node_id_set() local 173 node_id = net_buf_simple_pull_u8(buf); in handle_node_id_set() 174 if (node_id != BT_MESH_NODE_IDENTITY_RUNNING && in handle_node_id_set() 175 node_id != BT_MESH_NODE_IDENTITY_STOPPED) { in handle_node_id_set() 176 LOG_ERR("Invalid node ID value 0x%02x", node_id); in handle_node_id_set() 180 status = bt_mesh_subnet_priv_node_id_set(net_idx, node_id); in handle_node_id_set() [all …]
|
| A D | subnet.c | 566 enum bt_mesh_feat_state node_id) in bt_mesh_subnet_node_id_set() argument 590 subnets[i].priv_beacon_ctx.node_id) { in bt_mesh_subnet_node_id_set() 596 if (node_id) { in bt_mesh_subnet_node_id_set() 608 enum bt_mesh_feat_state *node_id) in bt_mesh_subnet_node_id_get() argument 614 *node_id = 0x00; in bt_mesh_subnet_node_id_get() 618 *node_id = sub->node_id; in bt_mesh_subnet_node_id_get() 620 *node_id &= !sub->priv_beacon_ctx.node_id; in bt_mesh_subnet_node_id_get() 653 !subnets[i].priv_beacon_ctx.node_id) { in bt_mesh_subnet_priv_node_id_set() 682 if (sub->node_id == BT_MESH_FEATURE_ENABLED && sub->priv_beacon_ctx.node_id) { in bt_mesh_subnet_priv_node_id_get() 683 *priv_node_id = sub->node_id; in bt_mesh_subnet_priv_node_id_get() [all …]
|
| A D | priv_beacon_cli.c | 94 uint8_t status, node_id; in handle_node_id_status() local 99 node_id = net_buf_simple_pull_u8(buf); in handle_node_id_status() 101 if (node_id != BT_MESH_NODE_IDENTITY_STOPPED && in handle_node_id_status() 102 node_id != BT_MESH_NODE_IDENTITY_RUNNING && in handle_node_id_status() 103 node_id != BT_MESH_NODE_IDENTITY_NOT_SUPPORTED) { in handle_node_id_status() 104 LOG_WRN("Invalid node ID value 0x%02x", node_id); in handle_node_id_status() 112 rsp->state = node_id; in handle_node_id_status() 121 .state = node_id, in handle_node_id_status()
|
| A D | subnet.h | 58 uint8_t node_id; /* Node Identity State */ member 67 bool node_id; /* Private Node Identity enabled */ member
|
| A D | proxy_srv.c | 374 sub->node_id = BT_MESH_NODE_IDENTITY_RUNNING; in identity_enabled() 387 sub->priv_beacon_ctx.node_id = false; in node_id_start() 396 sub->priv_beacon_ctx.node_id = true; in private_node_id_start() 416 sub->node_id = BT_MESH_NODE_IDENTITY_STOPPED; in bt_mesh_proxy_identity_stop() 644 return (sub->node_id == BT_MESH_NODE_IDENTITY_RUNNING || in is_sub_proxy_active() 679 if (sub->node_id == BT_MESH_NODE_IDENTITY_RUNNING) { in proxy_adv_timeout_eval() 744 if (sub->node_id == BT_MESH_NODE_IDENTITY_RUNNING) { in proxy_adv_request_get() 748 sub->priv_beacon_ctx.node_id ? PRIV_NODE_ID : in proxy_adv_request_get()
|
| A D | cfg_srv.c | 1751 uint16_t net_idx, uint8_t node_id) in send_node_id_status() argument 1758 net_buf_simple_add_u8(&msg, node_id); in send_node_id_status() 1771 enum bt_mesh_feat_state node_id; in node_identity_get() local 1784 status = bt_mesh_subnet_node_id_get(idx, &node_id); in node_identity_get() 1786 return send_node_id_status(model, ctx, status, idx, node_id); in node_identity_get() 1793 uint8_t node_id, status; in node_identity_set() local 1805 node_id = net_buf_simple_pull_u8(buf); in node_identity_set() 1806 if (node_id != 0x00 && node_id != 0x01) { in node_identity_set() 1807 LOG_WRN("Invalid Node ID value 0x%02x", node_id); in node_identity_set() 1811 status = bt_mesh_subnet_node_id_set(idx, node_id); in node_identity_set() [all …]
|
| A D | cfg.c | 167 return sub->node_id == BT_MESH_NODE_IDENTITY_RUNNING; in node_id_is_running()
|
| /subsys/input/ |
| A D | input_keymap.c | 91 #define KEYMAP_ENTRY_VALIDATE(node_id, prop, idx) \ argument 92 BUILD_ASSERT(MATRIX_ROW(DT_PROP_BY_IDX(node_id, prop, idx)) < \ 93 DT_PROP(node_id, row_size), "invalid row"); \ 94 BUILD_ASSERT(MATRIX_COL(DT_PROP_BY_IDX(node_id, prop, idx)) < \ 95 DT_PROP(node_id, col_size), "invalid col"); 97 #define CODES_INIT(node_id, prop, idx) \ argument 98 [KEYMAP_ENTRY_OFFSET(DT_PROP_BY_IDX(node_id, prop, idx), DT_PROP(node_id, col_size))] = \ 99 KEYMAP_ENTRY_CODE(DT_PROP_BY_IDX(node_id, prop, idx)),
|
| /subsys/mem_mgmt/ |
| A D | mem_attr.c | 10 #define _BUILD_MEM_ATTR_REGION(node_id) \ argument 12 .dt_name = DT_NODE_FULL_NAME(node_id), \ 13 .dt_addr = DT_REG_ADDR(node_id), \ 14 .dt_size = DT_REG_SIZE(node_id), \ 15 .dt_attr = DT_PROP(node_id, zephyr_memory_attr), \
|
| /subsys/pm/ |
| A D | state.c | 20 #define CHECK_POWER_STATE_CONSISTENCY(i, node_id) \ argument 22 DT_PROP_BY_PHANDLE_IDX_OR(node_id, cpu_power_states, i, \ 24 DT_PROP_BY_PHANDLE_IDX_OR(node_id, cpu_power_states, i, \ 35 #define CHECK_POWER_STATES_CONSISTENCY(node_id) \ argument 36 LISTIFY(DT_PROP_LEN_OR(node_id, cpu_power_states, 0), \ 37 CHECK_POWER_STATE_CONSISTENCY, (;), node_id); \
|
| A D | device_system_managed.c | 14 #define DT_PM_DEVICE_ENABLED(node_id) \ argument 15 COND_CODE_1(DT_PROP(node_id, zephyr_pm_device_disabled), \
|
| /subsys/logging/backends/ |
| A D | log_backend_uart.c | 235 #define LBU_DEFINE(node_id, ...) \ argument 247 (.uart_dev = DEVICE_DT_GET(node_id),)) \ 256 #define LBU_PHA_FN(node_id, prop, idx) LBU_DEFINE(DT_PHANDLE_BY_IDX(node_id, prop, idx), idx) argument
|