Lines Matching defs:hdev
357 static int ll_recv_frame(struct hci_dev *hdev, struct sk_buff *skb)
359 struct hci_uart *hu = hci_get_drvdata(hdev);
369 bt_dev_err(hdev, "received HCILL_GO_TO_SLEEP_ACK in state %ld",
432 ll->rx_skb = h4_recv_buf(hu->hdev, ll->rx_skb, data, count,
436 bt_dev_err(hu->hdev, "Frame reassembly failed (%d)", err);
452 static int read_local_version(struct hci_dev *hdev)
459 skb = __hci_cmd_sync(hdev, HCI_OP_READ_LOCAL_VERSION, 0, NULL,
462 bt_dev_err(hdev, "Reading TI version information failed (%ld)",
481 bt_dev_err(hdev, "Failed to read TI version info: %d", err);
495 bt_dev_warn(lldev->hu.hdev,
500 bt_dev_dbg(lldev->hu.hdev, "command type %d", cmd->prefix);
502 skb = __hci_cmd_sync(lldev->hu.hdev, cmd->opcode, cmd->plen,
505 bt_dev_err(lldev->hu.hdev, "send command failed");
526 version = read_local_version(lldev->hu.hdev);
542 bt_dev_err(lldev->hu.hdev, "request_firmware failed(errno %d) for %s",
555 bt_dev_dbg(lldev->hu.hdev, " action size %d, type %d ",
563 bt_dev_dbg(lldev->hu.hdev, "S");
571 bt_dev_dbg(lldev->hu.hdev, "W");
574 bt_dev_info(lldev->hu.hdev, "sleep command in scr");
590 static int ll_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
600 skb = __hci_cmd_sync(hdev, HCI_VS_WRITE_BD_ADDR, sizeof(bdaddr_t),
620 hu->hdev->set_bdaddr = ll_set_bdaddr;
631 bt_dev_err(hu->hdev, "Failed to get CTS");
640 bt_dev_err(hu->hdev, "download firmware failed, retrying...");
651 set_bit(HCI_QUIRK_INVALID_BDADDR, &hu->hdev->quirks);
653 err = ll_set_bdaddr(hu->hdev, &lldev->bdaddr);
655 set_bit(HCI_QUIRK_INVALID_BDADDR, &hu->hdev->quirks);
670 skb = __hci_cmd_sync(hu->hdev, HCI_VS_UPDATE_UART_HCI_BAUDRATE,