• Home
  • Raw
  • Download

Lines Matching refs:hdev

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