Home
last modified time | relevance | path

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

12

/Zephyr-latest/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.c2275 struct bt_mesh_comp_p0_elem *elem) in bt_mesh_comp_p0_elem_pull() argument
2284 elem->loc = net_buf_simple_pull_le16(page->_buf); in bt_mesh_comp_p0_elem_pull()
2285 elem->nsig = net_buf_simple_pull_u8(page->_buf); in bt_mesh_comp_p0_elem_pull()
2286 elem->nvnd = net_buf_simple_pull_u8(page->_buf); in bt_mesh_comp_p0_elem_pull()
2288 modlist_size = elem->nsig * 2 + elem->nvnd * 4; in bt_mesh_comp_p0_elem_pull()
2295 elem->_buf = net_buf_simple_pull_mem(page->_buf, modlist_size); in bt_mesh_comp_p0_elem_pull()
2297 return elem; in bt_mesh_comp_p0_elem_pull()
2300 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
2302 CHECKIF(idx >= elem->nsig) { in bt_mesh_comp_p0_elem_mod()
2306 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
609 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-latest/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.c1080 return &comp->elem[0]; in primary_element()
1090 const struct bt_mesh_elem *elem; in cmd_add_fault() local
1093 elem = primary_element(); in cmd_add_fault()
1094 if (elem == NULL) { in cmd_add_fault()
1134 bt_mesh_health_srv_fault_update(elem); in cmd_add_fault()
1143 const struct bt_mesh_elem *elem; in cmd_del_fault() local
1146 elem = primary_element(); in cmd_del_fault()
1147 if (elem == NULL) { in cmd_del_fault()
1155 bt_mesh_health_srv_fault_update(elem); in cmd_del_fault()
1177 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-latest/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-latest/subsys/bluetooth/host/classic/
Dsdp.c347 static uint32_t search_uuid(struct bt_sdp_data_elem *elem, struct bt_uuid *uuid, in search_uuid() argument
368 seq_size = elem->data_size; in search_uuid()
369 cur_elem = elem->data; in search_uuid()
371 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_UUID_UNSPEC) { in search_uuid()
396 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_SEQ_UNSPEC || in search_uuid()
397 (elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_ALT_UNSPEC) { in search_uuid()
410 return elem->total_size; in search_uuid()
716 static uint32_t copy_attribute(struct bt_sdp_data_elem *elem, in copy_attribute() argument
727 seq_size = elem->data_size; in copy_attribute()
728 total_size = elem->total_size; in copy_attribute()
[all …]
/Zephyr-latest/doc/_extensions/zephyr/domain/
D__init__.py831 elem = self.data["code-samples"].get(target)
833 elem = self.data["code-samples-categories"].get(target)
835 elem = self.data["boards"].get(target)
839 if elem:
841 contnode = [nodes.Text(elem["name"] if type != "board" else elem["full_name"])]
846 elem["docname"],
847 elem["id"] if type != "board" else elem["name"],
849 elem["description"].astext() if type == "code-sample" else None,
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dhealth_srv.h217 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.h1025 const struct bt_mesh_model *bt_mesh_model_find(const struct bt_mesh_elem *elem,
1037 const struct bt_mesh_model *bt_mesh_model_find_vnd(const struct bt_mesh_elem *elem,
1161 const struct bt_mesh_elem *elem; /**< List of elements. */ member
/Zephyr-latest/tests/bluetooth/mesh_shell/src/
Dmain.c126 .elem = elements,
/Zephyr-latest/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,
/Zephyr-latest/tests/bluetooth/mesh/basic/src/
Dmain.c123 .elem = elements,
/Zephyr-latest/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-latest/scripts/pylib/twister/twisterlib/
Dharness.py604 elem = elem_tc.find('*')
605 if elem is None:
608 if elem.tag == ReportStatus.SKIP:
610 elif elem.tag == ReportStatus.FAIL:
614 tc.reason = elem.get('message')
615 tc.output = elem.text
/Zephyr-latest/samples/bluetooth/mesh_demo/src/
Dmain.c114 .elem = elements,

12