Lines Matching refs:hdev

68 	struct hci_dev *hdev;  member
171 info->hdev->stat.byte_tx += len; in dtl1_write_wakeup()
216 info->hdev->stat.byte_rx++; in dtl1_receive()
263 hci_recv_frame(info->hdev, info->rx_skb); in dtl1_receive()
297 if (!info || !info->hdev) in dtl1_interrupt()
358 static int dtl1_hci_open(struct hci_dev *hdev) in dtl1_hci_open() argument
360 set_bit(HCI_RUNNING, &(hdev->flags)); in dtl1_hci_open()
366 static int dtl1_hci_flush(struct hci_dev *hdev) in dtl1_hci_flush() argument
368 struct dtl1_info *info = hci_get_drvdata(hdev); in dtl1_hci_flush()
377 static int dtl1_hci_close(struct hci_dev *hdev) in dtl1_hci_close() argument
379 if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags))) in dtl1_hci_close()
382 dtl1_hci_flush(hdev); in dtl1_hci_close()
388 static int dtl1_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in dtl1_hci_send_frame() argument
390 struct dtl1_info *info = hci_get_drvdata(hdev); in dtl1_hci_send_frame()
396 hdev->stat.cmd_tx++; in dtl1_hci_send_frame()
400 hdev->stat.acl_tx++; in dtl1_hci_send_frame()
404 hdev->stat.sco_tx++; in dtl1_hci_send_frame()
443 struct hci_dev *hdev; in dtl1_open() local
456 hdev = hci_alloc_dev(); in dtl1_open()
457 if (!hdev) { in dtl1_open()
462 info->hdev = hdev; in dtl1_open()
464 hdev->bus = HCI_PCCARD; in dtl1_open()
465 hci_set_drvdata(hdev, info); in dtl1_open()
466 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in dtl1_open()
468 hdev->open = dtl1_hci_open; in dtl1_open()
469 hdev->close = dtl1_hci_close; in dtl1_open()
470 hdev->flush = dtl1_hci_flush; in dtl1_open()
471 hdev->send = dtl1_hci_send_frame; in dtl1_open()
497 if (hci_register_dev(hdev) < 0) { in dtl1_open()
499 info->hdev = NULL; in dtl1_open()
500 hci_free_dev(hdev); in dtl1_open()
512 struct hci_dev *hdev = info->hdev; in dtl1_close() local
514 if (!hdev) in dtl1_close()
517 dtl1_hci_close(hdev); in dtl1_close()
529 hci_unregister_dev(hdev); in dtl1_close()
530 hci_free_dev(hdev); in dtl1_close()