Lines Matching defs:hdev

25 #define hci_req_sync_lock(hdev)   mutex_lock(&hdev->req_lock)
26 #define hci_req_sync_unlock(hdev) mutex_unlock(&hdev->req_lock)
29 struct hci_dev *hdev;
38 void hci_req_init(struct hci_request *req, struct hci_dev *hdev);
40 bool hci_req_status_pend(struct hci_dev *hdev);
47 void hci_req_cmd_complete(struct hci_dev *hdev, u16 opcode, u8 status,
51 int hci_req_sync(struct hci_dev *hdev, int (*req)(struct hci_request *req,
54 int __hci_req_sync(struct hci_dev *hdev, int (*func)(struct hci_request *req,
57 void hci_req_sync_cancel(struct hci_dev *hdev, int err);
59 struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen,
62 int __hci_req_hci_power_on(struct hci_dev *hdev);
71 void hci_req_prepare_suspend(struct hci_dev *hdev, enum suspended_state next);
73 void hci_req_disable_address_resolution(struct hci_dev *hdev);
74 void hci_req_reenable_advertising(struct hci_dev *hdev);
78 int hci_req_update_adv_data(struct hci_dev *hdev, u8 instance);
83 void hci_req_clear_adv_instance(struct hci_dev *hdev, struct sock *sk,
93 int hci_get_random_address(struct hci_dev *hdev, bool require_privacy,
102 static inline void hci_req_update_scan(struct hci_dev *hdev)
104 queue_work(hdev->req_workqueue, &hdev->scan_update);
116 static inline void hci_update_background_scan(struct hci_dev *hdev)
118 queue_work(hdev->req_workqueue, &hdev->bg_scan_update);
121 void hci_request_setup(struct hci_dev *hdev);
122 void hci_request_cancel_all(struct hci_dev *hdev);
124 u8 append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len);