Lines Matching refs:hci_dev

67 static struct hci_dev *__hci_dev_get(int index, int *srcu_index)  in __hci_dev_get()
69 struct hci_dev *hdev = NULL, *d; in __hci_dev_get()
89 struct hci_dev *hci_dev_get(int index) in hci_dev_get()
94 static struct hci_dev *hci_dev_get_srcu(int index, int *srcu_index) in hci_dev_get_srcu()
99 static void hci_dev_put_srcu(struct hci_dev *hdev, int srcu_index) in hci_dev_put_srcu()
107 bool hci_discovery_active(struct hci_dev *hdev) in hci_discovery_active()
122 void hci_discovery_set_state(struct hci_dev *hdev, int state) in hci_discovery_set_state()
152 void hci_inquiry_cache_flush(struct hci_dev *hdev) in hci_inquiry_cache_flush()
166 struct inquiry_entry *hci_inquiry_cache_lookup(struct hci_dev *hdev, in hci_inquiry_cache_lookup()
182 struct inquiry_entry *hci_inquiry_cache_lookup_unknown(struct hci_dev *hdev, in hci_inquiry_cache_lookup_unknown()
198 struct inquiry_entry *hci_inquiry_cache_lookup_resolve(struct hci_dev *hdev, in hci_inquiry_cache_lookup_resolve()
217 void hci_inquiry_cache_update_resolve(struct hci_dev *hdev, in hci_inquiry_cache_update_resolve()
236 u32 hci_inquiry_cache_update(struct hci_dev *hdev, struct inquiry_data *data, in hci_inquiry_cache_update()
298 static int inquiry_cache_dump(struct hci_dev *hdev, int num, __u8 *buf) in inquiry_cache_dump()
330 struct hci_dev *hdev; in hci_inquiry()
423 static int hci_dev_do_open(struct hci_dev *hdev) in hci_dev_do_open()
441 struct hci_dev *hdev; in hci_dev_open()
494 int hci_dev_do_close(struct hci_dev *hdev) in hci_dev_do_close()
511 struct hci_dev *hdev; in hci_dev_close()
534 static int hci_dev_do_reset(struct hci_dev *hdev) in hci_dev_do_reset()
589 struct hci_dev *hdev; in hci_dev_reset()
620 struct hci_dev *hdev; in hci_dev_reset_stat()
644 static void hci_update_passive_scan_state(struct hci_dev *hdev, u8 scan) in hci_update_passive_scan_state()
682 struct hci_dev *hdev; in hci_dev_cmd()
788 struct hci_dev *hdev; in hci_get_dev_list()
835 struct hci_dev *hdev; in hci_get_dev_info()
888 static int hci_dev_do_poweroff(struct hci_dev *hdev) in hci_dev_do_poweroff()
905 struct hci_dev *hdev = data; in hci_rfkill_set_block()
946 struct hci_dev *hdev = container_of(work, struct hci_dev, power_on); in hci_power_on()
1015 struct hci_dev *hdev = container_of(work, struct hci_dev, in hci_power_off()
1025 struct hci_dev *hdev = container_of(work, struct hci_dev, error_reset); in hci_error_reset()
1041 void hci_uuids_clear(struct hci_dev *hdev) in hci_uuids_clear()
1051 void hci_link_keys_clear(struct hci_dev *hdev) in hci_link_keys_clear()
1061 void hci_smp_ltks_clear(struct hci_dev *hdev) in hci_smp_ltks_clear()
1071 void hci_smp_irks_clear(struct hci_dev *hdev) in hci_smp_irks_clear()
1081 void hci_blocked_keys_clear(struct hci_dev *hdev) in hci_blocked_keys_clear()
1091 bool hci_is_blocked_key(struct hci_dev *hdev, u8 type, u8 val[16]) in hci_is_blocked_key()
1108 struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_find_link_key()
1134 static bool hci_persistent_key(struct hci_dev *hdev, struct hci_conn *conn, in hci_persistent_key()
1182 struct smp_ltk *hci_find_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_find_ltk()
1211 struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa) in hci_find_irk_by_rpa()
1245 struct smp_irk *hci_find_irk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_find_irk_by_addr()
1276 struct link_key *hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn, in hci_add_link_key()
1323 struct smp_ltk *hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_add_ltk()
1352 struct smp_irk *hci_add_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_add_irk()
1375 int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr) in hci_remove_link_key()
1391 int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 bdaddr_type) in hci_remove_ltk()
1410 void hci_remove_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type) in hci_remove_irk()
1425 bool hci_bdaddr_is_paired(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type) in hci_bdaddr_is_paired()
1464 struct hci_dev *hdev = container_of(work, struct hci_dev, in hci_cmd_timeout()
1487 struct hci_dev *hdev = container_of(work, struct hci_dev, in hci_ncmd_timeout()
1502 struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev, in hci_find_remote_oob_data()
1518 int hci_remove_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_remove_remote_oob_data()
1535 void hci_remote_oob_data_clear(struct hci_dev *hdev) in hci_remote_oob_data_clear()
1545 int hci_add_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_add_remote_oob_data()
1592 struct adv_info *hci_find_adv_instance(struct hci_dev *hdev, u8 instance) in hci_find_adv_instance()
1605 struct adv_info *hci_find_adv_sid(struct hci_dev *hdev, u8 sid) in hci_find_adv_sid()
1618 struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance) in hci_get_next_instance()
1635 int hci_remove_adv_instance(struct hci_dev *hdev, u8 instance) in hci_remove_adv_instance()
1663 void hci_adv_instances_set_rpa_expired(struct hci_dev *hdev, bool rpa_expired) in hci_adv_instances_set_rpa_expired()
1672 void hci_adv_instances_clear(struct hci_dev *hdev) in hci_adv_instances_clear()
1702 struct adv_info *hci_add_adv_instance(struct hci_dev *hdev, u8 instance, in hci_add_adv_instance()
1769 struct adv_info *hci_add_per_instance(struct hci_dev *hdev, u8 instance, u8 sid, in hci_add_per_instance()
1792 int hci_set_adv_instance_data(struct hci_dev *hdev, u8 instance, in hci_set_adv_instance_data()
1827 u32 hci_adv_instance_flags(struct hci_dev *hdev, u8 instance) in hci_adv_instance_flags()
1861 bool hci_adv_instance_is_scannable(struct hci_dev *hdev, u8 instance) in hci_adv_instance_is_scannable()
1881 void hci_adv_monitors_clear(struct hci_dev *hdev) in hci_adv_monitors_clear()
1895 void hci_free_adv_monitor(struct hci_dev *hdev, struct adv_monitor *monitor) in hci_free_adv_monitor()
1921 int hci_add_adv_monitor(struct hci_dev *hdev, struct adv_monitor *monitor) in hci_add_adv_monitor()
1967 static int hci_remove_adv_monitor(struct hci_dev *hdev, in hci_remove_adv_monitor()
2003 int hci_remove_single_adv_monitor(struct hci_dev *hdev, u16 handle) in hci_remove_single_adv_monitor()
2014 int hci_remove_all_adv_monitor(struct hci_dev *hdev) in hci_remove_all_adv_monitor()
2036 bool hci_is_adv_monitoring(struct hci_dev *hdev) in hci_is_adv_monitoring()
2041 int hci_get_adv_monitor_offload_ext(struct hci_dev *hdev) in hci_get_adv_monitor_offload_ext()
2215 struct hci_conn_params *hci_conn_params_lookup(struct hci_dev *hdev, in hci_conn_params_lookup()
2270 struct hci_conn_params *hci_conn_params_add(struct hci_dev *hdev, in hci_conn_params_add()
2316 void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type) in hci_conn_params_del()
2332 void hci_conn_params_clear_disabled(struct hci_dev *hdev) in hci_conn_params_clear_disabled()
2355 static void hci_conn_params_clear_all(struct hci_dev *hdev) in hci_conn_params_clear_all()
2378 void hci_copy_identity_address(struct hci_dev *hdev, bdaddr_t *bdaddr, in hci_copy_identity_address()
2393 static void hci_clear_wake_reason(struct hci_dev *hdev) in hci_clear_wake_reason()
2407 struct hci_dev *hdev = in hci_suspend_notifier()
2408 container_of(nb, struct hci_dev, suspend_notifier); in hci_suspend_notifier()
2438 struct hci_dev *hci_alloc_dev_priv(int sizeof_priv) in hci_alloc_dev_priv()
2440 struct hci_dev *hdev; in hci_alloc_dev_priv()
2577 void hci_free_dev(struct hci_dev *hdev) in hci_free_dev()
2585 int hci_register_dev(struct hci_dev *hdev) in hci_register_dev()
2691 void hci_unregister_dev(struct hci_dev *hdev) in hci_unregister_dev()
2744 void hci_release_dev(struct hci_dev *hdev) in hci_release_dev()
2781 int hci_register_suspend_notifier(struct hci_dev *hdev) in hci_register_suspend_notifier()
2794 int hci_unregister_suspend_notifier(struct hci_dev *hdev) in hci_unregister_suspend_notifier()
2813 static void hci_cancel_cmd_sync(struct hci_dev *hdev, int err) in hci_cancel_cmd_sync()
2831 int hci_suspend_dev(struct hci_dev *hdev) in hci_suspend_dev()
2862 int hci_resume_dev(struct hci_dev *hdev) in hci_resume_dev()
2890 int hci_reset_dev(struct hci_dev *hdev) in hci_reset_dev()
2909 static u8 hci_dev_classify_pkt_type(struct hci_dev *hdev, struct sk_buff *skb) in hci_dev_classify_pkt_type()
2918 int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb) in hci_recv_frame()
2976 int hci_recv_diag(struct hci_dev *hdev, struct sk_buff *skb) in hci_recv_diag()
2991 void hci_set_hw_info(struct hci_dev *hdev, const char *fmt, ...) in hci_set_hw_info()
3002 void hci_set_fw_info(struct hci_dev *hdev, const char *fmt, ...) in hci_set_fw_info()
3039 static int hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in hci_send_frame()
3084 static int hci_send_conn_frame(struct hci_dev *hdev, struct hci_conn *conn, in hci_send_conn_frame()
3092 int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, in hci_send_cmd()
3116 int __hci_cmd_send(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_send()
3164 void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode) in hci_sent_cmd_data()
3178 void *hci_recv_event_data(struct hci_dev *hdev, __u8 event) in hci_recv_event_data()
3225 struct hci_dev *hdev = conn->hdev; in hci_queue_acl()
3277 struct hci_dev *hdev = chan->conn->hdev; in hci_send_acl()
3289 struct hci_dev *hdev = conn->hdev; in hci_send_sco()
3327 struct hci_dev *hdev = conn->hdev; in hci_queue_iso()
3373 struct hci_dev *hdev = conn->hdev; in hci_send_iso()
3387 struct hci_dev *hdev; in hci_quote_sent()
3422 static struct hci_conn *hci_low_sent(struct hci_dev *hdev, __u8 type, in hci_low_sent()
3465 static void hci_link_tx_to(struct hci_dev *hdev, __u8 type) in hci_link_tx_to()
3486 static struct hci_chan *hci_chan_sent(struct hci_dev *hdev, __u8 type, in hci_chan_sent()
3549 static void hci_prio_recalculate(struct hci_dev *hdev, __u8 type) in hci_prio_recalculate()
3599 static void __check_timeout(struct hci_dev *hdev, unsigned int cnt, u8 type) in __check_timeout()
3636 static void hci_sched_sco(struct hci_dev *hdev, __u8 type) in hci_sched_sco()
3677 static void hci_sched_acl_pkt(struct hci_dev *hdev) in hci_sched_acl_pkt()
3719 static void hci_sched_acl(struct hci_dev *hdev) in hci_sched_acl()
3730 static void hci_sched_le(struct hci_dev *hdev) in hci_sched_le()
3776 static void hci_sched_iso(struct hci_dev *hdev, __u8 type) in hci_sched_iso()
3808 struct hci_dev *hdev = container_of(work, struct hci_dev, tx_work); in hci_tx_work()
3833 static void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb) in hci_acldata_packet()
3865 static void hci_scodata_packet(struct hci_dev *hdev, struct sk_buff *skb) in hci_scodata_packet()
3898 static void hci_isodata_packet(struct hci_dev *hdev, struct sk_buff *skb) in hci_isodata_packet()
3927 static bool hci_req_is_complete(struct hci_dev *hdev) in hci_req_is_complete()
3938 static void hci_resend_last(struct hci_dev *hdev) in hci_resend_last()
3960 void hci_req_cmd_complete(struct hci_dev *hdev, u16 opcode, u8 status, in hci_req_cmd_complete()
4029 struct hci_dev *hdev = container_of(work, struct hci_dev, rx_work); in hci_rx_work()
4102 static int hci_send_cmd_sync(struct hci_dev *hdev, struct sk_buff *skb) in hci_send_cmd_sync()
4140 struct hci_dev *hdev = container_of(work, struct hci_dev, cmd_work); in hci_cmd_work()