Lines Matching refs:cp

280 	struct bt_hci_cp_le_read_remote_supported_capabilities *cp;  in bt_le_cs_read_remote_supported_capabilities()  local
283 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_READ_REMOTE_SUPPORTED_CAPABILITIES, sizeof(*cp)); in bt_le_cs_read_remote_supported_capabilities()
288 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_read_remote_supported_capabilities()
289 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_read_remote_supported_capabilities()
413 struct bt_hci_cp_le_cs_set_default_settings *cp; in bt_le_cs_set_default_settings() local
416 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_SET_DEFAULT_SETTINGS, sizeof(*cp)); in bt_le_cs_set_default_settings()
421 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_set_default_settings()
422 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_set_default_settings()
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()
425 cp->role_enable = 0; in bt_le_cs_set_default_settings()
428 cp->role_enable |= BT_HCI_OP_LE_CS_INITIATOR_ROLE_MASK; in bt_le_cs_set_default_settings()
432 cp->role_enable |= BT_HCI_OP_LE_CS_REFLECTOR_ROLE_MASK; in bt_le_cs_set_default_settings()
440 struct bt_hci_cp_le_read_remote_fae_table *cp; in bt_le_cs_read_remote_fae_table() local
443 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_READ_REMOTE_FAE_TABLE, sizeof(*cp)); in bt_le_cs_read_remote_fae_table()
448 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_read_remote_fae_table()
449 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_read_remote_fae_table()
492 struct bt_hci_op_le_cs_test *cp; in bt_le_cs_start_test() local
495 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_TEST, sizeof(*cp)); in bt_le_cs_start_test()
500 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_start_test()
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()
521 cp->reserved = 0; 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()
588 cp->override_parameters_length = override_parameters_length; in bt_le_cs_start_test()
850 struct bt_hci_cp_le_cs_create_config *cp; in bt_le_cs_create_config() local
853 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_CREATE_CONFIG, sizeof(*cp)); in bt_le_cs_create_config()
858 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_create_config()
859 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_create_config()
860 cp->config_id = params->id; in bt_le_cs_create_config()
861 cp->create_context = context; 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()
875 cp->reserved = 0; 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()
883 struct bt_hci_cp_le_cs_remove_config *cp; in bt_le_cs_remove_config() local
886 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_REMOVE_CONFIG, sizeof(*cp)); in bt_le_cs_remove_config()
891 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_remove_config()
892 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_remove_config()
893 cp->config_id = config_id; in bt_le_cs_remove_config()
900 struct bt_hci_cp_le_security_enable *cp; in bt_le_cs_security_enable() local
903 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_SECURITY_ENABLE, sizeof(*cp)); in bt_le_cs_security_enable()
908 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_security_enable()
909 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_security_enable()
917 struct bt_hci_cp_le_procedure_enable *cp; in bt_le_cs_procedure_enable() local
920 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_PROCEDURE_ENABLE, sizeof(*cp)); in bt_le_cs_procedure_enable()
925 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_procedure_enable()
926 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_procedure_enable()
927 cp->config_id = params->config_id; in bt_le_cs_procedure_enable()
928 cp->enable = params->enable; in bt_le_cs_procedure_enable()
936 struct bt_hci_cp_le_set_procedure_parameters *cp; in bt_le_cs_set_procedure_parameters() local
939 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_SET_PROCEDURE_PARAMETERS, sizeof(*cp)); in bt_le_cs_set_procedure_parameters()
944 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_set_procedure_parameters()
945 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_set_procedure_parameters()
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()
965 uint8_t *cp; in bt_le_cs_set_channel_classification() local
973 cp = net_buf_add(buf, 10); in bt_le_cs_set_channel_classification()
974 memcpy(cp, channel_classification, 10); in bt_le_cs_set_channel_classification()
1077 struct bt_hci_cp_le_write_cached_remote_supported_capabilities *cp; in bt_le_cs_write_cached_remote_supported_capabilities() local
1081 sizeof(*cp)); in bt_le_cs_write_cached_remote_supported_capabilities()
1087 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_write_cached_remote_supported_capabilities()
1089 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_write_cached_remote_supported_capabilities()
1091 cp->num_config_supported = params->num_config_supported; in bt_le_cs_write_cached_remote_supported_capabilities()
1093 cp->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()
1099 cp->roles_supported = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1101 cp->roles_supported |= BT_HCI_LE_CS_INITIATOR_ROLE_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1104 cp->roles_supported |= BT_HCI_LE_CS_REFLECTOR_ROLE_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1107 cp->modes_supported = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1109 cp->modes_supported |= BT_HCI_LE_CS_MODES_SUPPORTED_MODE_3_MASK; 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()
1116 cp->rtt_capability = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1118 cp->rtt_capability |= BT_HCI_LE_CS_RTT_AA_ONLY_N_10NS_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1122 cp->rtt_capability |= BT_HCI_LE_CS_RTT_SOUNDING_N_10NS_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1126 cp->rtt_capability |= BT_HCI_LE_CS_RTT_RANDOM_PAYLOAD_N_10NS_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1129 cp->nadm_sounding_capability = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1131 cp->nadm_sounding_capability |= in bt_le_cs_write_cached_remote_supported_capabilities()
1135 cp->nadm_random_capability = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1137 cp->nadm_random_capability |= in bt_le_cs_write_cached_remote_supported_capabilities()
1141 cp->cs_sync_phys_supported = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1143 cp->cs_sync_phys_supported |= BT_HCI_LE_CS_SYNC_PHYS_2M_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1146 cp->cs_sync_phys_supported |= BT_HCI_LE_CS_SYNC_PHYS_2M_2BT_MASK; in bt_le_cs_write_cached_remote_supported_capabilities()
1149 cp->subfeatures_supported = 0; in bt_le_cs_write_cached_remote_supported_capabilities()
1151 cp->subfeatures_supported |= in bt_le_cs_write_cached_remote_supported_capabilities()
1155 cp->subfeatures_supported |= in bt_le_cs_write_cached_remote_supported_capabilities()
1159 cp->subfeatures_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()
1176 struct bt_hci_cp_le_write_cached_remote_fae_table *cp; in bt_le_cs_write_cached_remote_fae_table() local
1179 buf = bt_hci_cmd_create(BT_HCI_OP_LE_CS_WRITE_CACHED_REMOTE_FAE_TABLE, sizeof(*cp)); in bt_le_cs_write_cached_remote_fae_table()
1184 cp = net_buf_add(buf, sizeof(*cp)); in bt_le_cs_write_cached_remote_fae_table()
1186 cp->handle = sys_cpu_to_le16(conn->handle); in bt_le_cs_write_cached_remote_fae_table()
1187 memcpy(cp->remote_fae_table, remote_fae_table, sizeof(cp->remote_fae_table)); in bt_le_cs_write_cached_remote_fae_table()