Lines Matching refs:data

50 	void *data;  in hci_ev_skb_pull()  local
52 data = skb_pull_data(skb, len); in hci_ev_skb_pull()
53 if (!data) in hci_ev_skb_pull()
56 return data; in hci_ev_skb_pull()
62 void *data; in hci_cc_skb_pull() local
64 data = skb_pull_data(skb, len); in hci_cc_skb_pull()
65 if (!data) in hci_cc_skb_pull()
68 return data; in hci_cc_skb_pull()
74 void *data; in hci_le_ev_skb_pull() local
76 data = skb_pull_data(skb, len); in hci_le_ev_skb_pull()
77 if (!data) in hci_le_ev_skb_pull()
80 return data; in hci_le_ev_skb_pull()
83 static u8 hci_cc_inquiry_cancel(struct hci_dev *hdev, void *data, in hci_cc_inquiry_cancel() argument
86 struct hci_ev_status *rp = data; in hci_cc_inquiry_cancel()
121 static u8 hci_cc_periodic_inq(struct hci_dev *hdev, void *data, in hci_cc_periodic_inq() argument
124 struct hci_ev_status *rp = data; in hci_cc_periodic_inq()
136 static u8 hci_cc_exit_periodic_inq(struct hci_dev *hdev, void *data, in hci_cc_exit_periodic_inq() argument
139 struct hci_ev_status *rp = data; in hci_cc_exit_periodic_inq()
151 static u8 hci_cc_remote_name_req_cancel(struct hci_dev *hdev, void *data, in hci_cc_remote_name_req_cancel() argument
154 struct hci_rp_remote_name_req_cancel *rp = data; in hci_cc_remote_name_req_cancel()
161 static u8 hci_cc_role_discovery(struct hci_dev *hdev, void *data, in hci_cc_role_discovery() argument
164 struct hci_rp_role_discovery *rp = data; in hci_cc_role_discovery()
183 static u8 hci_cc_read_link_policy(struct hci_dev *hdev, void *data, in hci_cc_read_link_policy() argument
186 struct hci_rp_read_link_policy *rp = data; in hci_cc_read_link_policy()
205 static u8 hci_cc_write_link_policy(struct hci_dev *hdev, void *data, in hci_cc_write_link_policy() argument
208 struct hci_rp_write_link_policy *rp = data; in hci_cc_write_link_policy()
232 static u8 hci_cc_read_def_link_policy(struct hci_dev *hdev, void *data, in hci_cc_read_def_link_policy() argument
235 struct hci_rp_read_def_link_policy *rp = data; in hci_cc_read_def_link_policy()
247 static u8 hci_cc_write_def_link_policy(struct hci_dev *hdev, void *data, in hci_cc_write_def_link_policy() argument
250 struct hci_ev_status *rp = data; in hci_cc_write_def_link_policy()
267 static u8 hci_cc_reset(struct hci_dev *hdev, void *data, struct sk_buff *skb) in hci_cc_reset() argument
269 struct hci_ev_status *rp = data; in hci_cc_reset()
302 static u8 hci_cc_read_stored_link_key(struct hci_dev *hdev, void *data, in hci_cc_read_stored_link_key() argument
305 struct hci_rp_read_stored_link_key *rp = data; in hci_cc_read_stored_link_key()
322 static u8 hci_cc_delete_stored_link_key(struct hci_dev *hdev, void *data, in hci_cc_delete_stored_link_key() argument
325 struct hci_rp_delete_stored_link_key *rp = data; in hci_cc_delete_stored_link_key()
343 static u8 hci_cc_write_local_name(struct hci_dev *hdev, void *data, in hci_cc_write_local_name() argument
346 struct hci_ev_status *rp = data; in hci_cc_write_local_name()
367 static u8 hci_cc_read_local_name(struct hci_dev *hdev, void *data, in hci_cc_read_local_name() argument
370 struct hci_rp_read_local_name *rp = data; in hci_cc_read_local_name()
384 static u8 hci_cc_write_auth_enable(struct hci_dev *hdev, void *data, in hci_cc_write_auth_enable() argument
387 struct hci_ev_status *rp = data; in hci_cc_write_auth_enable()
415 static u8 hci_cc_write_encrypt_mode(struct hci_dev *hdev, void *data, in hci_cc_write_encrypt_mode() argument
418 struct hci_ev_status *rp = data; in hci_cc_write_encrypt_mode()
441 static u8 hci_cc_write_scan_enable(struct hci_dev *hdev, void *data, in hci_cc_write_scan_enable() argument
444 struct hci_ev_status *rp = data; in hci_cc_write_scan_enable()
479 static u8 hci_cc_set_event_filter(struct hci_dev *hdev, void *data, in hci_cc_set_event_filter() argument
482 struct hci_ev_status *rp = data; in hci_cc_set_event_filter()
505 static u8 hci_cc_read_class_of_dev(struct hci_dev *hdev, void *data, in hci_cc_read_class_of_dev() argument
508 struct hci_rp_read_class_of_dev *rp = data; in hci_cc_read_class_of_dev()
526 static u8 hci_cc_write_class_of_dev(struct hci_dev *hdev, void *data, in hci_cc_write_class_of_dev() argument
529 struct hci_ev_status *rp = data; in hci_cc_write_class_of_dev()
551 static u8 hci_cc_read_voice_setting(struct hci_dev *hdev, void *data, in hci_cc_read_voice_setting() argument
554 struct hci_rp_read_voice_setting *rp = data; in hci_cc_read_voice_setting()
577 static u8 hci_cc_write_voice_setting(struct hci_dev *hdev, void *data, in hci_cc_write_voice_setting() argument
580 struct hci_ev_status *rp = data; in hci_cc_write_voice_setting()
608 static u8 hci_cc_read_num_supported_iac(struct hci_dev *hdev, void *data, in hci_cc_read_num_supported_iac() argument
611 struct hci_rp_read_num_supported_iac *rp = data; in hci_cc_read_num_supported_iac()
625 static u8 hci_cc_write_ssp_mode(struct hci_dev *hdev, void *data, in hci_cc_write_ssp_mode() argument
628 struct hci_ev_status *rp = data; in hci_cc_write_ssp_mode()
658 static u8 hci_cc_write_sc_support(struct hci_dev *hdev, void *data, in hci_cc_write_sc_support() argument
661 struct hci_ev_status *rp = data; in hci_cc_write_sc_support()
691 static u8 hci_cc_read_local_version(struct hci_dev *hdev, void *data, in hci_cc_read_local_version() argument
694 struct hci_rp_read_local_version *rp = data; in hci_cc_read_local_version()
713 static u8 hci_cc_read_enc_key_size(struct hci_dev *hdev, void *data, in hci_cc_read_enc_key_size() argument
716 struct hci_rp_read_enc_key_size *rp = data; in hci_cc_read_enc_key_size()
779 static u8 hci_cc_read_local_commands(struct hci_dev *hdev, void *data, in hci_cc_read_local_commands() argument
782 struct hci_rp_read_local_commands *rp = data; in hci_cc_read_local_commands()
796 static u8 hci_cc_read_auth_payload_timeout(struct hci_dev *hdev, void *data, in hci_cc_read_auth_payload_timeout() argument
799 struct hci_rp_read_auth_payload_to *rp = data; in hci_cc_read_auth_payload_timeout()
818 static u8 hci_cc_write_auth_payload_timeout(struct hci_dev *hdev, void *data, in hci_cc_write_auth_payload_timeout() argument
821 struct hci_rp_write_auth_payload_to *rp = data; in hci_cc_write_auth_payload_timeout()
848 static u8 hci_cc_read_local_features(struct hci_dev *hdev, void *data, in hci_cc_read_local_features() argument
851 struct hci_rp_read_local_features *rp = data; in hci_cc_read_local_features()
900 static u8 hci_cc_read_local_ext_features(struct hci_dev *hdev, void *data, in hci_cc_read_local_ext_features() argument
903 struct hci_rp_read_local_ext_features *rp = data; in hci_cc_read_local_ext_features()
924 static u8 hci_cc_read_buffer_size(struct hci_dev *hdev, void *data, in hci_cc_read_buffer_size() argument
927 struct hci_rp_read_buffer_size *rp = data; in hci_cc_read_buffer_size()
959 static u8 hci_cc_read_bd_addr(struct hci_dev *hdev, void *data, in hci_cc_read_bd_addr() argument
962 struct hci_rp_read_bd_addr *rp = data; in hci_cc_read_bd_addr()
978 static u8 hci_cc_read_local_pairing_opts(struct hci_dev *hdev, void *data, in hci_cc_read_local_pairing_opts() argument
981 struct hci_rp_read_local_pairing_opts *rp = data; in hci_cc_read_local_pairing_opts()
997 static u8 hci_cc_read_page_scan_activity(struct hci_dev *hdev, void *data, in hci_cc_read_page_scan_activity() argument
1000 struct hci_rp_read_page_scan_activity *rp = data; in hci_cc_read_page_scan_activity()
1015 static u8 hci_cc_write_page_scan_activity(struct hci_dev *hdev, void *data, in hci_cc_write_page_scan_activity() argument
1018 struct hci_ev_status *rp = data; in hci_cc_write_page_scan_activity()
1036 static u8 hci_cc_read_page_scan_type(struct hci_dev *hdev, void *data, in hci_cc_read_page_scan_type() argument
1039 struct hci_rp_read_page_scan_type *rp = data; in hci_cc_read_page_scan_type()
1052 static u8 hci_cc_write_page_scan_type(struct hci_dev *hdev, void *data, in hci_cc_write_page_scan_type() argument
1055 struct hci_ev_status *rp = data; in hci_cc_write_page_scan_type()
1070 static u8 hci_cc_read_clock(struct hci_dev *hdev, void *data, in hci_cc_read_clock() argument
1073 struct hci_rp_read_clock *rp = data; in hci_cc_read_clock()
1104 static u8 hci_cc_read_inq_rsp_tx_power(struct hci_dev *hdev, void *data, in hci_cc_read_inq_rsp_tx_power() argument
1107 struct hci_rp_read_inq_rsp_tx_power *rp = data; in hci_cc_read_inq_rsp_tx_power()
1119 static u8 hci_cc_read_def_err_data_reporting(struct hci_dev *hdev, void *data, in hci_cc_read_def_err_data_reporting() argument
1122 struct hci_rp_read_def_err_data_reporting *rp = data; in hci_cc_read_def_err_data_reporting()
1134 static u8 hci_cc_write_def_err_data_reporting(struct hci_dev *hdev, void *data, in hci_cc_write_def_err_data_reporting() argument
1137 struct hci_ev_status *rp = data; in hci_cc_write_def_err_data_reporting()
1154 static u8 hci_cc_pin_code_reply(struct hci_dev *hdev, void *data, in hci_cc_pin_code_reply() argument
1157 struct hci_rp_pin_code_reply *rp = data; in hci_cc_pin_code_reply()
1184 static u8 hci_cc_pin_code_neg_reply(struct hci_dev *hdev, void *data, in hci_cc_pin_code_neg_reply() argument
1187 struct hci_rp_pin_code_neg_reply *rp = data; in hci_cc_pin_code_neg_reply()
1202 static u8 hci_cc_le_read_buffer_size(struct hci_dev *hdev, void *data, in hci_cc_le_read_buffer_size() argument
1205 struct hci_rp_le_read_buffer_size *rp = data; in hci_cc_le_read_buffer_size()
1225 static u8 hci_cc_le_read_local_features(struct hci_dev *hdev, void *data, in hci_cc_le_read_local_features() argument
1228 struct hci_rp_le_read_local_features *rp = data; in hci_cc_le_read_local_features()
1240 static u8 hci_cc_le_read_adv_tx_power(struct hci_dev *hdev, void *data, in hci_cc_le_read_adv_tx_power() argument
1243 struct hci_rp_le_read_adv_tx_power *rp = data; in hci_cc_le_read_adv_tx_power()
1255 static u8 hci_cc_user_confirm_reply(struct hci_dev *hdev, void *data, in hci_cc_user_confirm_reply() argument
1258 struct hci_rp_user_confirm_reply *rp = data; in hci_cc_user_confirm_reply()
1273 static u8 hci_cc_user_confirm_neg_reply(struct hci_dev *hdev, void *data, in hci_cc_user_confirm_neg_reply() argument
1276 struct hci_rp_user_confirm_reply *rp = data; in hci_cc_user_confirm_neg_reply()
1291 static u8 hci_cc_user_passkey_reply(struct hci_dev *hdev, void *data, in hci_cc_user_passkey_reply() argument
1294 struct hci_rp_user_confirm_reply *rp = data; in hci_cc_user_passkey_reply()
1309 static u8 hci_cc_user_passkey_neg_reply(struct hci_dev *hdev, void *data, in hci_cc_user_passkey_neg_reply() argument
1312 struct hci_rp_user_confirm_reply *rp = data; in hci_cc_user_passkey_neg_reply()
1327 static u8 hci_cc_read_local_oob_data(struct hci_dev *hdev, void *data, in hci_cc_read_local_oob_data() argument
1330 struct hci_rp_read_local_oob_data *rp = data; in hci_cc_read_local_oob_data()
1337 static u8 hci_cc_read_local_oob_ext_data(struct hci_dev *hdev, void *data, in hci_cc_read_local_oob_ext_data() argument
1340 struct hci_rp_read_local_oob_ext_data *rp = data; in hci_cc_read_local_oob_ext_data()
1347 static u8 hci_cc_le_set_random_addr(struct hci_dev *hdev, void *data, in hci_cc_le_set_random_addr() argument
1350 struct hci_ev_status *rp = data; in hci_cc_le_set_random_addr()
1377 static u8 hci_cc_le_set_default_phy(struct hci_dev *hdev, void *data, in hci_cc_le_set_default_phy() argument
1380 struct hci_ev_status *rp = data; in hci_cc_le_set_default_phy()
1402 static u8 hci_cc_le_set_adv_set_random_addr(struct hci_dev *hdev, void *data, in hci_cc_le_set_adv_set_random_addr() argument
1405 struct hci_ev_status *rp = data; in hci_cc_le_set_adv_set_random_addr()
1440 static u8 hci_cc_le_remove_adv_set(struct hci_dev *hdev, void *data, in hci_cc_le_remove_adv_set() argument
1443 struct hci_ev_status *rp = data; in hci_cc_le_remove_adv_set()
1468 static u8 hci_cc_le_clear_adv_sets(struct hci_dev *hdev, void *data, in hci_cc_le_clear_adv_sets() argument
1471 struct hci_ev_status *rp = data; in hci_cc_le_clear_adv_sets()
1499 static u8 hci_cc_le_read_transmit_power(struct hci_dev *hdev, void *data, in hci_cc_le_read_transmit_power() argument
1502 struct hci_rp_le_read_transmit_power *rp = data; in hci_cc_le_read_transmit_power()
1515 static u8 hci_cc_le_set_privacy_mode(struct hci_dev *hdev, void *data, in hci_cc_le_set_privacy_mode() argument
1518 struct hci_ev_status *rp = data; in hci_cc_le_set_privacy_mode()
1542 static u8 hci_cc_le_set_adv_enable(struct hci_dev *hdev, void *data, in hci_cc_le_set_adv_enable() argument
1545 struct hci_ev_status *rp = data; in hci_cc_le_set_adv_enable()
1581 static u8 hci_cc_le_set_ext_adv_enable(struct hci_dev *hdev, void *data, in hci_cc_le_set_ext_adv_enable() argument
1587 struct hci_ev_status *rp = data; in hci_cc_le_set_ext_adv_enable()
1598 set = (void *)cp->data; in hci_cc_le_set_ext_adv_enable()
1646 static u8 hci_cc_le_set_scan_param(struct hci_dev *hdev, void *data, in hci_cc_le_set_scan_param() argument
1650 struct hci_ev_status *rp = data; in hci_cc_le_set_scan_param()
1670 static u8 hci_cc_le_set_ext_scan_param(struct hci_dev *hdev, void *data, in hci_cc_le_set_ext_scan_param() argument
1674 struct hci_ev_status *rp = data; in hci_cc_le_set_ext_scan_param()
1686 phy_param = (void *)cp->data; in hci_cc_le_set_ext_scan_param()
1714 u8 *data, u8 len) in store_pending_adv_report() argument
1725 memcpy(d->last_adv_data, data, len); in store_pending_adv_report()
1785 static u8 hci_cc_le_set_scan_enable(struct hci_dev *hdev, void *data, in hci_cc_le_set_scan_enable() argument
1789 struct hci_ev_status *rp = data; in hci_cc_le_set_scan_enable()
1805 static u8 hci_cc_le_set_ext_scan_enable(struct hci_dev *hdev, void *data, in hci_cc_le_set_ext_scan_enable() argument
1809 struct hci_ev_status *rp = data; in hci_cc_le_set_ext_scan_enable()
1825 static u8 hci_cc_le_read_num_adv_sets(struct hci_dev *hdev, void *data, in hci_cc_le_read_num_adv_sets() argument
1828 struct hci_rp_le_read_num_supported_adv_sets *rp = data; in hci_cc_le_read_num_adv_sets()
1841 static u8 hci_cc_le_read_accept_list_size(struct hci_dev *hdev, void *data, in hci_cc_le_read_accept_list_size() argument
1844 struct hci_rp_le_read_accept_list_size *rp = data; in hci_cc_le_read_accept_list_size()
1856 static u8 hci_cc_le_clear_accept_list(struct hci_dev *hdev, void *data, in hci_cc_le_clear_accept_list() argument
1859 struct hci_ev_status *rp = data; in hci_cc_le_clear_accept_list()
1873 static u8 hci_cc_le_add_to_accept_list(struct hci_dev *hdev, void *data, in hci_cc_le_add_to_accept_list() argument
1877 struct hci_ev_status *rp = data; in hci_cc_le_add_to_accept_list()
1896 static u8 hci_cc_le_del_from_accept_list(struct hci_dev *hdev, void *data, in hci_cc_le_del_from_accept_list() argument
1900 struct hci_ev_status *rp = data; in hci_cc_le_del_from_accept_list()
1919 static u8 hci_cc_le_read_supported_states(struct hci_dev *hdev, void *data, in hci_cc_le_read_supported_states() argument
1922 struct hci_rp_le_read_supported_states *rp = data; in hci_cc_le_read_supported_states()
1934 static u8 hci_cc_le_read_def_data_len(struct hci_dev *hdev, void *data, in hci_cc_le_read_def_data_len() argument
1937 struct hci_rp_le_read_def_data_len *rp = data; in hci_cc_le_read_def_data_len()
1950 static u8 hci_cc_le_write_def_data_len(struct hci_dev *hdev, void *data, in hci_cc_le_write_def_data_len() argument
1954 struct hci_ev_status *rp = data; in hci_cc_le_write_def_data_len()
1971 static u8 hci_cc_le_add_to_resolv_list(struct hci_dev *hdev, void *data, in hci_cc_le_add_to_resolv_list() argument
1975 struct hci_ev_status *rp = data; in hci_cc_le_add_to_resolv_list()
1995 static u8 hci_cc_le_del_from_resolv_list(struct hci_dev *hdev, void *data, in hci_cc_le_del_from_resolv_list() argument
1999 struct hci_ev_status *rp = data; in hci_cc_le_del_from_resolv_list()
2018 static u8 hci_cc_le_clear_resolv_list(struct hci_dev *hdev, void *data, in hci_cc_le_clear_resolv_list() argument
2021 struct hci_ev_status *rp = data; in hci_cc_le_clear_resolv_list()
2035 static u8 hci_cc_le_read_resolv_list_size(struct hci_dev *hdev, void *data, in hci_cc_le_read_resolv_list_size() argument
2038 struct hci_rp_le_read_resolv_list_size *rp = data; in hci_cc_le_read_resolv_list_size()
2050 static u8 hci_cc_le_set_addr_resolution_enable(struct hci_dev *hdev, void *data, in hci_cc_le_set_addr_resolution_enable() argument
2053 struct hci_ev_status *rp = data; in hci_cc_le_set_addr_resolution_enable()
2077 static u8 hci_cc_le_read_max_data_len(struct hci_dev *hdev, void *data, in hci_cc_le_read_max_data_len() argument
2080 struct hci_rp_le_read_max_data_len *rp = data; in hci_cc_le_read_max_data_len()
2095 static u8 hci_cc_write_le_host_supported(struct hci_dev *hdev, void *data, in hci_cc_write_le_host_supported() argument
2099 struct hci_ev_status *rp = data; in hci_cc_write_le_host_supported()
2131 static u8 hci_cc_set_adv_param(struct hci_dev *hdev, void *data, in hci_cc_set_adv_param() argument
2135 struct hci_ev_status *rp = data; in hci_cc_set_adv_param()
2153 static u8 hci_cc_read_rssi(struct hci_dev *hdev, void *data, in hci_cc_read_rssi() argument
2156 struct hci_rp_read_rssi *rp = data; in hci_cc_read_rssi()
2175 static u8 hci_cc_read_tx_power(struct hci_dev *hdev, void *data, in hci_cc_read_tx_power() argument
2179 struct hci_rp_read_tx_power *rp = data; in hci_cc_read_tx_power()
2211 static u8 hci_cc_write_ssp_debug_mode(struct hci_dev *hdev, void *data, in hci_cc_write_ssp_debug_mode() argument
2214 struct hci_ev_status *rp = data; in hci_cc_write_ssp_debug_mode()
2395 bacpy(&cp.bdaddr, &e->data.bdaddr); in hci_resolve_name()
2396 cp.pscan_rep_mode = e->data.pscan_rep_mode; in hci_resolve_name()
2397 cp.pscan_mode = e->data.pscan_mode; in hci_resolve_name()
2398 cp.clock_offset = e->data.clock_offset; in hci_resolve_name()
2463 mgmt_remote_name(hdev, bdaddr, ACL_LINK, 0x00, e->data.rssi, in hci_check_pending_name()
2942 static void hci_inquiry_complete_evt(struct hci_dev *hdev, void *data, in hci_inquiry_complete_evt() argument
2945 struct hci_ev_status *ev = data; in hci_inquiry_complete_evt()
3005 struct inquiry_data data; in hci_inquiry_result_evt() local
3026 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_evt()
3027 data.pscan_rep_mode = info->pscan_rep_mode; in hci_inquiry_result_evt()
3028 data.pscan_period_mode = info->pscan_period_mode; in hci_inquiry_result_evt()
3029 data.pscan_mode = info->pscan_mode; in hci_inquiry_result_evt()
3030 memcpy(data.dev_class, info->dev_class, 3); in hci_inquiry_result_evt()
3031 data.clock_offset = info->clock_offset; in hci_inquiry_result_evt()
3032 data.rssi = HCI_RSSI_INVALID; in hci_inquiry_result_evt()
3033 data.ssp_mode = 0x00; in hci_inquiry_result_evt()
3035 flags = hci_inquiry_cache_update(hdev, &data, false); in hci_inquiry_result_evt()
3073 static void hci_conn_complete_evt(struct hci_dev *hdev, void *data, in hci_conn_complete_evt() argument
3076 struct hci_ev_conn_complete *ev = data; in hci_conn_complete_evt()
3224 static void hci_conn_request_evt(struct hci_dev *hdev, void *data, in hci_conn_request_evt() argument
3227 struct hci_ev_conn_request *ev = data; in hci_conn_request_evt()
3277 memcpy(ie->data.dev_class, ev->dev_class, 3); in hci_conn_request_evt()
3348 static void hci_disconn_complete_evt(struct hci_dev *hdev, void *data, in hci_disconn_complete_evt() argument
3351 struct hci_ev_disconn_complete *ev = data; in hci_disconn_complete_evt()
3440 static void hci_auth_complete_evt(struct hci_dev *hdev, void *data, in hci_auth_complete_evt() argument
3443 struct hci_ev_auth_complete *ev = data; in hci_auth_complete_evt()
3504 static void hci_remote_name_evt(struct hci_dev *hdev, void *data, in hci_remote_name_evt() argument
3507 struct hci_ev_remote_name *ev = data; in hci_remote_name_evt()
3545 static void hci_encrypt_change_evt(struct hci_dev *hdev, void *data, in hci_encrypt_change_evt() argument
3548 struct hci_ev_encrypt_change *ev = data; in hci_encrypt_change_evt()
3647 static void hci_change_link_key_complete_evt(struct hci_dev *hdev, void *data, in hci_change_link_key_complete_evt() argument
3650 struct hci_ev_change_link_key_complete *ev = data; in hci_change_link_key_complete_evt()
3670 static void hci_remote_features_evt(struct hci_dev *hdev, void *data, in hci_remote_features_evt() argument
3673 struct hci_ev_remote_features *ev = data; in hci_remote_features_evt()
3738 static u8 hci_cc_le_read_buffer_size_v2(struct hci_dev *hdev, void *data, in hci_cc_le_read_buffer_size_v2() argument
3741 struct hci_rp_le_read_buffer_size_v2 *rp = data; in hci_cc_le_read_buffer_size_v2()
3781 static u8 hci_cc_le_set_cig_params(struct hci_dev *hdev, void *data, in hci_cc_le_set_cig_params() argument
3784 struct hci_rp_le_set_cig_params *rp = data; in hci_cc_le_set_cig_params()
3846 static u8 hci_cc_le_setup_iso_path(struct hci_dev *hdev, void *data, in hci_cc_le_setup_iso_path() argument
3849 struct hci_rp_le_setup_iso_path *rp = data; in hci_cc_le_setup_iso_path()
3902 static u8 hci_cc_set_per_adv_param(struct hci_dev *hdev, void *data, in hci_cc_set_per_adv_param() argument
3905 struct hci_ev_status *rp = data; in hci_cc_set_per_adv_param()
3921 static u8 hci_cc_le_set_per_adv_enable(struct hci_dev *hdev, void *data, in hci_cc_le_set_per_adv_enable() argument
3924 struct hci_ev_status *rp = data; in hci_cc_le_set_per_adv_enable()
3987 u8 (*func)(struct hci_dev *hdev, void *data, struct sk_buff *skb);
4155 void *data; in hci_cc_func() local
4171 data = hci_cc_skb_pull(hdev, skb, cc->op, cc->min_len); in hci_cc_func()
4172 if (!data) in hci_cc_func()
4175 return cc->func(hdev, data, skb); in hci_cc_func()
4178 static void hci_cmd_complete_evt(struct hci_dev *hdev, void *data, in hci_cmd_complete_evt() argument
4183 struct hci_ev_cmd_complete *ev = data; in hci_cmd_complete_evt()
4205 *status = skb->data[0]; in hci_cmd_complete_evt()
4299 static void hci_cmd_status_evt(struct hci_dev *hdev, void *data, in hci_cmd_status_evt() argument
4304 struct hci_ev_cmd_status *ev = data; in hci_cmd_status_evt()
4341 static void hci_hardware_error_evt(struct hci_dev *hdev, void *data, in hci_hardware_error_evt() argument
4344 struct hci_ev_hardware_error *ev = data; in hci_hardware_error_evt()
4353 static void hci_role_change_evt(struct hci_dev *hdev, void *data, in hci_role_change_evt() argument
4356 struct hci_ev_role_change *ev = data; in hci_role_change_evt()
4376 static void hci_num_comp_pkts_evt(struct hci_dev *hdev, void *data, in hci_num_comp_pkts_evt() argument
4379 struct hci_ev_num_comp_pkts *ev = data; in hci_num_comp_pkts_evt()
4461 static void hci_mode_change_evt(struct hci_dev *hdev, void *data, in hci_mode_change_evt() argument
4464 struct hci_ev_mode_change *ev = data; in hci_mode_change_evt()
4490 static void hci_pin_code_request_evt(struct hci_dev *hdev, void *data, in hci_pin_code_request_evt() argument
4493 struct hci_ev_pin_code_req *ev = data; in hci_pin_code_request_evt()
4561 static void hci_link_key_request_evt(struct hci_dev *hdev, void *data, in hci_link_key_request_evt() argument
4564 struct hci_ev_link_key_req *ev = data; in hci_link_key_request_evt()
4619 static void hci_link_key_notify_evt(struct hci_dev *hdev, void *data, in hci_link_key_notify_evt() argument
4622 struct hci_ev_link_key_notify *ev = data; in hci_link_key_notify_evt()
4689 static void hci_clock_offset_evt(struct hci_dev *hdev, void *data, in hci_clock_offset_evt() argument
4692 struct hci_ev_clock_offset *ev = data; in hci_clock_offset_evt()
4705 ie->data.clock_offset = ev->clock_offset; in hci_clock_offset_evt()
4713 static void hci_pkt_type_change_evt(struct hci_dev *hdev, void *data, in hci_pkt_type_change_evt() argument
4716 struct hci_ev_pkt_type_change *ev = data; in hci_pkt_type_change_evt()
4730 static void hci_pscan_rep_mode_evt(struct hci_dev *hdev, void *data, in hci_pscan_rep_mode_evt() argument
4733 struct hci_ev_pscan_rep_mode *ev = data; in hci_pscan_rep_mode_evt()
4742 ie->data.pscan_rep_mode = ev->pscan_rep_mode; in hci_pscan_rep_mode_evt()
4753 struct inquiry_data data; in hci_inquiry_result_with_rssi_evt() local
4782 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_with_rssi_evt()
4783 data.pscan_rep_mode = info->pscan_rep_mode; in hci_inquiry_result_with_rssi_evt()
4784 data.pscan_period_mode = info->pscan_period_mode; in hci_inquiry_result_with_rssi_evt()
4785 data.pscan_mode = info->pscan_mode; in hci_inquiry_result_with_rssi_evt()
4786 memcpy(data.dev_class, info->dev_class, 3); in hci_inquiry_result_with_rssi_evt()
4787 data.clock_offset = info->clock_offset; in hci_inquiry_result_with_rssi_evt()
4788 data.rssi = info->rssi; in hci_inquiry_result_with_rssi_evt()
4789 data.ssp_mode = 0x00; in hci_inquiry_result_with_rssi_evt()
4791 flags = hci_inquiry_cache_update(hdev, &data, false); in hci_inquiry_result_with_rssi_evt()
4813 bacpy(&data.bdaddr, &info->bdaddr); in hci_inquiry_result_with_rssi_evt()
4814 data.pscan_rep_mode = info->pscan_rep_mode; in hci_inquiry_result_with_rssi_evt()
4815 data.pscan_period_mode = info->pscan_period_mode; in hci_inquiry_result_with_rssi_evt()
4816 data.pscan_mode = 0x00; in hci_inquiry_result_with_rssi_evt()
4817 memcpy(data.dev_class, info->dev_class, 3); in hci_inquiry_result_with_rssi_evt()
4818 data.clock_offset = info->clock_offset; in hci_inquiry_result_with_rssi_evt()
4819 data.rssi = info->rssi; in hci_inquiry_result_with_rssi_evt()
4820 data.ssp_mode = 0x00; in hci_inquiry_result_with_rssi_evt()
4822 flags = hci_inquiry_cache_update(hdev, &data, false); in hci_inquiry_result_with_rssi_evt()
4836 static void hci_remote_ext_features_evt(struct hci_dev *hdev, void *data, in hci_remote_ext_features_evt() argument
4839 struct hci_ev_remote_ext_features *ev = data; in hci_remote_ext_features_evt()
4858 ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); in hci_remote_ext_features_evt()
4901 static void hci_sync_conn_complete_evt(struct hci_dev *hdev, void *data, in hci_sync_conn_complete_evt() argument
4904 struct hci_ev_sync_conn_complete *ev = data; in hci_sync_conn_complete_evt()
5035 struct inquiry_data data; in hci_extended_inquiry_result_evt() local
5058 bacpy(&data.bdaddr, &info->bdaddr); in hci_extended_inquiry_result_evt()
5059 data.pscan_rep_mode = info->pscan_rep_mode; in hci_extended_inquiry_result_evt()
5060 data.pscan_period_mode = info->pscan_period_mode; in hci_extended_inquiry_result_evt()
5061 data.pscan_mode = 0x00; in hci_extended_inquiry_result_evt()
5062 memcpy(data.dev_class, info->dev_class, 3); in hci_extended_inquiry_result_evt()
5063 data.clock_offset = info->clock_offset; in hci_extended_inquiry_result_evt()
5064 data.rssi = info->rssi; in hci_extended_inquiry_result_evt()
5065 data.ssp_mode = 0x01; in hci_extended_inquiry_result_evt()
5068 name_known = eir_get_data(info->data, in hci_extended_inquiry_result_evt()
5069 sizeof(info->data), in hci_extended_inquiry_result_evt()
5074 flags = hci_inquiry_cache_update(hdev, &data, name_known); in hci_extended_inquiry_result_evt()
5076 eir_len = eir_get_length(info->data, sizeof(info->data)); in hci_extended_inquiry_result_evt()
5080 flags, info->data, eir_len, NULL, 0, 0); in hci_extended_inquiry_result_evt()
5086 static void hci_key_refresh_complete_evt(struct hci_dev *hdev, void *data, in hci_key_refresh_complete_evt() argument
5089 struct hci_ev_key_refresh_complete *ev = data; in hci_key_refresh_complete_evt()
5157 struct oob_data *data; in bredr_oob_data_present() local
5159 data = hci_find_remote_oob_data(hdev, &conn->dst, BDADDR_BREDR); in bredr_oob_data_present()
5160 if (!data) in bredr_oob_data_present()
5171 return data->present; in bredr_oob_data_present()
5178 if (!crypto_memneq(data->rand256, ZERO_KEY, 16) || in bredr_oob_data_present()
5179 !crypto_memneq(data->hash256, ZERO_KEY, 16)) in bredr_oob_data_present()
5189 if (!crypto_memneq(data->rand192, ZERO_KEY, 16) || in bredr_oob_data_present()
5190 !crypto_memneq(data->hash192, ZERO_KEY, 16)) in bredr_oob_data_present()
5196 static void hci_io_capa_request_evt(struct hci_dev *hdev, void *data, in hci_io_capa_request_evt() argument
5199 struct hci_ev_io_capa_request *ev = data; in hci_io_capa_request_evt()
5269 static void hci_io_capa_reply_evt(struct hci_dev *hdev, void *data, in hci_io_capa_reply_evt() argument
5272 struct hci_ev_io_capa_reply *ev = data; in hci_io_capa_reply_evt()
5290 static void hci_user_confirm_request_evt(struct hci_dev *hdev, void *data, in hci_user_confirm_request_evt() argument
5293 struct hci_ev_user_confirm_req *ev = data; in hci_user_confirm_request_evt()
5372 static void hci_user_passkey_request_evt(struct hci_dev *hdev, void *data, in hci_user_passkey_request_evt() argument
5375 struct hci_ev_user_passkey_req *ev = data; in hci_user_passkey_request_evt()
5383 static void hci_user_passkey_notify_evt(struct hci_dev *hdev, void *data, in hci_user_passkey_notify_evt() argument
5386 struct hci_ev_user_passkey_notify *ev = data; in hci_user_passkey_notify_evt()
5404 static void hci_keypress_notify_evt(struct hci_dev *hdev, void *data, in hci_keypress_notify_evt() argument
5407 struct hci_ev_keypress_notify *ev = data; in hci_keypress_notify_evt()
5443 static void hci_simple_pair_complete_evt(struct hci_dev *hdev, void *data, in hci_simple_pair_complete_evt() argument
5446 struct hci_ev_simple_pair_complete *ev = data; in hci_simple_pair_complete_evt()
5474 static void hci_remote_host_features_evt(struct hci_dev *hdev, void *data, in hci_remote_host_features_evt() argument
5477 struct hci_ev_remote_host_features *ev = data; in hci_remote_host_features_evt()
5491 ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); in hci_remote_host_features_evt()
5500 struct oob_data *data; in hci_remote_oob_data_request_evt() local
5509 data = hci_find_remote_oob_data(hdev, &ev->bdaddr, BDADDR_BREDR); in hci_remote_oob_data_request_evt()
5510 if (!data) { in hci_remote_oob_data_request_evt()
5527 memcpy(cp.hash192, data->hash192, sizeof(cp.hash192)); in hci_remote_oob_data_request_evt()
5528 memcpy(cp.rand192, data->rand192, sizeof(cp.rand192)); in hci_remote_oob_data_request_evt()
5530 memcpy(cp.hash256, data->hash256, sizeof(cp.hash256)); in hci_remote_oob_data_request_evt()
5531 memcpy(cp.rand256, data->rand256, sizeof(cp.rand256)); in hci_remote_oob_data_request_evt()
5539 memcpy(cp.hash, data->hash192, sizeof(cp.hash)); in hci_remote_oob_data_request_evt()
5540 memcpy(cp.rand, data->rand192, sizeof(cp.rand)); in hci_remote_oob_data_request_evt()
5774 static void hci_le_conn_complete_evt(struct hci_dev *hdev, void *data, in hci_le_conn_complete_evt() argument
5777 struct hci_ev_le_conn_complete *ev = data; in hci_le_conn_complete_evt()
5788 static void hci_le_enh_conn_complete_evt(struct hci_dev *hdev, void *data, in hci_le_enh_conn_complete_evt() argument
5791 struct hci_ev_le_enh_conn_complete *ev = data; in hci_le_enh_conn_complete_evt()
5802 static void hci_le_ext_adv_term_evt(struct hci_dev *hdev, void *data, in hci_le_ext_adv_term_evt() argument
5805 struct hci_evt_le_ext_adv_set_term *ev = data; in hci_le_ext_adv_term_evt()
5872 static void hci_le_conn_update_complete_evt(struct hci_dev *hdev, void *data, in hci_le_conn_update_complete_evt() argument
5875 struct hci_ev_le_conn_update_complete *ev = data; in hci_le_conn_update_complete_evt()
5990 u8 *data, u8 len, bool ext_adv, bool ctl_time, in process_adv_report() argument
6025 for (ptr = data; ptr < data + len && *ptr; ptr += *ptr + 1) { in process_adv_report()
6026 if (ptr + 1 + *ptr > data + len) in process_adv_report()
6033 len = ptr - data; in process_adv_report()
6088 memcpy(conn->le_adv_data, data, len); in process_adv_report()
6100 rssi, flags, data, len, NULL, 0, instant); in process_adv_report()
6118 rssi, flags, data, len, NULL, 0, 0); in process_adv_report()
6146 rssi, flags, data, len); in process_adv_report()
6151 rssi, flags, data, len, NULL, 0, 0); in process_adv_report()
6178 rssi, flags, data, len); in process_adv_report()
6187 rssi, flags, data, len, NULL, 0, 0); in process_adv_report()
6197 d->last_adv_data, d->last_adv_data_len, data, len, 0); in process_adv_report()
6201 static void hci_le_adv_report_evt(struct hci_dev *hdev, void *data, in hci_le_adv_report_evt() argument
6204 struct hci_ev_le_advertising_report *ev = data; in hci_le_adv_report_evt()
6227 rssi = info->data[info->length]; in hci_le_adv_report_evt()
6231 info->data, info->length, false, in hci_le_adv_report_evt()
6289 static void hci_le_ext_adv_report_evt(struct hci_dev *hdev, void *data, in hci_le_ext_adv_report_evt() argument
6292 struct hci_ev_le_ext_adv_report *ev = data; in hci_le_ext_adv_report_evt()
6339 info->rssi, info->data, info->length, in hci_le_ext_adv_report_evt()
6358 static void hci_le_pa_sync_established_evt(struct hci_dev *hdev, void *data, in hci_le_pa_sync_established_evt() argument
6361 struct hci_ev_le_pa_sync_established *ev = data; in hci_le_pa_sync_established_evt()
6415 static void hci_le_per_adv_report_evt(struct hci_dev *hdev, void *data, in hci_le_per_adv_report_evt() argument
6418 struct hci_ev_le_per_adv_report *ev = data; in hci_le_per_adv_report_evt()
6454 static void hci_le_remote_feat_complete_evt(struct hci_dev *hdev, void *data, in hci_le_remote_feat_complete_evt() argument
6457 struct hci_ev_le_remote_feat_complete *ev = data; in hci_le_remote_feat_complete_evt()
6496 static void hci_le_ltk_request_evt(struct hci_dev *hdev, void *data, in hci_le_ltk_request_evt() argument
6499 struct hci_ev_le_ltk_req *ev = data; in hci_le_ltk_request_evt()
6573 static void hci_le_remote_conn_param_req_evt(struct hci_dev *hdev, void *data, in hci_le_remote_conn_param_req_evt() argument
6576 struct hci_ev_le_remote_conn_param_req *ev = data; in hci_le_remote_conn_param_req_evt()
6637 static void hci_le_direct_adv_report_evt(struct hci_dev *hdev, void *data, in hci_le_direct_adv_report_evt() argument
6640 struct hci_ev_le_direct_adv_report *ev = data; in hci_le_direct_adv_report_evt()
6665 static void hci_le_phy_update_evt(struct hci_dev *hdev, void *data, in hci_le_phy_update_evt() argument
6668 struct hci_ev_le_phy_update_complete *ev = data; in hci_le_phy_update_evt()
6689 static void hci_le_cis_established_evt(struct hci_dev *hdev, void *data, in hci_le_cis_established_evt() argument
6692 struct hci_evt_le_cis_established *ev = data; in hci_le_cis_established_evt()
6808 static void hci_le_cis_req_evt(struct hci_dev *hdev, void *data, in hci_le_cis_req_evt() argument
6811 struct hci_evt_le_cis_req *ev = data; in hci_le_cis_req_evt()
6859 static int hci_iso_term_big_sync(struct hci_dev *hdev, void *data) in hci_iso_term_big_sync() argument
6861 u8 handle = PTR_UINT(data); in hci_iso_term_big_sync()
6867 static void hci_le_create_big_complete_evt(struct hci_dev *hdev, void *data, in hci_le_create_big_complete_evt() argument
6870 struct hci_evt_le_create_big_complete *ev = data; in hci_le_create_big_complete_evt()
6915 static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data, in hci_le_big_sync_established_evt() argument
6918 struct hci_evt_le_big_sync_established *ev = data; in hci_le_big_sync_established_evt()
7001 static void hci_le_big_sync_lost_evt(struct hci_dev *hdev, void *data, in hci_le_big_sync_lost_evt() argument
7004 struct hci_evt_le_big_sync_lost *ev = data; in hci_le_big_sync_lost_evt()
7032 static void hci_le_big_info_adv_report_evt(struct hci_dev *hdev, void *data, in hci_le_big_info_adv_report_evt() argument
7035 struct hci_evt_le_big_info_adv_report *ev = data; in hci_le_big_info_adv_report_evt()
7086 void (*func)(struct hci_dev *hdev, void *data, struct sk_buff *skb);
7167 static void hci_le_meta_evt(struct hci_dev *hdev, void *data, in hci_le_meta_evt() argument
7172 struct hci_ev_le_meta *ev = data; in hci_le_meta_evt()
7204 data = hci_le_ev_skb_pull(hdev, skb, ev->subevent, subev->min_len); in hci_le_meta_evt()
7205 if (!data) in hci_le_meta_evt()
7208 subev->func(hdev, data, skb); in hci_le_meta_evt()
7261 const struct hci_ev_conn_complete *conn_complete = (void *)skb->data; in hci_store_wake_reason()
7262 const struct hci_ev_conn_request *conn_request = (void *)skb->data; in hci_store_wake_reason()
7288 struct hci_ev_le_meta *le_ev = (void *)skb->data; in hci_store_wake_reason()
7290 u8 *ptr = &skb->data[sizeof(*le_ev)]; in hci_store_wake_reason()
7357 void (*func)(struct hci_dev *hdev, void *data,
7359 void (*func_req)(struct hci_dev *hdev, void *data,
7491 void *data; in hci_event_func() local
7511 data = hci_ev_skb_pull(hdev, skb, event, ev->min_len); in hci_event_func()
7512 if (!data) in hci_event_func()
7516 ev->func_req(hdev, data, skb, opcode, status, req_complete, in hci_event_func()
7519 ev->func(hdev, data, skb); in hci_event_func()
7524 struct hci_event_hdr *hdr = (void *) skb->data; in hci_event_packet()