Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 25 of 44) sorted by relevance

12

/net/bluetooth/
A Dhci_sync.c88 struct hci_dev *hdev = req->hdev; in hci_cmd_sync_add() local
151 req->hdev = hdev; in hci_request_init()
1078 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address_sync()
4979 ret = hdev->set_bdaddr(hdev, &hdev->public_addr); in hci_dev_setup_sync()
5037 ret = hdev->set_bdaddr(hdev, &hdev->public_addr); in hci_dev_init_sync()
5113 if (hdev->open(hdev)) { in hci_dev_open_sync()
5154 hdev->flush(hdev); in hci_dev_open_sync()
5170 hdev->close(hdev); in hci_dev_open_sync()
5307 hdev->flush(hdev); in hci_dev_close_sync()
5344 hdev->close(hdev); in hci_dev_close_sync()
[all …]
A Dhci_debugfs.c114 hdev->devid_vendor, hdev->devid_product, hdev->devid_version); in device_id_show()
317 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
343 if (lmp_ssp_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common()
347 if (lmp_sc_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common()
408 hdev->dev_class[1], hdev->dev_class[0]); in dev_class_show()
681 16, hdev->irk, &hdev->rpa); in identity_show()
1215 hdev->debugfs, hdev, in hci_debugfs_create_le()
1256 hdev->debugfs, hdev, in hci_debugfs_create_le()
1259 hdev->debugfs, hdev, in hci_debugfs_create_le()
1265 struct hci_dev *hdev = conn->hdev; in hci_debugfs_create_conn() local
[all …]
A Dhci_core.c570 hdev->flush(hdev); in hci_dev_do_reset()
1030 hdev->hw_error(hdev, hdev->hw_error_code); in hci_error_reset()
1477 hdev->reset(hdev); in hci_cmd_timeout()
2588 if (!hdev->open || !hdev->close || !hdev->send) in hci_register_dev()
2627 hdev->rfkill = rfkill_alloc(hdev->name, &hdev->dev, in hci_register_dev()
3386 hdev = conn->hdev; in hci_quote_sent()
3397 cnt = hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent()
3403 hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent()
3716 cnt = hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_le()
3763 hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_iso()
[all …]
A Dcoredump.c73 hdev->dump.dmp_hdr(hdev, skb); in hci_devcd_mkheader()
84 hdev->dump.notify_change(hdev, state); in hci_devcd_notify()
116 hdev->dump.tail = hdev->dump.head; in hci_devcd_alloc()
117 hdev->dump.end = hdev->dump.head + size; in hci_devcd_alloc()
127 if (hdev->dump.tail + size > hdev->dump.end) in hci_devcd_copy()
139 if (hdev->dump.tail + len > hdev->dump.end) in hci_devcd_memset()
248 bt_dev_dbg(hdev, "state %d", hdev->dump.state); in hci_devcd_dump()
250 size = hdev->dump.tail - hdev->dump.head; in hci_devcd_dump()
274 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_complete()
293 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_abort()
[all …]
A Dmgmt.c3419 struct hci_dev *hdev = conn->hdev; in find_pairing() local
4481 if (hdev && hci_dev_le_state_simultaneous(hdev)) { in read_exp_features_info()
4492 if (hdev && (aosp_has_quality_report(hdev) || in read_exp_features_info()
4504 if (hdev && hdev->get_data_path_id) { in read_exp_features_info()
4522 if (hdev && lmp_le_capable(hdev)) { in read_exp_features_info()
4605 if (hdev) in set_debug_func()
4733 err = hdev->set_quality_report(hdev, val); in set_quality_report_func()
4892 if (hdev) in set_iso_socket_func()
6930 memcpy(hdev->irk, cp->irk, sizeof(hdev->irk)); in set_privacy()
6939 memset(hdev->irk, 0, sizeof(hdev->irk)); in set_privacy()
[all …]
A Dhci_event.c947 hdev->acl_cnt = hdev->acl_pkts; in hci_cc_read_buffer_size()
948 hdev->sco_cnt = hdev->sco_pkts; in hci_cc_read_buffer_size()
951 hdev->acl_pkts, hdev->sco_mtu, hdev->sco_pkts); in hci_cc_read_buffer_size()
1215 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size()
1217 BT_DBG("%s le mtu %d:%d", hdev->name, hdev->le_mtu, hdev->le_pkts); in hci_cc_le_read_buffer_size()
3753 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size_v2()
3754 hdev->iso_cnt = hdev->iso_pkts; in hci_cc_le_read_buffer_size_v2()
3757 hdev->acl_pkts, hdev->iso_mtu, hdev->iso_pkts); in hci_cc_le_read_buffer_size_v2()
4410 hdev->acl_cnt = hdev->acl_pkts; in hci_num_comp_pkts_evt()
4417 hdev->le_cnt = hdev->le_pkts; in hci_num_comp_pkts_evt()
[all …]
A Dmsft.c150 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in read_supported_features()
267 hci_dev_lock(hdev); in msft_le_monitor_advertisement_cb()
350 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_remove_addr_filters_sync()
387 hci_dev_lock(hdev); in msft_le_cancel_monitor_advertisement_cb()
439 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_remove_monitor_sync()
552 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, total_size, cp, in msft_add_monitor_sync()
560 err = msft_le_monitor_advertisement_cb(hdev, hdev->msft_opcode, in msft_add_monitor_sync()
734 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in msft_cancel_address_filter_sync()
888 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, size, cp, in msft_add_address_filter_sync()
985 bt_dev_dbg(hdev, in msft_monitor_device_evt()
[all …]
A Dhci_conn.c74 struct hci_dev *hdev = conn->hdev; in hci_connect_le_scan_cleanup() local
142 struct hci_dev *hdev = conn->hdev; in hci_conn_cleanup() local
191 struct hci_dev *hdev = conn->hdev; in hci_disconnect() local
204 struct hci_dev *hdev = conn->hdev; in hci_add_sco() local
410 struct hci_dev *hdev = conn->hdev; in hci_setup_sync_conn() local
487 struct hci_dev *hdev = conn->hdev; in hci_le_conn_update() local
523 struct hci_dev *hdev = conn->hdev; in hci_le_start_enc() local
947 conn->hdev = hdev; in __hci_conn_add()
979 conn->mtu = hdev->le_mtu ? hdev->le_mtu : hdev->acl_mtu; in __hci_conn_add()
994 hdev->le_mtu ? hdev->le_mtu : hdev->acl_mtu; in __hci_conn_add()
[all …]
A Dmgmt_config.c29 cpu_to_le16(hdev->_param_name_) \
35 hdev->_param_name_ \
116 bt_dev_dbg(hdev, "sock %p", sk); in read_def_system_config()
118 ret = mgmt_cmd_complete(sk, hdev->id, in read_def_system_config()
135 return mgmt_cmd_status(sk, hdev->id, in set_def_system_config()
152 return mgmt_cmd_status(sk, hdev->id, in set_def_system_config()
204 return mgmt_cmd_status(sk, hdev->id, in set_def_system_config()
305 hdev->def_le_autoconnect_timeout = in set_def_system_config()
326 return mgmt_cmd_complete(sk, hdev->id, in set_def_system_config()
333 bt_dev_dbg(hdev, "sock %p", sk); in read_def_runtime_config()
[all …]
A Deir.c26 complete_len = strnlen(hdev->dev_name, sizeof(hdev->dev_name)); in eir_append_local_name()
29 hdev->dev_name, complete_len); in eir_append_local_name()
32 short_len = strnlen(hdev->short_name, sizeof(hdev->short_name)); in eir_append_local_name()
35 hdev->short_name, in eir_append_local_name()
43 hdev->dev_name, in eir_append_local_name()
180 name_len = strnlen(hdev->dev_name, sizeof(hdev->dev_name)); in eir_create()
202 ptr[2] = (u8)hdev->inq_tx_power; in eir_create()
207 if (hdev->devid_source > 0) { in eir_create()
309 if (ext_adv_capable(hdev)) { in eir_create_adv_data()
315 adv_tx_power = hdev->adv_tx_power; in eir_create_adv_data()
[all …]
A Dmsft.h15 bool msft_monitor_supported(struct hci_dev *hdev);
16 void msft_register(struct hci_dev *hdev);
17 void msft_release(struct hci_dev *hdev);
18 void msft_do_open(struct hci_dev *hdev);
19 void msft_do_close(struct hci_dev *hdev);
21 __u64 msft_get_features(struct hci_dev *hdev);
26 int msft_suspend_sync(struct hci_dev *hdev);
27 int msft_resume_sync(struct hci_dev *hdev);
28 bool msft_curve_validity(struct hci_dev *hdev);
38 static inline void msft_release(struct hci_dev *hdev) {} in msft_release() argument
[all …]
A Daosp.c43 void aosp_do_open(struct hci_dev *hdev) in aosp_do_open() argument
49 if (!hdev->aosp_capable) in aosp_do_open()
52 bt_dev_dbg(hdev, "Initialize AOSP extension"); in aosp_do_open()
98 hdev->aosp_quality_report = true; in aosp_do_open()
111 void aosp_do_close(struct hci_dev *hdev) in aosp_do_close() argument
113 if (!hdev->aosp_capable) in aosp_do_close()
116 bt_dev_dbg(hdev, "Cleanup of AOSP extension"); in aosp_do_close()
195 return hdev->aosp_quality_report; in aosp_has_quality_report()
200 if (!aosp_has_quality_report(hdev)) in aosp_set_quality_report()
207 return enable_quality_report(hdev); in aosp_set_quality_report()
[all …]
A Dmgmt_util.c69 bt_cb(skb)->mgmt.hdev = hdev; in mgmt_alloc_skb()
78 struct hci_dev *hdev; in mgmt_send_event_skb() local
86 hdev = bt_cb(skb)->mgmt.hdev; in mgmt_send_event_skb()
99 if (hdev) in mgmt_send_event_skb()
264 struct hci_dev *hdev, in mgmt_pending_new() argument
274 cmd->hdev = hdev; in mgmt_pending_new()
291 struct hci_dev *hdev, in mgmt_pending_add() argument
374 hdev->mesh_send_ref++; in mgmt_mesh_add()
375 if (!hdev->mesh_send_ref) in mgmt_mesh_add()
376 hdev->mesh_send_ref++; in mgmt_mesh_add()
[all …]
A Dhci_sock.c65 struct hci_dev *hdev = hci_pi(sk)->hdev; in hci_hdev_from_sock() local
67 if (!hdev) in hci_hdev_from_sock()
433 if (hdev) in hci_send_monitor_ctrl_event()
842 if (hci_pi(sk)->hdev == hdev) { in hci_sock_dev_event()
935 hdev = hci_pi(sk)->hdev; in hci_sock_release()
1215 hdev = hci_pi(sk)->hdev; in hci_sock_bind()
1265 hci_pi(sk)->hdev = hdev; in hci_sock_bind()
1356 hci_pi(sk)->hdev = hdev; in hci_sock_bind()
1877 queue_work(hdev->workqueue, &hdev->tx_work); in hci_sock_sendmsg()
1898 queue_work(hdev->workqueue, &hdev->tx_work); in hci_sock_sendmsg()
[all …]
A Dhci_sysfs.c26 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs() local
28 bt_dev_dbg(hdev, "conn %p", conn); in hci_conn_init_sysfs()
32 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs()
39 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs() local
41 bt_dev_dbg(hdev, "conn %p", conn); in hci_conn_add_sysfs()
54 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs() local
87 hci_release_dev(hdev); in bt_host_release()
89 kfree(hdev); in bt_host_release()
98 if (hdev->reset) in reset_store()
99 hdev->reset(hdev); in reset_store()
[all …]
A Dleds.c15 struct hci_dev *hdev; member
21 void hci_leds_update_powered(struct hci_dev *hdev, bool enabled) in hci_leds_update_powered() argument
23 if (hdev->power_led) in hci_leds_update_powered()
24 led_trigger_event(hdev->power_led, in hci_leds_update_powered()
49 powered = test_bit(HCI_UP, &htrig->hdev->flags); in power_activate()
66 htrig->hdev = hdev; in led_allocate_basic()
69 "%s-%s", hdev->name, in led_allocate_basic()
80 devm_kfree(&hdev->dev, (void *)htrig->led_trigger.name); in led_allocate_basic()
82 devm_kfree(&hdev->dev, htrig); in led_allocate_basic()
86 void hci_leds_init(struct hci_dev *hdev) in hci_leds_init() argument
[all …]
A Dsmp.c654 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd() local
726 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size() local
1042 struct hci_dev *hdev = hcon->hdev; in smp_notify_keys() local
1208 struct hci_dev *hdev = hcon->hdev; in sc_generate_ltk() local
1245 struct hci_dev *hdev = hcon->hdev; in smp_distribute_keys() local
1507 struct hci_dev *hdev = hcon->hdev; in sc_passkey_round() local
2054 struct hci_dev *hdev = hcon->hdev; in fixup_sc_false_positive() local
2092 struct hci_dev *hdev = hcon->hdev; in smp_cmd_pairing_confirm() local
2314 struct hci_dev *hdev = hcon->hdev; in smp_cmd_security_req() local
2747 struct hci_dev *hdev = hcon->hdev; in smp_cmd_public_key() local
[all …]
A Dhci_drv.c34 return hci_recv_frame(hdev, skb); in hci_drv_cmd_status()
61 return hci_recv_frame(hdev, skb); in hci_drv_cmd_complete()
83 if (!hdev->hci_drv) in hci_drv_process_cmd()
84 return hci_drv_cmd_status(hdev, opcode, in hci_drv_process_cmd()
88 if (opcode < hdev->hci_drv->common_handler_count) in hci_drv_process_cmd()
89 handler = &hdev->hci_drv->common_handlers[opcode]; in hci_drv_process_cmd()
91 if (ocf < hdev->hci_drv->specific_handler_count) in hci_drv_process_cmd()
92 handler = &hdev->hci_drv->specific_handlers[ocf]; in hci_drv_process_cmd()
96 return hci_drv_cmd_status(hdev, opcode, in hci_drv_process_cmd()
100 return hci_drv_cmd_status(hdev, opcode, in hci_drv_process_cmd()
[all …]
A Dhci_codec.c67 if (!(hdev->commands[45] & 0x08)) { in hci_read_codec_capabilities()
68 hci_dev_lock(hdev); in hci_read_codec_capabilities()
69 hci_codec_list_add(&hdev->local_codecs, cmd, in hci_read_codec_capabilities()
71 hci_dev_unlock(hdev); in hci_read_codec_capabilities()
110 hci_dev_lock(hdev); in hci_read_codec_capabilities()
111 hci_codec_list_add(&hdev->local_codecs, cmd, rp, in hci_read_codec_capabilities()
113 hci_dev_unlock(hdev); in hci_read_codec_capabilities()
120 void hci_read_supported_codecs(struct hci_dev *hdev) in hci_read_supported_codecs() argument
160 hci_read_codec_capabilities(hdev, in hci_read_supported_codecs()
181 hci_read_codec_capabilities(hdev, in hci_read_supported_codecs()
[all …]
A Dmgmt_util.h36 struct hci_dev *hdev; member
45 struct sk_buff *mgmt_alloc_skb(struct hci_dev *hdev, u16 opcode,
49 int mgmt_send_event(u16 event, struct hci_dev *hdev, unsigned short channel,
56 struct hci_dev *hdev);
57 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev, bool remove,
61 struct hci_dev *hdev,
64 struct hci_dev *hdev,
68 void mgmt_mesh_foreach(struct hci_dev *hdev,
71 struct mgmt_mesh_tx *mgmt_mesh_find(struct hci_dev *hdev, u8 handle);
72 struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *sk);
[all …]
A Daosp.h8 void aosp_do_open(struct hci_dev *hdev);
9 void aosp_do_close(struct hci_dev *hdev);
11 bool aosp_has_quality_report(struct hci_dev *hdev);
12 int aosp_set_quality_report(struct hci_dev *hdev, bool enable);
16 static inline void aosp_do_open(struct hci_dev *hdev) {} in aosp_do_open() argument
17 static inline void aosp_do_close(struct hci_dev *hdev) {} in aosp_do_close() argument
19 static inline bool aosp_has_quality_report(struct hci_dev *hdev) in aosp_has_quality_report() argument
24 static inline int aosp_set_quality_report(struct hci_dev *hdev, bool enable) in aosp_set_quality_report() argument
A Dhci_debugfs.h25 void hci_debugfs_create_common(struct hci_dev *hdev);
26 void hci_debugfs_create_bredr(struct hci_dev *hdev);
27 void hci_debugfs_create_le(struct hci_dev *hdev);
29 void hci_debugfs_create_basic(struct hci_dev *hdev);
33 static inline void hci_debugfs_create_common(struct hci_dev *hdev) in hci_debugfs_create_common() argument
37 static inline void hci_debugfs_create_bredr(struct hci_dev *hdev) in hci_debugfs_create_bredr() argument
41 static inline void hci_debugfs_create_le(struct hci_dev *hdev) in hci_debugfs_create_le() argument
49 static inline void hci_debugfs_create_basic(struct hci_dev *hdev) in hci_debugfs_create_basic() argument
/net/nfc/hci/
A Dcore.c78 hdev->cmd_pending_msg->cb(hdev-> in nfc_hci_msg_tx_work()
488 r = hdev->ops->load_session(hdev); in hci_dev_session_init()
585 r = hdev->ops->open(hdev); in hci_dev_up()
604 r = hdev->ops->hci_ready(hdev); in hci_dev_up()
620 hdev->ops->close(hdev); in hci_dev_up()
632 hdev->ops->close(hdev); in hci_dev_down()
657 hdev->ops->stop_poll(hdev); in hci_stop_poll()
682 return hdev->ops->dep_link_down(hdev); in hci_dep_link_down()
777 return hdev->ops->tm_send(hdev, skb); in hci_tm_send()
796 return hdev->ops->discover_se(hdev); in hci_discover_se()
[all …]
A Dcommand.c98 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_event()
117 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd()
131 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_cmd_async()
262 u8 pipe = hdev->gate2pipe[gate]; in nfc_hci_disconnect_gate()
267 r = nfc_hci_close_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
272 r = nfc_hci_delete_pipe(hdev, pipe); in nfc_hci_disconnect_gate()
287 r = nfc_hci_clear_all_pipes(hdev); in nfc_hci_disconnect_all_gates()
291 nfc_hci_reset_pipes(hdev); in nfc_hci_disconnect_all_gates()
328 r = nfc_hci_open_pipe(hdev, pipe); in nfc_hci_connect_gate()
338 hdev->pipes[pipe].gate = dest_gate; in nfc_hci_connect_gate()
[all …]
A Dhcp.c27 struct nfc_dev *ndev = hdev->ndev; in nfc_hci_hcp_message_tx()
51 hdev->max_data_link_payload) in nfc_hci_hcp_message_tx()
54 data_link_len = hdev->max_data_link_payload - in nfc_hci_hcp_message_tx()
91 mutex_lock(&hdev->msg_tx_mutex); in nfc_hci_hcp_message_tx()
93 if (hdev->shutting_down) { in nfc_hci_hcp_message_tx()
95 mutex_unlock(&hdev->msg_tx_mutex); in nfc_hci_hcp_message_tx()
99 list_add_tail(&cmd->msg_l, &hdev->msg_tx_queue); in nfc_hci_hcp_message_tx()
100 mutex_unlock(&hdev->msg_tx_mutex); in nfc_hci_hcp_message_tx()
102 schedule_work(&hdev->msg_tx_work); in nfc_hci_hcp_message_tx()
122 nfc_hci_resp_received(hdev, instruction, skb); in nfc_hci_hcp_message_rx()
[all …]

Completed in 965 milliseconds

12