Lines Matching refs:read_buf

80 NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, READ_BUF_SIZE);
489 net_buf_put_call_states(inst, &read_buf); in inst_notify_calls()
491 err = bt_gatt_notify_uuid(NULL, BT_UUID_TBS_CALL_STATE, inst->attrs, read_buf.data, in inst_notify_calls()
492 read_buf.len); in inst_notify_calls()
499 net_buf_put_current_calls(inst, &read_buf); in inst_notify_calls()
502 read_buf.data, read_buf.len); in inst_notify_calls()
591 net_buf_simple_reset(&read_buf); in read_uri_scheme_list()
593 net_buf_simple_add_mem(&read_buf, inst->uri_scheme_list, strlen(inst->uri_scheme_list)); in read_uri_scheme_list()
600 if (read_buf.len + uri_len >= read_buf.size) { in read_uri_scheme_list()
606 net_buf_simple_add_mem(&read_buf, svc_insts[i].uri_scheme_list, uri_len); in read_uri_scheme_list()
609 LOG_DBG("GTBS: URI scheme %.*s", read_buf.len, read_buf.data); in read_uri_scheme_list()
611 LOG_DBG("Index %u: URI scheme %.*s", inst_index(inst), read_buf.len, read_buf.data); in read_uri_scheme_list()
614 return bt_gatt_attr_read(conn, attr, buf, len, offset, read_buf.data, read_buf.len); in read_uri_scheme_list()
704 net_buf_put_current_calls(inst, &read_buf); in read_current_calls()
707 LOG_HEXDUMP_DBG(read_buf.data, read_buf.len, "Current calls"); in read_current_calls()
710 return bt_gatt_attr_read(conn, attr, buf, len, offset, read_buf.data, read_buf.len); in read_current_calls()
783 net_buf_put_call_states(inst, &read_buf); in read_call_state()
786 LOG_HEXDUMP_DBG(read_buf.data, read_buf.len, "Call state"); in read_call_state()
789 return bt_gatt_attr_read(conn, attr, buf, len, offset, read_buf.data, read_buf.len); in read_call_state()