Lines Matching defs:hdev
286 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event()
293 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event()
300 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event()
323 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version()
336 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands()
388 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list()
448 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev, in read_unconf_index_list()
508 static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev, in read_ext_index_list()
582 static bool is_configured(struct hci_dev *hdev) in is_configured()
596 static __le32 get_missing_options(struct hci_dev *hdev) in get_missing_options()
612 static int new_options(struct hci_dev *hdev, struct sock *skip) in new_options()
620 static int send_options_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) in send_options_rsp()
628 static int read_config_info(struct sock *sk, struct hci_dev *hdev, in read_config_info()
656 static u32 get_supported_phys(struct hci_dev *hdev) in get_supported_phys()
708 static u32 get_selected_phys(struct hci_dev *hdev) in get_selected_phys()
771 static u32 get_configurable_phys(struct hci_dev *hdev) in get_configurable_phys()
777 static u32 get_supported_settings(struct hci_dev *hdev) in get_supported_settings()
829 static u32 get_current_settings(struct hci_dev *hdev) in get_current_settings()
900 static struct mgmt_pending_cmd *pending_find(u16 opcode, struct hci_dev *hdev) in pending_find()
906 struct hci_dev *hdev, in pending_find_data()
912 u8 mgmt_get_adv_discov_flags(struct hci_dev *hdev) in mgmt_get_adv_discov_flags()
936 bool mgmt_get_connectable(struct hci_dev *hdev) in mgmt_get_connectable()
955 struct hci_dev *hdev = container_of(work, struct hci_dev, in service_cache_off() local
976 struct hci_dev *hdev = container_of(work, struct hci_dev, in rpa_expired() local
999 static void mgmt_init_hdev(struct sock *sk, struct hci_dev *hdev) in mgmt_init_hdev()
1015 static int read_controller_info(struct sock *sk, struct hci_dev *hdev, in read_controller_info()
1045 static u16 append_eir_data_to_buf(struct hci_dev *hdev, u8 *eir) in append_eir_data_to_buf()
1069 static int read_ext_controller_info(struct sock *sk, struct hci_dev *hdev, in read_ext_controller_info()
1109 static int ext_info_changed(struct hci_dev *hdev, struct sock *skip) in ext_info_changed()
1125 static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) in send_settings_rsp()
1133 static void clean_up_hci_complete(struct hci_dev *hdev, u8 status, u16 opcode) in clean_up_hci_complete()
1143 void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, u8 instance) in mgmt_advertising_added()
1152 void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev, in mgmt_advertising_removed()
1162 static void cancel_adv_timeout(struct hci_dev *hdev) in cancel_adv_timeout()
1170 static int clean_up_hci_state(struct hci_dev *hdev) in clean_up_hci_state()
1204 static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data, in set_powered()
1259 static int new_settings(struct hci_dev *hdev, struct sock *skip) in new_settings()
1267 int mgmt_new_settings(struct hci_dev *hdev) in mgmt_new_settings()
1274 struct hci_dev *hdev; member
1328 static u8 mgmt_bredr_support(struct hci_dev *hdev) in mgmt_bredr_support()
1338 static u8 mgmt_le_support(struct hci_dev *hdev) in mgmt_le_support()
1348 void mgmt_set_discoverable_complete(struct hci_dev *hdev, u8 status) in mgmt_set_discoverable_complete()
1383 static int set_discoverable(struct sock *sk, struct hci_dev *hdev, void *data, in set_discoverable()
1513 void mgmt_set_connectable_complete(struct hci_dev *hdev, u8 status) in mgmt_set_connectable_complete()
1541 static int set_connectable_update_settings(struct hci_dev *hdev, in set_connectable_update_settings()
1570 static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data, in set_connectable()
1627 static int set_bondable(struct sock *sk, struct hci_dev *hdev, void *data, in set_bondable()
1670 static int set_link_security(struct sock *sk, struct hci_dev *hdev, void *data, in set_link_security()
1739 static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_ssp()
1820 static int set_hs(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_hs()
1881 static void le_enable_complete(struct hci_dev *hdev, u8 status, u16 opcode) in le_enable_complete()
1928 static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_le()
2041 static bool pending_eir_or_class(struct hci_dev *hdev) in pending_eir_or_class()
2077 static void mgmt_class_complete(struct hci_dev *hdev, u16 mgmt_op, u8 status) in mgmt_class_complete()
2096 static void add_uuid_complete(struct hci_dev *hdev, u8 status, u16 opcode) in add_uuid_complete()
2103 static int add_uuid(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in add_uuid()
2161 static bool enable_service_cache(struct hci_dev *hdev) in enable_service_cache()
2175 static void remove_uuid_complete(struct hci_dev *hdev, u8 status, u16 opcode) in remove_uuid_complete()
2182 static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data, in remove_uuid()
2261 static void set_class_complete(struct hci_dev *hdev, u8 status, u16 opcode) in set_class_complete()
2268 static int set_dev_class(struct sock *sk, struct hci_dev *hdev, void *data, in set_dev_class()
2339 static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data, in load_link_keys()
2428 static int device_unpaired(struct hci_dev *hdev, bdaddr_t *bdaddr, in device_unpaired()
2440 static int unpair_device(struct sock *sk, struct hci_dev *hdev, void *data, in unpair_device()
2568 static int disconnect(struct sock *sk, struct hci_dev *hdev, void *data, in disconnect()
2653 static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data, in get_connections()
2707 static int send_pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev, in send_pin_code_neg_reply()
2728 static int pin_code_reply(struct sock *sk, struct hci_dev *hdev, void *data, in pin_code_reply()
2790 static int set_io_capability(struct sock *sk, struct hci_dev *hdev, void *data, in set_io_capability()
2815 struct hci_dev *hdev = conn->hdev; in find_pairing() local
2907 static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data, in pair_device()
3038 static int cancel_pair_device(struct sock *sk, struct hci_dev *hdev, void *data, in cancel_pair_device()
3095 static int user_pairing_resp(struct sock *sk, struct hci_dev *hdev, in user_pairing_resp()
3166 static int pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev, in pin_code_neg_reply()
3178 static int user_confirm_reply(struct sock *sk, struct hci_dev *hdev, void *data, in user_confirm_reply()
3194 static int user_confirm_neg_reply(struct sock *sk, struct hci_dev *hdev, in user_confirm_neg_reply()
3206 static int user_passkey_reply(struct sock *sk, struct hci_dev *hdev, void *data, in user_passkey_reply()
3218 static int user_passkey_neg_reply(struct sock *sk, struct hci_dev *hdev, in user_passkey_neg_reply()
3230 static void adv_expire(struct hci_dev *hdev, u32 flags) in adv_expire()
3259 static void set_name_complete(struct hci_dev *hdev, u8 status, u16 opcode) in set_name_complete()
3291 static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data, in set_local_name()
3361 static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data, in set_appearance()
3395 static int get_phy_configuration(struct sock *sk, struct hci_dev *hdev, in get_phy_configuration()
3416 int mgmt_phy_configuration_changed(struct hci_dev *hdev, struct sock *skip) in mgmt_phy_configuration_changed()
3428 static void set_default_phy_complete(struct hci_dev *hdev, u8 status, in set_default_phy_complete()
3459 static int set_phy_configuration(struct sock *sk, struct hci_dev *hdev, in set_phy_configuration()
3614 static int set_blocked_keys(struct sock *sk, struct hci_dev *hdev, void *data, in set_blocked_keys()
3663 static int set_wideband_speech(struct sock *sk, struct hci_dev *hdev, in set_wideband_speech()
3719 static int read_controller_cap(struct sock *sk, struct hci_dev *hdev, in read_controller_cap()
3806 static int read_exp_features_info(struct sock *sk, struct hci_dev *hdev, in read_exp_features_info()
3865 static int exp_ll_privacy_feature_changed(bool enabled, struct hci_dev *hdev, in exp_ll_privacy_feature_changed()
3895 static int set_exp_feature(struct sock *sk, struct hci_dev *hdev, in set_exp_feature()
4048 static int get_device_flags(struct sock *sk, struct hci_dev *hdev, void *data, in get_device_flags()
4098 static void device_flags_changed(struct sock *sk, struct hci_dev *hdev, in device_flags_changed()
4112 static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data, in set_device_flags()
4170 static void mgmt_adv_monitor_added(struct sock *sk, struct hci_dev *hdev, in mgmt_adv_monitor_added()
4180 void mgmt_adv_monitor_removed(struct hci_dev *hdev, u16 handle) in mgmt_adv_monitor_removed()
4200 static int read_adv_mon_features(struct sock *sk, struct hci_dev *hdev, in read_adv_mon_features()
4249 int mgmt_add_adv_patterns_monitor_complete(struct hci_dev *hdev, u8 status) in mgmt_add_adv_patterns_monitor_complete()
4288 static int __add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev, in __add_adv_patterns_monitor()
4408 static int add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev, in add_adv_patterns_monitor()
4445 static int add_adv_patterns_monitor_rssi(struct sock *sk, struct hci_dev *hdev, in add_adv_patterns_monitor_rssi()
4482 int mgmt_remove_adv_monitor_complete(struct hci_dev *hdev, u8 status) in mgmt_remove_adv_monitor_complete()
4513 static int remove_adv_monitor(struct sock *sk, struct hci_dev *hdev, in remove_adv_monitor()
4578 static void read_local_oob_data_complete(struct hci_dev *hdev, u8 status, in read_local_oob_data_complete()
4637 static int read_local_oob_data(struct sock *sk, struct hci_dev *hdev, in read_local_oob_data()
4688 static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev, in add_remote_oob_data()
4796 static int remove_remote_oob_data(struct sock *sk, struct hci_dev *hdev, in remove_remote_oob_data()
4833 void mgmt_start_discovery_complete(struct hci_dev *hdev, u8 status) in mgmt_start_discovery_complete()
4863 static bool discovery_type_is_valid(struct hci_dev *hdev, uint8_t type, in discovery_type_is_valid()
4890 static int start_discovery_internal(struct sock *sk, struct hci_dev *hdev, in start_discovery_internal()
4958 static int start_discovery(struct sock *sk, struct hci_dev *hdev, in start_discovery()
4965 static int start_limited_discovery(struct sock *sk, struct hci_dev *hdev, in start_limited_discovery()
4980 static int start_service_discovery(struct sock *sk, struct hci_dev *hdev, in start_service_discovery()
5089 void mgmt_stop_discovery_complete(struct hci_dev *hdev, u8 status) in mgmt_stop_discovery_complete()
5112 static int stop_discovery(struct sock *sk, struct hci_dev *hdev, void *data, in stop_discovery()
5154 static int confirm_name(struct sock *sk, struct hci_dev *hdev, void *data, in confirm_name()
5196 static int block_device(struct sock *sk, struct hci_dev *hdev, void *data, in block_device()
5232 static int unblock_device(struct sock *sk, struct hci_dev *hdev, void *data, in unblock_device()
5268 static int set_device_id(struct sock *sk, struct hci_dev *hdev, void *data, in set_device_id()
5303 static void enable_advertising_instance(struct hci_dev *hdev, u8 status, in enable_advertising_instance()
5309 static void set_advertising_complete(struct hci_dev *hdev, u8 status, in set_advertising_complete()
5383 static int set_advertising(struct sock *sk, struct hci_dev *hdev, void *data, in set_advertising()
5502 static int set_static_address(struct sock *sk, struct hci_dev *hdev, in set_static_address()
5546 static int set_scan_params(struct sock *sk, struct hci_dev *hdev, in set_scan_params()
5603 static void fast_connectable_complete(struct hci_dev *hdev, u8 status, in fast_connectable_complete()
5637 static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev, in set_fast_connectable()
5702 static void set_bredr_complete(struct hci_dev *hdev, u8 status, u16 opcode) in set_bredr_complete()
5734 static int set_bredr(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_bredr()
5846 static void sc_enable_complete(struct hci_dev *hdev, u8 status, u16 opcode) in sc_enable_complete()
5891 static int set_secure_conn(struct sock *sk, struct hci_dev *hdev, in set_secure_conn()
5979 static int set_debug_keys(struct sock *sk, struct hci_dev *hdev, in set_debug_keys()
6026 static int set_privacy(struct sock *sk, struct hci_dev *hdev, void *cp_data, in set_privacy()
6099 static int load_irks(struct sock *sk, struct hci_dev *hdev, void *cp_data, in load_irks()
6189 static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev, in load_long_term_keys()
6312 static void conn_info_refresh_complete(struct hci_dev *hdev, u8 hci_status, in conn_info_refresh_complete()
6366 static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data, in get_conn_info()
6491 struct hci_dev *hdev; in clock_info_cmd_complete() local
6523 static void get_clock_info_complete(struct hci_dev *hdev, u8 status, u16 opcode) in get_clock_info_complete()
6555 static int get_clock_info(struct sock *sk, struct hci_dev *hdev, void *data, in get_clock_info()
6631 static bool is_connected(struct hci_dev *hdev, bdaddr_t *addr, u8 type) in is_connected()
6649 static int hci_conn_params_set(struct hci_dev *hdev, bdaddr_t *addr, in hci_conn_params_set()
6693 static void device_added(struct sock *sk, struct hci_dev *hdev, in device_added()
6705 static int add_device(struct sock *sk, struct hci_dev *hdev, in add_device()
6803 static void device_removed(struct sock *sk, struct hci_dev *hdev, in device_removed()
6814 static int remove_device(struct sock *sk, struct hci_dev *hdev, in remove_device()
6943 static int load_conn_param(struct sock *sk, struct hci_dev *hdev, void *data, in load_conn_param()
7028 static int set_external_config(struct sock *sk, struct hci_dev *hdev, in set_external_config()
7084 static int set_public_address(struct sock *sk, struct hci_dev *hdev, in set_public_address()
7136 static void read_local_oob_ext_data_complete(struct hci_dev *hdev, u8 status, in read_local_oob_ext_data_complete()
7247 static int read_local_ssp_oob_req(struct hci_dev *hdev, struct sock *sk, in read_local_ssp_oob_req()
7275 static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev, in read_local_oob_ext_data()
7431 static u32 get_supported_adv_flags(struct hci_dev *hdev) in get_supported_adv_flags()
7469 static int read_adv_features(struct sock *sk, struct hci_dev *hdev, in read_adv_features()
7525 static u8 calculate_name_len(struct hci_dev *hdev) in calculate_name_len()
7532 static u8 tlv_data_max_len(struct hci_dev *hdev, u32 adv_flags, in tlv_data_max_len()
7578 static bool tlv_data_is_valid(struct hci_dev *hdev, u32 adv_flags, u8 *data, in tlv_data_is_valid()
7623 static bool requested_adv_flags_are_valid(struct hci_dev *hdev, u32 adv_flags) in requested_adv_flags_are_valid()
7639 static bool adv_busy(struct hci_dev *hdev) in adv_busy()
7648 static void add_advertising_complete(struct hci_dev *hdev, u8 status, in add_advertising_complete()
7702 static int add_advertising(struct sock *sk, struct hci_dev *hdev, in add_advertising()
7849 static void add_ext_adv_params_complete(struct hci_dev *hdev, u8 status, in add_ext_adv_params_complete()
7906 static int add_ext_adv_params(struct sock *sk, struct hci_dev *hdev, in add_ext_adv_params()
8034 static int add_ext_adv_data(struct sock *sk, struct hci_dev *hdev, void *data, in add_ext_adv_data()
8180 static void remove_advertising_complete(struct hci_dev *hdev, u8 status, in remove_advertising_complete()
8210 static int remove_advertising(struct sock *sk, struct hci_dev *hdev, in remove_advertising()
8296 static int get_adv_size_info(struct sock *sk, struct hci_dev *hdev, in get_adv_size_info()
8463 void mgmt_index_added(struct hci_dev *hdev) in mgmt_index_added()
8495 void mgmt_index_removed(struct hci_dev *hdev) in mgmt_index_removed()
8531 static void restart_le_actions(struct hci_dev *hdev) in restart_le_actions()
8555 void mgmt_power_on(struct hci_dev *hdev, int err) in mgmt_power_on()
8578 void __mgmt_power_off(struct hci_dev *hdev) in __mgmt_power_off()
8612 void mgmt_set_powered_failed(struct hci_dev *hdev, int err) in mgmt_set_powered_failed()
8631 void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, in mgmt_new_link_key()
8667 void mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, bool persistent) in mgmt_new_ltk()
8710 void mgmt_new_irk(struct hci_dev *hdev, struct smp_irk *irk, bool persistent) in mgmt_new_irk()
8726 void mgmt_new_csrk(struct hci_dev *hdev, struct smp_csrk *csrk, in mgmt_new_csrk()
8756 void mgmt_new_conn_param(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_new_conn_param()
8777 void mgmt_device_connected(struct hci_dev *hdev, struct hci_conn *conn, in mgmt_device_connected()
8832 struct hci_dev *hdev = data; in unpair_device_rsp() local
8841 bool mgmt_powering_down(struct hci_dev *hdev) in mgmt_powering_down()
8857 void mgmt_device_disconnected(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_device_disconnected()
8897 void mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_disconnect_failed()
8923 void mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, in mgmt_connect_failed()
8943 void mgmt_pin_code_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 secure) in mgmt_pin_code_request()
8954 void mgmt_pin_code_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_pin_code_reply_complete()
8967 void mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_pin_code_neg_reply_complete()
8980 int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_confirm_request()
8997 int mgmt_user_passkey_request(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_request()
9011 static int user_pairing_resp_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in user_pairing_resp_complete()
9027 int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_confirm_reply_complete()
9034 int mgmt_user_confirm_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_confirm_neg_reply_complete()
9042 int mgmt_user_passkey_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_reply_complete()
9049 int mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_neg_reply_complete()
9057 int mgmt_user_passkey_notify(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_notify()
9094 void mgmt_auth_enable_complete(struct hci_dev *hdev, u8 status) in mgmt_auth_enable_complete()
9123 struct hci_dev *hdev = req->hdev; in clear_eir() local
9136 void mgmt_ssp_enable_complete(struct hci_dev *hdev, u8 enable, u8 status) in mgmt_ssp_enable_complete()
9199 void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class, in mgmt_set_class_of_dev_complete()
9218 void mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status) in mgmt_set_local_name_complete()
9313 static void restart_le_scan(struct hci_dev *hdev) in restart_le_scan()
9328 static bool is_filter_match(struct hci_dev *hdev, s8 rssi, u8 *eir, in is_filter_match()
9373 void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, in mgmt_device_found()
9458 void mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, in mgmt_remote_name()
9481 void mgmt_discovering(struct hci_dev *hdev, u8 discovering) in mgmt_discovering()
9494 void mgmt_suspending(struct hci_dev *hdev, u8 state) in mgmt_suspending()
9502 void mgmt_resuming(struct hci_dev *hdev, u8 reason, bdaddr_t *bdaddr, in mgmt_resuming()