Lines Matching full:rp
595 struct bt_hci_rp_read_auth_payload_timeout *rp; in read_auth_payload_timeout() local
604 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_auth_payload_timeout()
605 rp->status = status; in read_auth_payload_timeout()
606 rp->handle = sys_cpu_to_le16(handle); in read_auth_payload_timeout()
607 rp->auth_payload_timeout = sys_cpu_to_le16(auth_payload_timeout); in read_auth_payload_timeout()
614 struct bt_hci_rp_write_auth_payload_timeout *rp; in write_auth_payload_timeout() local
624 rp = hci_cmd_complete(evt, sizeof(*rp)); in write_auth_payload_timeout()
625 rp->status = status; in write_auth_payload_timeout()
626 rp->handle = sys_cpu_to_le16(handle); in write_auth_payload_timeout()
635 struct bt_hci_rp_configure_data_path *rp; in configure_data_path() local
651 rp = hci_cmd_complete(evt, sizeof(*rp)); in configure_data_path()
652 rp->status = status; in configure_data_path()
659 struct bt_hci_rp_read_conn_accept_timeout *rp; in read_conn_accept_timeout() local
664 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_conn_accept_timeout()
666 rp->status = ll_conn_iso_accept_timeout_get(&timeout); in read_conn_accept_timeout()
667 rp->conn_accept_timeout = sys_cpu_to_le16(timeout); in read_conn_accept_timeout()
673 struct bt_hci_rp_write_conn_accept_timeout *rp; in write_conn_accept_timeout() local
678 rp = hci_cmd_complete(evt, sizeof(*rp)); in write_conn_accept_timeout()
680 rp->status = ll_conn_iso_accept_timeout_set(timeout); in write_conn_accept_timeout()
688 struct bt_hci_rp_read_tx_power_level *rp; in read_tx_power_level() local
696 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_tx_power_level()
699 handle, type, &rp->tx_power_level); in read_tx_power_level()
701 rp->status = status; in read_tx_power_level()
702 rp->handle = sys_cpu_to_le16(handle); in read_tx_power_level()
777 struct bt_hci_rp_read_local_version_info *rp; in read_local_version_info() local
779 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_local_version_info()
781 rp->status = 0x00; in read_local_version_info()
782 rp->hci_version = LL_VERSION_NUMBER; in read_local_version_info()
783 rp->hci_revision = sys_cpu_to_le16(0); in read_local_version_info()
784 rp->lmp_version = LL_VERSION_NUMBER; in read_local_version_info()
785 rp->manufacturer = sys_cpu_to_le16(ll_settings_company_id()); in read_local_version_info()
786 rp->lmp_subversion = sys_cpu_to_le16(ll_settings_subversion_number()); in read_local_version_info()
791 struct bt_hci_rp_read_supported_commands *rp; in read_supported_commands() local
793 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_supported_commands()
795 rp->status = 0x00; in read_supported_commands()
796 (void)memset(&rp->commands[0], 0, sizeof(rp->commands)); in read_supported_commands()
800 rp->commands[2] |= BIT(7); in read_supported_commands()
803 rp->commands[5] |= BIT(6) | BIT(7); in read_supported_commands()
807 rp->commands[7] |= BIT(2) | BIT(3); in read_supported_commands()
811 rp->commands[10] |= BIT(2); in read_supported_commands()
815 rp->commands[10] |= BIT(5) | BIT(6) | BIT(7); in read_supported_commands()
819 rp->commands[14] |= BIT(3) | BIT(5); in read_supported_commands()
821 rp->commands[15] |= BIT(1); in read_supported_commands()
825 rp->commands[15] |= BIT(5); in read_supported_commands()
829 rp->commands[22] |= BIT(2); in read_supported_commands()
833 rp->commands[25] |= BIT(0) | BIT(1) | BIT(2) | BIT(4); in read_supported_commands()
837 rp->commands[26] |= BIT(6) | BIT(7); in read_supported_commands()
839 rp->commands[27] |= BIT(0) | BIT(1); in read_supported_commands()
843 rp->commands[27] |= BIT(6) | BIT(7); in read_supported_commands()
845 rp->commands[28] |= BIT(3); in read_supported_commands()
849 rp->commands[25] |= BIT(5) | BIT(6) | BIT(7); in read_supported_commands()
851 rp->commands[26] |= BIT(0) | BIT(1); in read_supported_commands()
858 rp->commands[36] |= BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | in read_supported_commands()
861 rp->commands[37] |= BIT(0) | BIT(1); in read_supported_commands()
864 rp->commands[37] |= BIT(2) | BIT(3) | BIT(4); in read_supported_commands()
867 rp->commands[42] |= BIT(5) | BIT(6) | BIT(7); in read_supported_commands()
875 rp->commands[26] |= BIT(2) | BIT(3); in read_supported_commands()
879 rp->commands[37] |= BIT(5) | BIT(6); in read_supported_commands()
882 rp->commands[38] |= BIT(0) | BIT(1) | BIT(2); in read_supported_commands()
889 rp->commands[38] |= BIT(3) | BIT(4) | BIT(5) | BIT(6); in read_supported_commands()
893 rp->commands[40] |= BIT(5); in read_supported_commands()
897 rp->commands[43] |= BIT(0) | BIT(1); in read_supported_commands()
907 rp->commands[26] |= BIT(4) | BIT(5); in read_supported_commands()
909 rp->commands[27] |= BIT(3); in read_supported_commands()
913 rp->commands[37] |= BIT(7); in read_supported_commands()
918 rp->commands[28] |= BIT(0); in read_supported_commands()
923 rp->commands[41] |= BIT(7); in read_supported_commands()
925 rp->commands[42] |= BIT(0) | BIT(1) | BIT(2); in read_supported_commands()
932 rp->commands[28] |= BIT(1) | BIT(2); in read_supported_commands()
936 rp->commands[42] |= BIT(3) | BIT(4); in read_supported_commands()
941 rp->commands[0] |= BIT(5); in read_supported_commands()
943 rp->commands[27] |= BIT(2) | BIT(4) | BIT(5); in read_supported_commands()
947 rp->commands[33] |= BIT(4) | BIT(5); in read_supported_commands()
952 rp->commands[32] |= BIT(4) | BIT(5); in read_supported_commands()
957 rp->commands[33] |= BIT(6) | BIT(7); in read_supported_commands()
959 rp->commands[34] |= BIT(0); in read_supported_commands()
961 rp->commands[35] |= BIT(3); in read_supported_commands()
966 rp->commands[35] |= BIT(4); in read_supported_commands()
968 rp->commands[35] |= BIT(5); in read_supported_commands()
970 rp->commands[35] |= BIT(6); in read_supported_commands()
974 rp->commands[43] |= BIT(2); in read_supported_commands()
980 rp->commands[28] |= BIT(4) | BIT(5) | BIT(6); in read_supported_commands()
982 rp->commands[35] |= BIT(7); in read_supported_commands()
984 rp->commands[36] |= BIT(0); in read_supported_commands()
986 rp->commands[39] |= BIT(3); in read_supported_commands()
990 rp->commands[39] |= BIT(4); in read_supported_commands()
994 rp->commands[45] |= BIT(0); in read_supported_commands()
1000 rp->commands[34] |= BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7); in read_supported_commands()
1002 rp->commands[35] |= BIT(0) | BIT(1) | BIT(2); in read_supported_commands()
1004 rp->commands[39] |= BIT(2); in read_supported_commands()
1012 rp->commands[39] |= BIT(5) | BIT(6); in read_supported_commands()
1016 rp->commands[39] |= BIT(7); in read_supported_commands()
1019 rp->commands[40] |= BIT(4); in read_supported_commands()
1022 rp->commands[40] |= BIT(1); in read_supported_commands()
1026 rp->commands[40] |= BIT(0); in read_supported_commands()
1030 rp->commands[40] |= BIT(2); in read_supported_commands()
1034 rp->commands[40] |= BIT(3); in read_supported_commands()
1041 rp->commands[40] |= BIT(6); in read_supported_commands()
1043 rp->commands[40] |= BIT(7); in read_supported_commands()
1047 rp->commands[41] |= BIT(0); in read_supported_commands()
1049 rp->commands[41] |= BIT(1); in read_supported_commands()
1053 bt_hci_ecc_supported_commands(rp->commands); in read_supported_commands()
1057 rp->commands[38] |= BIT(7); in read_supported_commands()
1061 rp->commands[41] |= BIT(5) | BIT(6); in read_supported_commands()
1063 rp->commands[43] |= BIT(5); in read_supported_commands()
1068 rp->commands[43] |= BIT(6) | BIT(7); in read_supported_commands()
1072 rp->commands[44] |= BIT(2); in read_supported_commands()
1078 rp->commands[43] |= BIT(3) | BIT(4); in read_supported_commands()
1080 rp->commands[44] |= BIT(0); in read_supported_commands()
1085 rp->commands[44] |= BIT(1); in read_supported_commands()
1090 rp->commands[45] |= BIT(2) | BIT(3) | BIT(4) | BIT(5); in read_supported_commands()
1096 struct bt_hci_rp_read_local_features *rp; in read_local_features() local
1098 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_local_features()
1100 rp->status = 0x00; in read_local_features()
1101 (void)memset(&rp->features[0], 0x00, sizeof(rp->features)); in read_local_features()
1103 rp->features[4] = (1 << 5) | (1 << 6); in read_local_features()
1108 struct bt_hci_rp_read_bd_addr *rp; in read_bd_addr() local
1110 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_bd_addr()
1112 rp->status = 0x00; in read_bd_addr()
1114 (void)ll_addr_read(0, &rp->bdaddr.val[0]); in read_bd_addr()
1144 struct bt_hci_rp_read_codecs_v2 *rp; in read_codecs_v2() local
1165 rp = hci_cmd_complete(evt, sizeof(*rp) + in read_codecs_v2()
1168 rp->status = 0x00; in read_codecs_v2()
1171 std_codecs = (struct bt_hci_std_codecs_v2 *)&rp->codecs[0]; in read_codecs_v2()
1182 vs_codecs = (struct bt_hci_vs_codecs_v2 *)&rp->codecs[std_codecs_bytes]; in read_codecs_v2()
1221 struct bt_hci_rp_read_codec_capabilities *rp; in read_codec_capabilities() local
1243 rp = hci_cmd_complete(evt, sizeof(*rp) + capabilities_bytes); in read_codec_capabilities()
1244 rp->status = status; in read_codec_capabilities()
1247 rp->num_capabilities = num_capabilities; in read_codec_capabilities()
1248 memcpy(&rp->capabilities, capabilities, capabilities_bytes); in read_codec_capabilities()
1279 struct bt_hci_rp_read_ctlr_delay *rp; in read_ctlr_delay() local
1299 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_ctlr_delay()
1300 rp->status = status; in read_ctlr_delay()
1301 sys_put_le24(min_delay, rp->min_ctlr_delay); in read_ctlr_delay()
1302 sys_put_le24(max_delay, rp->max_ctlr_delay); in read_ctlr_delay()
1351 struct bt_hci_rp_read_rssi *rp; in read_rssi() local
1356 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_rssi()
1358 rp->status = ll_rssi_get(handle, &rp->rssi); in read_rssi()
1360 rp->handle = sys_cpu_to_le16(handle); in read_rssi()
1362 rp->rssi = (!rp->status) ? -rp->rssi : 127; in read_rssi()
1394 struct bt_hci_rp_le_read_buffer_size *rp; in le_read_buffer_size() local
1396 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_buffer_size()
1398 rp->status = 0x00; in le_read_buffer_size()
1400 rp->le_max_len = sys_cpu_to_le16(LL_LENGTH_OCTETS_TX_MAX); in le_read_buffer_size()
1401 rp->le_max_num = CONFIG_BT_BUF_ACL_TX_COUNT; in le_read_buffer_size()
1407 struct bt_hci_rp_le_read_buffer_size_v2 *rp; in le_read_buffer_size_v2() local
1409 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_buffer_size_v2()
1411 rp->status = 0x00; in le_read_buffer_size_v2()
1413 rp->acl_max_len = sys_cpu_to_le16(LL_LENGTH_OCTETS_TX_MAX); in le_read_buffer_size_v2()
1414 rp->acl_max_num = CONFIG_BT_BUF_ACL_TX_COUNT; in le_read_buffer_size_v2()
1415 rp->iso_max_len = sys_cpu_to_le16(BT_CTLR_ISO_TX_BUFFER_SIZE); in le_read_buffer_size_v2()
1416 rp->iso_max_num = CONFIG_BT_CTLR_ISO_TX_BUFFERS; in le_read_buffer_size_v2()
1422 struct bt_hci_rp_le_read_local_features *rp; in le_read_local_features() local
1424 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_local_features()
1426 rp->status = 0x00; in le_read_local_features()
1428 (void)memset(&rp->features[0], 0x00, sizeof(rp->features)); in le_read_local_features()
1429 sys_put_le64(ll_feat_get(), rp->features); in le_read_local_features()
1445 struct bt_hci_rp_le_read_fal_size *rp; in le_read_fal_size() local
1447 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_fal_size()
1448 rp->status = 0x00; in le_read_fal_size()
1450 rp->fal_size = ll_fal_size_get(); in le_read_fal_size()
1487 struct bt_hci_rp_le_encrypt *rp; in le_encrypt() local
1492 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_encrypt()
1494 rp->status = 0x00; in le_encrypt()
1495 memcpy(rp->enc_data, enc_data, 16); in le_encrypt()
1501 struct bt_hci_rp_le_rand *rp; in le_rand() local
1502 uint8_t count = sizeof(rp->rand); in le_rand()
1504 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_rand()
1505 rp->status = 0x00; in le_rand()
1507 lll_csrand_get(rp->rand, count); in le_rand()
1512 struct bt_hci_rp_le_read_supp_states *rp; in le_read_supp_states() local
1515 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_supp_states()
1516 rp->status = 0x00; in le_read_supp_states()
1564 sys_put_le64(states, rp->le_states); in le_read_supp_states()
1609 struct bt_hci_rp_le_read_chan_tx_power *rp; in le_read_adv_chan_tx_power() local
1615 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_adv_chan_tx_power()
1617 rp->status = 0x00; in le_read_adv_chan_tx_power()
1619 rp->tx_power_level = 0; in le_read_adv_chan_tx_power()
1854 struct bt_hci_rp_le_big_terminate_sync *rp; in le_big_terminate_sync() local
1861 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_big_terminate_sync()
1862 rp->status = status; in le_big_terminate_sync()
1863 rp->big_handle = big_handle; in le_big_terminate_sync()
2006 struct bt_hci_rp_le_set_cig_params *rp; in le_set_cig_parameters() local
2043 rp = hci_cmd_complete(evt, sizeof(*rp) + cis_count * sizeof(uint16_t)); in le_set_cig_parameters()
2044 rp->cig_id = cig_id; in le_set_cig_parameters()
2054 rp->handle[j] = sys_cpu_to_le16(handles[j]); in le_set_cig_parameters()
2059 rp->num_handles = status ? 0U : cis_count; in le_set_cig_parameters()
2060 rp->status = status; in le_set_cig_parameters()
2066 struct bt_hci_rp_le_set_cig_params_test *rp; in le_set_cig_params_test() local
2115 rp = hci_cmd_complete(evt, sizeof(*rp) + cis_count * sizeof(uint16_t)); in le_set_cig_params_test()
2116 rp->cig_id = cig_id; in le_set_cig_params_test()
2126 rp->handle[j] = sys_cpu_to_le16(handles[j]); in le_set_cig_params_test()
2131 rp->num_handles = status ? 0U : cis_count; in le_set_cig_params_test()
2132 rp->status = status; in le_set_cig_params_test()
2206 struct bt_hci_rp_le_remove_cig *rp; in le_remove_cig() local
2211 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_remove_cig()
2212 rp->status = status; in le_remove_cig()
2213 rp->cig_id = cmd->cig_id; in le_remove_cig()
2223 struct bt_hci_rp_le_iso_transmit_test *rp; in le_iso_transmit_test() local
2231 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_transmit_test()
2232 rp->status = status; in le_iso_transmit_test()
2233 rp->handle = sys_cpu_to_le16(handle); in le_iso_transmit_test()
2239 struct bt_hci_rp_le_read_iso_tx_sync *rp; in le_read_iso_tx_sync() local
2252 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_iso_tx_sync()
2253 rp->status = status; in le_read_iso_tx_sync()
2254 rp->handle = handle_le16; in le_read_iso_tx_sync()
2255 rp->seq = sys_cpu_to_le16(seq); in le_read_iso_tx_sync()
2256 rp->timestamp = sys_cpu_to_le32(timestamp); in le_read_iso_tx_sync()
2257 sys_put_le24(offset, rp->offset); in le_read_iso_tx_sync()
2265 struct bt_hci_rp_le_iso_receive_test *rp; in le_iso_receive_test() local
2273 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_receive_test()
2274 rp->status = status; in le_iso_receive_test()
2275 rp->handle = sys_cpu_to_le16(handle); in le_iso_receive_test()
2281 struct bt_hci_rp_le_read_test_counters *rp; in le_iso_read_test_counters() local
2292 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_read_test_counters()
2293 rp->status = status; in le_iso_read_test_counters()
2294 rp->handle = sys_cpu_to_le16(handle); in le_iso_read_test_counters()
2295 rp->received_cnt = sys_cpu_to_le32(received_cnt); in le_iso_read_test_counters()
2296 rp->missed_cnt = sys_cpu_to_le32(missed_cnt); in le_iso_read_test_counters()
2297 rp->failed_cnt = sys_cpu_to_le32(failed_cnt); in le_iso_read_test_counters()
2304 struct bt_hci_rp_le_read_iso_link_quality *rp; in le_read_iso_link_quality() local
2326 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_iso_link_quality()
2327 rp->status = status; in le_read_iso_link_quality()
2328 rp->handle = handle_le16; in le_read_iso_link_quality()
2329 rp->tx_unacked_packets = sys_cpu_to_le32(tx_unacked_packets); in le_read_iso_link_quality()
2330 rp->tx_flushed_packets = sys_cpu_to_le32(tx_flushed_packets); in le_read_iso_link_quality()
2331 rp->tx_last_subevent_packets = in le_read_iso_link_quality()
2333 rp->retransmitted_packets = sys_cpu_to_le32(retransmitted_packets); in le_read_iso_link_quality()
2334 rp->crc_error_packets = sys_cpu_to_le32(crc_error_packets); in le_read_iso_link_quality()
2335 rp->rx_unreceived_packets = sys_cpu_to_le32(rx_unreceived_packets); in le_read_iso_link_quality()
2336 rp->duplicate_packets = sys_cpu_to_le32(duplicate_packets); in le_read_iso_link_quality()
2346 struct bt_hci_rp_le_setup_iso_path *rp; in le_setup_iso_path() local
2367 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_setup_iso_path()
2368 rp->status = status; in le_setup_iso_path()
2369 rp->handle = sys_cpu_to_le16(handle); in le_setup_iso_path()
2375 struct bt_hci_rp_le_remove_iso_path *rp; in le_remove_iso_path() local
2383 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_remove_iso_path()
2384 rp->status = status; in le_remove_iso_path()
2385 rp->handle = sys_cpu_to_le16(handle); in le_remove_iso_path()
2391 struct bt_hci_rp_le_iso_test_end *rp; in le_iso_test_end() local
2402 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_test_end()
2403 rp->status = status; in le_iso_test_end()
2404 rp->handle = sys_cpu_to_le16(handle); in le_iso_test_end()
2405 rp->received_cnt = sys_cpu_to_le32(received_cnt); in le_iso_test_end()
2406 rp->missed_cnt = sys_cpu_to_le32(missed_cnt); in le_iso_test_end()
2407 rp->failed_cnt = sys_cpu_to_le32(failed_cnt); in le_iso_test_end()
2415 struct bt_hci_rp_le_set_host_feature *rp; in le_set_host_feature() local
2420 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_set_host_feature()
2421 rp->status = status; in le_set_host_feature()
2430 struct bt_hci_rp_le_ltk_req_reply *rp; in le_ltk_req_reply() local
2437 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_ltk_req_reply()
2438 rp->status = status; in le_ltk_req_reply()
2439 rp->handle = sys_cpu_to_le16(handle); in le_ltk_req_reply()
2445 struct bt_hci_rp_le_ltk_req_neg_reply *rp; in le_ltk_req_neg_reply() local
2453 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_ltk_req_neg_reply()
2454 rp->status = status; in le_ltk_req_neg_reply()
2455 rp->handle = sys_le16_to_cpu(handle); in le_ltk_req_neg_reply()
2474 struct bt_hci_rp_le_reject_cis *rp; in le_reject_cis() local
2481 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_reject_cis()
2482 rp->status = status; in le_reject_cis()
2483 rp->handle = sys_cpu_to_le16(handle); in le_reject_cis()
2521 struct bt_hci_rp_le_read_chan_map *rp; in le_read_chan_map() local
2527 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_chan_map()
2529 status = ll_chm_get(handle, rp->ch_map); in le_read_chan_map()
2531 rp->status = status; in le_read_chan_map()
2532 rp->handle = sys_le16_to_cpu(handle); in le_read_chan_map()
2562 struct bt_hci_rp_le_conn_param_req_reply *rp; in le_conn_param_req_reply() local
2579 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_conn_param_req_reply()
2580 rp->status = status; in le_conn_param_req_reply()
2581 rp->handle = sys_cpu_to_le16(handle); in le_conn_param_req_reply()
2588 struct bt_hci_rp_le_conn_param_req_neg_reply *rp; in le_conn_param_req_neg_reply() local
2595 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_conn_param_req_neg_reply()
2596 rp->status = status; in le_conn_param_req_neg_reply()
2597 rp->handle = sys_cpu_to_le16(handle); in le_conn_param_req_neg_reply()
2605 struct bt_hci_rp_le_set_data_len *rp; in le_set_data_len() local
2616 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_set_data_len()
2617 rp->status = status; in le_set_data_len()
2618 rp->handle = sys_cpu_to_le16(handle); in le_set_data_len()
2623 struct bt_hci_rp_le_read_default_data_len *rp; in le_read_default_data_len() local
2627 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_default_data_len()
2631 rp->max_tx_octets = sys_cpu_to_le16(max_tx_octets); in le_read_default_data_len()
2632 rp->max_tx_time = sys_cpu_to_le16(max_tx_time); in le_read_default_data_len()
2633 rp->status = 0x00; in le_read_default_data_len()
2653 struct bt_hci_rp_le_read_max_data_len *rp; in le_read_max_data_len() local
2659 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_max_data_len()
2664 rp->max_tx_octets = sys_cpu_to_le16(max_tx_octets); in le_read_max_data_len()
2665 rp->max_tx_time = sys_cpu_to_le16(max_tx_time); in le_read_max_data_len()
2666 rp->max_rx_octets = sys_cpu_to_le16(max_rx_octets); in le_read_max_data_len()
2667 rp->max_rx_time = sys_cpu_to_le16(max_rx_time); in le_read_max_data_len()
2668 rp->status = 0x00; in le_read_max_data_len()
2676 struct bt_hci_rp_le_read_phy *rp; in le_read_phy() local
2682 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_phy()
2684 status = ll_phy_get(handle, &rp->tx_phy, &rp->rx_phy); in le_read_phy()
2686 rp->status = status; in le_read_phy()
2687 rp->handle = sys_cpu_to_le16(handle); in le_read_phy()
2688 rp->tx_phy = find_lsb_set(rp->tx_phy); in le_read_phy()
2689 rp->rx_phy = find_lsb_set(rp->rx_phy); in le_read_phy()
2795 struct bt_hci_rp_le_read_rl_size *rp; in le_read_rl_size() local
2797 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_rl_size()
2799 rp->rl_size = ll_rl_size_get(); in le_read_rl_size()
2800 rp->status = 0x00; in le_read_rl_size()
2806 struct bt_hci_rp_le_read_peer_rpa *rp; in le_read_peer_rpa() local
2810 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_peer_rpa()
2812 rp->status = ll_rl_crpa_get(&peer_id_addr, &rp->peer_rpa); in le_read_peer_rpa()
2818 struct bt_hci_rp_le_read_local_rpa *rp; in le_read_local_rpa() local
2822 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_local_rpa()
2824 rp->status = ll_rl_lrpa_get(&peer_id_addr, &rp->local_rpa); in le_read_local_rpa()
2860 struct bt_hci_rp_le_read_tx_power *rp; in le_read_tx_power() local
2862 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_tx_power()
2863 rp->status = 0x00; in le_read_tx_power()
2864 ll_tx_pwr_get(&rp->min_tx_power, &rp->max_tx_power); in le_read_tx_power()
2920 struct bt_hci_rp_le_set_cl_cte_sampling_enable *rp; in le_df_set_cl_iq_sampling_enable() local
2933 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_cl_iq_sampling_enable()
2935 rp->status = status; in le_df_set_cl_iq_sampling_enable()
2936 rp->sync_handle = sys_cpu_to_le16(sync_handle); in le_df_set_cl_iq_sampling_enable()
3081 struct bt_hci_rp_le_set_conn_cte_tx_params *rp; in le_df_set_conn_cte_tx_params() local
3092 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_tx_params()
3094 rp->status = status; in le_df_set_conn_cte_tx_params()
3095 rp->handle = handle_le16; in le_df_set_conn_cte_tx_params()
3103 struct bt_hci_rp_le_set_conn_cte_rx_params *rp; in le_df_set_conn_cte_rx_params() local
3113 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_rx_params()
3115 rp->status = status; in le_df_set_conn_cte_rx_params()
3116 rp->handle = handle_le16; in le_df_set_conn_cte_rx_params()
3211 struct bt_hci_rp_le_conn_cte_req_enable *rp; in le_df_set_conn_cte_req_enable() local
3221 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_req_enable()
3223 rp->status = status; in le_df_set_conn_cte_req_enable()
3224 rp->handle = handle_le16; in le_df_set_conn_cte_req_enable()
3247 struct bt_hci_rp_le_conn_cte_rsp_enable *rp; in le_df_set_conn_cte_rsp_enable() local
3255 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_rsp_enable()
3257 rp->status = status; in le_df_set_conn_cte_rsp_enable()
3258 rp->handle = handle_le16; in le_df_set_conn_cte_rsp_enable()
3264 struct bt_hci_rp_le_read_ant_info *rp; in le_df_read_ant_inf() local
3273 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_read_ant_inf()
3275 rp->max_switch_pattern_len = max_switch_pattern_len; in le_df_read_ant_inf()
3276 rp->switch_sample_rates = switch_sample_rates; in le_df_read_ant_inf()
3277 rp->max_cte_len = max_cte_len; in le_df_read_ant_inf()
3278 rp->num_ant = num_ant; in le_df_read_ant_inf()
3279 rp->status = 0x00; in le_df_read_ant_inf()
3312 struct bt_hci_rp_le_test_end *rp; in le_test_end() local
3318 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_test_end()
3319 rp->status = status; in le_test_end()
3320 rp->rx_pkt_count = sys_cpu_to_le16(rx_pkt_count); in le_test_end()
3421 struct bt_hci_rp_le_set_ext_adv_param *rp; in le_set_ext_adv_param() local
3486 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_set_ext_adv_param()
3487 rp->status = status; in le_set_ext_adv_param()
3488 rp->tx_power = tx_pwr; in le_set_ext_adv_param()
3602 struct bt_hci_rp_le_read_max_adv_data_len *rp; in le_read_max_adv_data_len() local
3609 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_max_adv_data_len()
3613 rp->max_adv_data_len = sys_cpu_to_le16(max_adv_data_len); in le_read_max_adv_data_len()
3614 rp->status = 0x00; in le_read_max_adv_data_len()
3619 struct bt_hci_rp_le_read_num_adv_sets *rp; in le_read_num_adv_sets() local
3625 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_num_adv_sets()
3627 rp->num_sets = ll_adv_aux_set_count_get(); in le_read_num_adv_sets()
3628 rp->status = 0x00; in le_read_num_adv_sets()
4082 struct bt_hci_rp_le_read_per_adv_list_size *rp; local
4088 rp = hci_cmd_complete(evt, sizeof(*rp));
4089 rp->status = 0x00;
4091 rp->list_size = ll_pal_size_get();
4101 struct bt_hci_rp_le_per_adv_sync_transfer *rp; local
4115 rp = hci_cmd_complete(evt, sizeof(*rp));
4116 rp->conn_handle = conn_handle_le16;
4117 rp->status = status;
4123 struct bt_hci_rp_le_per_adv_set_info_transfer *rp; local
4137 rp = hci_cmd_complete(evt, sizeof(*rp));
4138 rp->conn_handle = conn_handle_le16;
4139 rp->status = status;
4147 struct bt_hci_rp_le_past_param *rp; local
4170 rp = hci_cmd_complete(evt, sizeof(*rp));
4171 rp->conn_handle = conn_handle_le16;
4172 rp->status = status;
4178 struct bt_hci_rp_le_default_past_param *rp; local
4196 rp = hci_cmd_complete(evt, sizeof(*rp));
4197 rp->status = status;
4981 struct bt_hci_rp_vs_read_version_info *rp; local
4983 rp = hci_cmd_complete(evt, sizeof(*rp));
4985 rp->status = 0x00;
4986 rp->hw_platform = sys_cpu_to_le16(BT_HCI_VS_HW_PLAT);
4987 rp->hw_variant = sys_cpu_to_le16(BT_HCI_VS_HW_VAR);
4989 rp->fw_variant = 0U;
4990 rp->fw_version = (KERNEL_VERSION_MAJOR & 0xff);
4991 rp->fw_revision = sys_cpu_to_le16(KERNEL_VERSION_MINOR);
4992 rp->fw_build = sys_cpu_to_le32(KERNEL_PATCHLEVEL & 0xffff);
4998 struct bt_hci_rp_vs_read_supported_commands *rp; local
5000 rp = hci_cmd_complete(evt, sizeof(*rp));
5002 rp->status = 0x00;
5003 (void)memset(&rp->commands[0], 0, sizeof(rp->commands));
5006 rp->commands[0] |= BIT(0) | BIT(1) | BIT(2);
5008 rp->commands[0] |= BIT(5) | BIT(7);
5010 rp->commands[1] |= BIT(0) | BIT(1);
5013 rp->commands[1] |= BIT(4);
5017 rp->commands[1] |= BIT(5) | BIT(6);
5021 rp->commands[1] |= BIT(7);
5023 rp->commands[2] |= BIT(0);
5030 struct bt_hci_rp_vs_read_supported_features *rp; local
5032 rp = hci_cmd_complete(evt, sizeof(*rp));
5034 rp->status = 0x00;
5035 (void)memset(&rp->features[0], 0x00, sizeof(rp->features));
5058 struct bt_hci_rp_vs_read_build_info *rp; local
5072 rp = hci_cmd_complete(evt, sizeof(*rp) + sizeof(build_info));
5073 rp->status = 0x00;
5074 memcpy(rp->info, build_info, sizeof(build_info));
5088 struct bt_hci_rp_vs_read_static_addrs *rp; local
5090 rp = hci_cmd_complete(evt, sizeof(*rp) +
5092 rp->status = 0x00;
5093 rp->num_addrs = hci_vendor_read_static_addr(rp->a, 1);
5099 struct bt_hci_rp_vs_read_key_hierarchy_roots *rp; local
5101 rp = hci_cmd_complete(evt, sizeof(*rp));
5102 rp->status = 0x00;
5103 hci_vendor_read_key_hierarchy_roots(rp->ir, rp->er);
5137 struct bt_hci_rp_vs_write_tx_power_level *rp; local
5145 rp = hci_cmd_complete(evt, sizeof(*rp));
5146 rp->selected_tx_power = cmd->tx_power_level;
5148 status = ll_tx_pwr_lvl_set(handle_type, handle, &rp->selected_tx_power);
5150 rp->status = status;
5151 rp->handle_type = handle_type;
5152 rp->handle = sys_cpu_to_le16(handle);
5158 struct bt_hci_rp_vs_read_tx_power_level *rp; local
5166 rp = hci_cmd_complete(evt, sizeof(*rp));
5168 status = ll_tx_pwr_lvl_get(handle_type, handle, 0, &rp->tx_power_level);
5170 rp->status = status;
5171 rp->handle_type = handle_type;
5172 rp->handle = sys_cpu_to_le16(handle);
5503 struct bt_hci_rp_mesh_get_opts *rp; local
5505 rp = hci_cmd_complete(evt, sizeof(*rp));
5507 rp->status = 0x00;
5508 rp->opcode = BT_HCI_OC_MESH_GET_OPTS;
5510 rp->revision = BT_HCI_MESH_REVISION;
5511 rp->ch_map = 0x7;
5513 rp->min_tx_power = -30;
5515 rp->max_tx_power = 4;
5516 rp->max_scan_filter = CONFIG_BT_CTLR_MESH_SCAN_FILTERS;
5517 rp->max_filter_pattern = CONFIG_BT_CTLR_MESH_SF_PATTERNS;
5518 rp->max_adv_slot = 1U;
5519 rp->evt_prefix_len = 0x01;
5520 rp->evt_prefix = BT_HCI_MESH_EVT_PREFIX;
5526 struct bt_hci_rp_mesh_set_scan_filter *rp; local
5564 rp = hci_cmd_complete(evt, sizeof(*rp));
5565 rp->status = status;
5566 rp->opcode = BT_HCI_OC_MESH_SET_SCAN_FILTER;
5567 rp->scan_filter = filter + 1;
5573 struct bt_hci_rp_mesh_advertise *rp; local
5589 rp = hci_cmd_complete(evt, sizeof(*rp));
5590 rp->status = status;
5591 rp->opcode = BT_HCI_OC_MESH_ADVERTISE;
5592 rp->adv_slot = adv_slot;
5598 struct bt_hci_rp_mesh_advertise_cancel *rp; local
5608 rp = hci_cmd_complete(evt, sizeof(*rp));
5609 rp->status = status;
5610 rp->opcode = BT_HCI_OC_MESH_ADVERTISE_CANCEL;
5611 rp->adv_slot = adv_slot;