Lines Matching defs:hdev

427 static int btmrvl_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
429 struct btmrvl_private *priv = hci_get_drvdata(hdev);
440 hdev->stat.cmd_tx++;
444 hdev->stat.acl_tx++;
448 hdev->stat.sco_tx++;
460 static int btmrvl_flush(struct hci_dev *hdev)
462 struct btmrvl_private *priv = hci_get_drvdata(hdev);
469 static int btmrvl_close(struct hci_dev *hdev)
471 struct btmrvl_private *priv = hci_get_drvdata(hdev);
478 static int btmrvl_open(struct hci_dev *hdev)
542 static int btmrvl_setup(struct hci_dev *hdev)
544 struct btmrvl_private *priv = hci_get_drvdata(hdev);
567 static int btmrvl_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
577 skb = __hci_cmd_sync(hdev, BT_CMD_SET_BDADDR, sizeof(buf), buf,
582 hdev->name, ret);
590 static bool btmrvl_prevent_wake(struct hci_dev *hdev)
592 struct btmrvl_private *priv = hci_get_drvdata(hdev);
679 struct hci_dev *hdev = NULL;
683 hdev = hci_alloc_dev();
684 if (!hdev) {
689 priv->btmrvl_dev.hcidev = hdev;
690 hci_set_drvdata(hdev, priv);
692 hdev->bus = HCI_SDIO;
693 hdev->open = btmrvl_open;
694 hdev->close = btmrvl_close;
695 hdev->flush = btmrvl_flush;
696 hdev->send = btmrvl_send_frame;
697 hdev->setup = btmrvl_setup;
698 hdev->set_bdaddr = btmrvl_set_bdaddr;
699 hdev->prevent_wake = btmrvl_prevent_wake;
700 SET_HCIDEV_DEV(hdev, &card->func->dev);
702 hdev->dev_type = priv->btmrvl_dev.dev_type;
704 ret = hci_register_dev(hdev);
711 btmrvl_debugfs_init(hdev);
717 hci_free_dev(hdev);
776 struct hci_dev *hdev;
778 hdev = priv->btmrvl_dev.hcidev;
786 btmrvl_debugfs_remove(hdev);
789 hci_unregister_dev(hdev);
791 hci_free_dev(hdev);