Lines Matching refs:hci_dev

323 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data,
330 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data,
337 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len,
366 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data,
379 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data,
431 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
435 struct hci_dev *d;
491 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev,
495 struct hci_dev *d;
551 static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev,
555 struct hci_dev *d;
625 static bool is_configured(struct hci_dev *hdev)
639 static __le32 get_missing_options(struct hci_dev *hdev)
655 static int new_options(struct hci_dev *hdev, struct sock *skip)
663 static int send_options_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
671 static int read_config_info(struct sock *sk, struct hci_dev *hdev,
699 static u32 get_supported_phys(struct hci_dev *hdev)
751 static u32 get_selected_phys(struct hci_dev *hdev)
814 static u32 get_configurable_phys(struct hci_dev *hdev)
820 static u32 get_supported_settings(struct hci_dev *hdev)
871 static u32 get_current_settings(struct hci_dev *hdev)
951 static struct mgmt_pending_cmd *pending_find(u16 opcode, struct hci_dev *hdev)
956 u8 mgmt_get_adv_discov_flags(struct hci_dev *hdev)
980 bool mgmt_get_connectable(struct hci_dev *hdev)
997 static int service_cache_sync(struct hci_dev *hdev, void *data)
1007 struct hci_dev *hdev = container_of(work, struct hci_dev,
1016 static int rpa_expired_sync(struct hci_dev *hdev, void *data)
1030 struct hci_dev *hdev = container_of(work, struct hci_dev,
1043 static int set_discoverable_sync(struct hci_dev *hdev, void *data);
1047 struct hci_dev *hdev = container_of(work, struct hci_dev,
1070 static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev);
1072 static void mesh_send_complete(struct hci_dev *hdev,
1084 static int mesh_send_done_sync(struct hci_dev *hdev, void *data)
1098 static int mesh_send_sync(struct hci_dev *hdev, void *data);
1099 static void mesh_send_start_complete(struct hci_dev *hdev, void *data, int err);
1100 static void mesh_next(struct hci_dev *hdev, void *data, int err)
1118 struct hci_dev *hdev = container_of(work, struct hci_dev,
1127 static void mgmt_init_hdev(struct sock *sk, struct hci_dev *hdev)
1149 static int read_controller_info(struct sock *sk, struct hci_dev *hdev,
1179 static u16 append_eir_data_to_buf(struct hci_dev *hdev, u8 *eir)
1203 static int read_ext_controller_info(struct sock *sk, struct hci_dev *hdev,
1243 static int ext_info_changed(struct hci_dev *hdev, struct sock *skip)
1259 static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev)
1267 void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, u8 instance)
1276 void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev,
1286 static void cancel_adv_timeout(struct hci_dev *hdev)
1295 static void restart_le_actions(struct hci_dev *hdev)
1319 static int new_settings(struct hci_dev *hdev, struct sock *skip)
1327 static void mgmt_set_powered_complete(struct hci_dev *hdev, void *data, int err)
1363 static int set_powered_sync(struct hci_dev *hdev, void *data)
1373 static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data,
1424 int mgmt_new_settings(struct hci_dev *hdev)
1431 struct hci_dev *hdev;
1485 static u8 mgmt_bredr_support(struct hci_dev *hdev)
1495 static u8 mgmt_le_support(struct hci_dev *hdev)
1505 static void mgmt_set_discoverable_complete(struct hci_dev *hdev, void *data,
1539 static int set_discoverable_sync(struct hci_dev *hdev, void *data)
1546 static int set_discoverable(struct sock *sk, struct hci_dev *hdev, void *data,
1679 static void mgmt_set_connectable_complete(struct hci_dev *hdev, void *data,
1708 static int set_connectable_update_settings(struct hci_dev *hdev,
1737 static int set_connectable_sync(struct hci_dev *hdev, void *data)
1744 static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data,
1804 static int set_bondable(struct sock *sk, struct hci_dev *hdev, void *data,
1842 static int set_link_security(struct sock *sk, struct hci_dev *hdev, void *data,
1911 static void set_ssp_complete(struct hci_dev *hdev, void *data, int err)
1953 static int set_ssp_sync(struct hci_dev *hdev, void *data)
1971 static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2046 static int set_hs(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2054 static void set_le_complete(struct hci_dev *hdev, void *data, int err)
2075 static int set_le_sync(struct hci_dev *hdev, void *data)
2119 static void set_mesh_complete(struct hci_dev *hdev, void *data, int err)
2135 static int set_mesh_sync(struct hci_dev *hdev, void *data)
2158 static int set_mesh(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2196 static void mesh_send_start_complete(struct hci_dev *hdev, void *data, int err)
2217 static int mesh_send_sync(struct hci_dev *hdev, void *data)
2281 static int mesh_features(struct sock *sk, struct hci_dev *hdev,
2308 static int send_cancel(struct hci_dev *hdev, void *data)
2335 static int mesh_send_cancel(struct sock *sk, struct hci_dev *hdev,
2369 static int mesh_send(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2430 static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2525 static bool pending_eir_or_class(struct hci_dev *hdev)
2561 static void mgmt_class_complete(struct hci_dev *hdev, void *data, int err)
2573 static int add_uuid_sync(struct hci_dev *hdev, void *data)
2584 static int add_uuid(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2630 static bool enable_service_cache(struct hci_dev *hdev)
2644 static int remove_uuid_sync(struct hci_dev *hdev, void *data)
2655 static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
2723 static int set_class_sync(struct hci_dev *hdev, void *data)
2738 static int set_dev_class(struct sock *sk, struct hci_dev *hdev, void *data,
2790 static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data,
2880 static int device_unpaired(struct hci_dev *hdev, bdaddr_t *bdaddr,
2892 static void unpair_device_complete(struct hci_dev *hdev, void *data, int err)
2904 static int unpair_device_sync(struct hci_dev *hdev, void *data)
2923 static int unpair_device(struct sock *sk, struct hci_dev *hdev, void *data,
3052 static int disconnect(struct sock *sk, struct hci_dev *hdev, void *data,
3138 static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data,
3192 static int send_pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev,
3213 static int pin_code_reply(struct sock *sk, struct hci_dev *hdev, void *data,
3275 static int set_io_capability(struct sock *sk, struct hci_dev *hdev, void *data,
3300 struct hci_dev *hdev = conn->hdev;
3392 static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
3523 static int cancel_pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
3580 static int user_pairing_resp(struct sock *sk, struct hci_dev *hdev,
3651 static int pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev,
3663 static int user_confirm_reply(struct sock *sk, struct hci_dev *hdev, void *data,
3679 static int user_confirm_neg_reply(struct sock *sk, struct hci_dev *hdev,
3691 static int user_passkey_reply(struct sock *sk, struct hci_dev *hdev, void *data,
3703 static int user_passkey_neg_reply(struct sock *sk, struct hci_dev *hdev,
3715 static int adv_expire_sync(struct hci_dev *hdev, u32 flags)
3738 static int name_changed_sync(struct hci_dev *hdev, void *data)
3743 static void set_name_complete(struct hci_dev *hdev, void *data, int err)
3768 static int set_name_sync(struct hci_dev *hdev, void *data)
3784 static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data,
3847 static int appearance_changed_sync(struct hci_dev *hdev, void *data)
3852 static int set_appearance(struct sock *sk, struct hci_dev *hdev, void *data,
3887 static int get_phy_configuration(struct sock *sk, struct hci_dev *hdev,
3908 int mgmt_phy_configuration_changed(struct hci_dev *hdev, struct sock *skip)
3920 static void set_default_phy_complete(struct hci_dev *hdev, void *data, int err)
3957 static int set_default_phy_sync(struct hci_dev *hdev, void *data)
3996 static int set_phy_configuration(struct sock *sk, struct hci_dev *hdev,
4125 static int set_blocked_keys(struct sock *sk, struct hci_dev *hdev, void *data,
4174 static int set_wideband_speech(struct sock *sk, struct hci_dev *hdev,
4223 static int read_controller_cap(struct sock *sk, struct hci_dev *hdev,
4334 static int read_exp_features_info(struct sock *sk, struct hci_dev *hdev,
4439 static int exp_ll_privacy_feature_changed(bool enabled, struct hci_dev *hdev,
4460 static int exp_feature_changed(struct hci_dev *hdev, const u8 *uuid,
4481 static int set_zero_key_func(struct sock *sk, struct hci_dev *hdev,
4518 static int set_debug_func(struct sock *sk, struct hci_dev *hdev,
4564 static int set_mgmt_mesh_func(struct sock *sk, struct hci_dev *hdev,
4615 static int set_rpa_resolution_func(struct sock *sk, struct hci_dev *hdev,
4680 static int set_quality_report_func(struct sock *sk, struct hci_dev *hdev,
4754 static int set_offload_codec_func(struct sock *sk, struct hci_dev *hdev,
4812 static int set_le_simultaneous_roles_func(struct sock *sk, struct hci_dev *hdev,
4871 static int set_iso_socket_func(struct sock *sk, struct hci_dev *hdev,
4923 int (*set_func)(struct sock *sk, struct hci_dev *hdev,
4943 static int set_exp_feature(struct sock *sk, struct hci_dev *hdev,
4961 static u32 get_params_flags(struct hci_dev *hdev,
4977 static int get_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
5029 static void device_flags_changed(struct sock *sk, struct hci_dev *hdev,
5043 static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
5120 static void mgmt_adv_monitor_added(struct sock *sk, struct hci_dev *hdev,
5130 void mgmt_adv_monitor_removed(struct hci_dev *hdev, u16 handle)
5150 static int read_adv_mon_features(struct sock *sk, struct hci_dev *hdev,
5199 static void mgmt_add_adv_patterns_monitor_complete(struct hci_dev *hdev,
5227 static int mgmt_add_adv_patterns_monitor_sync(struct hci_dev *hdev, void *data)
5235 static int __add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
5339 static int add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
5376 static int add_adv_patterns_monitor_rssi(struct sock *sk, struct hci_dev *hdev,
5413 static void mgmt_remove_adv_monitor_complete(struct hci_dev *hdev,
5436 static int mgmt_remove_adv_monitor_sync(struct hci_dev *hdev, void *data)
5448 static int remove_adv_monitor(struct sock *sk, struct hci_dev *hdev,
5494 static void read_local_oob_data_complete(struct hci_dev *hdev, void *data, int err)
5561 static int read_local_oob_data_sync(struct hci_dev *hdev, void *data)
5576 static int read_local_oob_data(struct sock *sk, struct hci_dev *hdev,
5618 static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
5726 static int remove_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
5763 void mgmt_start_discovery_complete(struct hci_dev *hdev, u8 status)
5786 static bool discovery_type_is_valid(struct hci_dev *hdev, uint8_t type,
5813 static void start_discovery_complete(struct hci_dev *hdev, void *data, int err)
5832 static int start_discovery_sync(struct hci_dev *hdev, void *data)
5837 static int start_discovery_internal(struct sock *sk, struct hci_dev *hdev,
5908 static int start_discovery(struct sock *sk, struct hci_dev *hdev,
5915 static int start_limited_discovery(struct sock *sk, struct hci_dev *hdev,
5923 static int start_service_discovery(struct sock *sk, struct hci_dev *hdev,
6035 void mgmt_stop_discovery_complete(struct hci_dev *hdev, u8 status)
6052 static void stop_discovery_complete(struct hci_dev *hdev, void *data, int err)
6069 static int stop_discovery_sync(struct hci_dev *hdev, void *data)
6074 static int stop_discovery(struct sock *sk, struct hci_dev *hdev, void *data,
6119 static int confirm_name(struct sock *sk, struct hci_dev *hdev, void *data,
6161 static int block_device(struct sock *sk, struct hci_dev *hdev, void *data,
6197 static int unblock_device(struct sock *sk, struct hci_dev *hdev, void *data,
6233 static int set_device_id_sync(struct hci_dev *hdev, void *data)
6238 static int set_device_id(struct sock *sk, struct hci_dev *hdev, void *data,
6270 static void enable_advertising_instance(struct hci_dev *hdev, int err)
6278 static void set_advertising_complete(struct hci_dev *hdev, void *data, int err)
6326 static int set_adv_sync(struct hci_dev *hdev, void *data)
6360 static int set_advertising(struct sock *sk, struct hci_dev *hdev, void *data,
6445 static int set_static_address(struct sock *sk, struct hci_dev *hdev,
6489 static int set_scan_params(struct sock *sk, struct hci_dev *hdev,
6538 static void fast_connectable_complete(struct hci_dev *hdev, void *data, int err)
6562 static int write_fast_connectable_sync(struct hci_dev *hdev, void *data)
6570 static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev,
6626 static void set_bredr_complete(struct hci_dev *hdev, void *data, int err)
6649 static int set_bredr_sync(struct hci_dev *hdev, void *data)
6667 static int set_bredr(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
6767 static void set_secure_conn_complete(struct hci_dev *hdev, void *data, int err)
6805 static int set_secure_conn_sync(struct hci_dev *hdev, void *data)
6817 static int set_secure_conn(struct sock *sk, struct hci_dev *hdev,
6898 static int set_debug_keys(struct sock *sk, struct hci_dev *hdev,
6945 static int set_privacy(struct sock *sk, struct hci_dev *hdev, void *cp_data,
7018 static int load_irks(struct sock *sk, struct hci_dev *hdev, void *cp_data,
7113 static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
7214 static void get_conn_info_complete(struct hci_dev *hdev, void *data, int err)
7243 static int get_conn_info_sync(struct hci_dev *hdev, void *data)
7281 static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data,
7372 static void get_clock_info_complete(struct hci_dev *hdev, void *data, int err)
7403 static int get_clock_info_sync(struct hci_dev *hdev, void *data)
7425 static int get_clock_info(struct sock *sk, struct hci_dev *hdev, void *data,
7489 static bool is_connected(struct hci_dev *hdev, bdaddr_t *addr, u8 type)
7507 static int hci_conn_params_set(struct hci_dev *hdev, bdaddr_t *addr,
7551 static void device_added(struct sock *sk, struct hci_dev *hdev,
7563 static int add_device_sync(struct hci_dev *hdev, void *data)
7568 static int add_device(struct sock *sk, struct hci_dev *hdev,
7670 static void device_removed(struct sock *sk, struct hci_dev *hdev,
7681 static int remove_device_sync(struct hci_dev *hdev, void *data)
7686 static int remove_device(struct sock *sk, struct hci_dev *hdev,
7810 static int load_conn_param(struct sock *sk, struct hci_dev *hdev, void *data,
7895 static int set_external_config(struct sock *sk, struct hci_dev *hdev,
7951 static int set_public_address(struct sock *sk, struct hci_dev *hdev,
8003 static void read_local_oob_ext_data_complete(struct hci_dev *hdev, void *data,
8126 static int read_local_ssp_oob_req(struct hci_dev *hdev, struct sock *sk,
8148 static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev,
8309 static u32 get_supported_adv_flags(struct hci_dev *hdev)
8346 static int read_adv_features(struct sock *sk, struct hci_dev *hdev,
8401 static u8 calculate_name_len(struct hci_dev *hdev)
8408 static u8 tlv_data_max_len(struct hci_dev *hdev, u32 adv_flags,
8454 static bool tlv_data_is_valid(struct hci_dev *hdev, u32 adv_flags, u8 *data,
8499 static bool requested_adv_flags_are_valid(struct hci_dev *hdev, u32 adv_flags)
8515 static bool adv_busy(struct hci_dev *hdev)
8520 static void add_adv_complete(struct hci_dev *hdev, struct sock *sk, u8 instance,
8552 static void add_advertising_complete(struct hci_dev *hdev, void *data, int err)
8574 static int add_advertising_sync(struct hci_dev *hdev, void *data)
8582 static int add_advertising(struct sock *sk, struct hci_dev *hdev,
8717 static void add_ext_adv_params_complete(struct hci_dev *hdev, void *data,
8768 static int add_ext_adv_params_sync(struct hci_dev *hdev, void *data)
8776 static int add_ext_adv_params(struct sock *sk, struct hci_dev *hdev,
8892 static void add_ext_adv_data_complete(struct hci_dev *hdev, void *data, int err)
8914 static int add_ext_adv_data_sync(struct hci_dev *hdev, void *data)
8935 static int add_ext_adv_data(struct sock *sk, struct hci_dev *hdev, void *data,
9054 static void remove_advertising_complete(struct hci_dev *hdev, void *data,
9076 static int remove_advertising_sync(struct hci_dev *hdev, void *data)
9092 static int remove_advertising(struct sock *sk, struct hci_dev *hdev,
9140 static int get_adv_size_info(struct sock *sk, struct hci_dev *hdev,
9310 void mgmt_index_added(struct hci_dev *hdev)
9342 void mgmt_index_removed(struct hci_dev *hdev)
9384 void mgmt_power_on(struct hci_dev *hdev, int err)
9407 void __mgmt_power_off(struct hci_dev *hdev)
9441 void mgmt_set_powered_failed(struct hci_dev *hdev, int err)
9460 void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key,
9496 void mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, bool persistent)
9539 void mgmt_new_irk(struct hci_dev *hdev, struct smp_irk *irk, bool persistent)
9555 void mgmt_new_csrk(struct hci_dev *hdev, struct smp_csrk *csrk,
9585 void mgmt_new_conn_param(struct hci_dev *hdev, bdaddr_t *bdaddr,
9606 void mgmt_device_connected(struct hci_dev *hdev, struct hci_conn *conn,
9670 struct hci_dev *hdev = data;
9679 bool mgmt_powering_down(struct hci_dev *hdev)
9695 void mgmt_device_disconnected(struct hci_dev *hdev, bdaddr_t *bdaddr,
9727 void mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr,
9753 void mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
9765 void mgmt_pin_code_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 secure)
9776 void mgmt_pin_code_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9789 void mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9802 int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr,
9819 int mgmt_user_passkey_request(struct hci_dev *hdev, bdaddr_t *bdaddr,
9833 static int user_pairing_resp_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9849 int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9856 int mgmt_user_confirm_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9864 int mgmt_user_passkey_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9871 int mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr,
9879 int mgmt_user_passkey_notify(struct hci_dev *hdev, bdaddr_t *bdaddr,
9916 void mgmt_auth_enable_complete(struct hci_dev *hdev, u8 status)
9953 void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class,
9972 void mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status)
10067 static void restart_le_scan(struct hci_dev *hdev)
10082 static bool is_filter_match(struct hci_dev *hdev, s8 rssi, u8 *eir,
10127 void mgmt_adv_monitor_device_lost(struct hci_dev *hdev, u16 handle,
10140 static void mgmt_send_adv_monitor_device_found(struct hci_dev *hdev,
10170 static void mgmt_adv_monitor_device_found(struct hci_dev *hdev,
10234 static void mesh_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr,
10300 void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
10392 void mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
10419 void mgmt_discovering(struct hci_dev *hdev, u8 discovering)
10432 void mgmt_suspending(struct hci_dev *hdev, u8 state)
10440 void mgmt_resuming(struct hci_dev *hdev, u8 reason, bdaddr_t *bdaddr,
10476 struct hci_dev *hdev;