Lines Matching refs:att_buf

114 NET_BUF_SIMPLE_DEFINE_STATIC(att_buf, ATT_BUF_SIZE);
156 net_buf_simple_reset(&att_buf); in bap_broadcast_assistant_discover_complete()
329 net_buf_simple_reset(&att_buf); in bap_long_read_reset()
394 if (net_buf_simple_tailroom(&att_buf) < length) { in broadcast_assistant_bap_ntf_read_func()
396 length + att_buf.len); in broadcast_assistant_bap_ntf_read_func()
404 net_buf_simple_add_mem(&att_buf, data, length); in broadcast_assistant_bap_ntf_read_func()
411 data_length = att_buf.len; in broadcast_assistant_bap_ntf_read_func()
415 parse_and_send_recv_state(conn, handle, att_buf.data, data_length, &recv_state); in broadcast_assistant_bap_ntf_read_func()
456 inst->read_params.single.offset = att_buf.len; in long_bap_read()
532 net_buf_simple_add_mem(&att_buf, data, length); in notify_handler()
648 net_buf_simple_reset(&att_buf); in discover_init()
776 uint8_t opcode = net_buf_simple_pull_u8(&att_buf); in bap_broadcast_assistant_write_cp_cb()
784 net_buf_simple_reset(&att_buf); in bap_broadcast_assistant_write_cp_cb()
1170 net_buf_simple_reset(&att_buf); in bt_bap_broadcast_assistant_scan_start()
1171 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_scan_start()
1176 err = bt_bap_broadcast_assistant_common_cp(conn, &att_buf); in bt_bap_broadcast_assistant_scan_start()
1233 net_buf_simple_reset(&att_buf); in bt_bap_broadcast_assistant_scan_stop()
1234 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_scan_stop()
1238 return bt_bap_broadcast_assistant_common_cp(conn, &att_buf); in bt_bap_broadcast_assistant_scan_stop()
1387 net_buf_simple_reset(&att_buf); in bt_bap_broadcast_assistant_add_src()
1388 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_add_src()
1414 if (att_buf.len + subgroup_size > att_buf.size) { in bt_bap_broadcast_assistant_add_src()
1415 LOG_DBG("MTU is too small to send %zu octets", att_buf.len + subgroup_size); in bt_bap_broadcast_assistant_add_src()
1424 subgroup = net_buf_simple_add(&att_buf, subgroup_size); in bt_bap_broadcast_assistant_add_src()
1441 return bt_bap_broadcast_assistant_common_cp(conn, &att_buf); in bt_bap_broadcast_assistant_add_src()
1514 net_buf_simple_reset(&att_buf); in bt_bap_broadcast_assistant_mod_src()
1515 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_mod_src()
1557 if (att_buf.len + subgroup_size > att_buf.size) { in bt_bap_broadcast_assistant_mod_src()
1558 LOG_DBG("MTU is too small to send %zu octets", att_buf.len + subgroup_size); in bt_bap_broadcast_assistant_mod_src()
1566 subgroup = net_buf_simple_add(&att_buf, subgroup_size); in bt_bap_broadcast_assistant_mod_src()
1584 return bt_bap_broadcast_assistant_common_cp(conn, &att_buf); in bt_bap_broadcast_assistant_mod_src()
1616 net_buf_simple_reset(&att_buf); in bt_bap_broadcast_assistant_set_broadcast_code()
1617 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_set_broadcast_code()
1626 return bt_bap_broadcast_assistant_common_cp(conn, &att_buf); in bt_bap_broadcast_assistant_set_broadcast_code()
1656 net_buf_simple_reset(&att_buf); in bt_bap_broadcast_assistant_rem_src()
1657 cp = net_buf_simple_add(&att_buf, sizeof(*cp)); in bt_bap_broadcast_assistant_rem_src()
1662 return bt_bap_broadcast_assistant_common_cp(conn, &att_buf); in bt_bap_broadcast_assistant_rem_src()