Lines Matching refs:hci_cmd_buffer
776 static uint8_t update_firmware(const char *firmware, const char *config, uint8_t *hci_cmd_buffer) { in update_firmware() argument
934 little_endian_store_16(hci_cmd_buffer, 0, HCI_OPCODE_HCI_RTK_DOWNLOAD_FW); in update_firmware()
935 HCI_CMD_SET_LENGTH(hci_cmd_buffer, len + 1); in update_firmware()
936 HCI_CMD_DOWNLOAD_SET_INDEX(hci_cmd_buffer, index); in update_firmware()
937 HCI_CMD_DOWNLOAD_COPY_FW_DATA(hci_cmd_buffer, patch_buf, fw_ptr, len); in update_firmware()
959 static btstack_chipset_result_t chipset_next_command(uint8_t *hci_cmd_buffer) { in chipset_next_command() argument
965 … memcpy(hci_cmd_buffer, hci_realtek_read_lmp_subversion, sizeof(hci_realtek_read_lmp_subversion)); in chipset_next_command()
969 … memcpy(hci_cmd_buffer, hci_realtek_read_hci_revision, sizeof(hci_realtek_read_hci_revision)); in chipset_next_command()
977 HCI_CMD_SET_OPCODE(hci_cmd_buffer, HCI_OPCODE_HCI_RTK_READ_ROM_VERSION); in chipset_next_command()
978 HCI_CMD_SET_LENGTH(hci_cmd_buffer, 0); in chipset_next_command()
982 … memcpy(hci_cmd_buffer, hci_realtek_read_sec_proj, sizeof(hci_realtek_read_sec_proj)); in chipset_next_command()
987 ret = update_firmware(firmware_file_path, config_file_path, hci_cmd_buffer); in chipset_next_command()
1001 HCI_CMD_SET_OPCODE(hci_cmd_buffer, HCI_OPCODE_HCI_RESET); in chipset_next_command()
1002 HCI_CMD_SET_LENGTH(hci_cmd_buffer, 0); in chipset_next_command()