Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 41) sorted by relevance

12

/hal_espressif-latest/components/bt/common/osi/
Dlist.c62 for (const list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node)) { in list_contains() local
63 if (list_node(node) == data) { in list_contains()
76 for (list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node)) { in list_get_node() local
77 if (list_node(node) == data) { in list_get_node()
78 p_node_ret = node; in list_get_node()
118 list_node_t *node = (list_node_t *)osi_calloc(sizeof(list_node_t)); in list_insert_after() local
119 if (!node) { in list_insert_after()
123 node->next = prev_node->next; in list_insert_after()
124 node->data = data; in list_insert_after()
125 prev_node->next = node; in list_insert_after()
[all …]
Dconfig.c132 …for (const list_node_t *node = list_begin(config->sections); node != list_end(config->sections); n… in config_has_key_in_section() local
133 const section_t *section = (const section_t *)list_node(node); in config_has_key_in_section()
135 …for (const list_node_t *node = list_begin(section->entries); node != list_end(section->entries); n… in config_has_key_in_section() local
136 entry_t *entry = list_node(node); in config_has_key_in_section()
231 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in config_set_string() local
232 entry_t *entry = list_node(node); in config_set_string()
271 …for (const list_node_t *node = list_begin(config->sections); node != list_end(config->sections); n… in config_update_newest_section() local
272 section_t *sec = list_node(node); in config_update_newest_section()
316 const config_section_node_t *config_section_next(const config_section_node_t *node) in config_section_next() argument
318 assert(node != NULL); in config_section_next()
[all …]
Dfixed_queue.c73 const list_node_t *node; in fixed_queue_free() local
82 … for (node = list_begin(queue->list); node != list_end(queue->list); node = list_next(node)) { in fixed_queue_free()
83 free_cb(list_node(node)); in fixed_queue_free()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/include/
Dmesh_dlist.h207 static inline int sys_dlist_is_head(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_head() argument
209 return list->head == node; in sys_dlist_is_head()
221 static inline int sys_dlist_is_tail(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_tail() argument
223 return list->tail == node; in sys_dlist_is_tail()
294 sys_dnode_t *node) in sys_dlist_peek_next_no_check() argument
296 return (node == list->tail) ? NULL : node->next; in sys_dlist_peek_next_no_check()
310 sys_dnode_t *node) in sys_dlist_peek_next() argument
312 return node ? sys_dlist_peek_next_no_check(list, node) : NULL; in sys_dlist_peek_next()
339 static inline void sys_dlist_append(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_append() argument
341 node->next = list; in sys_dlist_append()
[all …]
Dmesh_slist.h245 static inline sys_snode_t *sys_slist_peek_next_no_check(sys_snode_t *node) in sys_slist_peek_next_no_check() argument
247 return node->next; in sys_slist_peek_next_no_check()
257 static inline sys_snode_t *sys_slist_peek_next(sys_snode_t *node) in sys_slist_peek_next() argument
259 return node ? sys_slist_peek_next_no_check(node) : NULL; in sys_slist_peek_next()
271 sys_snode_t *node) in sys_slist_prepend() argument
273 node->next = list->head; in sys_slist_prepend()
274 list->head = node; in sys_slist_prepend()
290 sys_snode_t *node) in sys_slist_append() argument
292 node->next = NULL; in sys_slist_append()
295 list->tail = node; in sys_slist_append()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/
Dclient_common.c21 bt_mesh_client_node_t *node = NULL; in bt_mesh_client_pick_node() local
32 node = (bt_mesh_client_node_t *)cur; in bt_mesh_client_pick_node()
33 if (node->ctx.addr == tx_dst) { in bt_mesh_client_pick_node()
35 return node; in bt_mesh_client_pick_node()
49 bt_mesh_client_node_t *node = NULL; in bt_mesh_is_client_recv_publish_msg() local
85 if ((node = bt_mesh_client_pick_node(&data->queue, ctx->addr)) == NULL) { in bt_mesh_is_client_recv_publish_msg()
93 if (node->op_pending != ctx->recv_op) { in bt_mesh_is_client_recv_publish_msg()
101 if (k_delayed_work_remaining_get(&node->timer) == 0) { in bt_mesh_is_client_recv_publish_msg()
109 return node; in bt_mesh_is_client_recv_publish_msg()
114 bt_mesh_client_node_t *node = NULL; in bt_mesh_client_check_node_in_list() local
[all …]
Dtime_scene_client.c90 bt_mesh_client_node_t *node = NULL; in timeout_handler() local
101 node = CONTAINER_OF(work, bt_mesh_client_node_t, timer.work); in timeout_handler()
102 if (node) { in timeout_handler()
103 memcpy(&ctx, &node->ctx, sizeof(ctx)); in timeout_handler()
104 opcode = node->opcode; in timeout_handler()
105 bt_mesh_client_free_node(node); in timeout_handler()
120 bt_mesh_client_node_t *node = NULL; in time_scene_status() local
295 node = bt_mesh_is_client_recv_publish_msg(model, ctx, buf, true); in time_scene_status()
296 if (!node) { in time_scene_status()
299 switch (node->opcode) { in time_scene_status()
[all …]
Dsensor_client.c74 bt_mesh_client_node_t *node = NULL; in timeout_handler() local
85 node = CONTAINER_OF(work, bt_mesh_client_node_t, timer.work); in timeout_handler()
86 if (node) { in timeout_handler()
87 memcpy(&ctx, &node->ctx, sizeof(ctx)); in timeout_handler()
88 opcode = node->opcode; in timeout_handler()
89 bt_mesh_client_free_node(node); in timeout_handler()
104 bt_mesh_client_node_t *node = NULL; in sensor_status() local
258 node = bt_mesh_is_client_recv_publish_msg(model, ctx, buf, true); in sensor_status()
259 if (!node) { in sensor_status()
262 switch (node->opcode) { in sensor_status()
[all …]
Dgeneric_client.c136 bt_mesh_client_node_t *node = NULL; in timeout_handler() local
147 node = CONTAINER_OF(work, bt_mesh_client_node_t, timer.work); in timeout_handler()
148 if (node) { in timeout_handler()
149 memcpy(&ctx, &node->ctx, sizeof(ctx)); in timeout_handler()
150 opcode = node->opcode; in timeout_handler()
151 bt_mesh_client_free_node(node); in timeout_handler()
166 bt_mesh_client_node_t *node = NULL; in generic_status() local
530 node = bt_mesh_is_client_recv_publish_msg(model, ctx, buf, true); in generic_status()
531 if (!node) { in generic_status()
534 switch (node->opcode) { in generic_status()
[all …]
Dlighting_client.c145 bt_mesh_client_node_t *node = NULL; in timeout_handler() local
156 node = CONTAINER_OF(work, bt_mesh_client_node_t, timer.work); in timeout_handler()
157 if (node) { in timeout_handler()
158 memcpy(&ctx, &node->ctx, sizeof(ctx)); in timeout_handler()
159 opcode = node->opcode; in timeout_handler()
160 bt_mesh_client_free_node(node); in timeout_handler()
175 bt_mesh_client_node_t *node = NULL; in light_status() local
645 node = bt_mesh_is_client_recv_publish_msg(model, ctx, buf, true); in light_status()
646 if (!node) { in light_status()
649 switch (node->opcode) { in light_status()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dprovisioner_main.c200 struct bt_mesh_node *node = NULL; in bt_mesh_provisioner_check_is_addr_dup() local
221 node = mesh_nodes[i]; in bt_mesh_provisioner_check_is_addr_dup()
222 if (node && comp_addr >= node->unicast_addr && in bt_mesh_provisioner_check_is_addr_dup()
223 comp_addr < node->unicast_addr + node->element_num) { in bt_mesh_provisioner_check_is_addr_dup()
256 static int provisioner_store_node(struct bt_mesh_node *node, bool store, uint16_t *index) in provisioner_store_node() argument
264 if (mesh_nodes[i] && !memcmp(mesh_nodes[i]->dev_uuid, node->dev_uuid, 16)) { in provisioner_store_node()
265 BT_WARN("Node already exists, uuid %s", bt_hex(node->dev_uuid, 16)); in provisioner_store_node()
280 memcpy(mesh_nodes[i], node, sizeof(struct bt_mesh_node)); in provisioner_store_node()
300 int bt_mesh_provisioner_restore_node_info(struct bt_mesh_node *node) in bt_mesh_provisioner_restore_node_info() argument
302 if (!node) { in bt_mesh_provisioner_restore_node_info()
[all …]
Dhealth_cli.c61 bt_mesh_client_node_t *node = NULL; in timeout_handler() local
72 node = CONTAINER_OF(work, bt_mesh_client_node_t, timer.work); in timeout_handler()
73 if (node) { in timeout_handler()
74 memcpy(&ctx, &node->ctx, sizeof(ctx)); in timeout_handler()
75 opcode = node->opcode; in timeout_handler()
76 bt_mesh_client_free_node(node); in timeout_handler()
91 bt_mesh_client_node_t *node = NULL; in health_client_recv_status() local
106 node = bt_mesh_is_client_recv_publish_msg(model, ctx, &buf, true); in health_client_recv_status()
107 if (!node) { in health_client_recv_status()
110 switch (node->opcode) { in health_client_recv_status()
[all …]
Dsettings.h56 void bt_mesh_store_node_info(struct bt_mesh_node *node);
58 void bt_mesh_store_node_name(struct bt_mesh_node *node);
59 void bt_mesh_store_node_comp_data(struct bt_mesh_node *node);
Dsettings.c1081 struct bt_mesh_node node = {0}; in node_info_set() local
1097 memcpy(node.addr, info.addr, BLE_MESH_ADDR_LEN); in node_info_set()
1098 node.addr_type = info.addr_type; in node_info_set()
1099 memcpy(node.dev_uuid, info.dev_uuid, 16); in node_info_set()
1100 node.oob_info = info.oob_info; in node_info_set()
1101 node.unicast_addr = info.unicast_addr; in node_info_set()
1102 node.element_num = info.element_num; in node_info_set()
1103 node.net_idx = info.net_idx; in node_info_set()
1104 node.flags = info.flags; in node_info_set()
1105 node.iv_index = info.iv_index; in node_info_set()
[all …]
Dprovisioner_main.h54 int bt_mesh_provisioner_restore_node_info(struct bt_mesh_node *node);
139 int bt_mesh_provisioner_store_node_info(struct bt_mesh_node *node);
Dcfg_cli.c103 bt_mesh_client_node_t *node = NULL; in timeout_handler() local
114 node = CONTAINER_OF(work, bt_mesh_client_node_t, timer.work); in timeout_handler()
115 if (node) { in timeout_handler()
116 memcpy(&ctx, &node->ctx, sizeof(ctx)); in timeout_handler()
117 opcode = node->opcode; in timeout_handler()
118 bt_mesh_client_free_node(node); in timeout_handler()
133 bt_mesh_client_node_t *node = NULL; in cfg_client_recv_status() local
148 node = bt_mesh_is_client_recv_publish_msg(model, ctx, &buf, true); in cfg_client_recv_status()
149 if (!node) { in cfg_client_recv_status()
152 switch (node->opcode) { in cfg_client_recv_status()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/core/
Dbtc_profile_queue.c42 …for (const list_node_t *node = list_begin(connect_queue); node != list_end(connect_queue); node = … in queue_int_add() local
43 if (((connect_node_t *)list_node(node))->uuid == p_param->uuid) { in queue_int_add()
/hal_espressif-latest/components/bt/common/osi/include/osi/
Dlist.h24 list_node_t *list_free_node(list_t *list, list_node_t *node);
27 list_node_t *list_delete_node(list_t *list, list_node_t *node);
115 list_node_t *list_next(const list_node_t *node);
119 void *list_node(const list_node_t *node);
/hal_espressif-latest/components/bt/esp_ble_mesh/
DKconfig.in163 into a node successfully, it can be changed to a temporary Provisioner.
168 Enable the device to be provisioned into a node. This option should be
170 node and communicate with other nodes in the BLE Mesh network.
324 This option should be enabled if a node is going to be a Proxy Server.
332 This option determines for how long the local node advertises using
337 node, it will start to advertise using Node Identity during the time
346 This option specifies how many Proxy Filter entries the local node supports.
357 can use the GATT bearer to send mesh messages to a node that supports the
374 If the device is a BLE Mesh node, when this option is enabled, the configuration
402 If the node sends messages very frequently a higher value makes more
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/l2cap/
Dl2cap_client.c171 …const list_node_t *node = list_begin(client->outbound_fragments); node != list_end(client->outboun… in l2cap_client_disconnect() local
172 osi_free(list_node(node)); in l2cap_client_disconnect()
452 …for (const list_node_t *node = list_begin(l2cap_clients); node != list_end(l2cap_clients); node = … in find() local
453 l2cap_client_t *client = (l2cap_client_t *)list_node(node); in find()
/hal_espressif-latest/components/bt/host/bluedroid/hci/
Dhci_layer.c564 for (const list_node_t *node = list_begin(cmd_wait_q->commands_pending_response); in get_waiting_command() local
565 node != list_end(cmd_wait_q->commands_pending_response); in get_waiting_command()
566 node = list_next(node)) { in get_waiting_command()
567 pkt_linked_item_t *wait_entry = list_node(node); in get_waiting_command()
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/
Dgatt_utils.c202 for (const list_node_t *node = list_begin(list); node != list_end(list); in gatt_set_srv_chg() local
203 node = list_next(node)) { in gatt_set_srv_chg()
206 tGATTS_SRV_CHG *p_buf = (tGATTS_SRV_CHG *)list_node(node); in gatt_set_srv_chg()
237 for (const list_node_t *node = list_begin(list); node != list_end(list); in gatt_sr_is_new_srv_chg() local
238 node = list_next(node)) { in gatt_sr_is_new_srv_chg()
239 p_buf = (tGATTS_PENDING_NEW_SRV_START *)list_node(node); in gatt_sr_is_new_srv_chg()
828 for (const list_node_t *node = list_begin(list); in gatt_is_srv_chg_ind_pending() local
829 node != list_end(list); in gatt_is_srv_chg_ind_pending()
830 node = list_next(node)) { in gatt_is_srv_chg_ind_pending()
831 tGATT_VALUE *p_buf = (tGATT_VALUE *)list_node(node); in gatt_is_srv_chg_ind_pending()
[all …]
Dgatt_sr.c205 const list_node_t *node = NULL; in process_read_multi_rsp() local
213 node = list_begin(list); in process_read_multi_rsp()
215 node = list_next(node); in process_read_multi_rsp()
217 if (node != list_end(list)) { in process_read_multi_rsp()
218 p_rsp = (tGATTS_RSP *)list_node(node); in process_read_multi_rsp()
326 const list_node_t *node = NULL; in process_read_multi_var_rsp() local
334 node = list_begin(list); in process_read_multi_var_rsp()
336 node = list_next(node); in process_read_multi_var_rsp()
338 if (node != list_end(list)) { in process_read_multi_var_rsp()
339 p_rsp = (tGATTS_RSP *)list_node(node); in process_read_multi_var_rsp()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/include/
Dclient_common.h104 int bt_mesh_client_free_node(bt_mesh_client_node_t *node);
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_co.c654 …for (const list_node_t *node = list_begin(addr_info->assoc_addr); node != list_end(addr_info->asso… in bta_gattc_co_cache_find_src_addr() local
655 node = list_next(node)) { in bta_gattc_co_cache_find_src_addr()
656 addr_data = (UINT8 *)list_node(node); in bta_gattc_co_cache_find_src_addr()

12