Lines Matching refs:hdev

68 	struct hci_dev *hdev;  member
167 info->hdev->stat.byte_tx += len; in btuart_write_wakeup()
188 info->hdev->stat.byte_rx++; in btuart_receive()
225 info->hdev->stat.err_rx++; in btuart_receive()
226 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in btuart_receive()
269 hci_recv_frame(info->hdev, info->rx_skb); in btuart_receive()
295 if (!info || !info->hdev) in btuart_interrupt()
399 static int btuart_hci_flush(struct hci_dev *hdev) in btuart_hci_flush() argument
401 struct btuart_info *info = hci_get_drvdata(hdev); 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()
429 static int btuart_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in btuart_hci_send_frame() argument
431 struct btuart_info *info = hci_get_drvdata(hdev); in btuart_hci_send_frame()
435 hdev->stat.cmd_tx++; in btuart_hci_send_frame()
438 hdev->stat.acl_tx++; in btuart_hci_send_frame()
441 hdev->stat.sco_tx++; in btuart_hci_send_frame()
463 struct hci_dev *hdev; in btuart_open() local
474 hdev = hci_alloc_dev(); in btuart_open()
475 if (!hdev) { in btuart_open()
480 info->hdev = hdev; in btuart_open()
482 hdev->bus = HCI_PCCARD; in btuart_open()
483 hci_set_drvdata(hdev, info); in btuart_open()
484 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in btuart_open()
486 hdev->open = btuart_hci_open; in btuart_open()
487 hdev->close = btuart_hci_close; in btuart_open()
488 hdev->flush = btuart_hci_flush; in btuart_open()
489 hdev->send = btuart_hci_send_frame; in btuart_open()
514 if (hci_register_dev(hdev) < 0) { in btuart_open()
516 info->hdev = NULL; in btuart_open()
517 hci_free_dev(hdev); in btuart_open()
529 struct hci_dev *hdev = info->hdev; in btuart_close() local
531 if (!hdev) in btuart_close()
534 btuart_hci_close(hdev); in btuart_close()
546 hci_unregister_dev(hdev); in btuart_close()
547 hci_free_dev(hdev); in btuart_close()