Lines Matching defs:hdev

59 struct sk_buff *mgmt_alloc_skb(struct hci_dev *hdev, u16 opcode,
69 bt_cb(skb)->mgmt.hdev = hdev;
78 struct hci_dev *hdev;
86 hdev = bt_cb(skb)->mgmt.hdev;
93 hci_send_monitor_ctrl_event(hdev, bt_cb(skb)->mgmt.opcode,
99 if (hdev)
100 hdr->index = cpu_to_le16(hdev->id);
111 int mgmt_send_event(u16 event, struct hci_dev *hdev, unsigned short channel,
116 skb = mgmt_alloc_skb(hdev, event, data_len);
218 struct hci_dev *hdev)
222 list_for_each_entry(cmd, &hdev->mgmt_pending, list) {
234 struct hci_dev *hdev,
239 list_for_each_entry(cmd, &hdev->mgmt_pending, list) {
249 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev,
255 list_for_each_entry_safe(cmd, tmp, &hdev->mgmt_pending, list) {
264 struct hci_dev *hdev,
274 cmd->index = hdev->id;
291 struct hci_dev *hdev,
296 cmd = mgmt_pending_new(sk, opcode, hdev, data, len);
300 list_add_tail(&cmd->list, &hdev->mgmt_pending);
318 void mgmt_mesh_foreach(struct hci_dev *hdev,
324 list_for_each_entry_safe(mesh_tx, tmp, &hdev->mgmt_pending, list) {
330 struct mgmt_mesh_tx *mgmt_mesh_next(struct hci_dev *hdev, struct sock *sk)
334 if (list_empty(&hdev->mesh_pending))
337 list_for_each_entry(mesh_tx, &hdev->mesh_pending, list) {
345 struct mgmt_mesh_tx *mgmt_mesh_find(struct hci_dev *hdev, u8 handle)
349 if (list_empty(&hdev->mesh_pending))
352 list_for_each_entry(mesh_tx, &hdev->mesh_pending, list) {
360 struct mgmt_mesh_tx *mgmt_mesh_add(struct sock *sk, struct hci_dev *hdev,
369 hdev->mesh_send_ref++;
370 if (!hdev->mesh_send_ref)
371 hdev->mesh_send_ref++;
373 mesh_tx->handle = hdev->mesh_send_ref;
374 mesh_tx->index = hdev->id;
380 list_add_tail(&mesh_tx->list, &hdev->mesh_pending);