Lines Matching refs:elem

2273 						       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()
2305 struct bt_mesh_mod_id_vnd bt_mesh_comp_p0_elem_mod_vnd(struct bt_mesh_comp_p0_elem *elem, int idx) in bt_mesh_comp_p0_elem_mod_vnd() argument
2307 CHECKIF(idx >= elem->nvnd) { in bt_mesh_comp_p0_elem_mod_vnd()
2311 size_t offset = elem->nsig * 2 + idx * 4; in bt_mesh_comp_p0_elem_mod_vnd()
2313 .company = sys_get_le16(&elem->_buf[offset]), in bt_mesh_comp_p0_elem_mod_vnd()
2314 .id = sys_get_le16(&elem->_buf[offset + 2]), in bt_mesh_comp_p0_elem_mod_vnd()
2321 struct bt_mesh_comp_p1_elem *elem) in bt_mesh_comp_p1_elem_pull() argument
2332 elem->nsig = net_buf_simple_pull_u8(buf); in bt_mesh_comp_p1_elem_pull()
2333 elem->nvnd = net_buf_simple_pull_u8(buf); in bt_mesh_comp_p1_elem_pull()
2334 for (i = 0; i < elem->nsig + elem->nvnd; i++) { in bt_mesh_comp_p1_elem_pull()
2349 net_buf_simple_init_with_data(elem->_buf, in bt_mesh_comp_p1_elem_pull()
2352 return elem; in bt_mesh_comp_p1_elem_pull()
2356 struct bt_mesh_comp_p1_elem *elem, struct bt_mesh_comp_p1_model_item *item) in bt_mesh_comp_p1_item_pull() argument
2358 if (elem->_buf->len < 1) { in bt_mesh_comp_p1_item_pull()
2363 elem->nsig, elem->nvnd, elem->_buf->len, in bt_mesh_comp_p1_item_pull()
2364 bt_hex(elem->_buf->data, elem->_buf->len)); in bt_mesh_comp_p1_item_pull()
2369 header = net_buf_simple_pull_u8(elem->_buf); in bt_mesh_comp_p1_item_pull()
2375 item->cor_id = net_buf_simple_pull_u8(elem->_buf); in bt_mesh_comp_p1_item_pull()
2379 net_buf_simple_pull_mem(elem->_buf, item_size), in bt_mesh_comp_p1_item_pull()