Lines Matching defs:hdev

414 static int btmrvl_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
416 struct btmrvl_private *priv = hci_get_drvdata(hdev);
427 hdev->stat.cmd_tx++;
431 hdev->stat.acl_tx++;
435 hdev->stat.sco_tx++;
447 static int btmrvl_flush(struct hci_dev *hdev)
449 struct btmrvl_private *priv = hci_get_drvdata(hdev);
456 static int btmrvl_close(struct hci_dev *hdev)
458 struct btmrvl_private *priv = hci_get_drvdata(hdev);
465 static int btmrvl_open(struct hci_dev *hdev)
529 static int btmrvl_setup(struct hci_dev *hdev)
531 struct btmrvl_private *priv = hci_get_drvdata(hdev);
554 static int btmrvl_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
564 skb = __hci_cmd_sync(hdev, BT_CMD_SET_BDADDR, sizeof(buf), buf,
569 hdev->name, ret);
577 static bool btmrvl_wakeup(struct hci_dev *hdev)
579 struct btmrvl_private *priv = hci_get_drvdata(hdev);
666 struct hci_dev *hdev = NULL;
670 hdev = hci_alloc_dev();
671 if (!hdev) {
676 priv->btmrvl_dev.hcidev = hdev;
677 hci_set_drvdata(hdev, priv);
679 hdev->bus = HCI_SDIO;
680 hdev->open = btmrvl_open;
681 hdev->close = btmrvl_close;
682 hdev->flush = btmrvl_flush;
683 hdev->send = btmrvl_send_frame;
684 hdev->setup = btmrvl_setup;
685 hdev->set_bdaddr = btmrvl_set_bdaddr;
686 hdev->wakeup = btmrvl_wakeup;
687 SET_HCIDEV_DEV(hdev, &card->func->dev);
689 hdev->dev_type = priv->btmrvl_dev.dev_type;
691 ret = hci_register_dev(hdev);
698 btmrvl_debugfs_init(hdev);
704 hci_free_dev(hdev);
763 struct hci_dev *hdev;
765 hdev = priv->btmrvl_dev.hcidev;
773 btmrvl_debugfs_remove(hdev);
776 hci_unregister_dev(hdev);
778 hci_free_dev(hdev);