Lines Matching refs:hdev

73 	struct hci_dev *hdev;  member
211 info->hdev->stat.byte_tx += len; in bt3c_write_wakeup()
234 info->hdev->stat.byte_rx++; in bt3c_receive()
273 info->hdev->stat.err_rx++; in bt3c_receive()
274 clear_bit(HCI_RUNNING, &(info->hdev->flags)); in bt3c_receive()
319 hci_recv_frame(info->hdev, info->rx_skb); in bt3c_receive()
342 if (!info || !info->hdev) in bt3c_interrupt()
359 BT_INFO("%s: Antenna %s", info->hdev->name, in bt3c_interrupt()
386 static int bt3c_hci_flush(struct hci_dev *hdev) in bt3c_hci_flush() argument
388 struct bt3c_info *info = hci_get_drvdata(hdev); in bt3c_hci_flush()
397 static int bt3c_hci_open(struct hci_dev *hdev) in bt3c_hci_open() argument
399 set_bit(HCI_RUNNING, &(hdev->flags)); in bt3c_hci_open()
405 static int bt3c_hci_close(struct hci_dev *hdev) in bt3c_hci_close() argument
407 if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags))) in bt3c_hci_close()
410 bt3c_hci_flush(hdev); in bt3c_hci_close()
416 static int bt3c_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in bt3c_hci_send_frame() argument
418 struct bt3c_info *info = hci_get_drvdata(hdev); in bt3c_hci_send_frame()
423 hdev->stat.cmd_tx++; in bt3c_hci_send_frame()
426 hdev->stat.acl_tx++; in bt3c_hci_send_frame()
429 hdev->stat.sco_tx++; in bt3c_hci_send_frame()
540 struct hci_dev *hdev; in bt3c_open() local
552 hdev = hci_alloc_dev(); in bt3c_open()
553 if (!hdev) { in bt3c_open()
558 info->hdev = hdev; in bt3c_open()
560 hdev->bus = HCI_PCCARD; in bt3c_open()
561 hci_set_drvdata(hdev, info); in bt3c_open()
562 SET_HCIDEV_DEV(hdev, &info->p_dev->dev); in bt3c_open()
564 hdev->open = bt3c_hci_open; in bt3c_open()
565 hdev->close = bt3c_hci_close; in bt3c_open()
566 hdev->flush = bt3c_hci_flush; in bt3c_open()
567 hdev->send = bt3c_hci_send_frame; in bt3c_open()
589 err = hci_register_dev(hdev); in bt3c_open()
598 info->hdev = NULL; in bt3c_open()
599 hci_free_dev(hdev); in bt3c_open()
606 struct hci_dev *hdev = info->hdev; in bt3c_close() local
608 if (!hdev) in bt3c_close()
611 bt3c_hci_close(hdev); in bt3c_close()
613 hci_unregister_dev(hdev); in bt3c_close()
614 hci_free_dev(hdev); in bt3c_close()