• Home
  • Raw
  • Download

Lines Matching refs:hdev

72 	struct hci_dev *hdev;  member
170 info->hdev->stat.byte_tx += len; in btuart_write_wakeup()
191 info->hdev->stat.byte_rx++; in btuart_receive()
205 info->rx_skb->dev = (void *) info->hdev; in btuart_receive()
228 info->hdev->stat.err_rx++; in btuart_receive()
229 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in btuart_receive()
298 BUG_ON(!info->hdev); in btuart_interrupt()
399 static int btuart_hci_flush(struct hci_dev *hdev) in btuart_hci_flush() argument
401 btuart_info_t *info = (btuart_info_t *)(hdev->driver_data); in btuart_hci_flush()
410 static int btuart_hci_open(struct hci_dev *hdev) in btuart_hci_open() argument
412 set_bit(HCI_RUNNING, &(hdev->flags)); in btuart_hci_open()
418 static int btuart_hci_close(struct hci_dev *hdev) in btuart_hci_close() argument
420 if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags))) in btuart_hci_close()
423 btuart_hci_flush(hdev); in btuart_hci_close()
432 struct hci_dev *hdev = (struct hci_dev *)(skb->dev); in btuart_hci_send_frame() local
434 if (!hdev) { in btuart_hci_send_frame()
439 info = (btuart_info_t *)(hdev->driver_data); in btuart_hci_send_frame()
443 hdev->stat.cmd_tx++; in btuart_hci_send_frame()
446 hdev->stat.acl_tx++; in btuart_hci_send_frame()
449 hdev->stat.sco_tx++; in btuart_hci_send_frame()
463 static void btuart_hci_destruct(struct hci_dev *hdev) in btuart_hci_destruct() argument
468 static int btuart_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg) in btuart_hci_ioctl() argument
482 struct hci_dev *hdev; in btuart_open() local
493 hdev = hci_alloc_dev(); in btuart_open()
494 if (!hdev) { in btuart_open()
499 info->hdev = hdev; in btuart_open()
501 hdev->type = HCI_PCCARD; in btuart_open()
502 hdev->driver_data = info; in btuart_open()
503 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in btuart_open()
505 hdev->open = btuart_hci_open; in btuart_open()
506 hdev->close = btuart_hci_close; in btuart_open()
507 hdev->flush = btuart_hci_flush; in btuart_open()
508 hdev->send = btuart_hci_send_frame; in btuart_open()
509 hdev->destruct = btuart_hci_destruct; in btuart_open()
510 hdev->ioctl = btuart_hci_ioctl; in btuart_open()
512 hdev->owner = THIS_MODULE; in btuart_open()
537 if (hci_register_dev(hdev) < 0) { in btuart_open()
539 info->hdev = NULL; in btuart_open()
540 hci_free_dev(hdev); in btuart_open()
552 struct hci_dev *hdev = info->hdev; in btuart_close() local
554 if (!hdev) in btuart_close()
557 btuart_hci_close(hdev); in btuart_close()
569 if (hci_unregister_dev(hdev) < 0) in btuart_close()
570 BT_ERR("Can't unregister HCI device %s", hdev->name); in btuart_close()
572 hci_free_dev(hdev); in btuart_close()
691 strcpy(info->node.dev_name, info->hdev->name); in btuart_config()