• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/bluetooth/

Lines Matching defs:hdev

77 	struct hci_dev *hdev;
215 info->hdev->stat.byte_tx += len;
239 info->hdev->stat.byte_rx++;
254 info->rx_skb->dev = (void *) info->hdev;
279 info->hdev->stat.err_rx++;
280 clear_bit(HCI_RUNNING, &(info->hdev->flags));
347 if (!info || !info->hdev) {
365 BT_INFO("%s: Antenna %s", info->hdev->name,
392 static int bt3c_hci_flush(struct hci_dev *hdev)
394 bt3c_info_t *info = (bt3c_info_t *)(hdev->driver_data);
403 static int bt3c_hci_open(struct hci_dev *hdev)
405 set_bit(HCI_RUNNING, &(hdev->flags));
411 static int bt3c_hci_close(struct hci_dev *hdev)
413 if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags)))
416 bt3c_hci_flush(hdev);
425 struct hci_dev *hdev = (struct hci_dev *)(skb->dev);
428 if (!hdev) {
429 BT_ERR("Frame for unknown HCI device (hdev=NULL)");
433 info = (bt3c_info_t *) (hdev->driver_data);
437 hdev->stat.cmd_tx++;
440 hdev->stat.acl_tx++;
443 hdev->stat.sco_tx++;
461 static void bt3c_hci_destruct(struct hci_dev *hdev)
466 static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg)
563 struct hci_dev *hdev;
575 hdev = hci_alloc_dev();
576 if (!hdev) {
581 info->hdev = hdev;
583 hdev->type = HCI_PCCARD;
584 hdev->driver_data = info;
585 SET_HCIDEV_DEV(hdev, &info->p_dev->dev);
587 hdev->open = bt3c_hci_open;
588 hdev->close = bt3c_hci_close;
589 hdev->flush = bt3c_hci_flush;
590 hdev->send = bt3c_hci_send_frame;
591 hdev->destruct = bt3c_hci_destruct;
592 hdev->ioctl = bt3c_hci_ioctl;
594 hdev->owner = THIS_MODULE;
616 err = hci_register_dev(hdev);
625 info->hdev = NULL;
626 hci_free_dev(hdev);
633 struct hci_dev *hdev = info->hdev;
635 if (!hdev)
638 bt3c_hci_close(hdev);
640 if (hci_unregister_dev(hdev) < 0)
641 BT_ERR("Can't unregister HCI device %s", hdev->name);
643 hci_free_dev(hdev);
785 strcpy(info->node.dev_name, info->hdev->name);