• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/bluetooth/

Lines Matching refs:hdev

91 	struct hci_dev *hdev = hu->hdev;
96 hdev->stat.cmd_tx++;
100 hdev->stat.acl_tx++;
104 hdev->stat.cmd_tx++;
124 struct hci_dev *hdev = hu->hdev;
142 hdev->stat.byte_tx += len;
163 static int hci_uart_open(struct hci_dev *hdev)
165 BT_DBG("%s %p", hdev->name, hdev);
169 set_bit(HCI_RUNNING, &hdev->flags);
175 static int hci_uart_flush(struct hci_dev *hdev)
177 struct hci_uart *hu = (struct hci_uart *) hdev->driver_data;
180 BT_DBG("hdev %p tty %p", hdev, tty);
197 static int hci_uart_close(struct hci_dev *hdev)
199 BT_DBG("hdev %p", hdev);
201 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags))
204 hci_uart_flush(hdev);
205 hdev->flush = NULL;
212 struct hci_dev* hdev = (struct hci_dev *) skb->dev;
215 if (!hdev) {
216 BT_ERR("Frame for unknown device (hdev=NULL)");
220 if (!test_bit(HCI_RUNNING, &hdev->flags))
223 hu = (struct hci_uart *) hdev->driver_data;
225 BT_DBG("%s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type, skb->len);
234 static void hci_uart_destruct(struct hci_dev *hdev)
236 if (!hdev)
239 BT_DBG("%s", hdev->name);
240 kfree(hdev->driver_data);
303 struct hci_dev *hdev = hu->hdev;
305 if (hdev)
306 hci_uart_close(hdev);
310 hci_unregister_dev(hdev);
311 hci_free_dev(hdev);
366 hu->hdev->stat.byte_rx += count;
374 struct hci_dev *hdev;
379 hdev = hci_alloc_dev();
380 if (!hdev) {
385 hu->hdev = hdev;
387 hdev->bus = HCI_UART;
388 hdev->driver_data = hu;
390 hdev->open = hci_uart_open;
391 hdev->close = hci_uart_close;
392 hdev->flush = hci_uart_flush;
393 hdev->send = hci_uart_send_frame;
394 hdev->destruct = hci_uart_destruct;
396 hdev->owner = THIS_MODULE;
399 set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks);
402 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
404 if (hci_register_dev(hdev) < 0) {
406 hci_free_dev(hdev);
481 return hu->hdev->id;