Lines Matching refs:_buf

2269 	page->_buf = buf;  in bt_mesh_comp_p0_get()
2279 if (page->_buf->len < 4) { in bt_mesh_comp_p0_elem_pull()
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()
2290 if (page->_buf->len < modlist_size) { 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()
2306 return sys_get_le16(&elem->_buf[idx * 2]); in bt_mesh_comp_p0_elem_mod()
2317 .company = sys_get_le16(&elem->_buf[offset]), in bt_mesh_comp_p0_elem_mod_vnd()
2318 .id = sys_get_le16(&elem->_buf[offset + 2]), in bt_mesh_comp_p0_elem_mod_vnd()
2363 net_buf_simple_init_with_data(elem->_buf, in bt_mesh_comp_p1_elem_pull()
2372 if (elem->_buf->len < 1) { in bt_mesh_comp_p1_item_pull()
2377 elem->nsig, elem->nvnd, elem->_buf->len, in bt_mesh_comp_p1_item_pull()
2378 bt_hex(elem->_buf->data, elem->_buf->len)); in bt_mesh_comp_p1_item_pull()
2383 header = net_buf_simple_pull_u8(elem->_buf); in bt_mesh_comp_p1_item_pull()
2389 if (elem->_buf->len < 1) { in bt_mesh_comp_p1_item_pull()
2394 item->cor_id = net_buf_simple_pull_u8(elem->_buf); in bt_mesh_comp_p1_item_pull()
2397 if (elem->_buf->len < item_size) { in bt_mesh_comp_p1_item_pull()
2402 net_buf_simple_init_with_data(item->_buf, in bt_mesh_comp_p1_item_pull()
2403 net_buf_simple_pull_mem(elem->_buf, item_size), in bt_mesh_comp_p1_item_pull()
2412 if (item->_buf->len < 1) { in comp_p1_pull_item_short()
2421 if (item->format == 1 || item->_buf->len != 1) { in comp_p1_pull_item_short()
2424 uint8_t item_data = net_buf_simple_pull_u8(item->_buf); in comp_p1_pull_item_short()
2434 if (item->_buf->len < 2) { in comp_p1_pull_item_long()
2435 LOG_ERR("Missing data, buf len=%d", item->_buf->len); in comp_p1_pull_item_long()
2443 if (item->format == 0 || item->_buf->len != 2) { in comp_p1_pull_item_long()
2447 ext_item->elem_offset = net_buf_simple_pull_u8(item->_buf); in comp_p1_pull_item_long()
2448 ext_item->mod_item_idx = net_buf_simple_pull_u8(item->_buf); in comp_p1_pull_item_long()
2456 if (item->_buf->len < 1) { in bt_mesh_comp_p1_pull_ext_item()
2459 } else if (item->_buf->len < 2) { in bt_mesh_comp_p1_pull_ext_item()