Lines Matching defs:hdev
68 struct hci_dev *hdev;
171 info->hdev->stat.byte_tx += len;
216 info->hdev->stat.byte_rx++;
263 hci_recv_frame(info->hdev, info->rx_skb);
298 if (!info || !info->hdev)
359 static int dtl1_hci_open(struct hci_dev *hdev)
365 static int dtl1_hci_flush(struct hci_dev *hdev)
367 struct dtl1_info *info = hci_get_drvdata(hdev);
376 static int dtl1_hci_close(struct hci_dev *hdev)
378 dtl1_hci_flush(hdev);
384 static int dtl1_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
386 struct dtl1_info *info = hci_get_drvdata(hdev);
392 hdev->stat.cmd_tx++;
396 hdev->stat.acl_tx++;
400 hdev->stat.sco_tx++;
439 struct hci_dev *hdev;
452 hdev = hci_alloc_dev();
453 if (!hdev) {
458 info->hdev = hdev;
460 hdev->bus = HCI_PCCARD;
461 hci_set_drvdata(hdev, info);
462 SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
464 hdev->open = dtl1_hci_open;
465 hdev->close = dtl1_hci_close;
466 hdev->flush = dtl1_hci_flush;
467 hdev->send = dtl1_hci_send_frame;
493 if (hci_register_dev(hdev) < 0) {
495 info->hdev = NULL;
496 hci_free_dev(hdev);
508 struct hci_dev *hdev = info->hdev;
510 if (!hdev)
513 dtl1_hci_close(hdev);
525 hci_unregister_dev(hdev);
526 hci_free_dev(hdev);