• Home
  • Raw
  • Download

Lines Matching refs:hdev

77 	struct hci_dev *hdev;  member
215 info->hdev->stat.byte_tx += len; in bt3c_write_wakeup()
239 info->hdev->stat.byte_rx++; in bt3c_receive()
254 info->rx_skb->dev = (void *) info->hdev; in bt3c_receive()
279 info->hdev->stat.err_rx++; in bt3c_receive()
280 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in bt3c_receive()
348 BUG_ON(!info->hdev); in bt3c_interrupt()
363 BT_INFO("%s: Antenna %s", info->hdev->name, in bt3c_interrupt()
391 static int bt3c_hci_flush(struct hci_dev *hdev) in bt3c_hci_flush() argument
393 bt3c_info_t *info = (bt3c_info_t *)(hdev->driver_data); in bt3c_hci_flush()
402 static int bt3c_hci_open(struct hci_dev *hdev) in bt3c_hci_open() argument
404 set_bit(HCI_RUNNING, &(hdev->flags)); in bt3c_hci_open()
410 static int bt3c_hci_close(struct hci_dev *hdev) in bt3c_hci_close() argument
412 if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags))) in bt3c_hci_close()
415 bt3c_hci_flush(hdev); in bt3c_hci_close()
424 struct hci_dev *hdev = (struct hci_dev *)(skb->dev); in bt3c_hci_send_frame() local
427 if (!hdev) { in bt3c_hci_send_frame()
432 info = (bt3c_info_t *) (hdev->driver_data); in bt3c_hci_send_frame()
436 hdev->stat.cmd_tx++; in bt3c_hci_send_frame()
439 hdev->stat.acl_tx++; in bt3c_hci_send_frame()
442 hdev->stat.sco_tx++; in bt3c_hci_send_frame()
460 static void bt3c_hci_destruct(struct hci_dev *hdev) in bt3c_hci_destruct() argument
465 static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg) in bt3c_hci_ioctl() argument
563 struct hci_dev *hdev; in bt3c_open() local
575 hdev = hci_alloc_dev(); in bt3c_open()
576 if (!hdev) { in bt3c_open()
581 info->hdev = hdev; in bt3c_open()
583 hdev->type = HCI_PCCARD; in bt3c_open()
584 hdev->driver_data = info; in bt3c_open()
585 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in bt3c_open()
587 hdev->open = bt3c_hci_open; in bt3c_open()
588 hdev->close = bt3c_hci_close; in bt3c_open()
589 hdev->flush = bt3c_hci_flush; in bt3c_open()
590 hdev->send = bt3c_hci_send_frame; in bt3c_open()
591 hdev->destruct = bt3c_hci_destruct; in bt3c_open()
592 hdev->ioctl = bt3c_hci_ioctl; in bt3c_open()
594 hdev->owner = THIS_MODULE; in bt3c_open()
616 err = hci_register_dev(hdev); in bt3c_open()
625 info->hdev = NULL; in bt3c_open()
626 hci_free_dev(hdev); in bt3c_open()
633 struct hci_dev *hdev = info->hdev; in bt3c_close() local
635 if (!hdev) in bt3c_close()
638 bt3c_hci_close(hdev); in bt3c_close()
640 if (hci_unregister_dev(hdev) < 0) in bt3c_close()
641 BT_ERR("Can't unregister HCI device %s", hdev->name); in bt3c_close()
643 hci_free_dev(hdev); in bt3c_close()
762 strcpy(info->node.dev_name, info->hdev->name); in bt3c_config()