Lines Matching refs:evt
298 struct bt_hci_evt_le_cs_read_remote_supported_capabilities_complete *evt; in bt_hci_le_cs_read_remote_supported_capabilities_complete() local
300 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
305 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
306 if (evt->status) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
307 LOG_WRN("Read Remote Supported Capabilities failed (status 0x%02X)", evt->status); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
311 conn = bt_conn_lookup_handle(sys_le16_to_cpu(evt->conn_handle), BT_CONN_TYPE_LE); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
317 remote_cs_capabilities.num_config_supported = evt->num_config_supported; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
319 sys_le16_to_cpu(evt->max_consecutive_procedures_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
320 remote_cs_capabilities.num_antennas_supported = evt->num_antennas_supported; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
321 remote_cs_capabilities.max_antenna_paths_supported = evt->max_antenna_paths_supported; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
324 evt->roles_supported & BT_HCI_LE_CS_INITIATOR_ROLE_MASK; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
326 evt->roles_supported & BT_HCI_LE_CS_REFLECTOR_ROLE_MASK; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
328 evt->modes_supported & BT_HCI_LE_CS_MODES_SUPPORTED_MODE_3_MASK; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
330 remote_cs_capabilities.rtt_aa_only_n = evt->rtt_aa_only_n; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
331 remote_cs_capabilities.rtt_sounding_n = evt->rtt_sounding_n; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
332 remote_cs_capabilities.rtt_random_payload_n = evt->rtt_random_payload_n; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
334 if (evt->rtt_aa_only_n) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
335 if (evt->rtt_capability & BT_HCI_LE_CS_RTT_AA_ONLY_N_10NS_MASK) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
346 if (evt->rtt_sounding_n) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
347 if (evt->rtt_capability & BT_HCI_LE_CS_RTT_SOUNDING_N_10NS_MASK) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
358 if (evt->rtt_random_payload_n) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
359 if (evt->rtt_capability & BT_HCI_LE_CS_RTT_RANDOM_PAYLOAD_N_10NS_MASK) { in bt_hci_le_cs_read_remote_supported_capabilities_complete()
372 sys_le16_to_cpu(evt->nadm_sounding_capability) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
376 sys_le16_to_cpu(evt->nadm_random_capability) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
380 evt->cs_sync_phys_supported & BT_HCI_LE_CS_SYNC_PHYS_2M_MASK; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
383 evt->cs_sync_phys_supported & BT_HCI_LE_CS_SYNC_PHYS_2M_2BT_MASK; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
386 sys_le16_to_cpu(evt->subfeatures_supported) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
390 sys_le16_to_cpu(evt->subfeatures_supported) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
394 sys_le16_to_cpu(evt->subfeatures_supported) & in bt_hci_le_cs_read_remote_supported_capabilities_complete()
397 remote_cs_capabilities.t_ip1_times_supported = sys_le16_to_cpu(evt->t_ip1_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
398 remote_cs_capabilities.t_ip2_times_supported = sys_le16_to_cpu(evt->t_ip2_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
399 remote_cs_capabilities.t_fcs_times_supported = sys_le16_to_cpu(evt->t_fcs_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
400 remote_cs_capabilities.t_pm_times_supported = sys_le16_to_cpu(evt->t_pm_times_supported); in bt_hci_le_cs_read_remote_supported_capabilities_complete()
402 remote_cs_capabilities.t_sw_time = evt->t_sw_time_supported; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
403 remote_cs_capabilities.tx_snr_capability = evt->tx_snr_capability; in bt_hci_le_cs_read_remote_supported_capabilities_complete()
458 struct bt_hci_evt_le_cs_read_remote_fae_table_complete *evt; in bt_hci_le_cs_read_remote_fae_table_complete() local
460 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_read_remote_fae_table_complete()
465 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_read_remote_fae_table_complete()
466 if (evt->status) { in bt_hci_le_cs_read_remote_fae_table_complete()
467 LOG_WRN("Read Remote FAE Table failed with status 0x%02X", evt->status); in bt_hci_le_cs_read_remote_fae_table_complete()
471 conn = bt_conn_lookup_handle(sys_le16_to_cpu(evt->conn_handle), BT_CONN_TYPE_LE); in bt_hci_le_cs_read_remote_fae_table_complete()
477 fae_table.remote_fae_table = evt->remote_fae_table; in bt_hci_le_cs_read_remote_fae_table_complete()
597 struct bt_hci_evt_le_cs_subevent_result *evt; in bt_hci_le_cs_subevent_result() local
603 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_subevent_result()
608 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_subevent_result()
609 uint16_t conn_handle = sys_le16_to_cpu(evt->conn_handle); in bt_hci_le_cs_subevent_result()
627 if (evt->subevent_done_status != BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_PARTIAL) { in bt_hci_le_cs_subevent_result()
629 if (evt->num_steps_reported) { in bt_hci_le_cs_subevent_result()
630 net_buf_simple_init_with_data(&step_data_buf, evt->steps, buf->len); in bt_hci_le_cs_subevent_result()
634 if (evt->procedure_done_status != BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL) { in bt_hci_le_cs_subevent_result()
640 if (!evt->num_steps_reported) { in bt_hci_le_cs_subevent_result()
645 reassembly_buf = start_reassembly(conn_handle, evt->steps, buf->len); in bt_hci_le_cs_subevent_result()
654 p_result->header.procedure_counter = sys_le16_to_cpu(evt->procedure_counter); in bt_hci_le_cs_subevent_result()
655 p_result->header.frequency_compensation = sys_le16_to_cpu(evt->frequency_compensation); in bt_hci_le_cs_subevent_result()
656 p_result->header.procedure_done_status = evt->procedure_done_status; in bt_hci_le_cs_subevent_result()
657 p_result->header.subevent_done_status = evt->subevent_done_status; in bt_hci_le_cs_subevent_result()
658 p_result->header.procedure_abort_reason = evt->procedure_abort_reason; in bt_hci_le_cs_subevent_result()
659 p_result->header.subevent_abort_reason = evt->subevent_abort_reason; in bt_hci_le_cs_subevent_result()
660 p_result->header.reference_power_level = evt->reference_power_level; in bt_hci_le_cs_subevent_result()
661 p_result->header.num_antenna_paths = evt->num_antenna_paths; in bt_hci_le_cs_subevent_result()
662 p_result->header.num_steps_reported = evt->num_steps_reported; in bt_hci_le_cs_subevent_result()
664 evt->subevent_done_status == BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED ? 0 : 255; in bt_hci_le_cs_subevent_result()
669 p_result->header.config_id = evt->config_id; in bt_hci_le_cs_subevent_result()
671 sys_le16_to_cpu(evt->start_acl_conn_event_counter); in bt_hci_le_cs_subevent_result()
674 if (evt->subevent_done_status != BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_PARTIAL) { in bt_hci_le_cs_subevent_result()
678 if (evt->procedure_done_status != BT_CONN_LE_CS_PROCEDURE_INCOMPLETE) { in bt_hci_le_cs_subevent_result()
707 struct bt_hci_evt_le_cs_subevent_result_continue *evt; in bt_hci_le_cs_subevent_result_continue() local
711 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_subevent_result_continue()
716 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_subevent_result_continue()
717 conn_handle = sys_le16_to_cpu(evt->conn_handle); in bt_hci_le_cs_subevent_result_continue()
735 uint16_t step_data_len = evt->num_steps_reported ? buf->len : 0; in bt_hci_le_cs_subevent_result_continue()
737 reassembly_buf = continue_reassembly(conn_handle, evt->steps, step_data_len); in bt_hci_le_cs_subevent_result_continue()
742 reassembled_result.header.procedure_done_status = evt->procedure_done_status; in bt_hci_le_cs_subevent_result_continue()
743 reassembled_result.header.subevent_done_status = evt->subevent_done_status; in bt_hci_le_cs_subevent_result_continue()
744 reassembled_result.header.procedure_abort_reason = evt->procedure_abort_reason; in bt_hci_le_cs_subevent_result_continue()
745 reassembled_result.header.subevent_abort_reason = evt->subevent_abort_reason; in bt_hci_le_cs_subevent_result_continue()
747 if (evt->num_antenna_paths != reassembled_result.header.num_antenna_paths) { in bt_hci_le_cs_subevent_result_continue()
750 evt->num_antenna_paths, reassembled_result.header.num_antenna_paths); in bt_hci_le_cs_subevent_result_continue()
753 if (evt->subevent_done_status == BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED && in bt_hci_le_cs_subevent_result_continue()
758 reassembled_result.header.num_steps_reported += evt->num_steps_reported; in bt_hci_le_cs_subevent_result_continue()
760 if (evt->subevent_done_status != BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_PARTIAL) { in bt_hci_le_cs_subevent_result_continue()
766 if (evt->procedure_done_status != BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL) { in bt_hci_le_cs_subevent_result_continue()
767 if (evt->subevent_done_status == BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_PARTIAL) { in bt_hci_le_cs_subevent_result_continue()
796 struct bt_hci_evt_le_cs_config_complete *evt; in bt_hci_le_cs_config_complete_event() local
800 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_config_complete_event()
805 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_config_complete_event()
806 if (evt->status) { in bt_hci_le_cs_config_complete_event()
807 LOG_WRN("CS Config failed (status 0x%02X)", evt->status); in bt_hci_le_cs_config_complete_event()
811 conn = bt_conn_lookup_handle(sys_le16_to_cpu(evt->handle), BT_CONN_TYPE_LE); in bt_hci_le_cs_config_complete_event()
817 if (evt->action == BT_HCI_LE_CS_CONFIG_ACTION_REMOVED) { in bt_hci_le_cs_config_complete_event()
818 notify_cs_config_removed(conn, evt->config_id); in bt_hci_le_cs_config_complete_event()
823 config.id = evt->config_id; in bt_hci_le_cs_config_complete_event()
824 config.main_mode_type = evt->main_mode_type; in bt_hci_le_cs_config_complete_event()
825 config.sub_mode_type = evt->sub_mode_type; in bt_hci_le_cs_config_complete_event()
826 config.min_main_mode_steps = evt->min_main_mode_steps; in bt_hci_le_cs_config_complete_event()
827 config.max_main_mode_steps = evt->max_main_mode_steps; in bt_hci_le_cs_config_complete_event()
828 config.main_mode_repetition = evt->main_mode_repetition; in bt_hci_le_cs_config_complete_event()
829 config.mode_0_steps = evt->mode_0_steps; in bt_hci_le_cs_config_complete_event()
830 config.role = evt->role; in bt_hci_le_cs_config_complete_event()
831 config.rtt_type = evt->rtt_type; in bt_hci_le_cs_config_complete_event()
832 config.cs_sync_phy = evt->cs_sync_phy; in bt_hci_le_cs_config_complete_event()
833 config.channel_map_repetition = evt->channel_map_repetition; in bt_hci_le_cs_config_complete_event()
834 config.channel_selection_type = evt->channel_selection_type; in bt_hci_le_cs_config_complete_event()
835 config.ch3c_shape = evt->ch3c_shape; in bt_hci_le_cs_config_complete_event()
836 config.ch3c_jump = evt->ch3c_jump; in bt_hci_le_cs_config_complete_event()
837 config.t_ip1_time_us = evt->t_ip1_time; in bt_hci_le_cs_config_complete_event()
838 config.t_ip2_time_us = evt->t_ip2_time; in bt_hci_le_cs_config_complete_event()
839 config.t_fcs_time_us = evt->t_fcs_time; in bt_hci_le_cs_config_complete_event()
840 config.t_pm_time_us = evt->t_pm_time; in bt_hci_le_cs_config_complete_event()
841 memcpy(config.channel_map, evt->channel_map, ARRAY_SIZE(config.channel_map)); in bt_hci_le_cs_config_complete_event()
1196 struct bt_hci_evt_le_cs_security_enable_complete *evt; in bt_hci_le_cs_security_enable_complete() local
1198 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_security_enable_complete()
1203 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_security_enable_complete()
1204 if (evt->status) { in bt_hci_le_cs_security_enable_complete()
1205 LOG_WRN("Security Enable failed with status 0x%02X", evt->status); in bt_hci_le_cs_security_enable_complete()
1209 conn = bt_conn_lookup_handle(sys_le16_to_cpu(evt->handle), BT_CONN_TYPE_LE); in bt_hci_le_cs_security_enable_complete()
1224 struct bt_hci_evt_le_cs_procedure_enable_complete *evt; in bt_hci_le_cs_procedure_enable_complete() local
1227 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_procedure_enable_complete()
1232 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_procedure_enable_complete()
1233 if (evt->status) { in bt_hci_le_cs_procedure_enable_complete()
1234 LOG_WRN("Procedure Enable failed with status 0x%02X", evt->status); in bt_hci_le_cs_procedure_enable_complete()
1238 conn = bt_conn_lookup_handle(sys_le16_to_cpu(evt->handle), BT_CONN_TYPE_LE); in bt_hci_le_cs_procedure_enable_complete()
1244 if (evt->state == BT_HCI_OP_LE_CS_PROCEDURES_DISABLED) { in bt_hci_le_cs_procedure_enable_complete()
1253 params.config_id = evt->config_id; in bt_hci_le_cs_procedure_enable_complete()
1254 params.state = evt->state; in bt_hci_le_cs_procedure_enable_complete()
1255 params.tone_antenna_config_selection = evt->tone_antenna_config_selection; in bt_hci_le_cs_procedure_enable_complete()
1256 params.selected_tx_power = evt->selected_tx_power; in bt_hci_le_cs_procedure_enable_complete()
1257 params.subevent_len = sys_get_le24(evt->subevent_len); in bt_hci_le_cs_procedure_enable_complete()
1258 params.subevents_per_event = evt->subevents_per_event; in bt_hci_le_cs_procedure_enable_complete()
1259 params.subevent_interval = sys_le16_to_cpu(evt->subevent_interval); in bt_hci_le_cs_procedure_enable_complete()
1260 params.event_interval = sys_le16_to_cpu(evt->event_interval); in bt_hci_le_cs_procedure_enable_complete()
1261 params.procedure_interval = sys_le16_to_cpu(evt->procedure_interval); in bt_hci_le_cs_procedure_enable_complete()
1262 params.procedure_count = sys_le16_to_cpu(evt->procedure_count); in bt_hci_le_cs_procedure_enable_complete()
1263 params.max_procedure_len = sys_le16_to_cpu(evt->max_procedure_len); in bt_hci_le_cs_procedure_enable_complete()
1285 struct bt_hci_evt_le_cs_test_end_complete *evt; in bt_hci_le_cs_test_end_complete() local
1287 if (buf->len < sizeof(*evt)) { in bt_hci_le_cs_test_end_complete()
1292 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_le_cs_test_end_complete()
1293 if (evt->status) { in bt_hci_le_cs_test_end_complete()
1294 LOG_WRN("CS Test End failed with status 0x%02X", evt->status); in bt_hci_le_cs_test_end_complete()