Lines Matching refs:params
411 const struct bt_le_cs_set_default_settings_param *params) in bt_le_cs_set_default_settings() argument
423 cp->max_tx_power = params->max_tx_power; in bt_le_cs_set_default_settings()
424 cp->cs_sync_antenna_selection = params->cs_sync_antenna_selection; in bt_le_cs_set_default_settings()
427 if (params->enable_initiator_role) { in bt_le_cs_set_default_settings()
431 if (params->enable_reflector_role) { in bt_le_cs_set_default_settings()
490 int bt_le_cs_start_test(const struct bt_le_cs_test_param *params) in bt_le_cs_start_test() argument
502 cp->main_mode_type = params->main_mode; in bt_le_cs_start_test()
503 cp->sub_mode_type = params->sub_mode; in bt_le_cs_start_test()
504 cp->main_mode_repetition = params->main_mode_repetition; in bt_le_cs_start_test()
505 cp->mode_0_steps = params->mode_0_steps; in bt_le_cs_start_test()
506 cp->role = params->role; in bt_le_cs_start_test()
507 cp->rtt_type = params->rtt_type; in bt_le_cs_start_test()
508 cp->cs_sync_phy = params->cs_sync_phy; in bt_le_cs_start_test()
509 cp->cs_sync_antenna_selection = params->cs_sync_antenna_selection; in bt_le_cs_start_test()
510 sys_put_le24(params->subevent_len, cp->subevent_len); in bt_le_cs_start_test()
511 cp->subevent_interval = sys_cpu_to_le16(params->subevent_interval); in bt_le_cs_start_test()
512 cp->max_num_subevents = params->max_num_subevents; in bt_le_cs_start_test()
513 cp->transmit_power_level = params->transmit_power_level; in bt_le_cs_start_test()
514 cp->t_ip1_time = params->t_ip1_time; in bt_le_cs_start_test()
515 cp->t_ip2_time = params->t_ip2_time; in bt_le_cs_start_test()
516 cp->t_fcs_time = params->t_fcs_time; in bt_le_cs_start_test()
517 cp->t_pm_time = params->t_pm_time; in bt_le_cs_start_test()
518 cp->t_sw_time = params->t_sw_time; in bt_le_cs_start_test()
519 cp->tone_antenna_config_selection = params->tone_antenna_config_selection; in bt_le_cs_start_test()
523 cp->snr_control_initiator = params->initiator_snr_control; in bt_le_cs_start_test()
524 cp->snr_control_reflector = params->reflector_snr_control; in bt_le_cs_start_test()
525 cp->drbg_nonce = sys_cpu_to_le16(params->drbg_nonce); in bt_le_cs_start_test()
526 cp->channel_map_repetition = params->override_config_0.channel_map_repetition; in bt_le_cs_start_test()
527 cp->override_config = sys_cpu_to_le16(params->override_config); in bt_le_cs_start_test()
531 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_0_MASK) { in bt_le_cs_start_test()
532 const uint8_t num_channels = params->override_config_0.set.num_channels; in bt_le_cs_start_test()
536 net_buf_add_mem(buf, params->override_config_0.set.channels, num_channels); in bt_le_cs_start_test()
539 net_buf_add_mem(buf, params->override_config_0.not_set.channel_map, in bt_le_cs_start_test()
540 sizeof(params->override_config_0.not_set.channel_map)); in bt_le_cs_start_test()
541 net_buf_add_u8(buf, params->override_config_0.not_set.channel_selection_type); in bt_le_cs_start_test()
542 net_buf_add_u8(buf, params->override_config_0.not_set.ch3c_shape); in bt_le_cs_start_test()
543 net_buf_add_u8(buf, params->override_config_0.not_set.ch3c_jump); in bt_le_cs_start_test()
546 (sizeof(params->override_config_0.not_set.channel_map) + in bt_le_cs_start_test()
547 sizeof(params->override_config_0.not_set.channel_selection_type) + in bt_le_cs_start_test()
548 sizeof(params->override_config_0.not_set.ch3c_shape) + in bt_le_cs_start_test()
549 sizeof(params->override_config_0.not_set.ch3c_jump)); in bt_le_cs_start_test()
552 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_2_MASK) { in bt_le_cs_start_test()
553 net_buf_add_mem(buf, ¶ms->override_config_2, sizeof(params->override_config_2)); in bt_le_cs_start_test()
554 override_parameters_length += sizeof(params->override_config_2); in bt_le_cs_start_test()
557 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_3_MASK) { in bt_le_cs_start_test()
558 net_buf_add_mem(buf, ¶ms->override_config_3, sizeof(params->override_config_3)); in bt_le_cs_start_test()
559 override_parameters_length += sizeof(params->override_config_3); in bt_le_cs_start_test()
562 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_4_MASK) { in bt_le_cs_start_test()
563 net_buf_add_mem(buf, ¶ms->override_config_4, sizeof(params->override_config_4)); in bt_le_cs_start_test()
564 override_parameters_length += sizeof(params->override_config_4); in bt_le_cs_start_test()
567 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_5_MASK) { in bt_le_cs_start_test()
568 net_buf_add_le32(buf, params->override_config_5.cs_sync_aa_initiator); in bt_le_cs_start_test()
569 net_buf_add_le32(buf, params->override_config_5.cs_sync_aa_reflector); in bt_le_cs_start_test()
570 override_parameters_length += sizeof(params->override_config_5); in bt_le_cs_start_test()
573 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_6_MASK) { in bt_le_cs_start_test()
574 net_buf_add_mem(buf, ¶ms->override_config_6, sizeof(params->override_config_6)); in bt_le_cs_start_test()
575 override_parameters_length += sizeof(params->override_config_6); in bt_le_cs_start_test()
578 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_7_MASK) { in bt_le_cs_start_test()
579 net_buf_add_mem(buf, ¶ms->override_config_7, sizeof(params->override_config_7)); in bt_le_cs_start_test()
580 override_parameters_length += sizeof(params->override_config_7); in bt_le_cs_start_test()
583 if (params->override_config & BT_HCI_OP_LE_CS_TEST_OVERRIDE_CONFIG_8_MASK) { in bt_le_cs_start_test()
584 net_buf_add_mem(buf, ¶ms->override_config_8, sizeof(params->override_config_8)); in bt_le_cs_start_test()
585 override_parameters_length += sizeof(params->override_config_8); in bt_le_cs_start_test()
847 int bt_le_cs_create_config(struct bt_conn *conn, struct bt_le_cs_create_config_params *params, in bt_le_cs_create_config() argument
860 cp->config_id = params->id; in bt_le_cs_create_config()
862 cp->main_mode_type = params->main_mode_type; in bt_le_cs_create_config()
863 cp->sub_mode_type = params->sub_mode_type; in bt_le_cs_create_config()
864 cp->min_main_mode_steps = params->min_main_mode_steps; in bt_le_cs_create_config()
865 cp->max_main_mode_steps = params->max_main_mode_steps; in bt_le_cs_create_config()
866 cp->main_mode_repetition = params->main_mode_repetition; in bt_le_cs_create_config()
867 cp->mode_0_steps = params->mode_0_steps; in bt_le_cs_create_config()
868 cp->role = params->role; in bt_le_cs_create_config()
869 cp->rtt_type = params->rtt_type; in bt_le_cs_create_config()
870 cp->cs_sync_phy = params->cs_sync_phy; in bt_le_cs_create_config()
871 cp->channel_map_repetition = params->channel_map_repetition; in bt_le_cs_create_config()
872 cp->channel_selection_type = params->channel_selection_type; in bt_le_cs_create_config()
873 cp->ch3c_shape = params->ch3c_shape; in bt_le_cs_create_config()
874 cp->ch3c_jump = params->ch3c_jump; in bt_le_cs_create_config()
876 memcpy(cp->channel_map, params->channel_map, ARRAY_SIZE(cp->channel_map)); in bt_le_cs_create_config()
915 const struct bt_le_cs_procedure_enable_param *params) in bt_le_cs_procedure_enable() argument
927 cp->config_id = params->config_id; in bt_le_cs_procedure_enable()
928 cp->enable = params->enable; in bt_le_cs_procedure_enable()
934 const struct bt_le_cs_set_procedure_parameters_param *params) in bt_le_cs_set_procedure_parameters() argument
946 cp->config_id = params->config_id; in bt_le_cs_set_procedure_parameters()
947 cp->max_procedure_len = sys_cpu_to_le16(params->max_procedure_len); in bt_le_cs_set_procedure_parameters()
948 cp->min_procedure_interval = sys_cpu_to_le16(params->min_procedure_interval); in bt_le_cs_set_procedure_parameters()
949 cp->max_procedure_interval = sys_cpu_to_le16(params->max_procedure_interval); in bt_le_cs_set_procedure_parameters()
950 cp->max_procedure_count = sys_cpu_to_le16(params->max_procedure_count); in bt_le_cs_set_procedure_parameters()
951 sys_put_le24(params->min_subevent_len, cp->min_subevent_len); in bt_le_cs_set_procedure_parameters()
952 sys_put_le24(params->max_subevent_len, cp->max_subevent_len); in bt_le_cs_set_procedure_parameters()
953 cp->tone_antenna_config_selection = params->tone_antenna_config_selection; in bt_le_cs_set_procedure_parameters()
954 cp->phy = params->phy; in bt_le_cs_set_procedure_parameters()
955 cp->tx_power_delta = params->tx_power_delta; in bt_le_cs_set_procedure_parameters()
956 cp->preferred_peer_antenna = params->preferred_peer_antenna; in bt_le_cs_set_procedure_parameters()
957 cp->snr_control_initiator = params->snr_control_initiator; in bt_le_cs_set_procedure_parameters()
958 cp->snr_control_reflector = params->snr_control_reflector; in bt_le_cs_set_procedure_parameters()
1075 struct bt_conn *conn, const struct bt_conn_le_cs_capabilities *params) in bt_le_cs_write_cached_remote_supported_capabilities() argument
1091 cp->num_config_supported = params->num_config_supported; in bt_le_cs_write_cached_remote_supported_capabilities()
1094 sys_cpu_to_le16(params->max_consecutive_procedures_supported); in bt_le_cs_write_cached_remote_supported_capabilities()
1096 cp->num_antennas_supported = params->num_antennas_supported; in bt_le_cs_write_cached_remote_supported_capabilities()
1097 cp->max_antenna_paths_supported = params->max_antenna_paths_supported; in bt_le_cs_write_cached_remote_supported_capabilities()
1100 if (params->initiator_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1103 if (params->reflector_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1108 if (params->mode_3_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1112 cp->rtt_aa_only_n = params->rtt_aa_only_n; in bt_le_cs_write_cached_remote_supported_capabilities()
1113 cp->rtt_sounding_n = params->rtt_sounding_n; in bt_le_cs_write_cached_remote_supported_capabilities()
1114 cp->rtt_random_payload_n = params->rtt_random_payload_n; in bt_le_cs_write_cached_remote_supported_capabilities()
1117 if (params->rtt_aa_only_precision == BT_CONN_LE_CS_RTT_AA_ONLY_10NS) { in bt_le_cs_write_cached_remote_supported_capabilities()
1121 if (params->rtt_sounding_precision == BT_CONN_LE_CS_RTT_SOUNDING_10NS) { in bt_le_cs_write_cached_remote_supported_capabilities()
1125 if (params->rtt_random_payload_precision == BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS) { in bt_le_cs_write_cached_remote_supported_capabilities()
1130 if (params->phase_based_nadm_sounding_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1136 if (params->phase_based_nadm_random_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1142 if (params->cs_sync_2m_phy_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1145 if (params->cs_sync_2m_2bt_phy_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1150 if (params->cs_without_fae_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1154 if (params->chsel_alg_3c_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1158 if (params->pbr_from_rtt_sounding_seq_supported) { in bt_le_cs_write_cached_remote_supported_capabilities()
1163 cp->t_ip1_times_supported = sys_cpu_to_le16(params->t_ip1_times_supported); in bt_le_cs_write_cached_remote_supported_capabilities()
1164 cp->t_ip2_times_supported = sys_cpu_to_le16(params->t_ip2_times_supported); in bt_le_cs_write_cached_remote_supported_capabilities()
1165 cp->t_fcs_times_supported = sys_cpu_to_le16(params->t_fcs_times_supported); in bt_le_cs_write_cached_remote_supported_capabilities()
1166 cp->t_pm_times_supported = sys_cpu_to_le16(params->t_pm_times_supported); in bt_le_cs_write_cached_remote_supported_capabilities()
1167 cp->t_sw_time_supported = params->t_sw_time; in bt_le_cs_write_cached_remote_supported_capabilities()
1168 cp->tx_snr_capability = params->tx_snr_capability; in bt_le_cs_write_cached_remote_supported_capabilities()
1225 struct bt_conn_le_cs_procedure_enable_complete params; in bt_hci_le_cs_procedure_enable_complete() local
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()
1265 notify_cs_procedure_enable_available(conn, ¶ms); in bt_hci_le_cs_procedure_enable_complete()