Lines Matching full:response
651 static int fb_read_var(char *cmd, char *response, in fb_read_var() argument
659 fb_add_string(response, chars_left, FASTBOOT_VERSION, NULL); in fb_read_var()
662 fb_add_string(response, chars_left, U_BOOT_VERSION, NULL); in fb_read_var()
665 fb_add_string(response, chars_left, "N/A", NULL); in fb_read_var()
668 fb_add_string(response, chars_left, CONFIG_SYS_BOARD, NULL); in fb_read_var()
673 fb_add_string(response, chars_left, s, NULL); in fb_read_var()
678 fb_add_string(response, chars_left, "yes", NULL); in fb_read_var()
681 fb_add_string(response, chars_left, "userdebug", NULL); in fb_read_var()
684 fb_add_number(response, chars_left, "0x%08x", in fb_read_var()
693 fb_add_string(response, chars_left, in fb_read_var()
711 fb_add_string(response, chars_left, in fb_read_var()
720 fb_add_string(response, chars_left, in fb_read_var()
726 fb_add_string(response, chars_left, in fb_read_var()
729 fb_add_string(response, chars_left, in fb_read_var()
736 snprintf(response, chars_left, "0x%llx", in fb_read_var()
740 fb_add_string(response, chars_left, "not implemented", NULL); in fb_read_var()
755 fb_add_string(response, chars_left, in fb_read_var()
759 fb_add_number(response, chars_left, in fb_read_var()
763 fb_add_string(response, chars_left, "not implemented", NULL); in fb_read_var()
774 fb_add_string(response, chars_left, in fb_read_var()
778 fb_add_number(response, chars_left, "0x"LBAF"", in fb_read_var()
782 fb_add_string(response, chars_left, "not implemented", NULL); in fb_read_var()
792 fb_add_string(response, chars_left, "yes", NULL); in fb_read_var()
794 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
796 fb_add_string(response, chars_left, "not implemented", NULL); in fb_read_var()
802 fb_add_string(response, chars_left, "not implemented", NULL); in fb_read_var()
806 fb_add_string(response, chars_left, "not implemented", NULL); in fb_read_var()
810 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
814 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
824 fb_add_number(response, chars_left, "%d", 0); in fb_read_var()
829 fb_add_string(response, chars_left, slot_count, NULL); in fb_read_var()
838 fb_add_string(response, chars_left, in fb_read_var()
846 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
848 fb_add_string(response, chars_left, "yes", NULL); in fb_read_var()
855 fb_add_string(response, chars_left, in fb_read_var()
858 fb_add_string(response, chars_left, "get error", NULL); in fb_read_var()
877 fb_add_string(response, chars_left, slot_suffixes, NULL); in fb_read_var()
886 fb_add_string(response, chars_left, in fb_read_var()
893 fb_add_string(response, chars_left, in fb_read_var()
901 fb_add_string(response, chars_left, in fb_read_var()
904 fb_add_string(response, chars_left, in fb_read_var()
908 fb_add_string(response, chars_left, in fb_read_var()
911 fb_add_string(response, chars_left, in fb_read_var()
914 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
925 fb_add_string(response, chars_left, in fb_read_var()
932 fb_add_string(response, chars_left, in fb_read_var()
942 fb_add_string(response, chars_left, in fb_read_var()
945 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
950 fb_add_string(response, chars_left, in fb_read_var()
953 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
955 fb_add_string(response, chars_left, "no", NULL); in fb_read_var()
965 fb_add_string(response, chars_left, in fb_read_var()
972 fb_add_string(response, chars_left, in fb_read_var()
979 fb_add_number(response, chars_left, in fb_read_var()
982 fb_add_number(response, chars_left, "%d", in fb_read_var()
986 strcpy(response, "FAILno"); in fb_read_var()
994 strcpy(response, "INFO"); in fb_read_var()
1000 memcpy(&response[4], cmd, chars_left); in fb_read_var()
1001 fastboot_tx_write_str(response); in fb_read_var()
1013 fb_add_string(response, chars_left, "get error", NULL); in fb_read_var()
1019 fb_add_string(response, chars_left, "get error", NULL); in fb_read_var()
1024 fb_add_string(response, chars_left, "merging", NULL); in fb_read_var()
1026 fb_add_string(response, chars_left, "snapshotted", NULL); in fb_read_var()
1028 fb_add_string(response, chars_left, "none", NULL); in fb_read_var()
1031 fb_add_string(response, chars_left, "get error", NULL); in fb_read_var()
1045 fb_add_string(response, chars_left, "dh not set", NULL); in fb_read_var()
1048 fb_add_string(response, chars_left, dhbuf, NULL); in fb_read_var()
1059 fb_add_string(response, chars_left, "dh not set", NULL); in fb_read_var()
1062 fb_add_string(response, chars_left, uuid, NULL); in fb_read_var()
1072 fb_add_string(response, chars_left, in fb_read_var()
1081 strncat(response, s, chars_left); in fb_read_var()
1084 fb_add_string(response, chars_left, in fb_read_var()
1143 static int fb_getvar_single(char *cmd, char *response, size_t chars_left) in fb_getvar_single() argument
1156 fb_add_string(response, chars_left, "unknown variable", NULL); in fb_getvar_single()
1160 if (fb_read_var(cmd, response, getvar_table[i].var, chars_left) < 0) in fb_getvar_single()
1168 char response[FASTBOOT_RESPONSE_LEN] = {0}; in fb_getvar_all() local
1176 strcpy(response, "INFO"); in fb_getvar_all()
1177 chars_left = sizeof(response) - strlen(response) - 1; in fb_getvar_all()
1178 actual_resp = response + strlen(response); in fb_getvar_all()
1196 fastboot_tx_write_str(response); in fb_getvar_all()
1240 fastboot_tx_write_str(response); in fb_getvar_all()
1259 fastboot_tx_write_str(response); in fb_getvar_all()
1300 fastboot_tx_write_str(response); in fb_getvar_all()
1315 fastboot_tx_write_str(response); in fb_getvar_all()
1327 fastboot_tx_write_str(response); in fb_getvar_all()
1337 fastboot_tx_write_str(response); in fb_getvar_all()
1342 fastboot_tx_write_str(response); in fb_getvar_all()
1355 fastboot_tx_write_str(response); in fb_getvar_all()
1369 fastboot_tx_write_str(response); in fb_getvar_all()
1382 fastboot_tx_write_str(response); in fb_getvar_all()
1387 fastboot_tx_write_str(response); in fb_getvar_all()
1400 fastboot_tx_write_str(response); in fb_getvar_all()
1407 fastboot_tx_write_str(response); in fb_getvar_all()
1411 fastboot_tx_write_str(response); in fb_getvar_all()
1416 fastboot_tx_write_str(response); in fb_getvar_all()
1430 fastboot_tx_write_str(response); in fb_getvar_all()
1508 char response[FASTBOOT_RESPONSE_LEN] = {0}; in cb_getvar() local
1526 strcpy(response, "OKAY"); in cb_getvar()
1527 chars_left = sizeof(response) - strlen(response) - 1; in cb_getvar()
1529 if (fb_getvar_single(cmd, &response[strlen(response)], in cb_getvar()
1532 strncat(cmd, &response[strlen(response)], chars_left); in cb_getvar()
1536 fastboot_tx_write_str(response); in cb_getvar()
1569 char response[FASTBOOT_RESPONSE_LEN]; in rx_handler_dl_image() local
1606 strcpy(response, "OKAY"); in rx_handler_dl_image()
1607 fastboot_tx_write_str(response); in rx_handler_dl_image()
1621 char response[FASTBOOT_RESPONSE_LEN]; in cb_download() local
1630 strcpy(response, "FAILdata invalid size"); in cb_download()
1633 strcpy(response, "FAILdata too large"); in cb_download()
1635 sprintf(response, "DATA%08x", download_size); in cb_download()
1640 fastboot_tx_write_str(response); in cb_download()
1687 /* Remove the transfer callback which response the upload */ in tx_handler_ul()
1699 char response[FASTBOOT_RESPONSE_LEN]; in cb_upload() local
1704 strcpy(response, "FAILdata invalid size"); in cb_upload()
1707 sprintf(response, "DATA%08x", upload_size); in cb_upload()
1711 fastboot_tx_write_str(response); in cb_upload()
1789 char response[FASTBOOT_RESPONSE_LEN] = {0}; in cb_flash() local
1826 fastboot_fail("no flash device defined", response); in cb_flash()
1829 download_bytes, response); in cb_flash()
1833 download_bytes, response); in cb_flash()
1835 fastboot_tx_write_str(response); in cb_flash()
2171 } else if (strncmp("at-set-ca-response", cmd + 4, 18) == 0) { in cb_oem()
2292 char response[FASTBOOT_RESPONSE_LEN] = {0}; in cb_erase() local
2309 fastboot_fail("no flash device defined", response); in cb_erase()
2311 fb_mmc_erase(cmd, response); in cb_erase()
2314 fb_nand_erase(cmd, response); in cb_erase()
2316 fastboot_tx_write_str(response); in cb_erase()