Lines Matching refs:evt
299 static void hci_evt_create(struct net_buf *buf, uint8_t evt, uint8_t len) in hci_evt_create() argument
304 hdr->evt = evt; in hci_evt_create()
346 struct bt_hci_evt_vs *evt; in vs_event() local
348 hci_evt_create(buf, BT_HCI_EVT_VENDOR, sizeof(*evt) + evt_len); in vs_event()
349 evt = net_buf_add(buf, sizeof(*evt)); in vs_event()
350 evt->subevent = subevt; in vs_event()
371 static void disconnect(struct net_buf *buf, struct net_buf **evt) in disconnect() argument
380 *evt = cmd_status(status); in disconnect()
383 static void read_remote_ver_info(struct net_buf *buf, struct net_buf **evt) in read_remote_ver_info() argument
392 *evt = cmd_status(status); in read_remote_ver_info()
397 struct net_buf **evt) in link_control_cmd_handle() argument
402 disconnect(cmd, evt); in link_control_cmd_handle()
405 read_remote_ver_info(cmd, evt); in link_control_cmd_handle()
415 static void set_event_mask(struct net_buf *buf, struct net_buf **evt) in set_event_mask() argument
421 *evt = cmd_complete_status(0x00); in set_event_mask()
424 static void set_event_mask_page_2(struct net_buf *buf, struct net_buf **evt) in set_event_mask_page_2() argument
430 *evt = cmd_complete_status(0x00); in set_event_mask_page_2()
433 static void reset(struct net_buf *buf, struct net_buf **evt) in reset() argument
458 *evt = cmd_complete_status(0x00); in reset()
484 static void set_ctl_to_host_flow(struct net_buf *buf, struct net_buf **evt) in set_ctl_to_host_flow() argument
490 ccst = hci_cmd_complete(evt, sizeof(*ccst)); in set_ctl_to_host_flow()
526 static void host_buffer_size(struct net_buf *buf, struct net_buf **evt) in host_buffer_size() argument
533 ccst = hci_cmd_complete(evt, sizeof(*ccst)); in host_buffer_size()
552 struct net_buf **evt) in host_num_completed_packets() argument
560 ccst = hci_cmd_complete(evt, sizeof(*ccst)); in host_num_completed_packets()
564 ccst = hci_cmd_complete(evt, sizeof(*ccst)); in host_num_completed_packets()
576 ccst = hci_cmd_complete(evt, sizeof(*ccst)); in host_num_completed_packets()
592 static void read_auth_payload_timeout(struct net_buf *buf, struct net_buf **evt) in read_auth_payload_timeout() argument
604 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_auth_payload_timeout()
611 struct net_buf **evt) in write_auth_payload_timeout() argument
624 rp = hci_cmd_complete(evt, sizeof(*rp)); in write_auth_payload_timeout()
632 struct net_buf **evt) in configure_data_path() argument
651 rp = hci_cmd_complete(evt, sizeof(*rp)); in configure_data_path()
657 static void read_conn_accept_timeout(struct net_buf *buf, struct net_buf **evt) in read_conn_accept_timeout() argument
664 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_conn_accept_timeout()
670 static void write_conn_accept_timeout(struct net_buf *buf, struct net_buf **evt) in write_conn_accept_timeout() argument
678 rp = hci_cmd_complete(evt, sizeof(*rp)); in write_conn_accept_timeout()
685 static void read_tx_power_level(struct net_buf *buf, struct net_buf **evt) in read_tx_power_level() argument
696 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_tx_power_level()
707 struct net_buf **evt) in ctrl_bb_cmd_handle() argument
711 set_event_mask(cmd, evt); in ctrl_bb_cmd_handle()
715 reset(cmd, evt); in ctrl_bb_cmd_handle()
719 set_event_mask_page_2(cmd, evt); in ctrl_bb_cmd_handle()
724 read_conn_accept_timeout(cmd, evt); in ctrl_bb_cmd_handle()
728 write_conn_accept_timeout(cmd, evt); in ctrl_bb_cmd_handle()
734 read_tx_power_level(cmd, evt); in ctrl_bb_cmd_handle()
740 set_ctl_to_host_flow(cmd, evt); in ctrl_bb_cmd_handle()
744 host_buffer_size(cmd, evt); in ctrl_bb_cmd_handle()
748 host_num_completed_packets(cmd, evt); in ctrl_bb_cmd_handle()
754 read_auth_payload_timeout(cmd, evt); in ctrl_bb_cmd_handle()
758 write_auth_payload_timeout(cmd, evt); in ctrl_bb_cmd_handle()
764 configure_data_path(cmd, evt); in ctrl_bb_cmd_handle()
775 static void read_local_version_info(struct net_buf *buf, struct net_buf **evt) in read_local_version_info() argument
779 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_local_version_info()
789 static void read_supported_commands(struct net_buf *buf, struct net_buf **evt) in read_supported_commands() argument
793 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_supported_commands()
1094 static void read_local_features(struct net_buf *buf, struct net_buf **evt) in read_local_features() argument
1098 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_local_features()
1106 static void read_bd_addr(struct net_buf *buf, struct net_buf **evt) in read_bd_addr() argument
1110 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_bd_addr()
1142 static void read_codecs_v2(struct net_buf *buf, struct net_buf **evt) in read_codecs_v2() argument
1165 rp = hci_cmd_complete(evt, sizeof(*rp) + in read_codecs_v2()
1218 static void read_codec_capabilities(struct net_buf *buf, struct net_buf **evt) in read_codec_capabilities() argument
1243 rp = hci_cmd_complete(evt, sizeof(*rp) + capabilities_bytes); in read_codec_capabilities()
1276 static void read_ctlr_delay(struct net_buf *buf, struct net_buf **evt) in read_ctlr_delay() argument
1299 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_ctlr_delay()
1307 struct net_buf **evt) in info_cmd_handle() argument
1311 read_local_version_info(cmd, evt); in info_cmd_handle()
1315 read_supported_commands(cmd, evt); in info_cmd_handle()
1319 read_local_features(cmd, evt); in info_cmd_handle()
1323 read_bd_addr(cmd, evt); in info_cmd_handle()
1328 read_codecs_v2(cmd, evt); in info_cmd_handle()
1332 read_codec_capabilities(cmd, evt); in info_cmd_handle()
1336 read_ctlr_delay(cmd, evt); in info_cmd_handle()
1348 static void read_rssi(struct net_buf *buf, struct net_buf **evt) in read_rssi() argument
1356 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_rssi()
1367 struct net_buf **evt) in status_cmd_handle() argument
1372 read_rssi(cmd, evt); in status_cmd_handle()
1383 static void le_set_event_mask(struct net_buf *buf, struct net_buf **evt) in le_set_event_mask() argument
1389 *evt = cmd_complete_status(0x00); in le_set_event_mask()
1392 static void le_read_buffer_size(struct net_buf *buf, struct net_buf **evt) in le_read_buffer_size() argument
1396 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_buffer_size()
1405 static void le_read_buffer_size_v2(struct net_buf *buf, struct net_buf **evt) in le_read_buffer_size_v2() argument
1409 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_buffer_size_v2()
1420 static void le_read_local_features(struct net_buf *buf, struct net_buf **evt) in le_read_local_features() argument
1424 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_local_features()
1432 static void le_set_random_address(struct net_buf *buf, struct net_buf **evt) in le_set_random_address() argument
1439 *evt = cmd_complete_status(status); in le_set_random_address()
1443 static void le_read_fal_size(struct net_buf *buf, struct net_buf **evt) in le_read_fal_size() argument
1447 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_fal_size()
1453 static void le_clear_fal(struct net_buf *buf, struct net_buf **evt) in le_clear_fal() argument
1459 *evt = cmd_complete_status(status); in le_clear_fal()
1462 static void le_add_dev_to_fal(struct net_buf *buf, struct net_buf **evt) in le_add_dev_to_fal() argument
1469 *evt = cmd_complete_status(status); in le_add_dev_to_fal()
1472 static void le_rem_dev_from_fal(struct net_buf *buf, struct net_buf **evt) in le_rem_dev_from_fal() argument
1479 *evt = cmd_complete_status(status); in le_rem_dev_from_fal()
1484 static void le_encrypt(struct net_buf *buf, struct net_buf **evt) in le_encrypt() argument
1492 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_encrypt()
1499 static void le_rand(struct net_buf *buf, struct net_buf **evt) in le_rand() argument
1504 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_rand()
1510 static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt) in le_read_supp_states() argument
1515 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_supp_states()
1568 static void le_set_adv_param(struct net_buf *buf, struct net_buf **evt) in le_set_adv_param() argument
1574 if (adv_cmds_legacy_check(evt)) { in le_set_adv_param()
1587 *evt = cmd_complete_status(BT_HCI_ERR_INVALID_PARAM); in le_set_adv_param()
1604 *evt = cmd_complete_status(status); in le_set_adv_param()
1607 static void le_read_adv_chan_tx_power(struct net_buf *buf, struct net_buf **evt) in le_read_adv_chan_tx_power() argument
1611 if (adv_cmds_legacy_check(evt)) { in le_read_adv_chan_tx_power()
1615 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_adv_chan_tx_power()
1622 static void le_set_adv_data(struct net_buf *buf, struct net_buf **evt) in le_set_adv_data() argument
1627 if (adv_cmds_legacy_check(evt)) { in le_set_adv_data()
1637 *evt = cmd_complete_status(status); in le_set_adv_data()
1640 static void le_set_scan_rsp_data(struct net_buf *buf, struct net_buf **evt) in le_set_scan_rsp_data() argument
1645 if (adv_cmds_legacy_check(evt)) { in le_set_scan_rsp_data()
1655 *evt = cmd_complete_status(status); in le_set_scan_rsp_data()
1658 static void le_set_adv_enable(struct net_buf *buf, struct net_buf **evt) in le_set_adv_enable() argument
1663 if (adv_cmds_legacy_check(evt)) { in le_set_adv_enable()
1677 *evt = cmd_complete_status(status); in le_set_adv_enable()
1681 static void le_create_big(struct net_buf *buf, struct net_buf **evt) in le_create_big() argument
1693 *evt = cmd_status(status); in le_create_big()
1699 *evt = cmd_status(status); in le_create_big()
1712 *evt = cmd_status(status); in le_create_big()
1715 static void le_create_big_test(struct net_buf *buf, struct net_buf **evt) in le_create_big_test() argument
1736 *evt = cmd_status(status); in le_create_big_test()
1739 static void le_terminate_big(struct net_buf *buf, struct net_buf **evt) in le_terminate_big() argument
1746 *evt = cmd_status(status); in le_terminate_big()
1752 static void le_set_scan_param(struct net_buf *buf, struct net_buf **evt) in le_set_scan_param() argument
1759 if (adv_cmds_legacy_check(evt)) { in le_set_scan_param()
1769 *evt = cmd_complete_status(status); in le_set_scan_param()
1772 static void le_set_scan_enable(struct net_buf *buf, struct net_buf **evt) in le_set_scan_enable() argument
1777 if (adv_cmds_legacy_check(evt)) { in le_set_scan_enable()
1828 *evt = cmd_complete_status(status); in le_set_scan_enable()
1832 static void le_big_create_sync(struct net_buf *buf, struct net_buf **evt) in le_big_create_sync() argument
1846 *evt = cmd_status(status); in le_big_create_sync()
1850 static void le_big_terminate_sync(struct net_buf *buf, struct net_buf **evt, in le_big_terminate_sync() argument
1861 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_big_terminate_sync()
1905 static void le_create_connection(struct net_buf *buf, struct net_buf **evt) in le_create_connection() argument
1916 *evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED); in le_create_connection()
1933 *evt = cmd_status(status); in le_create_connection()
1947 *evt = cmd_status(status); in le_create_connection()
1962 *evt = cmd_status(status); in le_create_connection()
1965 static void le_create_conn_cancel(struct net_buf *buf, struct net_buf **evt, in le_create_conn_cancel() argument
1972 *evt = cmd_complete_status(status); in le_create_conn_cancel()
1975 static void le_set_host_chan_classif(struct net_buf *buf, struct net_buf **evt) in le_set_host_chan_classif() argument
1982 *evt = cmd_complete_status(status); in le_set_host_chan_classif()
1986 static void le_start_encryption(struct net_buf *buf, struct net_buf **evt) in le_start_encryption() argument
1998 *evt = cmd_status(status); in le_start_encryption()
2003 static void le_set_cig_parameters(struct net_buf *buf, struct net_buf **evt) in le_set_cig_parameters() argument
2043 rp = hci_cmd_complete(evt, sizeof(*rp) + cis_count * sizeof(uint16_t)); in le_set_cig_parameters()
2063 static void le_set_cig_params_test(struct net_buf *buf, struct net_buf **evt) in le_set_cig_params_test() argument
2115 rp = hci_cmd_complete(evt, sizeof(*rp) + cis_count * sizeof(uint16_t)); in le_set_cig_params_test()
2135 static void le_create_cis(struct net_buf *buf, struct net_buf **evt) in le_create_cis() argument
2147 *evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED); in le_create_cis()
2156 *evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED); in le_create_cis()
2182 *evt = cmd_status(status); in le_create_cis()
2200 *evt = cmd_status(status); in le_create_cis()
2203 static void le_remove_cig(struct net_buf *buf, struct net_buf **evt) in le_remove_cig() argument
2211 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_remove_cig()
2220 static void le_iso_transmit_test(struct net_buf *buf, struct net_buf **evt) in le_iso_transmit_test() argument
2231 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_transmit_test()
2236 static void le_read_iso_tx_sync(struct net_buf *buf, struct net_buf **evt) in le_read_iso_tx_sync() argument
2252 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_iso_tx_sync()
2262 static void le_iso_receive_test(struct net_buf *buf, struct net_buf **evt) in le_iso_receive_test() argument
2273 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_receive_test()
2278 static void le_iso_read_test_counters(struct net_buf *buf, struct net_buf **evt) in le_iso_read_test_counters() argument
2292 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_read_test_counters()
2301 static void le_read_iso_link_quality(struct net_buf *buf, struct net_buf **evt) in le_read_iso_link_quality() argument
2326 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_iso_link_quality()
2343 static void le_setup_iso_path(struct net_buf *buf, struct net_buf **evt) in le_setup_iso_path() argument
2367 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_setup_iso_path()
2372 static void le_remove_iso_path(struct net_buf *buf, struct net_buf **evt) in le_remove_iso_path() argument
2383 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_remove_iso_path()
2388 static void le_iso_test_end(struct net_buf *buf, struct net_buf **evt) in le_iso_test_end() argument
2402 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_iso_test_end()
2412 static void le_set_host_feature(struct net_buf *buf, struct net_buf **evt) in le_set_host_feature() argument
2420 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_set_host_feature()
2427 static void le_ltk_req_reply(struct net_buf *buf, struct net_buf **evt) in le_ltk_req_reply() argument
2437 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_ltk_req_reply()
2442 static void le_ltk_req_neg_reply(struct net_buf *buf, struct net_buf **evt) in le_ltk_req_neg_reply() argument
2453 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_ltk_req_neg_reply()
2460 static void le_accept_cis(struct net_buf *buf, struct net_buf **evt) in le_accept_cis() argument
2468 *evt = cmd_status(status); in le_accept_cis()
2471 static void le_reject_cis(struct net_buf *buf, struct net_buf **evt) in le_reject_cis() argument
2481 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_reject_cis()
2491 static void le_req_peer_sca(struct net_buf *buf, struct net_buf **evt) in le_req_peer_sca() argument
2500 *evt = cmd_status(status); in le_req_peer_sca()
2505 static void le_read_remote_features(struct net_buf *buf, struct net_buf **evt) in le_read_remote_features() argument
2514 *evt = cmd_status(status); in le_read_remote_features()
2518 static void le_read_chan_map(struct net_buf *buf, struct net_buf **evt) in le_read_chan_map() argument
2527 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_chan_map()
2535 static void le_conn_update(struct net_buf *buf, struct net_buf **evt) in le_conn_update() argument
2555 *evt = cmd_status(status); in le_conn_update()
2559 static void le_conn_param_req_reply(struct net_buf *buf, struct net_buf **evt) in le_conn_param_req_reply() argument
2579 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_conn_param_req_reply()
2585 struct net_buf **evt) in le_conn_param_req_neg_reply() argument
2595 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_conn_param_req_neg_reply()
2602 static void le_set_data_len(struct net_buf *buf, struct net_buf **evt) in le_set_data_len() argument
2616 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_set_data_len()
2621 static void le_read_default_data_len(struct net_buf *buf, struct net_buf **evt) in le_read_default_data_len() argument
2627 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_default_data_len()
2637 struct net_buf **evt) in le_write_default_data_len() argument
2648 *evt = cmd_complete_status(status); in le_write_default_data_len()
2651 static void le_read_max_data_len(struct net_buf *buf, struct net_buf **evt) in le_read_max_data_len() argument
2659 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_max_data_len()
2673 static void le_read_phy(struct net_buf *buf, struct net_buf **evt) in le_read_phy() argument
2682 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_phy()
2692 static void le_set_default_phy(struct net_buf *buf, struct net_buf **evt) in le_set_default_phy() argument
2706 *evt = cmd_complete_status(status); in le_set_default_phy()
2709 static void le_set_phy(struct net_buf *buf, struct net_buf **evt) in le_set_phy() argument
2736 *evt = cmd_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL); in le_set_phy()
2743 *evt = cmd_status(BT_HCI_ERR_INVALID_PARAM); in le_set_phy()
2758 *evt = cmd_status(status); in le_set_phy()
2764 static void le_add_dev_to_rl(struct net_buf *buf, struct net_buf **evt) in le_add_dev_to_rl() argument
2771 *evt = cmd_complete_status(status); in le_add_dev_to_rl()
2774 static void le_rem_dev_from_rl(struct net_buf *buf, struct net_buf **evt) in le_rem_dev_from_rl() argument
2781 *evt = cmd_complete_status(status); in le_rem_dev_from_rl()
2784 static void le_clear_rl(struct net_buf *buf, struct net_buf **evt) in le_clear_rl() argument
2790 *evt = cmd_complete_status(status); in le_clear_rl()
2793 static void le_read_rl_size(struct net_buf *buf, struct net_buf **evt) in le_read_rl_size() argument
2797 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_rl_size()
2803 static void le_read_peer_rpa(struct net_buf *buf, struct net_buf **evt) in le_read_peer_rpa() argument
2810 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_peer_rpa()
2815 static void le_read_local_rpa(struct net_buf *buf, struct net_buf **evt) in le_read_local_rpa() argument
2822 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_local_rpa()
2827 static void le_set_addr_res_enable(struct net_buf *buf, struct net_buf **evt) in le_set_addr_res_enable() argument
2834 *evt = cmd_complete_status(status); in le_set_addr_res_enable()
2837 static void le_set_rpa_timeout(struct net_buf *buf, struct net_buf **evt) in le_set_rpa_timeout() argument
2844 *evt = cmd_complete_status(0x00); in le_set_rpa_timeout()
2847 static void le_set_privacy_mode(struct net_buf *buf, struct net_buf **evt) in le_set_privacy_mode() argument
2854 *evt = cmd_complete_status(status); in le_set_privacy_mode()
2858 static void le_read_tx_power(struct net_buf *buf, struct net_buf **evt) in le_read_tx_power() argument
2862 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_tx_power()
2870 struct net_buf **evt) in le_df_set_cl_cte_tx_params() argument
2876 if (adv_cmds_ext_check(evt)) { in le_df_set_cl_cte_tx_params()
2882 *evt = cmd_complete_status(status); in le_df_set_cl_cte_tx_params()
2891 *evt = cmd_complete_status(status); in le_df_set_cl_cte_tx_params()
2894 static void le_df_set_cl_cte_enable(struct net_buf *buf, struct net_buf **evt) in le_df_set_cl_cte_enable() argument
2900 if (adv_cmds_ext_check(evt)) { in le_df_set_cl_cte_enable()
2906 *evt = cmd_complete_status(status); in le_df_set_cl_cte_enable()
2912 *evt = cmd_complete_status(status); in le_df_set_cl_cte_enable()
2917 static void le_df_set_cl_iq_sampling_enable(struct net_buf *buf, struct net_buf **evt) in le_df_set_cl_iq_sampling_enable() argument
2933 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_cl_iq_sampling_enable()
3078 struct net_buf **evt) in le_df_set_conn_cte_tx_params() argument
3092 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_tx_params()
3100 static void le_df_set_conn_cte_rx_params(struct net_buf *buf, struct net_buf **evt) in le_df_set_conn_cte_rx_params() argument
3113 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_rx_params()
3208 static void le_df_set_conn_cte_req_enable(struct net_buf *buf, struct net_buf **evt) in le_df_set_conn_cte_req_enable() argument
3221 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_req_enable()
3244 static void le_df_set_conn_cte_rsp_enable(struct net_buf *buf, struct net_buf **evt) in le_df_set_conn_cte_rsp_enable() argument
3255 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_set_conn_cte_rsp_enable()
3262 static void le_df_read_ant_inf(struct net_buf *buf, struct net_buf **evt) in le_df_read_ant_inf() argument
3273 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_df_read_ant_inf()
3284 static void le_rx_test(struct net_buf *buf, struct net_buf **evt) in le_rx_test() argument
3294 *evt = cmd_complete_status(status); in le_rx_test()
3297 static void le_tx_test(struct net_buf *buf, struct net_buf **evt) in le_tx_test() argument
3307 *evt = cmd_complete_status(status); in le_tx_test()
3310 static void le_test_end(struct net_buf *buf, struct net_buf **evt) in le_test_end() argument
3318 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_test_end()
3323 static void le_enh_rx_test(struct net_buf *buf, struct net_buf **evt) in le_enh_rx_test() argument
3332 *evt = cmd_complete_status(status); in le_enh_rx_test()
3336 static void le_rx_test_v3(struct net_buf *buf, struct net_buf **evt) in le_rx_test_v3() argument
3345 *evt = cmd_complete_status(status); in le_rx_test_v3()
3349 static void le_enh_tx_test(struct net_buf *buf, struct net_buf **evt) in le_enh_tx_test() argument
3359 *evt = cmd_complete_status(status); in le_enh_tx_test()
3363 static void le_tx_test_v3(struct net_buf *buf, struct net_buf **evt) in le_tx_test_v3() argument
3372 *evt = cmd_complete_status(status); in le_tx_test_v3()
3377 static void le_tx_test_v4(struct net_buf *buf, struct net_buf **evt) in le_tx_test_v4() argument
3388 *evt = cmd_complete_status(status); in le_tx_test_v4()
3397 struct net_buf **evt) in le_set_adv_set_random_addr() argument
3403 if (adv_cmds_ext_check(evt)) { in le_set_adv_set_random_addr()
3409 *evt = cmd_complete_status(status); in le_set_adv_set_random_addr()
3415 *evt = cmd_complete_status(status); in le_set_adv_set_random_addr()
3418 static void le_set_ext_adv_param(struct net_buf *buf, struct net_buf **evt) in le_set_ext_adv_param() argument
3430 if (adv_cmds_ext_check(evt)) { in le_set_ext_adv_param()
3435 *evt = cmd_complete_status(BT_HCI_ERR_INVALID_PARAM); in le_set_ext_adv_param()
3455 *evt = cmd_complete_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL); in le_set_ext_adv_param()
3464 *evt = cmd_complete_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL); in le_set_ext_adv_param()
3471 *evt = cmd_complete_status(status); in le_set_ext_adv_param()
3486 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_set_ext_adv_param()
3491 static void le_set_ext_adv_data(struct net_buf *buf, struct net_buf **evt) in le_set_ext_adv_data() argument
3497 if (adv_cmds_ext_check(evt)) { in le_set_ext_adv_data()
3503 *evt = cmd_complete_status(status); in le_set_ext_adv_data()
3510 *evt = cmd_complete_status(status); in le_set_ext_adv_data()
3513 static void le_set_ext_scan_rsp_data(struct net_buf *buf, struct net_buf **evt) in le_set_ext_scan_rsp_data() argument
3519 if (adv_cmds_ext_check(evt)) { in le_set_ext_scan_rsp_data()
3525 *evt = cmd_complete_status(status); in le_set_ext_scan_rsp_data()
3532 *evt = cmd_complete_status(status); in le_set_ext_scan_rsp_data()
3535 static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt) in le_set_ext_adv_enable() argument
3543 if (adv_cmds_ext_check(evt)) { in le_set_ext_adv_enable()
3550 *evt = cmd_complete_status(BT_HCI_ERR_INVALID_PARAM); in le_set_ext_adv_enable()
3556 *evt = cmd_complete_status(status); in le_set_ext_adv_enable()
3566 *evt = cmd_complete_status(BT_HCI_ERR_INVALID_PARAM); in le_set_ext_adv_enable()
3597 *evt = cmd_complete_status(status); in le_set_ext_adv_enable()
3600 static void le_read_max_adv_data_len(struct net_buf *buf, struct net_buf **evt) in le_read_max_adv_data_len() argument
3605 if (adv_cmds_ext_check(evt)) { in le_read_max_adv_data_len()
3609 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_max_adv_data_len()
3617 static void le_read_num_adv_sets(struct net_buf *buf, struct net_buf **evt) in le_read_num_adv_sets() argument
3621 if (adv_cmds_ext_check(evt)) { in le_read_num_adv_sets()
3625 rp = hci_cmd_complete(evt, sizeof(*rp)); in le_read_num_adv_sets()
3631 static void le_remove_adv_set(struct net_buf *buf, struct net_buf **evt) in le_remove_adv_set() argument
3637 if (adv_cmds_ext_check(evt)) { in le_remove_adv_set()
3643 *evt = cmd_complete_status(status); in le_remove_adv_set()
3649 *evt = cmd_complete_status(status); in le_remove_adv_set()
3652 static void le_clear_adv_sets(struct net_buf *buf, struct net_buf **evt) in le_clear_adv_sets() argument
3656 if (adv_cmds_ext_check(evt)) { in le_clear_adv_sets()
3662 *evt = cmd_complete_status(status); in le_clear_adv_sets()
3666 static void le_set_per_adv_param(struct net_buf *buf, struct net_buf **evt) in le_set_per_adv_param() argument
3674 if (adv_cmds_ext_check(evt)) { in le_set_per_adv_param()
3686 *evt = cmd_complete_status(BT_HCI_ERR_INVALID_PARAM); in le_set_per_adv_param()
3696 *evt = cmd_complete_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL); in le_set_per_adv_param()
3707 *evt = cmd_complete_status(status); in le_set_per_adv_param()
3715 *evt = cmd_complete_status(status); in le_set_per_adv_param()
3718 static void le_set_per_adv_data(struct net_buf *buf, struct net_buf **evt) in le_set_per_adv_data() argument
3724 if (adv_cmds_ext_check(evt)) { in le_set_per_adv_data()
3730 *evt = cmd_complete_status(status); in le_set_per_adv_data()
3737 *evt = cmd_complete_status(status); in le_set_per_adv_data()
3740 static void le_set_per_adv_enable(struct net_buf *buf, struct net_buf **evt) in le_set_per_adv_enable() argument
3746 if (adv_cmds_ext_check(evt)) { in le_set_per_adv_enable()
3752 *evt = cmd_complete_status(status); in le_set_per_adv_enable()
3758 *evt = cmd_complete_status(status); in le_set_per_adv_enable()
3764 static void le_set_ext_scan_param(struct net_buf *buf, struct net_buf **evt) in le_set_ext_scan_param() argument
3774 if (adv_cmds_ext_check(evt)) { in le_set_ext_scan_param()
3789 *evt = cmd_complete_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL); in le_set_ext_scan_param()
3839 *evt = cmd_complete_status(status); in le_set_ext_scan_param()
3842 static void le_set_ext_scan_enable(struct net_buf *buf, struct net_buf **evt) in le_set_ext_scan_enable() argument
3847 if (adv_cmds_ext_check(evt)) { in le_set_ext_scan_enable()
3895 *evt = cmd_complete_status(status); in le_set_ext_scan_enable()
3899 static void le_per_adv_create_sync(struct net_buf *buf, struct net_buf **evt) argument
3907 *evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED);
3913 *evt = cmd_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL);
3922 *evt = cmd_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL);
3962 *evt = cmd_status(status);
3966 struct net_buf **evt, void **node_rx) argument
3971 if (adv_cmds_ext_check(evt)) {
3977 ccst = hci_cmd_complete(evt, sizeof(*ccst));
3981 static void le_per_adv_terminate_sync(struct net_buf *buf, struct net_buf **evt) argument
3988 if (adv_cmds_ext_check(evt)) {
3996 ccst = hci_cmd_complete(evt, sizeof(*ccst));
4000 static void le_per_adv_recv_enable(struct net_buf *buf, struct net_buf **evt) argument
4007 if (adv_cmds_ext_check(evt)) {
4034 ccst = hci_cmd_complete(evt, sizeof(*ccst));
4039 static void le_add_dev_to_pal(struct net_buf *buf, struct net_buf **evt) argument
4044 if (adv_cmds_ext_check(evt)) {
4050 *evt = cmd_complete_status(status);
4053 static void le_rem_dev_from_pal(struct net_buf *buf, struct net_buf **evt) argument
4058 if (adv_cmds_ext_check(evt)) {
4064 *evt = cmd_complete_status(status);
4067 static void le_clear_pal(struct net_buf *buf, struct net_buf **evt) argument
4071 if (adv_cmds_ext_check(evt)) {
4077 *evt = cmd_complete_status(status);
4080 static void le_read_pal_size(struct net_buf *buf, struct net_buf **evt) argument
4084 if (adv_cmds_ext_check(evt)) {
4088 rp = hci_cmd_complete(evt, sizeof(*rp));
4098 static void le_per_adv_sync_transfer(struct net_buf *buf, struct net_buf **evt) argument
4115 rp = hci_cmd_complete(evt, sizeof(*rp));
4120 static void le_per_adv_set_info_transfer(struct net_buf *buf, struct net_buf **evt) argument
4137 rp = hci_cmd_complete(evt, sizeof(*rp));
4144 static void le_past_param(struct net_buf *buf, struct net_buf **evt) argument
4156 if (adv_cmds_ext_check(evt)) {
4170 rp = hci_cmd_complete(evt, sizeof(*rp));
4175 static void le_default_past_param(struct net_buf *buf, struct net_buf **evt) argument
4185 if (adv_cmds_ext_check(evt)) {
4196 rp = hci_cmd_complete(evt, sizeof(*rp));
4202 static void le_ext_create_connection(struct net_buf *buf, struct net_buf **evt) argument
4215 *evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED);
4239 *evt = cmd_status(BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL);
4276 *evt = cmd_status(status);
4304 *evt = cmd_status(status);
4313 *evt = cmd_status(status);
4463 struct net_buf **evt, void **node_rx) argument
4467 le_set_event_mask(cmd, evt);
4471 le_read_buffer_size(cmd, evt);
4476 le_read_buffer_size_v2(cmd, evt);
4481 le_read_local_features(cmd, evt);
4485 le_set_random_address(cmd, evt);
4490 le_read_fal_size(cmd, evt);
4494 le_clear_fal(cmd, evt);
4498 le_add_dev_to_fal(cmd, evt);
4502 le_rem_dev_from_fal(cmd, evt);
4508 le_encrypt(cmd, evt);
4513 le_rand(cmd, evt);
4517 le_read_supp_states(cmd, evt);
4522 le_set_adv_param(cmd, evt);
4526 le_read_adv_chan_tx_power(cmd, evt);
4530 le_set_adv_data(cmd, evt);
4534 le_set_scan_rsp_data(cmd, evt);
4538 le_set_adv_enable(cmd, evt);
4543 le_create_big(cmd, evt);
4547 le_create_big_test(cmd, evt);
4551 le_terminate_big(cmd, evt);
4558 le_set_scan_param(cmd, evt);
4562 le_set_scan_enable(cmd, evt);
4567 le_big_create_sync(cmd, evt);
4571 le_big_terminate_sync(cmd, evt, node_rx);
4578 le_create_connection(cmd, evt);
4582 le_create_conn_cancel(cmd, evt, node_rx);
4586 le_set_host_chan_classif(cmd, evt);
4591 le_start_encryption(cmd, evt);
4597 le_set_cig_parameters(cmd, evt);
4600 le_set_cig_params_test(cmd, evt);
4603 le_create_cis(cmd, evt);
4606 le_remove_cig(cmd, evt);
4614 le_ltk_req_reply(cmd, evt);
4618 le_ltk_req_neg_reply(cmd, evt);
4624 le_accept_cis(cmd, evt);
4627 le_reject_cis(cmd, evt);
4634 le_req_peer_sca(cmd, evt);
4640 le_setup_iso_path(cmd, evt);
4643 le_remove_iso_path(cmd, evt);
4646 le_iso_test_end(cmd, evt);
4652 le_iso_transmit_test(cmd, evt);
4655 le_read_iso_tx_sync(cmd, evt);
4661 le_iso_receive_test(cmd, evt);
4664 le_iso_read_test_counters(cmd, evt);
4668 le_read_iso_link_quality(cmd, evt);
4675 le_set_host_feature(cmd, evt);
4681 le_read_chan_map(cmd, evt);
4686 le_read_remote_features(cmd, evt);
4691 le_conn_update(cmd, evt);
4696 le_conn_param_req_reply(cmd, evt);
4700 le_conn_param_req_neg_reply(cmd, evt);
4706 le_set_data_len(cmd, evt);
4710 le_read_default_data_len(cmd, evt);
4714 le_write_default_data_len(cmd, evt);
4718 le_read_max_data_len(cmd, evt);
4724 le_read_phy(cmd, evt);
4728 le_set_default_phy(cmd, evt);
4732 le_set_phy(cmd, evt);
4740 le_set_adv_set_random_addr(cmd, evt);
4744 le_set_ext_adv_param(cmd, evt);
4748 le_set_ext_adv_data(cmd, evt);
4752 le_set_ext_scan_rsp_data(cmd, evt);
4756 le_set_ext_adv_enable(cmd, evt);
4760 le_read_max_adv_data_len(cmd, evt);
4764 le_read_num_adv_sets(cmd, evt);
4768 le_remove_adv_set(cmd, evt);
4772 le_clear_adv_sets(cmd, evt);
4777 le_set_per_adv_param(cmd, evt);
4781 le_set_per_adv_data(cmd, evt);
4785 le_set_per_adv_enable(cmd, evt);
4792 le_set_ext_scan_param(cmd, evt);
4796 le_set_ext_scan_enable(cmd, evt);
4801 le_per_adv_create_sync(cmd, evt);
4805 le_per_adv_create_sync_cancel(cmd, evt, node_rx);
4809 le_per_adv_terminate_sync(cmd, evt);
4813 le_per_adv_recv_enable(cmd, evt);
4818 le_add_dev_to_pal(cmd, evt);
4822 le_rem_dev_from_pal(cmd, evt);
4826 le_clear_pal(cmd, evt);
4830 le_read_pal_size(cmd, evt);
4838 le_per_adv_sync_transfer(cmd, evt);
4842 le_per_adv_set_info_transfer(cmd, evt);
4848 le_past_param(cmd, evt);
4852 le_default_past_param(cmd, evt);
4859 le_ext_create_connection(cmd, evt);
4867 le_add_dev_to_rl(cmd, evt);
4870 le_rem_dev_from_rl(cmd, evt);
4873 le_clear_rl(cmd, evt);
4876 le_read_rl_size(cmd, evt);
4879 le_read_peer_rpa(cmd, evt);
4882 le_read_local_rpa(cmd, evt);
4885 le_set_addr_res_enable(cmd, evt);
4888 le_set_rpa_timeout(cmd, evt);
4891 le_set_privacy_mode(cmd, evt);
4896 le_read_tx_power(cmd, evt);
4902 le_df_set_cl_cte_tx_params(cmd, evt);
4905 le_df_set_cl_cte_enable(cmd, evt);
4910 le_df_set_cl_iq_sampling_enable(cmd, evt);
4914 le_df_read_ant_inf(cmd, evt);
4918 le_df_set_conn_cte_tx_params(cmd, evt);
4923 le_df_set_conn_cte_rx_params(cmd, evt);
4928 le_df_set_conn_cte_req_enable(cmd, evt);
4933 le_df_set_conn_cte_rsp_enable(cmd, evt);
4940 le_rx_test(cmd, evt);
4943 le_tx_test(cmd, evt);
4946 le_test_end(cmd, evt);
4949 le_enh_rx_test(cmd, evt);
4953 le_rx_test_v3(cmd, evt);
4957 le_enh_tx_test(cmd, evt);
4961 le_tx_test_v3(cmd, evt);
4966 le_tx_test_v4(cmd, evt);
4979 static void vs_read_version_info(struct net_buf *buf, struct net_buf **evt) argument
4983 rp = hci_cmd_complete(evt, sizeof(*rp));
4996 struct net_buf **evt) argument
5000 rp = hci_cmd_complete(evt, sizeof(*rp));
5028 struct net_buf **evt) argument
5032 rp = hci_cmd_complete(evt, sizeof(*rp));
5047 static void vs_write_bd_addr(struct net_buf *buf, struct net_buf **evt) argument
5053 *evt = cmd_complete_status(0x00);
5056 static void vs_read_build_info(struct net_buf *buf, struct net_buf **evt) argument
5072 rp = hci_cmd_complete(evt, sizeof(*rp) + sizeof(build_info));
5086 static void vs_read_static_addrs(struct net_buf *buf, struct net_buf **evt) argument
5090 rp = hci_cmd_complete(evt, sizeof(*rp) +
5097 struct net_buf **evt) argument
5101 rp = hci_cmd_complete(evt, sizeof(*rp));
5107 static void vs_set_min_used_chans(struct net_buf *buf, struct net_buf **evt) argument
5115 *evt = cmd_complete_status(status);
5120 static void vs_set_scan_req_reports(struct net_buf *buf, struct net_buf **evt) argument
5129 *evt = cmd_complete_status(0x00);
5134 static void vs_write_tx_power_level(struct net_buf *buf, struct net_buf **evt) argument
5145 rp = hci_cmd_complete(evt, sizeof(*rp));
5155 static void vs_read_tx_power_level(struct net_buf *buf, struct net_buf **evt) argument
5166 rp = hci_cmd_complete(evt, sizeof(*rp));
5216 hdr->evt = BT_HCI_EVT_VENDOR;
5501 static void mesh_get_opts(struct net_buf *buf, struct net_buf **evt) argument
5505 rp = hci_cmd_complete(evt, sizeof(*rp));
5523 static void mesh_set_scan_filter(struct net_buf *buf, struct net_buf **evt) argument
5564 rp = hci_cmd_complete(evt, sizeof(*rp));
5570 static void mesh_advertise(struct net_buf *buf, struct net_buf **evt) argument
5589 rp = hci_cmd_complete(evt, sizeof(*rp));
5595 static void mesh_advertise_cancel(struct net_buf *buf, struct net_buf **evt) argument
5608 rp = hci_cmd_complete(evt, sizeof(*rp));
5614 static int mesh_cmd_handle(struct net_buf *cmd, struct net_buf **evt) argument
5629 mesh_get_opts(cmd, evt);
5633 mesh_set_scan_filter(cmd, evt);
5637 mesh_advertise(cmd, evt);
5641 mesh_advertise_cancel(cmd, evt);
5653 struct net_buf **evt) argument
5657 vs_read_version_info(cmd, evt);
5661 vs_read_supported_commands(cmd, evt);
5665 vs_read_supported_features(cmd, evt);
5672 reset(cmd, evt);
5677 vs_read_build_info(cmd, evt);
5681 vs_write_bd_addr(cmd, evt);
5685 vs_read_static_addrs(cmd, evt);
5689 vs_read_key_hierarchy_roots(cmd, evt);
5694 vs_set_scan_req_reports(cmd, evt);
5700 vs_write_tx_power_level(cmd, evt);
5704 vs_read_tx_power_level(cmd, evt);
5710 vs_set_min_used_chans(cmd, evt);
5716 mesh_cmd_handle(cmd, evt);
5731 struct net_buf *evt = NULL; local
5753 err = link_control_cmd_handle(ocf, cmd, &evt);
5756 err = ctrl_bb_cmd_handle(ocf, cmd, &evt);
5759 err = info_cmd_handle(ocf, cmd, &evt);
5762 err = status_cmd_handle(ocf, cmd, &evt);
5765 err = controller_cmd_handle(ocf, cmd, &evt, node_rx);
5769 err = hci_vendor_cmd_handle(ocf, cmd, &evt);
5778 evt = cmd_status(BT_HCI_ERR_UNKNOWN_CMD);
5781 return evt;
5805 int hci_acl_handle(struct net_buf *buf, struct net_buf **evt) argument
5814 *evt = NULL;
5842 data_buf_overflow(evt, BT_OVERFLOW_LINK_ACL);
5880 int hci_iso_handle(struct net_buf *buf, struct net_buf **evt) argument
5893 *evt = NULL;
6078 data_buf_overflow(evt, BT_OVERFLOW_LINK_ISO);
6220 data_buf_overflow(evt, BT_OVERFLOW_LINK_ISO);