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
364 static int dtl1_hci_flush(struct hci_dev *hdev) in dtl1_hci_flush() argument
366 struct dtl1_info *info = hci_get_drvdata(hdev); in dtl1_hci_flush()
375 static int dtl1_hci_close(struct hci_dev *hdev) in dtl1_hci_close() argument
377 dtl1_hci_flush(hdev); in dtl1_hci_close()
383 static int dtl1_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in dtl1_hci_send_frame() argument
385 struct dtl1_info *info = hci_get_drvdata(hdev); in dtl1_hci_send_frame()
391 hdev->stat.cmd_tx++; in dtl1_hci_send_frame()
395 hdev->stat.acl_tx++; in dtl1_hci_send_frame()
399 hdev->stat.sco_tx++; in dtl1_hci_send_frame()
438 struct hci_dev *hdev; in dtl1_open() local
451 hdev = hci_alloc_dev(); in dtl1_open()
452 if (!hdev) { in dtl1_open()
457 info->hdev = hdev; in dtl1_open()
459 hdev->bus = HCI_PCCARD; in dtl1_open()
460 hci_set_drvdata(hdev, info); in dtl1_open()
461 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in dtl1_open()
463 hdev->open = dtl1_hci_open; in dtl1_open()
464 hdev->close = dtl1_hci_close; in dtl1_open()
465 hdev->flush = dtl1_hci_flush; in dtl1_open()
466 hdev->send = dtl1_hci_send_frame; in dtl1_open()
492 if (hci_register_dev(hdev) < 0) { in dtl1_open()
494 info->hdev = NULL; in dtl1_open()
495 hci_free_dev(hdev); in dtl1_open()
507 struct hci_dev *hdev = info->hdev; in dtl1_close() local
509 if (!hdev) in dtl1_close()
512 dtl1_hci_close(hdev); in dtl1_close()
524 hci_unregister_dev(hdev); in dtl1_close()
525 hci_free_dev(hdev); in dtl1_close()