Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 42) sorted by relevance

12

/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Daccess.c123 const struct bt_mesh_elem *elem, in bt_mesh_model_foreach() argument
131 const struct bt_mesh_elem *elem = &dev_comp->elem[i]; in bt_mesh_model_foreach() local
133 for (j = 0; j < elem->model_count; j++) { in bt_mesh_model_foreach()
134 const struct bt_mesh_model *model = &elem->models[j]; in bt_mesh_model_foreach()
136 func(model, elem, false, i == 0, user_data); in bt_mesh_model_foreach()
139 for (j = 0; j < elem->vnd_model_count; j++) { in bt_mesh_model_foreach()
140 const struct bt_mesh_model *model = &elem->vnd_models[j]; in bt_mesh_model_foreach()
142 func(model, elem, true, i == 0, user_data); in bt_mesh_model_foreach()
147 static size_t bt_mesh_comp_elem_size(const struct bt_mesh_elem *elem) in bt_mesh_comp_elem_size() argument
149 return (4 + (elem->model_count * 2U) + (elem->vnd_model_count * 4U)); in bt_mesh_comp_elem_size()
[all …]
Dop_agg_srv.c42 uint16_t elem; in handle_sequence() local
46 elem = net_buf_simple_pull_le16(buf); in handle_sequence()
47 ctx->recv_dst = elem; in handle_sequence()
51 net_buf_simple_add_le16(srv.ctx.sdu, elem); in handle_sequence()
58 if (!BT_MESH_ADDR_IS_UNICAST(elem)) { in handle_sequence()
74 if (!bt_mesh_elem_find(elem)) { in handle_sequence()
Dcfg_srv.c88 static const struct bt_mesh_model *get_model(const struct bt_mesh_elem *elem, in get_model() argument
96 LOG_DBG("ID 0x%04x addr 0x%04x", id, elem->rt->addr); in get_model()
100 return bt_mesh_model_find(elem, id); in get_model()
107 LOG_DBG("Company 0x%04x ID 0x%04x addr 0x%04x", company, id, elem->rt->addr); in get_model()
111 return bt_mesh_model_find_vnd(elem, company, id); in get_model()
338 const struct bt_mesh_elem *elem, bool vnd, bool primary, in mod_app_key_del() argument
698 const struct bt_mesh_elem *elem; in mod_pub_get() local
717 elem = bt_mesh_elem_find(elem_addr); in mod_pub_get()
718 if (!elem) { in mod_pub_get()
725 mod = get_model(elem, buf, &vnd); in mod_pub_get()
[all …]
Daccess.h23 void bt_mesh_elem_register(const struct bt_mesh_elem *elem, uint8_t count);
46 const struct bt_mesh_elem *elem,
Dcfg_cli.c2273 struct bt_mesh_comp_p0_elem *elem) in bt_mesh_comp_p0_elem_pull() argument
2281 elem->loc = net_buf_simple_pull_le16(page->_buf); in bt_mesh_comp_p0_elem_pull()
2282 elem->nsig = net_buf_simple_pull_u8(page->_buf); in bt_mesh_comp_p0_elem_pull()
2283 elem->nvnd = net_buf_simple_pull_u8(page->_buf); in bt_mesh_comp_p0_elem_pull()
2285 modlist_size = elem->nsig * 2 + elem->nvnd * 4; in bt_mesh_comp_p0_elem_pull()
2291 elem->_buf = net_buf_simple_pull_mem(page->_buf, modlist_size); in bt_mesh_comp_p0_elem_pull()
2293 return elem; in bt_mesh_comp_p0_elem_pull()
2296 uint16_t bt_mesh_comp_p0_elem_mod(struct bt_mesh_comp_p0_elem *elem, int idx) in bt_mesh_comp_p0_elem_mod() argument
2298 CHECKIF(idx >= elem->nsig) { in bt_mesh_comp_p0_elem_mod()
2302 return sys_get_le16(&elem->_buf[idx * 2]); in bt_mesh_comp_p0_elem_mod()
[all …]
Dmain.c422 static void model_suspend(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in model_suspend() argument
491 static void model_resume(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in model_resume() argument
614 static void model_start(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in model_start() argument
Dhealth_srv.c386 int bt_mesh_health_srv_fault_update(const struct bt_mesh_elem *elem) in bt_mesh_health_srv_fault_update() argument
390 mod = bt_mesh_model_find(elem, BT_MESH_MODEL_ID_HEALTH_SRV); in bt_mesh_health_srv_fault_update()
/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/shell/
Dutils.c21 *mod = bt_mesh_model_find(&comp->elem[i], id); in bt_mesh_shell_mdl_first_get()
41 mod_temp = bt_mesh_model_find(&comp->elem[elem_idx], mod_id); in bt_mesh_shell_mdl_instance_set()
59 mod = bt_mesh_model_find(&comp->elem[i], mod_id); in bt_mesh_shell_mdl_print_all()
63 comp->elem[i].rt->addr, mod->rt->elem_idx); in bt_mesh_shell_mdl_print_all()
Dshell.c1078 return &comp->elem[0]; in primary_element()
1088 const struct bt_mesh_elem *elem; in cmd_add_fault() local
1091 elem = primary_element(); in cmd_add_fault()
1092 if (elem == NULL) { in cmd_add_fault()
1132 bt_mesh_health_srv_fault_update(elem); in cmd_add_fault()
1141 const struct bt_mesh_elem *elem; in cmd_del_fault() local
1144 elem = primary_element(); in cmd_del_fault()
1145 if (elem == NULL) { in cmd_del_fault()
1153 bt_mesh_health_srv_fault_update(elem); in cmd_del_fault()
1175 bt_mesh_health_srv_fault_update(elem); in cmd_del_fault()
Dcfg.c81 struct bt_mesh_comp_p0_elem elem; in cmd_get_comp() local
125 while (bt_mesh_comp_p0_elem_pull(&comp, &elem)) { in cmd_get_comp()
128 shell_print(sh, "\tElement @ 0x%04x:", elem.loc); in cmd_get_comp()
130 if (elem.nsig) { in cmd_get_comp()
136 for (i = 0; i < elem.nsig; i++) { in cmd_get_comp()
137 uint16_t mod_id = bt_mesh_comp_p0_elem_mod(&elem, i); in cmd_get_comp()
142 if (elem.nvnd) { in cmd_get_comp()
148 for (i = 0; i < elem.nvnd; i++) { in cmd_get_comp()
150 bt_mesh_comp_p0_elem_mod_vnd(&elem, i); in cmd_get_comp()
/Zephyr-Core-3.6.0/samples/bluetooth/mesh_provisioner/src/
Dmain.c68 .elem = elements,
147 struct bt_mesh_comp_p0_elem elem; in configure_node() local
190 while (bt_mesh_comp_p0_elem_pull(&comp, &elem)) { in configure_node()
192 elem.nsig, elem.nvnd); in configure_node()
193 for (int i = 0; i < elem.nsig; i++) { in configure_node()
194 uint16_t id = bt_mesh_comp_p0_elem_mod(&elem, i); in configure_node()
211 for (int i = 0; i < elem.nvnd; i++) { in configure_node()
213 bt_mesh_comp_p0_elem_mod_vnd(&elem, i); in configure_node()
/Zephyr-Core-3.6.0/subsys/bluetooth/host/
Dsdp.c344 static uint32_t search_uuid(struct bt_sdp_data_elem *elem, struct bt_uuid *uuid, in search_uuid() argument
365 seq_size = elem->data_size; in search_uuid()
366 cur_elem = elem->data; in search_uuid()
368 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_UUID_UNSPEC) { in search_uuid()
393 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_SEQ_UNSPEC || in search_uuid()
394 (elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_ALT_UNSPEC) { in search_uuid()
407 return elem->total_size; in search_uuid()
713 static uint32_t copy_attribute(struct bt_sdp_data_elem *elem, in copy_attribute() argument
724 seq_size = elem->data_size; in copy_attribute()
725 total_size = elem->total_size; in copy_attribute()
[all …]
/Zephyr-Core-3.6.0/include/zephyr/bluetooth/mesh/
Dhealth_srv.h222 int bt_mesh_health_srv_fault_update(const struct bt_mesh_elem *elem);
Dcfg_cli.h1671 struct bt_mesh_comp_p0_elem *elem);
1681 uint16_t bt_mesh_comp_p0_elem_mod(struct bt_mesh_comp_p0_elem *elem, int idx);
1691 struct bt_mesh_mod_id_vnd bt_mesh_comp_p0_elem_mod_vnd(struct bt_mesh_comp_p0_elem *elem, int idx);
1760 struct net_buf_simple *buf, struct bt_mesh_comp_p1_elem *elem);
1775 struct bt_mesh_comp_p1_elem *elem, struct bt_mesh_comp_p1_model_item *item);
Daccess.h1015 const struct bt_mesh_model *bt_mesh_model_find(const struct bt_mesh_elem *elem,
1027 const struct bt_mesh_model *bt_mesh_model_find_vnd(const struct bt_mesh_elem *elem,
1151 const struct bt_mesh_elem *elem; /**< List of elements. */ member
/Zephyr-Core-3.6.0/tests/bluetooth/mesh_shell/src/
Dmain.c116 .elem = elements,
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/mesh/src/
Dtest_dfu.c291 .elem =
305 .elem =
326 .elem =
942 .elem =
1327 .elem =
1358 .elem =
1390 .elem =
1423 .elem =
Dtest_suspend.c125 .elem = dut_elems,
144 .elem = tester_elems,
Dtest_lcd.c135 .elem = elements_1,
141 .elem = elements_2,
Dtest_op_agg.c131 .elem = elements,
Dtest_provision.c115 .elem =
127 .elem =
138 .elem =
185 .elem =
224 .elem =
/Zephyr-Core-3.6.0/scripts/pylib/twister/twisterlib/
Dharness.py495 elem = elem_tc.find('*')
496 if elem is None:
499 if elem.tag == 'skipped':
501 elif elem.tag == 'failure':
505 tc.reason = elem.get('message')
506 tc.output = elem.text
/Zephyr-Core-3.6.0/tests/bluetooth/mesh/basic/src/
Dmain.c123 .elem = elements,
/Zephyr-Core-3.6.0/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py298 for elem in include:
299 if isinstance(elem, str):
300 _merge_props(merged, self._load_raw(elem), None,
302 elif isinstance(elem, dict):
303 name = elem.pop('name', None)
304 allowlist = elem.pop('property-allowlist', None)
305 blocklist = elem.pop('property-blocklist', None)
306 child_filter = elem.pop('child-binding', None)
308 if elem:
406 not all(isinstance(elem, str) for elem in bus)):
[all …]
/Zephyr-Core-3.6.0/samples/bluetooth/mesh_demo/src/
Dmain.c114 .elem = elements,

12