Lines Matching refs:ev
158 struct btp_ascs_ase_state_changed_ev ev; in btp_send_ascs_ase_state_changed_ev() local
160 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_ascs_ase_state_changed_ev()
161 ev.ase_id = ase_id; in btp_send_ascs_ase_state_changed_ev()
162 ev.state = state; in btp_send_ascs_ase_state_changed_ev()
164 tester_event(BTP_SERVICE_ID_ASCS, BTP_ASCS_EV_ASE_STATE_CHANGED, &ev, sizeof(ev)); in btp_send_ascs_ase_state_changed_ev()
170 struct btp_ascs_operation_completed_ev ev; in btp_send_ascs_operation_completed_ev() local
172 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_ascs_operation_completed_ev()
173 ev.ase_id = ase_id; in btp_send_ascs_operation_completed_ev()
174 ev.opcode = opcode; in btp_send_ascs_operation_completed_ev()
175 ev.status = status; in btp_send_ascs_operation_completed_ev()
176 ev.flags = 0; in btp_send_ascs_operation_completed_ev()
178 tester_event(BTP_SERVICE_ID_ASCS, BTP_ASCS_EV_OPERATION_COMPLETED, &ev, sizeof(ev)); in btp_send_ascs_operation_completed_ev()
231 struct btp_bap_codec_cap_found_ev ev; in btp_send_pac_codec_found_ev() local
234 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_pac_codec_found_ev()
236 ev.dir = dir; in btp_send_pac_codec_found_ev()
237 ev.coding_format = codec_cap->id; in btp_send_pac_codec_found_ev()
240 memcpy(&ev.frequencies, data, sizeof(ev.frequencies)); in btp_send_pac_codec_found_ev()
244 memcpy(&ev.frame_durations, data, sizeof(ev.frame_durations)); in btp_send_pac_codec_found_ev()
248 memcpy(&ev.octets_per_frame, data, sizeof(ev.octets_per_frame)); in btp_send_pac_codec_found_ev()
252 memcpy(&ev.channel_counts, data, sizeof(ev.channel_counts)); in btp_send_pac_codec_found_ev()
255 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_CODEC_CAP_FOUND, &ev, sizeof(ev)); in btp_send_pac_codec_found_ev()
261 struct btp_ascs_ase_found_ev ev; in btp_send_ase_found_ev() local
263 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_ase_found_ev()
266 ev.ase_id = info.id; in btp_send_ase_found_ev()
267 ev.dir = info.dir; in btp_send_ase_found_ev()
269 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_ASE_FOUND, &ev, sizeof(ev)); in btp_send_ase_found_ev()
685 struct btp_bap_stream_received_ev *ev; in send_stream_received_ev() local
688 tester_rsp_buffer_allocate(sizeof(*ev) + data_len, (uint8_t **)&ev); in send_stream_received_ev()
693 bt_addr_le_copy(&ev->address, bt_conn_get_dst(conn)); in send_stream_received_ev()
695 ev->ase_id = ep->status.id; in send_stream_received_ev()
696 ev->data_len = data_len; in send_stream_received_ev()
697 memcpy(ev->data, data, data_len); in send_stream_received_ev()
699 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_STREAM_RECEIVED, ev, sizeof(*ev) + data_len); in send_stream_received_ev()
840 struct btp_bap_discovery_completed_ev ev; in btp_send_discovery_completed_ev() local
842 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_discovery_completed_ev()
843 ev.status = status; in btp_send_discovery_completed_ev()
845 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_DISCOVERY_COMPLETED, &ev, sizeof(ev)); in btp_send_discovery_completed_ev()