Lines Matching defs:hdev

117 		bt_dev_err(hu->hdev, "Device boot interrupted");
122 bt_dev_err(hu->hdev, "Device boot timeout");
140 bt_dev_err(hu->hdev, "LPM transaction interrupted");
145 bt_dev_err(hu->hdev, "LPM transaction timeout");
165 bt_dev_dbg(hu->hdev, "Suspending");
169 bt_dev_err(hu->hdev, "Failed to alloc memory for LPM packet");
188 bt_dev_err(hu->hdev, "Device suspend error");
192 bt_dev_dbg(hu->hdev, "Suspended");
208 bt_dev_dbg(hu->hdev, "Resuming");
214 bt_dev_err(hu->hdev, "Failed to alloc memory for LPM packet");
232 bt_dev_err(hu->hdev, "Device resume error");
236 bt_dev_dbg(hu->hdev, "Resumed");
254 bt_dev_err(hu->hdev, "Failed to alloc memory for LPM packet");
265 bt_dev_dbg(hu->hdev, "Resumed by controller");
437 static int inject_cmd_complete(struct hci_dev *hdev, __u16 opcode)
459 return hci_recv_frame(hdev, skb);
465 struct hci_dev *hdev = hu->hdev;
481 bt_dev_info(hdev, "Change controller speed to %d", speed);
485 bt_dev_err(hdev, "Unsupported speed");
492 skb = __hci_cmd_sync(hdev, 0xfc05, 0, NULL, HCI_CMD_TIMEOUT);
494 bt_dev_err(hdev, "Reading Intel version information failed (%ld)",
502 bt_dev_err(hdev, "Failed to alloc memory for baudrate packet");
526 struct hci_dev *hdev = hu->hdev;
540 bt_dev_dbg(hdev, "start intel_setup");
542 hu->hdev->set_diag = btintel_set_diag;
543 hu->hdev->set_bdaddr = btintel_set_bdaddr;
581 err = btintel_read_version(hdev, &ver);
589 bt_dev_err(hdev, "Unsupported Intel hardware platform (%u)",
606 bt_dev_err(hdev, "Unsupported Intel hardware variant (%u)",
611 btintel_version_info(hdev, &ver);
628 btintel_check_bdaddr(hdev);
636 bt_dev_err(hdev, "Unsupported Intel firmware variant (%u)",
644 err = btintel_read_boot_params(hdev, &params);
653 bt_dev_err(hdev, "Unsupported Intel firmware loading method (%u)",
662 bt_dev_info(hdev, "No device address configured");
663 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
697 bt_dev_err(hdev, "Unsupported Intel hardware variant (%u)",
702 err = request_firmware(&fw, fwname, &hdev->dev);
704 bt_dev_err(hdev, "Failed to load Intel firmware file (%d)",
709 bt_dev_info(hdev, "Found device firmware: %s", fwname);
723 bt_dev_err(hdev, "Unsupported Intel hardware variant (%u)",
729 bt_dev_err(hdev, "Invalid size of firmware file (%zu)",
738 err = btintel_download_firmware(hdev, fw, &boot_param);
744 bt_dev_info(hdev, "Waiting for firmware download to complete");
761 bt_dev_err(hdev, "Firmware loading interrupted");
767 bt_dev_err(hdev, "Firmware loading timeout");
773 bt_dev_err(hdev, "Firmware loading failed");
782 bt_dev_info(hdev, "Firmware loaded in %llu usecs", duration);
801 err = btintel_send_intel_reset(hdev, boot_param);
812 bt_dev_info(hdev, "Waiting for device to boot");
824 bt_dev_info(hdev, "Device booted in %llu usecs", duration);
844 btintel_load_ddc_config(hdev, fwname);
846 skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, HCI_CMD_TIMEOUT);
857 bt_dev_info(hdev, "Setup complete");
864 static int intel_recv_event(struct hci_dev *hdev, struct sk_buff *skb)
866 struct hci_uart *hu = hci_get_drvdata(hdev);
899 return hci_recv_frame(hdev, skb);
902 static void intel_recv_lpm_notify(struct hci_dev *hdev, int value)
904 struct hci_uart *hu = hci_get_drvdata(hdev);
907 bt_dev_dbg(hdev, "TX idle notification (%d)", value);
917 static int intel_recv_lpm(struct hci_dev *hdev, struct sk_buff *skb)
920 struct hci_uart *hu = hci_get_drvdata(hdev);
926 bt_dev_err(hu->hdev, "Invalid LPM notification packet");
929 intel_recv_lpm_notify(hdev, lpm->data[0]);
942 bt_dev_err(hdev, "Unknown LPM opcode (%02x)", lpm->opcode);
972 intel->rx_skb = h4_recv_buf(hu->hdev, intel->rx_skb, data, count,
977 bt_dev_err(hu->hdev, "Frame reassembly failed (%d)", err);
1034 inject_cmd_complete(hu->hdev, opcode);