Home
last modified time | relevance | path

Searched refs:net_buf_simple_tailroom (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/mesh/
Dop_agg.c22 if (net_buf_simple_tailroom(buf) < (msg->len + 2)) { in bt_mesh_op_agg_encode_msg()
28 if (net_buf_simple_tailroom(buf) < (msg->len + 1)) { in bt_mesh_op_agg_encode_msg()
Dop_agg_cli.c193 return net_buf_simple_tailroom(cli.ctx.sdu); in bt_mesh_op_agg_cli_seq_tailroom()
210 if (net_buf_simple_tailroom(&srcs) < 2) { in bt_mesh_op_agg_cli_send()
Ddfu_metadata.c54 if (net_buf_simple_tailroom(buf) < md_len_min) { in bt_mesh_dfu_metadata_encode()
Dbrg_cfg_srv.c155 if (net_buf_simple_tailroom(&msg) < 3 + BT_MESH_MIC_SHORT) { in bridged_subnets_get()
245 if (net_buf_simple_tailroom(&msg) < 5 + BT_MESH_MIC_SHORT) { in bridging_table_get()
Dhealth_srv.c48 uint8_t fault_count = net_buf_simple_tailroom(msg) - 4; in health_get_registered()
82 fault_count = net_buf_simple_tailroom(msg); in health_get_current()
Dlarge_comp_data_cli.c61 MIN(net_buf_simple_tailroom(rsp->data), buf->len)); in data_status()
Dlarge_comp_data_srv.c81 msg_space = net_buf_simple_tailroom(&rsp) - BT_MESH_MIC_SHORT; in handle_large_comp_data_get()
Dbrg_cfg_cli.c98 to_copy = MIN(net_buf_simple_tailroom(rsp->list), buf->len); in subnets_list()
137 to_copy = MIN(net_buf_simple_tailroom(rsp->list), (buf->len / 5) * 5); in table_list()
Daccess.c279 if (net_buf_simple_tailroom(buf) < (model_size + BT_MESH_MIC_SHORT)) { in metadata_add_model()
321 if (net_buf_simple_tailroom(buf) < (((offset == 0) ? 2 : (offset == 1) ? 1 : 0) in bt_mesh_metadata_get_page_0()
383 if (net_buf_simple_tailroom(buf) < ((elem_size - *offset) + BT_MESH_MIC_SHORT)) { in comp_add_elem()
619 if (net_buf_simple_tailroom(buf) < ((elem_size - offset) + BT_MESH_MIC_SHORT)) { in bt_mesh_comp_data_get_page_1()
677 if (net_buf_simple_tailroom(buf) < ((elem_size - offset) + BT_MESH_MIC_SHORT)) { in bt_mesh_comp_data_get_page_2()
2433 if (len > net_buf_simple_tailroom(buf)) { in read_comp_cb()
2573 net_buf_simple_add_mem(buf, &stored_buf.data, MIN(net_buf_simple_tailroom(buf), 2)); in bt_mesh_models_metadata_read()
2580 MIN(net_buf_simple_tailroom(buf), stored_buf.len - offset)); in bt_mesh_models_metadata_read()
Dproxy_msg.c88 if (net_buf_simple_tailroom(&role->buf) < len - 1) { in bt_mesh_proxy_msg_recv()
Dnet.c452 if (ctl && net_buf_simple_tailroom(buf) < 8) { in net_header_encode()
455 } else if (net_buf_simple_tailroom(buf) < 4) { in net_header_encode()
538 adv->b.len, net_buf_simple_headroom(&adv->b), net_buf_simple_tailroom(&adv->b)); in bt_mesh_net_send()
Dbeacon.c388 if (net_buf_simple_tailroom(&adv->b) < len) { in unprovisioned_beacon_send()
Ddfu_srv.c166 if (net_buf_simple_tailroom(&rsp) + BT_MESH_MIC_SHORT < entry_len) { in handle_info_get()
Dtransport.c662 if (net_buf_simple_tailroom(msg) < BT_MESH_MIC_SHORT) { in bt_mesh_trans_send()
697 if (!tx->ctx->send_rel || net_buf_simple_tailroom(msg) < 8) { in bt_mesh_trans_send()
Ddfd_srv.c182 for (i = 0; i < cnt && net_buf_simple_tailroom(&rsp) >= 5 + BT_MESH_MIC_SHORT; i++) { in handle_receivers_get()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Ddfu.c176 if (net_buf_simple_tailroom(&dfu_comp_data) < 10) { in cmd_dfu_comp_add()
178 net_buf_simple_tailroom(&dfu_comp_data)); in cmd_dfu_comp_add()
217 if (net_buf_simple_tailroom(&dfu_comp_data) < 4 + sig_model_count * 2 + in cmd_dfu_comp_elem_add()
220 net_buf_simple_tailroom(&dfu_comp_data)); in cmd_dfu_comp_elem_add()
/Zephyr-latest/subsys/bluetooth/audio/
Dmcc.c3332 if (len > net_buf_simple_tailroom(&otc_obj_buf)) { in on_icon_content()
3338 MIN(net_buf_simple_tailroom(&otc_obj_buf), len)); in on_icon_content()
3421 if (len > net_buf_simple_tailroom(&otc_obj_buf)) { in on_track_segments_content()
3427 MIN(net_buf_simple_tailroom(&otc_obj_buf), len)); in on_track_segments_content()
3473 if (len > net_buf_simple_tailroom(&otc_obj_buf)) { in on_current_track_content()
3479 MIN(net_buf_simple_tailroom(&otc_obj_buf), len)); in on_current_track_content()
3511 if (len > net_buf_simple_tailroom(&otc_obj_buf)) { in on_next_track_content()
3517 MIN(net_buf_simple_tailroom(&otc_obj_buf), len)); in on_next_track_content()
3576 if (len > net_buf_simple_tailroom(&otc_obj_buf)) { in on_parent_group_content()
3582 MIN(net_buf_simple_tailroom(&otc_obj_buf), len)); in on_parent_group_content()
[all …]
Dpacs.c149 if (net_buf_simple_tailroom(buf) < sizeof(*pac_codec)) { in build_pac_records()
158 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->data_len)) { in build_pac_records()
165 if (net_buf_simple_tailroom(buf) < (sizeof(struct bt_pac_ltv_data) + codec_cap->meta_len)) { in build_pac_records()
Dtbs_client.c880 length = net_buf_simple_tailroom(&inst->net_buf) - sizeof('\0'); in handle_string_long_read()
1173 (net_buf_simple_tailroom(&inst->net_buf) < length)) { in read_current_calls_cb()
1339 (net_buf_simple_tailroom(&inst->net_buf) < length)) { in read_call_state_cb()
Dbap_unicast_client.c1640 if (net_buf_simple_tailroom(buf) < length) { in unicast_client_ase_ntf_read_func()
3670 if (net_buf_simple_tailroom(buf) < length) { in unicast_client_ase_read_func()
4292 if (net_buf_simple_tailroom(buf) < length) { in unicast_client_read_func()
/Zephyr-latest/lib/net_buf/
Dbuf_simple.c62 __ASSERT_NO_MSG(net_buf_simple_tailroom(buf) >= len); in net_buf_simple_add()
618 size_t net_buf_simple_tailroom(const struct net_buf_simple *buf) in net_buf_simple_tailroom() function
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_dir_list.c331 while (net_buf_simple_tailroom(&dir_list->net_buf) >= rec_len) { in bt_ots_dir_list_content_get()
/Zephyr-latest/tests/bluetooth/common/testlib/src/
Datt_read.c64 MIN(read_len, net_buf_simple_tailroom(ctx->result_data)); in att_read_cb()
/Zephyr-latest/include/zephyr/
Dnet_buf.h930 size_t net_buf_simple_tailroom(const struct net_buf_simple *buf);
2498 return net_buf_simple_tailroom(&buf->b); in net_buf_tailroom()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dmesh_test.c473 if (net_buf_simple_tailroom(&buf) < mic_len) { in bt_mesh_test_send_async()

12