Lines Matching defs:hdev
243 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event()
250 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event()
257 static int mgmt_generic_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_generic_event()
264 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event()
279 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version()
293 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands()
345 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list()
405 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev, in read_unconf_index_list()
465 static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev, in read_ext_index_list()
541 static bool is_configured(struct hci_dev *hdev) in is_configured()
554 static __le32 get_missing_options(struct hci_dev *hdev) in get_missing_options()
569 static int new_options(struct hci_dev *hdev, struct sock *skip) in new_options()
577 static int send_options_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) in send_options_rsp()
585 static int read_config_info(struct sock *sk, struct hci_dev *hdev, in read_config_info()
613 static u32 get_supported_settings(struct hci_dev *hdev) in get_supported_settings()
653 static u32 get_current_settings(struct hci_dev *hdev) in get_current_settings()
723 static u8 *create_uuid16_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) in create_uuid16_list()
765 static u8 *create_uuid32_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) in create_uuid32_list()
798 static u8 *create_uuid128_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) in create_uuid128_list()
831 static struct mgmt_pending_cmd *pending_find(u16 opcode, struct hci_dev *hdev) in pending_find()
837 struct hci_dev *hdev, in pending_find_data()
843 static u8 get_current_adv_instance(struct hci_dev *hdev) in get_current_adv_instance()
857 static u8 create_default_scan_rsp_data(struct hci_dev *hdev, u8 *ptr) in create_default_scan_rsp_data()
883 static u8 create_instance_scan_rsp_data(struct hci_dev *hdev, u8 instance, in create_instance_scan_rsp_data()
903 struct hci_dev *hdev = req->hdev; in update_inst_scan_rsp_data() local
934 static u8 get_adv_discov_flags(struct hci_dev *hdev) in get_adv_discov_flags()
958 static bool get_connectable(struct hci_dev *hdev) in get_connectable()
975 static u32 get_adv_instance_flags(struct hci_dev *hdev, u8 instance) in get_adv_instance_flags()
1004 static u8 get_cur_adv_instance_scan_rsp_len(struct hci_dev *hdev) in get_cur_adv_instance_scan_rsp_len()
1023 static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr) in create_instance_adv_data()
1093 struct hci_dev *hdev = req->hdev; in update_inst_adv_data() local
1122 int mgmt_update_adv_data(struct hci_dev *hdev) in mgmt_update_adv_data()
1132 static void create_eir(struct hci_dev *hdev, u8 *data) in create_eir()
1182 struct hci_dev *hdev = req->hdev; in update_eir() local
1209 static u8 get_service_classes(struct hci_dev *hdev) in get_service_classes()
1222 struct hci_dev *hdev = req->hdev; in update_class() local
1258 struct hci_dev *hdev = req->hdev; in enable_advertising() local
1315 struct hci_dev *hdev = container_of(work, struct hci_dev, in service_cache_off() local
1336 struct hci_dev *hdev = container_of(work, struct hci_dev, in rpa_expired() local
1355 static void mgmt_init_hdev(struct sock *sk, struct hci_dev *hdev) in mgmt_init_hdev()
1371 static int read_controller_info(struct sock *sk, struct hci_dev *hdev, in read_controller_info()
1401 static int send_settings_rsp(struct sock *sk, u16 opcode, struct hci_dev *hdev) in send_settings_rsp()
1409 static void clean_up_hci_complete(struct hci_dev *hdev, u8 status, u16 opcode) in clean_up_hci_complete()
1421 struct hci_dev *hdev = req->hdev; in hci_stop_discovery() local
1462 static void advertising_added(struct sock *sk, struct hci_dev *hdev, in advertising_added()
1472 static void advertising_removed(struct sock *sk, struct hci_dev *hdev, in advertising_removed()
1484 struct hci_dev *hdev = req->hdev; in schedule_adv_instance() local
1541 static void cancel_adv_timeout(struct hci_dev *hdev) in cancel_adv_timeout()
1560 static void clear_adv_instance(struct hci_dev *hdev, struct hci_request *req, in clear_adv_instance()
1619 static int clean_up_hci_state(struct hci_dev *hdev) in clean_up_hci_state()
1653 static int set_powered(struct sock *sk, struct hci_dev *hdev, void *data, in set_powered()
1719 static int new_settings(struct hci_dev *hdev, struct sock *skip) in new_settings()
1727 int mgmt_new_settings(struct hci_dev *hdev) in mgmt_new_settings()
1734 struct hci_dev *hdev; member
1788 static u8 mgmt_bredr_support(struct hci_dev *hdev) in mgmt_bredr_support()
1798 static u8 mgmt_le_support(struct hci_dev *hdev) in mgmt_le_support()
1808 static void set_discoverable_complete(struct hci_dev *hdev, u8 status, in set_discoverable_complete()
1866 static int set_discoverable(struct sock *sk, struct hci_dev *hdev, void *data, in set_discoverable()
2033 struct hci_dev *hdev = req->hdev; in write_fast_connectable() local
2066 static void set_connectable_complete(struct hci_dev *hdev, u8 status, in set_connectable_complete()
2116 static int set_connectable_update_settings(struct hci_dev *hdev, in set_connectable_update_settings()
2145 static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data, in set_connectable()
2242 static int set_bondable(struct sock *sk, struct hci_dev *hdev, void *data, in set_bondable()
2274 static int set_link_security(struct sock *sk, struct hci_dev *hdev, void *data, in set_link_security()
2343 static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_ssp()
2424 static int set_hs(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_hs()
2481 static void le_enable_complete(struct hci_dev *hdev, u8 status, u16 opcode) in le_enable_complete()
2521 static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_le()
2631 static bool pending_eir_or_class(struct hci_dev *hdev) in pending_eir_or_class()
2667 static void mgmt_class_complete(struct hci_dev *hdev, u16 mgmt_op, u8 status) in mgmt_class_complete()
2686 static void add_uuid_complete(struct hci_dev *hdev, u8 status, u16 opcode) in add_uuid_complete()
2693 static int add_uuid(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in add_uuid()
2751 static bool enable_service_cache(struct hci_dev *hdev) in enable_service_cache()
2765 static void remove_uuid_complete(struct hci_dev *hdev, u8 status, u16 opcode) in remove_uuid_complete()
2772 static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data, in remove_uuid()
2851 static void set_class_complete(struct hci_dev *hdev, u8 status, u16 opcode) in set_class_complete()
2858 static int set_dev_class(struct sock *sk, struct hci_dev *hdev, void *data, in set_dev_class()
2929 static int load_link_keys(struct sock *sk, struct hci_dev *hdev, void *data, in load_link_keys()
3011 static int device_unpaired(struct hci_dev *hdev, bdaddr_t *bdaddr, in device_unpaired()
3023 static int unpair_device(struct sock *sk, struct hci_dev *hdev, void *data, in unpair_device()
3154 static int disconnect(struct sock *sk, struct hci_dev *hdev, void *data, in disconnect()
3239 static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data, in get_connections()
3297 static int send_pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev, in send_pin_code_neg_reply()
3316 static int pin_code_reply(struct sock *sk, struct hci_dev *hdev, void *data, in pin_code_reply()
3378 static int set_io_capability(struct sock *sk, struct hci_dev *hdev, void *data, in set_io_capability()
3404 struct hci_dev *hdev = conn->hdev; in find_pairing() local
3496 static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data, in pair_device()
3628 static int cancel_pair_device(struct sock *sk, struct hci_dev *hdev, void *data, in cancel_pair_device()
3671 static int user_pairing_resp(struct sock *sk, struct hci_dev *hdev, in user_pairing_resp()
3742 static int pin_code_neg_reply(struct sock *sk, struct hci_dev *hdev, in pin_code_neg_reply()
3754 static int user_confirm_reply(struct sock *sk, struct hci_dev *hdev, void *data, in user_confirm_reply()
3770 static int user_confirm_neg_reply(struct sock *sk, struct hci_dev *hdev, in user_confirm_neg_reply()
3782 static int user_passkey_reply(struct sock *sk, struct hci_dev *hdev, void *data, in user_passkey_reply()
3794 static int user_passkey_neg_reply(struct sock *sk, struct hci_dev *hdev, in user_passkey_neg_reply()
3808 struct hci_dev *hdev = req->hdev; in update_name() local
3816 static void set_name_complete(struct hci_dev *hdev, u8 status, u16 opcode) in set_name_complete()
3844 static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data, in set_local_name()
3913 static void read_local_oob_data_complete(struct hci_dev *hdev, u8 status, in read_local_oob_data_complete()
3972 static int read_local_oob_data(struct sock *sk, struct hci_dev *hdev, in read_local_oob_data()
4023 static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev, in add_remote_oob_data()
4130 static int remove_remote_oob_data(struct sock *sk, struct hci_dev *hdev, in remove_remote_oob_data()
4169 struct hci_dev *hdev = req->hdev; in trigger_bredr_inquiry() local
4196 struct hci_dev *hdev = req->hdev; in trigger_le_scan() local
4257 struct hci_dev *hdev = req->hdev; in trigger_discovery() local
4301 static void start_discovery_complete(struct hci_dev *hdev, u8 status, in start_discovery_complete()
4378 static int start_discovery(struct sock *sk, struct hci_dev *hdev, in start_discovery()
4451 static int start_service_discovery(struct sock *sk, struct hci_dev *hdev, in start_service_discovery()
4560 static void stop_discovery_complete(struct hci_dev *hdev, u8 status, u16 opcode) in stop_discovery_complete()
4580 static int stop_discovery(struct sock *sk, struct hci_dev *hdev, void *data, in stop_discovery()
4638 static int confirm_name(struct sock *sk, struct hci_dev *hdev, void *data, in confirm_name()
4680 static int block_device(struct sock *sk, struct hci_dev *hdev, void *data, in block_device()
4716 static int unblock_device(struct sock *sk, struct hci_dev *hdev, void *data, in unblock_device()
4752 static int set_device_id(struct sock *sk, struct hci_dev *hdev, void *data, in set_device_id()
4787 static void enable_advertising_instance(struct hci_dev *hdev, u8 status, in enable_advertising_instance()
4793 static void set_advertising_complete(struct hci_dev *hdev, u8 status, in set_advertising_complete()
4857 static int set_advertising(struct sock *sk, struct hci_dev *hdev, void *data, in set_advertising()
4958 static int set_static_address(struct sock *sk, struct hci_dev *hdev, in set_static_address()
5002 static int set_scan_params(struct sock *sk, struct hci_dev *hdev, in set_scan_params()
5059 static void fast_connectable_complete(struct hci_dev *hdev, u8 status, in fast_connectable_complete()
5093 static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev, in set_fast_connectable()
5158 static void set_bredr_complete(struct hci_dev *hdev, u8 status, u16 opcode) in set_bredr_complete()
5190 static int set_bredr(struct sock *sk, struct hci_dev *hdev, void *data, u16 len) in set_bredr()
5302 static void sc_enable_complete(struct hci_dev *hdev, u8 status, u16 opcode) in sc_enable_complete()
5347 static int set_secure_conn(struct sock *sk, struct hci_dev *hdev, in set_secure_conn()
5435 static int set_debug_keys(struct sock *sk, struct hci_dev *hdev, in set_debug_keys()
5482 static int set_privacy(struct sock *sk, struct hci_dev *hdev, void *cp_data, in set_privacy()
5548 static int load_irks(struct sock *sk, struct hci_dev *hdev, void *cp_data, in load_irks()
5629 static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev, in load_long_term_keys()
5743 static void conn_info_refresh_complete(struct hci_dev *hdev, u8 hci_status, in conn_info_refresh_complete()
5796 static int get_conn_info(struct sock *sk, struct hci_dev *hdev, void *data, in get_conn_info()
5921 struct hci_dev *hdev; in clock_info_cmd_complete() local
5953 static void get_clock_info_complete(struct hci_dev *hdev, u8 status, u16 opcode) in get_clock_info_complete()
5985 static int get_clock_info(struct sock *sk, struct hci_dev *hdev, void *data, in get_clock_info()
6061 static bool is_connected(struct hci_dev *hdev, bdaddr_t *addr, u8 type) in is_connected()
6082 struct hci_dev *hdev = req->hdev; in hci_conn_params_set() local
6133 static void device_added(struct sock *sk, struct hci_dev *hdev, in device_added()
6145 static void add_device_complete(struct hci_dev *hdev, u8 status, u16 opcode) in add_device_complete()
6164 static int add_device(struct sock *sk, struct hci_dev *hdev, in add_device()
6265 static void device_removed(struct sock *sk, struct hci_dev *hdev, in device_removed()
6276 static void remove_device_complete(struct hci_dev *hdev, u8 status, u16 opcode) in remove_device_complete()
6295 static int remove_device(struct sock *sk, struct hci_dev *hdev, in remove_device()
6436 static int load_conn_param(struct sock *sk, struct hci_dev *hdev, void *data, in load_conn_param()
6522 static int set_external_config(struct sock *sk, struct hci_dev *hdev, in set_external_config()
6578 static int set_public_address(struct sock *sk, struct hci_dev *hdev, in set_public_address()
6641 static void read_local_oob_ext_data_complete(struct hci_dev *hdev, u8 status, in read_local_oob_ext_data_complete()
6752 static int read_local_ssp_oob_req(struct hci_dev *hdev, struct sock *sk, in read_local_ssp_oob_req()
6780 static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev, in read_local_oob_ext_data()
6936 static u32 get_supported_adv_flags(struct hci_dev *hdev) in get_supported_adv_flags()
6951 static int read_adv_features(struct sock *sk, struct hci_dev *hdev, in read_adv_features()
7012 static bool tlv_data_is_valid(struct hci_dev *hdev, u32 adv_flags, u8 *data, in tlv_data_is_valid()
7055 static void add_advertising_complete(struct hci_dev *hdev, u8 status, in add_advertising_complete()
7110 void mgmt_adv_timeout_expired(struct hci_dev *hdev) in mgmt_adv_timeout_expired()
7135 static int add_advertising(struct sock *sk, struct hci_dev *hdev, in add_advertising()
7274 static void remove_advertising_complete(struct hci_dev *hdev, u8 status, in remove_advertising_complete()
7304 static int remove_advertising(struct sock *sk, struct hci_dev *hdev, in remove_advertising()
7465 void mgmt_index_added(struct hci_dev *hdev) in mgmt_index_added()
7497 void mgmt_index_removed(struct hci_dev *hdev) in mgmt_index_removed()
7535 struct hci_dev *hdev = req->hdev; in restart_le_actions() local
7560 static void powered_complete(struct hci_dev *hdev, u8 status, u16 opcode) in powered_complete()
7587 static int powered_update_hci(struct hci_dev *hdev) in powered_update_hci()
7674 int mgmt_powered(struct hci_dev *hdev, u8 powered) in mgmt_powered()
7721 void mgmt_set_powered_failed(struct hci_dev *hdev, int err) in mgmt_set_powered_failed()
7740 void mgmt_discoverable_timeout(struct hci_dev *hdev) in mgmt_discoverable_timeout()
7777 void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, in mgmt_new_link_key()
7813 void mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, bool persistent) in mgmt_new_ltk()
7856 void mgmt_new_irk(struct hci_dev *hdev, struct smp_irk *irk, bool persistent) in mgmt_new_irk()
7872 void mgmt_new_csrk(struct hci_dev *hdev, struct smp_csrk *csrk, in mgmt_new_csrk()
7902 void mgmt_new_conn_param(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_new_conn_param()
7923 void mgmt_device_connected(struct hci_dev *hdev, struct hci_conn *conn, in mgmt_device_connected()
7974 struct hci_dev *hdev = data; in unpair_device_rsp() local
7983 bool mgmt_powering_down(struct hci_dev *hdev) in mgmt_powering_down()
7999 void mgmt_device_disconnected(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_device_disconnected()
8035 void mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_disconnect_failed()
8061 void mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, in mgmt_connect_failed()
8081 void mgmt_pin_code_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 secure) in mgmt_pin_code_request()
8092 void mgmt_pin_code_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_pin_code_reply_complete()
8105 void mgmt_pin_code_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_pin_code_neg_reply_complete()
8118 int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_confirm_request()
8135 int mgmt_user_passkey_request(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_request()
8149 static int user_pairing_resp_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in user_pairing_resp_complete()
8165 int mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_confirm_reply_complete()
8172 int mgmt_user_confirm_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_confirm_neg_reply_complete()
8180 int mgmt_user_passkey_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_reply_complete()
8187 int mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_neg_reply_complete()
8195 int mgmt_user_passkey_notify(struct hci_dev *hdev, bdaddr_t *bdaddr, in mgmt_user_passkey_notify()
8232 void mgmt_auth_enable_complete(struct hci_dev *hdev, u8 status) in mgmt_auth_enable_complete()
8261 struct hci_dev *hdev = req->hdev; in clear_eir() local
8274 void mgmt_ssp_enable_complete(struct hci_dev *hdev, u8 enable, u8 status) in mgmt_ssp_enable_complete()
8337 void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class, in mgmt_set_class_of_dev_complete()
8354 void mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status) in mgmt_set_local_name_complete()
8448 static void restart_le_scan(struct hci_dev *hdev) in restart_le_scan()
8463 static bool is_filter_match(struct hci_dev *hdev, s8 rssi, u8 *eir, in is_filter_match()
8508 void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, in mgmt_device_found()
8577 void mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, in mgmt_remote_name()
8600 void mgmt_discovering(struct hci_dev *hdev, u8 discovering) in mgmt_discovering()
8613 static void adv_enable_complete(struct hci_dev *hdev, u8 status, u16 opcode) in adv_enable_complete()
8618 void mgmt_reenable_advertising(struct hci_dev *hdev) in mgmt_reenable_advertising()