Lines Matching defs:hdev

407 static int btmrvl_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
409 struct btmrvl_private *priv = hci_get_drvdata(hdev);
420 hdev->stat.cmd_tx++;
424 hdev->stat.acl_tx++;
428 hdev->stat.sco_tx++;
440 static int btmrvl_flush(struct hci_dev *hdev)
442 struct btmrvl_private *priv = hci_get_drvdata(hdev);
449 static int btmrvl_close(struct hci_dev *hdev)
451 struct btmrvl_private *priv = hci_get_drvdata(hdev);
458 static int btmrvl_open(struct hci_dev *hdev)
522 static int btmrvl_setup(struct hci_dev *hdev)
524 struct btmrvl_private *priv = hci_get_drvdata(hdev);
547 static int btmrvl_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
557 skb = __hci_cmd_sync(hdev, BT_CMD_SET_BDADDR, sizeof(buf), buf,
562 hdev->name, ret);
570 static bool btmrvl_wakeup(struct hci_dev *hdev)
572 struct btmrvl_private *priv = hci_get_drvdata(hdev);
659 struct hci_dev *hdev = NULL;
663 hdev = hci_alloc_dev();
664 if (!hdev) {
669 priv->btmrvl_dev.hcidev = hdev;
670 hci_set_drvdata(hdev, priv);
672 hdev->bus = HCI_SDIO;
673 hdev->open = btmrvl_open;
674 hdev->close = btmrvl_close;
675 hdev->flush = btmrvl_flush;
676 hdev->send = btmrvl_send_frame;
677 hdev->setup = btmrvl_setup;
678 hdev->set_bdaddr = btmrvl_set_bdaddr;
679 hdev->wakeup = btmrvl_wakeup;
680 SET_HCIDEV_DEV(hdev, &card->func->dev);
682 ret = hci_register_dev(hdev);
689 btmrvl_debugfs_init(hdev);
695 hci_free_dev(hdev);
754 struct hci_dev *hdev;
756 hdev = priv->btmrvl_dev.hcidev;
764 btmrvl_debugfs_remove(hdev);
767 hci_unregister_dev(hdev);
769 hci_free_dev(hdev);