Lines Matching refs:read_buf

55 NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, BT_ATT_MAX_ATTRIBUTE_LEN);
168 ntf_size = MIN(max_ntf_size, read_buf.len); in bass_notify_receive_state()
169 if (ntf_size < read_buf.len) { in bass_notify_receive_state()
170 LOG_DBG("Sending truncated notification (%u/%u)", ntf_size, read_buf.len); in bass_notify_receive_state()
175 internal_state->attr, read_buf.data, in bass_notify_receive_state()
187 net_buf_simple_reset(&read_buf); in net_buf_put_recv_state()
197 (void)net_buf_simple_add_u8(&read_buf, state->src_id); in net_buf_put_recv_state()
198 (void)net_buf_simple_add_u8(&read_buf, state->addr.type); in net_buf_put_recv_state()
199 (void)net_buf_simple_add_mem(&read_buf, &state->addr.a, in net_buf_put_recv_state()
201 (void)net_buf_simple_add_u8(&read_buf, state->adv_sid); in net_buf_put_recv_state()
202 (void)net_buf_simple_add_le24(&read_buf, state->broadcast_id); in net_buf_put_recv_state()
203 (void)net_buf_simple_add_u8(&read_buf, state->pa_sync_state); in net_buf_put_recv_state()
204 (void)net_buf_simple_add_u8(&read_buf, state->encrypt_state); in net_buf_put_recv_state()
206 (void)net_buf_simple_add_mem(&read_buf, &state->bad_code, in net_buf_put_recv_state()
209 (void)net_buf_simple_add_u8(&read_buf, state->num_subgroups); in net_buf_put_recv_state()
213 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync); in net_buf_put_recv_state()
214 (void)net_buf_simple_add_u8(&read_buf, subgroup->metadata_len); in net_buf_put_recv_state()
215 (void)net_buf_simple_add_mem(&read_buf, subgroup->metadata, in net_buf_put_recv_state()
1110 read_buf.data, read_buf.len); in read_recv_state()