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

Lines Matching refs:hdev

53 	struct hci_dev *hdev;
57 hdev = hst->hdev;
62 hdev->stat.cmd_tx++;
66 hdev->stat.acl_tx++;
70 hdev->stat.cmd_tx++;
135 skb->dev = (struct net_device *)lhst->hdev;
146 lhst->hdev->stat.byte_rx += len;
155 static int hci_st_open(struct hci_dev *hdev)
165 BT_DRV_DBG("%s %p", hdev->name, hdev);
269 set_bit(HCI_RUNNING, &hdev->flags);
279 static int hci_st_close(struct hci_dev *hdev)
302 if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) {
314 struct hci_dev *hdev;
325 hdev = (struct hci_dev *)skb->dev;
326 if (!hdev) {
327 BT_DRV_ERR("SKB received for invalid HCI Device (hdev=NULL)");
331 if (!test_bit(HCI_RUNNING, &hdev->flags)) {
337 hst = (struct hci_st *)hdev->driver_data;
342 BT_DRV_DBG(" %s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type,
365 hdev->stat.byte_tx += len;
372 static void hci_st_destruct(struct hci_dev *hdev)
376 if (!hdev) {
378 "(hdev=NULL)");
383 BT_DRV_DBG("%s", hdev->name);
386 if (hdev->driver_data != NULL)
387 kfree(hdev->driver_data);
396 struct hci_dev *hdev;
401 hdev = hci_alloc_dev();
402 if (!hdev) {
407 BT_DRV_DBG(" HCI device allocated. hdev= %p", hdev);
409 hst->hdev = hdev;
410 hdev->bus = HCI_UART;
411 hdev->driver_data = hst;
412 hdev->open = hci_st_open;
413 hdev->close = hci_st_close;
414 hdev->flush = NULL;
415 hdev->send = hci_st_send_frame;
416 hdev->destruct = hci_st_destruct;
417 hdev->owner = THIS_MODULE;
420 set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks);
422 if (hci_register_dev(hdev) < 0) {
424 hci_free_dev(hdev);
429 BT_DRV_DBG(" HCI device registered. hdev= %p", hdev);
478 struct hci_dev *hdev = hst->hdev;
480 if (hdev == NULL) {
481 BT_DRV_ERR("Invalid hdev memory");
484 hci_st_close(hdev);
489 hci_unregister_dev(hdev);
492 hci_free_dev(hdev);