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()
268 hci_recv_frame(info->hdev, info->rx_skb); in btuart_receive()
294 if (!info || !info->hdev) in btuart_interrupt()
398 static int btuart_hci_flush(struct hci_dev *hdev) in btuart_hci_flush() argument
400 struct btuart_info *info = hci_get_drvdata(hdev); in btuart_hci_flush()
409 static int btuart_hci_open(struct hci_dev *hdev) in btuart_hci_open() argument
415 static int btuart_hci_close(struct hci_dev *hdev) in btuart_hci_close() argument
417 btuart_hci_flush(hdev); in btuart_hci_close()
423 static int btuart_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in btuart_hci_send_frame() argument
425 struct btuart_info *info = hci_get_drvdata(hdev); in btuart_hci_send_frame()
429 hdev->stat.cmd_tx++; in btuart_hci_send_frame()
432 hdev->stat.acl_tx++; in btuart_hci_send_frame()
435 hdev->stat.sco_tx++; in btuart_hci_send_frame()
457 struct hci_dev *hdev; in btuart_open() local
468 hdev = hci_alloc_dev(); in btuart_open()
469 if (!hdev) { in btuart_open()
474 info->hdev = hdev; in btuart_open()
476 hdev->bus = HCI_PCCARD; in btuart_open()
477 hci_set_drvdata(hdev, info); in btuart_open()
478 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in btuart_open()
480 hdev->open = btuart_hci_open; in btuart_open()
481 hdev->close = btuart_hci_close; in btuart_open()
482 hdev->flush = btuart_hci_flush; in btuart_open()
483 hdev->send = btuart_hci_send_frame; in btuart_open()
508 if (hci_register_dev(hdev) < 0) { in btuart_open()
510 info->hdev = NULL; in btuart_open()
511 hci_free_dev(hdev); in btuart_open()
523 struct hci_dev *hdev = info->hdev; in btuart_close() local
525 if (!hdev) in btuart_close()
528 btuart_hci_close(hdev); in btuart_close()
540 hci_unregister_dev(hdev); in btuart_close()
541 hci_free_dev(hdev); in btuart_close()