Lines Matching refs:dump_size

149 static int hci_devcd_prepare(struct hci_dev *hdev, u32 dump_size)  in hci_devcd_prepare()  argument
161 if (hci_devcd_alloc(hdev, dump_hdr_size + dump_size)) { in hci_devcd_prepare()
183 u32 dump_size; in hci_devcd_handle_pkt_init() local
190 if (skb->len != sizeof(dump_size)) { in hci_devcd_handle_pkt_init()
195 dump_size = get_unaligned_le32(skb_pull_data(skb, 4)); in hci_devcd_handle_pkt_init()
196 if (!dump_size) { in hci_devcd_handle_pkt_init()
201 if (hci_devcd_prepare(hdev, dump_size)) { in hci_devcd_handle_pkt_init()
246 u32 dump_size; in hci_devcd_handle_pkt_complete() local
254 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_complete()
256 bt_dev_dbg(hdev, "complete with size %u (expect %zu)", dump_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()
265 u32 dump_size; in hci_devcd_handle_pkt_abort() local
273 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_abort()
275 bt_dev_dbg(hdev, "aborted with size %u (expect %zu)", dump_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()
380 u32 dump_size; in hci_devcd_timeout() local
390 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_timeout()
391 bt_dev_dbg(hdev, "timeout with size %u (expect %zu)", dump_size, in hci_devcd_timeout()
395 dev_coredumpv(&hdev->dev, hdev->dump.head, dump_size, GFP_KERNEL); in hci_devcd_timeout()
432 int hci_devcd_init(struct hci_dev *hdev, u32 dump_size) in hci_devcd_init() argument
439 skb = alloc_skb(sizeof(dump_size), GFP_ATOMIC); in hci_devcd_init()
444 put_unaligned_le32(dump_size, skb_put(skb, 4)); in hci_devcd_init()