| /linux/include/net/bluetooth/ |
| H A D | hci_sync.h | 19 struct hci_dev *hdev; 28 typedef int (*hci_cmd_sync_work_func_t)(struct hci_dev *hdev, void *data); 29 typedef void (*hci_cmd_sync_work_destroy_t)(struct hci_dev *hdev, void *data, 41 struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen, 48 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, 50 struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, 52 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen, 54 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen, 57 int __hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen, 59 int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen, [all …]
|
| H A D | coredump.h | 18 typedef void (*coredump_t)(struct hci_dev *hdev); 19 typedef void (*dmp_hdr_t)(struct hci_dev *hdev, struct sk_buff *skb); 20 typedef void (*notify_change_t)(struct hci_dev *hdev, int state); 72 void hci_devcd_reset(struct hci_dev *hdev); 76 int hci_devcd_register(struct hci_dev *hdev, coredump_t coredump, 78 int hci_devcd_init(struct hci_dev *hdev, u32 dump_size); 79 int hci_devcd_append(struct hci_dev *hdev, struct sk_buff *skb); 80 int hci_devcd_append_pattern(struct hci_dev *hdev, u8 pattern, u32 len); 81 int hci_devcd_complete(struct hci_dev *hdev); 82 int hci_devcd_abort(struct hci_dev *hdev); [all …]
|
| H A D | hci_core.h | 352 struct hci_dev { struct 643 int (*open)(struct hci_dev *hdev); argument 644 int (*close)(struct hci_dev *hdev); argument 645 int (*flush)(struct hci_dev *hdev); argument 646 int (*setup)(struct hci_dev *hdev); argument 647 int (*shutdown)(struct hci_dev *hdev); argument 648 int (*send)(struct hci_dev *hdev, struct sk_buff *skb); argument 650 bool (*handle_ev_vendor)(struct hci_dev *hdev, struct sk_buff *skb); argument 651 void (*notify)(struct hci_dev *hdev, unsigned int evt); argument 652 void (*hw_error)(struct hci_dev *hdev, u8 code); argument [all …]
|
| /linux/net/bluetooth/ |
| H A D | msft.h | 15 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); 20 void msft_vendor_evt(struct hci_dev *hdev, void *data, struct sk_buff *skb); 21 __u64 msft_get_features(struct hci_dev *hdev); 22 int msft_add_monitor_pattern(struct hci_dev *hdev, struct adv_monitor *monitor); 23 int msft_remove_monitor(struct hci_dev *hdev, struct adv_monitor *monitor); 25 int msft_set_filter_enable(struct hci_dev *hdev, bool enable); [all …]
|
| H A D | hci_debugfs.c | 35 struct hci_dev *hdev = file->private_data; \ 48 struct hci_dev *hdev = file->private_data; \ 77 struct hci_dev *hdev = f->private; \ 90 struct hci_dev *hdev = f->private; in features_show() 107 struct hci_dev *hdev = f->private; in device_id_show() 121 struct hci_dev *hdev = f->private; in device_list_show() 141 struct hci_dev *hdev = f->private; in blacklist_show() 156 struct hci_dev *hdev = f->private; in blocked_keys_show() 171 struct hci_dev *hdev = f->private; in uuids_show() 196 struct hci_dev *hdev = f->private; in remote_oob_show() [all …]
|
| H A D | aosp.h | 8 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() 17 static inline void aosp_do_close(struct hci_dev *hdev) {} in aosp_do_close() 19 static inline bool aosp_has_quality_report(struct hci_dev *hdev) in aosp_has_quality_report() 24 static inline int aosp_set_quality_report(struct hci_dev *hdev, bool enable) in aosp_set_quality_report()
|
| H A D | hci_sync.c | 23 static void hci_cmd_sync_complete(struct hci_dev *hdev, u8 result, u16 opcode, in hci_cmd_sync_complete() 51 struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_cmd_sync_alloc() 88 struct hci_dev *hdev = req->hdev; in hci_cmd_sync_add() 117 struct hci_dev *hdev = req->hdev; in hci_req_sync_run() 148 static void hci_request_init(struct hci_request *req, struct hci_dev *hdev) in hci_request_init() 156 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_sk() 220 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync() 228 struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_cmd_sync() 247 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_ev() 256 int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_status_sk() [all …]
|
| H A D | coredump.c | 50 static int hci_devcd_update_state(struct hci_dev *hdev, int state) in hci_devcd_update_state() 62 static int hci_devcd_mkheader(struct hci_dev *hdev, struct sk_buff *skb) in hci_devcd_mkheader() 80 static void hci_devcd_notify(struct hci_dev *hdev, int state) in hci_devcd_notify() 87 void hci_devcd_reset(struct hci_dev *hdev) in hci_devcd_reset() 100 static void hci_devcd_free(struct hci_dev *hdev) in hci_devcd_free() 108 static int hci_devcd_alloc(struct hci_dev *hdev, u32 size) in hci_devcd_alloc() 124 static bool hci_devcd_copy(struct hci_dev *hdev, char *buf, u32 size) in hci_devcd_copy() 136 static bool hci_devcd_memset(struct hci_dev *hdev, u8 pattern, u32 len) in hci_devcd_memset() 148 static int hci_devcd_prepare(struct hci_dev *hdev, u32 dump_size) in hci_devcd_prepare() 180 static void hci_devcd_handle_pkt_init(struct hci_dev *hdev, struct sk_buff *skb) in hci_devcd_handle_pkt_init() [all …]
|
| H A D | hci_core.c | 64 static struct hci_dev *__hci_dev_get(int index, int *srcu_index) in __hci_dev_get() 67 struct hci_dev *hdev = NULL, *d; in __hci_dev_get() 87 struct hci_dev *hci_dev_get(int index) in hci_dev_get() 92 static struct hci_dev *hci_dev_get_srcu(int index, int *srcu_index) in hci_dev_get_srcu() 98 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() [all …]
|
| H A D | hci_event.c | 44 static void *hci_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_ev_skb_pull() 56 static void *hci_cc_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_cc_skb_pull() 68 static void *hci_le_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb, in hci_le_ev_skb_pull() 80 static void hci_store_wake_reason(struct hci_dev *hdev, 84 static u8 hci_cc_inquiry_cancel(struct hci_dev *hdev, void *data, in hci_cc_inquiry_cancel() 122 static u8 hci_cc_periodic_inq(struct hci_dev *hdev, void *data, in hci_cc_periodic_inq() 137 static u8 hci_cc_exit_periodic_inq(struct hci_dev *hdev, void *data, in hci_cc_exit_periodic_inq() 152 static u8 hci_cc_remote_name_req_cancel(struct hci_dev *hdev, void *data, in hci_cc_remote_name_req_cancel() 162 static u8 hci_cc_role_discovery(struct hci_dev *hdev, void *data, in hci_cc_role_discovery() 184 static u8 hci_cc_read_link_policy(struct hci_dev *hdev, void *data, in hci_cc_read_link_policy() [all …]
|
| H A D | leds.h | 8 void hci_leds_update_powered(struct hci_dev *hdev, bool enabled); 9 void hci_leds_init(struct hci_dev *hdev); 16 static inline void hci_leds_update_powered(struct hci_dev *hdev, in hci_leds_update_powered() 18 static inline void hci_leds_init(struct hci_dev *hdev) {} in hci_leds_init()
|
| H A D | msft.c | 136 bool msft_monitor_supported(struct hci_dev *hdev) in msft_monitor_supported() 141 static bool read_supported_features(struct hci_dev *hdev, in read_supported_features() 199 (struct hci_dev *hdev, u16 handle, bool is_mgmt) in msft_find_handle_data() 216 (struct hci_dev *hdev, u8 addr_type, bdaddr_t *addr, in msft_find_address_data() 233 static int msft_monitor_device_del(struct hci_dev *hdev, __u16 mgmt_handle, in msft_monitor_device_del() 263 static int msft_le_monitor_advertisement_cb(struct hci_dev *hdev, u16 opcode, in msft_le_monitor_advertisement_cb() 308 static void msft_remove_addr_filters_sync(struct hci_dev *hdev, u8 handle) in msft_remove_addr_filters_sync() 371 static int msft_le_cancel_monitor_advertisement_cb(struct hci_dev *hdev, in msft_le_cancel_monitor_advertisement_cb() 428 static int msft_remove_monitor_sync(struct hci_dev *hdev, in msft_remove_monitor_sync() 454 int msft_suspend_sync(struct hci_dev *hdev) in msft_suspend_sync() [all …]
|
| H A D | smp.h | 182 int smp_cancel_and_remove_pairing(struct hci_dev *hdev, bdaddr_t *bdaddr, 191 bool smp_irk_matches(struct hci_dev *hdev, const u8 irk[16], 193 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa); 194 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]); 196 int smp_force_bredr(struct hci_dev *hdev, bool enable); 198 int smp_register(struct hci_dev *hdev); 199 void smp_unregister(struct hci_dev *hdev);
|
| H A D | mgmt_config.h | 7 int read_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data, 10 int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data, 13 int read_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data, 16 int set_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
|
| H A D | hci_sysfs.c | 26 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs() 39 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs() 54 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs() 84 struct hci_dev *hdev = to_hci_dev(dev); in bt_host_release() 98 struct hci_dev *hdev = to_hci_dev(dev); in reset_store() 119 void hci_init_sysfs(struct hci_dev *hdev) in hci_init_sysfs()
|
| H A D | mgmt.c | 320 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event() 327 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event() 334 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event() 363 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() 376 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() 428 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list() 432 struct hci_dev *d; in read_index_list() 486 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev, in read_unconf_index_list() 490 struct hci_dev *d; in read_unconf_index_list() 544 static int read_ext_index_list(struct sock *sk, struct hci_dev *hdev, in read_ext_index_list() [all …]
|
| /linux/drivers/bluetooth/ |
| H A D | btintel.h | 249 int (*acpi_reset_method)(struct hci_dev *hdev); 280 int btintel_check_bdaddr(struct hci_dev *hdev); 281 int btintel_enter_mfg(struct hci_dev *hdev); 282 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched); 283 int btintel_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 284 int btintel_set_diag(struct hci_dev *hdev, bool enable); 286 int btintel_version_info(struct hci_dev *hdev, struct intel_version *ver); 287 int btintel_load_ddc_config(struct hci_dev *hdev, const char *ddc_name); 288 int btintel_set_event_mask_mfg(struct hci_dev *hdev, bool debug); 289 int btintel_read_version(struct hci_dev *hdev, struct intel_version *ver); [all …]
|
| H A D | btbcm.h | 54 int btbcm_check_bdaddr(struct hci_dev *hdev); 55 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 56 int btbcm_patchram(struct hci_dev *hdev, const struct firmware *fw); 57 int btbcm_read_pcm_int_params(struct hci_dev *hdev, 59 int btbcm_write_pcm_int_params(struct hci_dev *hdev, 62 int btbcm_setup_patchram(struct hci_dev *hdev); 63 int btbcm_setup_apple(struct hci_dev *hdev); 65 int btbcm_initialize(struct hci_dev *hdev, bool *fw_load_done, bool use_autobaud_mode); 66 int btbcm_finalize(struct hci_dev *hdev, bool *fw_load_done, bool use_autobaud_mode); 70 static inline int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() [all …]
|
| H A D | btrtl.h | 137 struct btrtl_device_info *btrtl_initialize(struct hci_dev *hdev, 140 int btrtl_download_firmware(struct hci_dev *hdev, 142 void btrtl_set_quirks(struct hci_dev *hdev, 144 int btrtl_setup_realtek(struct hci_dev *hdev); 145 int btrtl_shutdown_realtek(struct hci_dev *hdev); 146 int btrtl_get_uart_settings(struct hci_dev *hdev, 150 void btrtl_set_driver_name(struct hci_dev *hdev, const char *driver_name); 154 static inline struct btrtl_device_info *btrtl_initialize(struct hci_dev *hdev, in btrtl_initialize() 164 static inline int btrtl_download_firmware(struct hci_dev *hdev, in btrtl_download_firmware() 170 static inline void btrtl_set_quirks(struct hci_dev *hdev, in btrtl_set_quirks() [all …]
|
| H A D | btqca.h | 165 int qca_set_bdaddr_rome(struct hci_dev *hdev, const bdaddr_t *bdaddr); 166 int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, 169 int qca_read_soc_version(struct hci_dev *hdev, struct qca_btsoc_version *ver, 171 int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 172 int qca_send_pre_shutdown_cmd(struct hci_dev *hdev); 175 static inline int qca_set_bdaddr_rome(struct hci_dev *hdev, const bdaddr_t *bdaddr) in qca_set_bdaddr_rome() 180 static inline int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, in qca_uart_setup() 189 static inline int qca_read_soc_version(struct hci_dev *hdev, in qca_read_soc_version() 196 static inline int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in qca_set_bdaddr() 201 static inline int qca_send_pre_shutdown_cmd(struct hci_dev *hdev) in qca_send_pre_shutdown_cmd()
|
| H A D | btrsi.c | 20 struct hci_dev *hdev; 23 static int rsi_hci_open(struct hci_dev *hdev) in rsi_hci_open() 28 static int rsi_hci_close(struct hci_dev *hdev) in rsi_hci_close() 33 static int rsi_hci_flush(struct hci_dev *hdev) in rsi_hci_flush() 38 static int rsi_hci_send_pkt(struct hci_dev *hdev, struct sk_buff *skb) in rsi_hci_send_pkt() 82 struct hci_dev *hdev = h_adapter->hdev; in rsi_hci_recv_pkt() 102 struct hci_dev *hdev; in rsi_hci_attach() 150 struct hci_dev *hdev; in rsi_hci_detach()
|
| H A D | virtio_bt.c | 27 struct hci_dev *hdev; 52 static int virtbt_open(struct hci_dev *hdev) in virtbt_open() 66 static int virtbt_close(struct hci_dev *hdev) in virtbt_close() 89 static int virtbt_flush(struct hci_dev *hdev) in virtbt_flush() 94 static int virtbt_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in virtbt_send_frame() 114 static int virtbt_setup_zephyr(struct hci_dev *hdev) in virtbt_setup_zephyr() 135 static int virtbt_set_bdaddr_zephyr(struct hci_dev *hdev, in virtbt_set_bdaddr_zephyr() 149 static int virtbt_setup_intel(struct hci_dev *hdev) in virtbt_setup_intel() 162 static int virtbt_set_bdaddr_intel(struct hci_dev *hdev, const bdaddr_t *bdaddr) in virtbt_set_bdaddr_intel() 175 static int virtbt_setup_realtek(struct hci_dev *hdev) in virtbt_setup_realtek() [all …]
|
| /linux/net/nfc/nci/ |
| H A D | hci.c | 127 if (ndev->hci_dev->pipes[i].host == host) { in nci_hci_reset_pipes_per_host() 128 ndev->hci_dev->pipes[i].gate = NCI_HCI_INVALID_GATE; in nci_hci_reset_pipes_per_host() 129 ndev->hci_dev->pipes[i].host = NCI_HCI_INVALID_HOST; in nci_hci_reset_pipes_per_host() 151 conn_info = ndev->hci_dev->conn_info; in nci_hci_send_data() 210 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_event() 229 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_cmd() 234 conn_info = ndev->hci_dev->conn_info; in nci_hci_send_cmd() 269 nci_hci_reset_pipes(ndev->hci_dev); in nci_hci_clear_all_pipes() 284 u8 gate = ndev->hci_dev->pipes[pipe].gate; in nci_hci_cmd_received() 312 ndev->hci_dev->gate2pipe[dest_gate] = new_pipe; in nci_hci_cmd_received() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | ssb-hcd.c | 105 struct platform_device *hci_dev; in ssb_hcd_create_pdev() local 118 hci_dev = platform_device_alloc(ohci ? "ohci-platform" : in ssb_hcd_create_pdev() 120 if (!hci_dev) in ssb_hcd_create_pdev() 123 hci_dev->dev.parent = dev->dev; in ssb_hcd_create_pdev() 124 hci_dev->dev.dma_mask = &hci_dev->dev.coherent_dma_mask; in ssb_hcd_create_pdev() 126 ret = platform_device_add_resources(hci_dev, hci_res, in ssb_hcd_create_pdev() 131 ret = platform_device_add_data(hci_dev, &ohci_pdata, in ssb_hcd_create_pdev() 134 ret = platform_device_add_data(hci_dev, &ehci_pdata, in ssb_hcd_create_pdev() 138 ret = platform_device_add(hci_dev); in ssb_hcd_create_pdev() 142 return hci_dev; in ssb_hcd_create_pdev() [all …]
|
| /linux/drivers/nfc/st-nci/ |
| H A D | se.c | 226 ndev->hci_dev->init_data.gates[j].pipe = pipe_info[2]; in st_nci_hci_load_session() 228 ndev->hci_dev->gate2pipe[st_nci_gates[j].gate] = in st_nci_hci_load_session() 230 ndev->hci_dev->pipes[pipe_info[2]].gate = in st_nci_hci_load_session() 232 ndev->hci_dev->pipes[pipe_info[2]].host = in st_nci_hci_load_session() 385 u8 gate = ndev->hci_dev->pipes[pipe].gate; in st_nci_hci_event_received() 386 u8 host = ndev->hci_dev->pipes[pipe].host; in st_nci_hci_event_received() 406 u8 gate = ndev->hci_dev->pipes[pipe].gate; in st_nci_hci_cmd_received() 413 ndev->hci_dev->pipes[pipe].host != ST_NCI_UICC_HOST_ID) in st_nci_hci_cmd_received() 414 ndev->hci_dev->count_pipes++; in st_nci_hci_cmd_received() 416 if (ndev->hci_dev->count_pipes == in st_nci_hci_cmd_received() [all …]
|