Lines Matching refs:ev

108 	struct btp_bap_bis_syned_ev ev;  in btp_send_bis_syced_ev()  local
110 bt_addr_le_copy(&ev.address, address); in btp_send_bis_syced_ev()
111 sys_put_le24(broadcast_id, ev.broadcast_id); in btp_send_bis_syced_ev()
112 ev.bis_id = bis_id; in btp_send_bis_syced_ev()
114 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_BIS_SYNCED, &ev, sizeof(ev)); in btp_send_bis_syced_ev()
160 struct btp_bap_bis_stream_received_ev *ev; in send_bis_stream_received_ev() local
163 tester_rsp_buffer_allocate(sizeof(*ev) + data_len, (uint8_t **)&ev); in send_bis_stream_received_ev()
167 bt_addr_le_copy(&ev->address, address); in send_bis_stream_received_ev()
168 sys_put_le24(broadcast_id, ev->broadcast_id); in send_bis_stream_received_ev()
169 ev->bis_id = bis_id; in send_bis_stream_received_ev()
170 ev->data_len = data_len; in send_bis_stream_received_ev()
171 memcpy(ev->data, data, data_len); in send_bis_stream_received_ev()
173 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_BIS_STREAM_RECEIVED, ev, in send_bis_stream_received_ev()
174 sizeof(*ev) + data_len); in send_bis_stream_received_ev()
549 struct btp_bap_baa_found_ev ev; in btp_send_baa_found_ev() local
551 bt_addr_le_copy(&ev.address, address); in btp_send_baa_found_ev()
552 sys_put_le24(broadcast_id, ev.broadcast_id); in btp_send_baa_found_ev()
553 ev.advertiser_sid = sid; in btp_send_baa_found_ev()
554 ev.padv_interval = sys_cpu_to_le16(interval); in btp_send_baa_found_ev()
556 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_BAA_FOUND, &ev, sizeof(ev)); in btp_send_baa_found_ev()
613 struct btp_bap_bis_found_ev *ev; in btp_send_bis_found_ev() local
616 tester_rsp_buffer_allocate(sizeof(*ev) + codec_cfg->data_len, (uint8_t **)&ev); in btp_send_bis_found_ev()
618 bt_addr_le_copy(&ev->address, address); in btp_send_bis_found_ev()
619 sys_put_le24(broadcast_id, ev->broadcast_id); in btp_send_bis_found_ev()
620 sys_put_le24(pd, ev->presentation_delay); in btp_send_bis_found_ev()
621 ev->subgroup_id = subgroup_index; in btp_send_bis_found_ev()
622 ev->bis_id = bis_index; in btp_send_bis_found_ev()
623 ev->coding_format = codec_cfg->id; in btp_send_bis_found_ev()
624 ev->vid = sys_cpu_to_le16(codec_cfg->vid); in btp_send_bis_found_ev()
625 ev->cid = sys_cpu_to_le16(codec_cfg->cid); in btp_send_bis_found_ev()
627 ev->cc_ltvs_len = codec_cfg->data_len; in btp_send_bis_found_ev()
628 memcpy(ev->cc_ltvs, codec_cfg->data, ev->cc_ltvs_len); in btp_send_bis_found_ev()
630 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_BIS_FOUND, ev, in btp_send_bis_found_ev()
631 sizeof(*ev) + ev->cc_ltvs_len); in btp_send_bis_found_ev()
827 struct btp_bap_pa_sync_req_ev ev; in btp_send_pas_sync_req_ev() local
829 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_pas_sync_req_ev()
830 ev.src_id = src_id; in btp_send_pas_sync_req_ev()
831 ev.advertiser_sid = advertiser_sid; in btp_send_pas_sync_req_ev()
832 sys_put_le24(broadcast_id, ev.broadcast_id); in btp_send_pas_sync_req_ev()
833 ev.past_avail = past_avail; in btp_send_pas_sync_req_ev()
834 ev.pa_interval = sys_cpu_to_le16(pa_interval); in btp_send_pas_sync_req_ev()
836 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_PA_SYNC_REQ, &ev, sizeof(ev)); in btp_send_pas_sync_req_ev()
841 struct btp_bap_scan_delegator_found_ev ev; in btp_send_scan_delegator_found_ev() local
843 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_scan_delegator_found_ev()
845 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_SCAN_DELEGATOR_FOUND, &ev, sizeof(ev)); in btp_send_scan_delegator_found_ev()
851 struct btp_bap_broadcast_receive_state_ev *ev; in btp_send_broadcast_receive_state_ev() local
856 tester_rsp_buffer_allocate(sizeof(*ev) + CONFIG_BT_BAP_BASS_MAX_SUBGROUPS * in btp_send_broadcast_receive_state_ev()
857 sizeof(struct bt_bap_bass_subgroup), (uint8_t **)&ev); in btp_send_broadcast_receive_state_ev()
860 bt_addr_le_copy(&ev->address, bt_conn_get_dst(conn)); in btp_send_broadcast_receive_state_ev()
862 (void)memset(&ev->address, 0, sizeof(ev->address)); in btp_send_broadcast_receive_state_ev()
865 ev->src_id = state->src_id; in btp_send_broadcast_receive_state_ev()
866 bt_addr_le_copy(&ev->broadcaster_address, &state->addr); in btp_send_broadcast_receive_state_ev()
867 ev->advertiser_sid = state->adv_sid; in btp_send_broadcast_receive_state_ev()
868 sys_put_le24(state->broadcast_id, ev->broadcast_id); in btp_send_broadcast_receive_state_ev()
869 ev->pa_sync_state = state->pa_sync_state; in btp_send_broadcast_receive_state_ev()
870 ev->big_encryption = state->encrypt_state; in btp_send_broadcast_receive_state_ev()
871 ev->num_subgroups = state->num_subgroups; in btp_send_broadcast_receive_state_ev()
873 ptr = ev->subgroups; in btp_send_broadcast_receive_state_ev()
874 for (uint8_t i = 0; i < ev->num_subgroups; i++) { in btp_send_broadcast_receive_state_ev()
885 len = sizeof(*ev) + ptr - ev->subgroups; in btp_send_broadcast_receive_state_ev()
886 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_BROADCAST_RECEIVE_STATE, ev, len); in btp_send_broadcast_receive_state_ev()