Lines Matching refs:dump

34 		   hci_dmp_cb(skb)->pkt_type, hdev->dump.state)
54 hdev->dump.state, state); in hci_devcd_update_state()
56 hdev->dump.state = state; in hci_devcd_update_state()
58 return hci_devcd_update_hdr_state(hdev->dump.head, in hci_devcd_update_state()
59 hdev->dump.alloc_size, state); in hci_devcd_update_state()
72 if (hdev->dump.dmp_hdr) in hci_devcd_mkheader()
73 hdev->dump.dmp_hdr(hdev, skb); in hci_devcd_mkheader()
83 if (hdev->dump.notify_change) in hci_devcd_notify()
84 hdev->dump.notify_change(hdev, state); in hci_devcd_notify()
90 hdev->dump.head = NULL; in hci_devcd_reset()
91 hdev->dump.tail = NULL; in hci_devcd_reset()
92 hdev->dump.alloc_size = 0; in hci_devcd_reset()
96 cancel_delayed_work(&hdev->dump.dump_timeout); in hci_devcd_reset()
97 skb_queue_purge(&hdev->dump.dump_q); in hci_devcd_reset()
103 vfree(hdev->dump.head); in hci_devcd_free()
111 hdev->dump.head = vmalloc(size); in hci_devcd_alloc()
112 if (!hdev->dump.head) in hci_devcd_alloc()
115 hdev->dump.alloc_size = size; in hci_devcd_alloc()
116 hdev->dump.tail = hdev->dump.head; in hci_devcd_alloc()
117 hdev->dump.end = hdev->dump.head + size; in hci_devcd_alloc()
127 if (hdev->dump.tail + size > hdev->dump.end) in hci_devcd_copy()
130 memcpy(hdev->dump.tail, buf, size); in hci_devcd_copy()
131 hdev->dump.tail += size; in hci_devcd_copy()
139 if (hdev->dump.tail + len > hdev->dump.end) in hci_devcd_memset()
142 memset(hdev->dump.tail, pattern, len); in hci_devcd_memset()
143 hdev->dump.tail += len; in hci_devcd_memset()
185 if (hdev->dump.state != HCI_DEVCOREDUMP_IDLE) { in hci_devcd_handle_pkt_init()
207 queue_delayed_work(hdev->workqueue, &hdev->dump.dump_timeout, in hci_devcd_handle_pkt_init()
208 hdev->dump.timeout); in hci_devcd_handle_pkt_init()
213 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) { in hci_devcd_handle_pkt_skb()
227 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) { in hci_devcd_handle_pkt_pattern()
248 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) { in hci_devcd_handle_pkt_complete()
254 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_complete()
257 hdev->dump.alloc_size); in hci_devcd_handle_pkt_complete()
259 dev_coredumpv(&hdev->dev, hdev->dump.head, dump_size, GFP_KERNEL); in hci_devcd_handle_pkt_complete()
267 if (hdev->dump.state != HCI_DEVCOREDUMP_ACTIVE) { in hci_devcd_handle_pkt_abort()
273 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_abort()
276 hdev->dump.alloc_size); in hci_devcd_handle_pkt_abort()
279 dev_coredumpv(&hdev->dev, hdev->dump.head, dump_size, GFP_KERNEL); in hci_devcd_handle_pkt_abort()
314 struct hci_dev *hdev = container_of(work, struct hci_dev, dump.dump_rx); in hci_devcd_rx()
318 while ((skb = skb_dequeue(&hdev->dump.dump_q))) { in hci_devcd_rx()
322 if (hdev->dump.state == HCI_DEVCOREDUMP_TIMEOUT) { in hci_devcd_rx()
328 start_state = hdev->dump.state; in hci_devcd_rx()
353 hci_dmp_cb(skb)->pkt_type, hdev->dump.state); in hci_devcd_rx()
363 if (start_state != hdev->dump.state) in hci_devcd_rx()
364 hci_devcd_notify(hdev, hdev->dump.state); in hci_devcd_rx()
368 if (hdev->dump.state == HCI_DEVCOREDUMP_DONE || in hci_devcd_rx()
369 hdev->dump.state == HCI_DEVCOREDUMP_ABORT) in hci_devcd_rx()
379 dump.dump_timeout.work); in hci_devcd_timeout()
386 cancel_work(&hdev->dump.dump_rx); in hci_devcd_timeout()
390 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_timeout()
392 hdev->dump.alloc_size); in hci_devcd_timeout()
395 dev_coredumpv(&hdev->dev, hdev->dump.head, dump_size, GFP_KERNEL); in hci_devcd_timeout()
416 hdev->dump.coredump = coredump; in hci_devcd_register()
417 hdev->dump.dmp_hdr = dmp_hdr; in hci_devcd_register()
418 hdev->dump.notify_change = notify_change; in hci_devcd_register()
419 hdev->dump.supported = true; in hci_devcd_register()
420 hdev->dump.timeout = DEVCOREDUMP_TIMEOUT; in hci_devcd_register()
429 return hdev->dump.supported; in hci_devcd_enabled()
446 skb_queue_tail(&hdev->dump.dump_q, skb); in hci_devcd_init()
447 queue_work(hdev->workqueue, &hdev->dump.dump_rx); in hci_devcd_init()
465 skb_queue_tail(&hdev->dump.dump_q, skb); in hci_devcd_append()
466 queue_work(hdev->workqueue, &hdev->dump.dump_rx); in hci_devcd_append()
490 skb_queue_tail(&hdev->dump.dump_q, skb); in hci_devcd_append_pattern()
491 queue_work(hdev->workqueue, &hdev->dump.dump_rx); in hci_devcd_append_pattern()
510 skb_queue_tail(&hdev->dump.dump_q, skb); in hci_devcd_complete()
511 queue_work(hdev->workqueue, &hdev->dump.dump_rx); in hci_devcd_complete()
530 skb_queue_tail(&hdev->dump.dump_q, skb); in hci_devcd_abort()
531 queue_work(hdev->workqueue, &hdev->dump.dump_rx); in hci_devcd_abort()