Lines Matching defs:hdev
73 struct hci_dev *hdev;
210 info->hdev->stat.byte_tx += len;
233 info->hdev->stat.byte_rx++;
273 info->hdev->stat.err_rx++;
318 hci_recv_frame(info->hdev, info->rx_skb);
341 if (!info || !info->hdev)
358 bt_dev_info(info->hdev, "Antenna %s",
385 static int bt3c_hci_flush(struct hci_dev *hdev)
387 struct bt3c_info *info = hci_get_drvdata(hdev);
396 static int bt3c_hci_open(struct hci_dev *hdev)
402 static int bt3c_hci_close(struct hci_dev *hdev)
404 bt3c_hci_flush(hdev);
410 static int bt3c_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
412 struct bt3c_info *info = hci_get_drvdata(hdev);
417 hdev->stat.cmd_tx++;
420 hdev->stat.acl_tx++;
423 hdev->stat.sco_tx++;
541 struct hci_dev *hdev;
553 hdev = hci_alloc_dev();
554 if (!hdev) {
559 info->hdev = hdev;
561 hdev->bus = HCI_PCCARD;
562 hci_set_drvdata(hdev, info);
563 SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
565 hdev->open = bt3c_hci_open;
566 hdev->close = bt3c_hci_close;
567 hdev->flush = bt3c_hci_flush;
568 hdev->send = bt3c_hci_send_frame;
590 err = hci_register_dev(hdev);
599 info->hdev = NULL;
600 hci_free_dev(hdev);
607 struct hci_dev *hdev = info->hdev;
609 if (!hdev)
612 bt3c_hci_close(hdev);
614 hci_unregister_dev(hdev);
615 hci_free_dev(hdev);