Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.10 158 lines 6.7 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * BlueZ - Bluetooth protocol stack for Linux 4 * 5 * Copyright (C) 2021 Intel Corporation 6 */ 7 8#define UINT_PTR(_handle) ((void *)((uintptr_t)_handle)) 9#define PTR_UINT(_ptr) ((uintptr_t)((void *)_ptr)) 10 11typedef int (*hci_cmd_sync_work_func_t)(struct hci_dev *hdev, void *data); 12typedef void (*hci_cmd_sync_work_destroy_t)(struct hci_dev *hdev, void *data, 13 int err); 14 15struct hci_cmd_sync_work_entry { 16 struct list_head list; 17 hci_cmd_sync_work_func_t func; 18 void *data; 19 hci_cmd_sync_work_destroy_t destroy; 20}; 21 22struct adv_info; 23/* Function with sync suffix shall not be called with hdev->lock held as they 24 * wait the command to complete and in the meantime an event could be received 25 * which could attempt to acquire hdev->lock causing a deadlock. 26 */ 27struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, 28 const void *param, u32 timeout); 29struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen, 30 const void *param, u32 timeout); 31struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen, 32 const void *param, u8 event, u32 timeout); 33struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen, 34 const void *param, u8 event, u32 timeout, 35 struct sock *sk); 36int __hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen, 37 const void *param, u32 timeout); 38int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen, 39 const void *param, u8 event, u32 timeout, 40 struct sock *sk); 41int hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen, 42 const void *param, u32 timeout); 43 44void hci_cmd_sync_init(struct hci_dev *hdev); 45void hci_cmd_sync_clear(struct hci_dev *hdev); 46void hci_cmd_sync_cancel(struct hci_dev *hdev, int err); 47void hci_cmd_sync_cancel_sync(struct hci_dev *hdev, int err); 48 49int hci_cmd_sync_submit(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, 50 void *data, hci_cmd_sync_work_destroy_t destroy); 51int hci_cmd_sync_queue(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, 52 void *data, hci_cmd_sync_work_destroy_t destroy); 53int hci_cmd_sync_queue_once(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, 54 void *data, hci_cmd_sync_work_destroy_t destroy); 55struct hci_cmd_sync_work_entry * 56hci_cmd_sync_lookup_entry(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, 57 void *data, hci_cmd_sync_work_destroy_t destroy); 58void hci_cmd_sync_cancel_entry(struct hci_dev *hdev, 59 struct hci_cmd_sync_work_entry *entry); 60bool hci_cmd_sync_dequeue(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, 61 void *data, hci_cmd_sync_work_destroy_t destroy); 62bool hci_cmd_sync_dequeue_once(struct hci_dev *hdev, 63 hci_cmd_sync_work_func_t func, void *data, 64 hci_cmd_sync_work_destroy_t destroy); 65 66int hci_update_eir_sync(struct hci_dev *hdev); 67int hci_update_class_sync(struct hci_dev *hdev); 68 69int hci_update_eir_sync(struct hci_dev *hdev); 70int hci_update_class_sync(struct hci_dev *hdev); 71int hci_update_name_sync(struct hci_dev *hdev); 72int hci_write_ssp_mode_sync(struct hci_dev *hdev, u8 mode); 73 74int hci_get_random_address(struct hci_dev *hdev, bool require_privacy, 75 bool use_rpa, struct adv_info *adv_instance, 76 u8 *own_addr_type, bdaddr_t *rand_addr); 77 78int hci_update_random_address_sync(struct hci_dev *hdev, bool require_privacy, 79 bool rpa, u8 *own_addr_type); 80 81int hci_update_scan_rsp_data_sync(struct hci_dev *hdev, u8 instance); 82int hci_update_adv_data_sync(struct hci_dev *hdev, u8 instance); 83int hci_update_adv_data(struct hci_dev *hdev, u8 instance); 84int hci_schedule_adv_instance_sync(struct hci_dev *hdev, u8 instance, 85 bool force); 86 87int hci_setup_ext_adv_instance_sync(struct hci_dev *hdev, u8 instance); 88int hci_start_ext_adv_sync(struct hci_dev *hdev, u8 instance); 89int hci_enable_ext_advertising_sync(struct hci_dev *hdev, u8 instance); 90int hci_enable_advertising_sync(struct hci_dev *hdev); 91int hci_enable_advertising(struct hci_dev *hdev); 92 93int hci_start_per_adv_sync(struct hci_dev *hdev, u8 instance, u8 data_len, 94 u8 *data, u32 flags, u16 min_interval, 95 u16 max_interval, u16 sync_interval); 96 97int hci_disable_per_advertising_sync(struct hci_dev *hdev, u8 instance); 98 99int hci_remove_advertising_sync(struct hci_dev *hdev, struct sock *sk, 100 u8 instance, bool force); 101int hci_disable_advertising_sync(struct hci_dev *hdev); 102int hci_clear_adv_instance_sync(struct hci_dev *hdev, struct sock *sk, 103 u8 instance, bool force); 104int hci_update_passive_scan_sync(struct hci_dev *hdev); 105int hci_update_passive_scan(struct hci_dev *hdev); 106int hci_read_rssi_sync(struct hci_dev *hdev, __le16 handle); 107int hci_read_tx_power_sync(struct hci_dev *hdev, __le16 handle, u8 type); 108int hci_write_sc_support_sync(struct hci_dev *hdev, u8 val); 109int hci_read_clock_sync(struct hci_dev *hdev, struct hci_cp_read_clock *cp); 110 111int hci_write_fast_connectable_sync(struct hci_dev *hdev, bool enable); 112int hci_update_scan_sync(struct hci_dev *hdev); 113int hci_update_scan(struct hci_dev *hdev); 114 115int hci_write_le_host_supported_sync(struct hci_dev *hdev, u8 le, u8 simul); 116int hci_remove_ext_adv_instance_sync(struct hci_dev *hdev, u8 instance, 117 struct sock *sk); 118int hci_remove_ext_adv_instance(struct hci_dev *hdev, u8 instance); 119struct sk_buff *hci_read_local_oob_data_sync(struct hci_dev *hdev, bool ext, 120 struct sock *sk); 121 122int hci_reset_sync(struct hci_dev *hdev); 123int hci_dev_open_sync(struct hci_dev *hdev); 124int hci_dev_close_sync(struct hci_dev *hdev); 125 126int hci_powered_update_sync(struct hci_dev *hdev); 127int hci_set_powered_sync(struct hci_dev *hdev, u8 val); 128 129int hci_update_discoverable_sync(struct hci_dev *hdev); 130int hci_update_discoverable(struct hci_dev *hdev); 131 132int hci_update_connectable_sync(struct hci_dev *hdev); 133 134int hci_start_discovery_sync(struct hci_dev *hdev); 135int hci_stop_discovery_sync(struct hci_dev *hdev); 136 137int hci_suspend_sync(struct hci_dev *hdev); 138int hci_resume_sync(struct hci_dev *hdev); 139 140struct hci_conn; 141 142int hci_abort_conn_sync(struct hci_dev *hdev, struct hci_conn *conn, u8 reason); 143 144int hci_le_create_cis_sync(struct hci_dev *hdev); 145 146int hci_le_remove_cig_sync(struct hci_dev *hdev, u8 handle); 147 148int hci_le_terminate_big_sync(struct hci_dev *hdev, u8 handle, u8 reason); 149 150int hci_le_big_terminate_sync(struct hci_dev *hdev, u8 handle); 151 152int hci_le_pa_terminate_sync(struct hci_dev *hdev, u16 handle); 153 154int hci_connect_acl_sync(struct hci_dev *hdev, struct hci_conn *conn); 155 156int hci_connect_le_sync(struct hci_dev *hdev, struct hci_conn *conn); 157 158int hci_cancel_connect_sync(struct hci_dev *hdev, struct hci_conn *conn);