Lines Matching refs:hdev

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