Lines Matching refs:info_cb

211 static struct otp_info_cb info_cb;  variable
372 if (info_cb.version == OTP_A2 || info_cb.version == OTP_A3) { in otp_soak()
563 if (info_cb.version != OTP_A3) in _otp_prog_bit()
623 if (info_cb.version != OTP_A3) in otp_prog_dw()
714 if (info_cb.version == OTP_A0) { in otp_strap_status()
884 if (info_cb.version == OTP_A0) in otp_print_strap()
937 const struct scu_info *scu_info = info_cb.scu_info; in otp_print_scu_image()
950 for (i = 0; i < info_cb.scu_info_len; i++) { in otp_print_scu_image()
987 const struct scu_info *scu_info = info_cb.scu_info; in otp_print_scu_info()
1000 for (i = 0; i < info_cb.scu_info_len; i++) { in otp_print_scu_info()
1032 const struct otpconf_info *conf_info = info_cb.conf_info; in otp_print_conf_image()
1050 for (i = 0; i < info_cb.conf_info_len; i++) { in otp_print_conf_image()
1152 const struct otpconf_info *conf_info = info_cb.conf_info; in otp_print_conf_info()
1168 for (i = 0; i < info_cb.conf_info_len; i++) { in otp_print_conf_info()
1221 const struct otpstrap_info *strap_info = info_cb.strap_info; in otp_print_strap_image()
1241 for (i = 0; i < info_cb.strap_info_len; i++) { in otp_print_strap_image()
1293 const struct otpstrap_info *strap_info = info_cb.strap_info; in otp_print_strap_info()
1311 for (i = 0; i < info_cb.strap_info_len; i++) { in otp_print_strap_info()
1369 const struct otpkey_type *key_info_array = info_cb.key_info; in _otp_print_key()
1384 for (i = 0; i < info_cb.key_info_len; i++) { in _otp_print_key()
1445 if (info_cb.version == OTP_A0) { in _otp_print_key()
1451 if (info_cb.version == OTP_A0) { in _otp_print_key()
1990 if (image_soc_ver != info_cb.version) { in otp_prog_image()
2014 if (info_cb.pro_sts.mem_lock) { in otp_prog_image()
2020 if (info_cb.pro_sts.pro_data) { in otp_prog_image()
2024 if (info_cb.pro_sts.pro_sec) { in otp_prog_image()
2037 if (info_cb.pro_sts.pro_conf) { in otp_prog_image()
2050 if (info_cb.pro_sts.pro_strap) { in otp_prog_image()
2062 if (info_cb.pro_sts.pro_strap) { in otp_prog_image()
2375 if (info_cb.pro_sts.pro_key_ret) { in otp_retire_key()
2500 const struct otpkey_type *key_info_array = info_cb.key_info; in parse_data()
2510 for (j = 0; j < info_cb.key_info_len; j++) { in parse_data()
2880 if (info_cb.pro_sts.mem_lock) { in do_otppb()
2885 if (info_cb.pro_sts.sec_size == 0) { in do_otppb()
2886 if (info_cb.pro_sts.pro_data) { in do_otppb()
2890 } else if (otp_addr < info_cb.pro_sts.sec_size && otp_addr >= 16) { in do_otppb()
2893 } else if (otp_addr < info_cb.pro_sts.sec_size) { in do_otppb()
2895 if (info_cb.pro_sts.pro_sec) { in do_otppb()
2899 } else if (info_cb.pro_sts.pro_data) { in do_otppb()
2905 if (info_cb.pro_sts.pro_conf) { in do_otppb()
2930 if (info_cb.pro_sts.pro_key_ret) { in do_otppb()
2951 if (info_cb.pro_sts.pro_strap) { in do_otppb()
2954 } else if ((otp_addr < 30 && info_cb.version == OTP_A0) || in do_otppb()
2955 (otp_addr < 28 && info_cb.version != OTP_A0)) { in do_otppb()
2968 if (info_cb.pro_sts.pro_strap) { in do_otppb()
3070 if (info_cb.pro_sts.pro_strap) { in do_otpprotect()
3133 if (info_cb.pro_sts.pro_strap) { in do_otp_scuprotect()
3166 printf("SOC OTP version: %s\n", info_cb.ver_name); in do_otpver()
3350 info_cb.version = OTP_A0; in do_ast_otp()
3351 info_cb.conf_info = a0_conf_info; in do_ast_otp()
3352 info_cb.conf_info_len = ARRAY_SIZE(a0_conf_info); in do_ast_otp()
3353 info_cb.strap_info = a0_strap_info; in do_ast_otp()
3354 info_cb.strap_info_len = ARRAY_SIZE(a0_strap_info); in do_ast_otp()
3355 info_cb.key_info = a0_key_type; in do_ast_otp()
3356 info_cb.key_info_len = ARRAY_SIZE(a0_key_type); in do_ast_otp()
3357 sprintf(info_cb.ver_name, "A0"); in do_ast_otp()
3360 info_cb.version = OTP_A1; in do_ast_otp()
3361 info_cb.conf_info = a1_conf_info; in do_ast_otp()
3362 info_cb.conf_info_len = ARRAY_SIZE(a1_conf_info); in do_ast_otp()
3363 info_cb.strap_info = a1_strap_info; in do_ast_otp()
3364 info_cb.strap_info_len = ARRAY_SIZE(a1_strap_info); in do_ast_otp()
3365 info_cb.key_info = a1_key_type; in do_ast_otp()
3366 info_cb.key_info_len = ARRAY_SIZE(a1_key_type); in do_ast_otp()
3367 info_cb.scu_info = a1_scu_info; in do_ast_otp()
3368 info_cb.scu_info_len = ARRAY_SIZE(a1_scu_info); in do_ast_otp()
3369 sprintf(info_cb.ver_name, "A1"); in do_ast_otp()
3372 info_cb.version = OTP_A2; in do_ast_otp()
3373 info_cb.conf_info = a2_conf_info; in do_ast_otp()
3374 info_cb.conf_info_len = ARRAY_SIZE(a2_conf_info); in do_ast_otp()
3375 info_cb.strap_info = a1_strap_info; in do_ast_otp()
3376 info_cb.strap_info_len = ARRAY_SIZE(a1_strap_info); in do_ast_otp()
3377 info_cb.key_info = a2_key_type; in do_ast_otp()
3378 info_cb.key_info_len = ARRAY_SIZE(a2_key_type); in do_ast_otp()
3379 info_cb.scu_info = a1_scu_info; in do_ast_otp()
3380 info_cb.scu_info_len = ARRAY_SIZE(a1_scu_info); in do_ast_otp()
3381 sprintf(info_cb.ver_name, "A2"); in do_ast_otp()
3384 info_cb.version = OTP_A3; in do_ast_otp()
3385 info_cb.conf_info = a3_conf_info; in do_ast_otp()
3386 info_cb.conf_info_len = ARRAY_SIZE(a3_conf_info); in do_ast_otp()
3387 info_cb.strap_info = a1_strap_info; in do_ast_otp()
3388 info_cb.strap_info_len = ARRAY_SIZE(a1_strap_info); in do_ast_otp()
3389 info_cb.key_info = a3_key_type; in do_ast_otp()
3390 info_cb.key_info_len = ARRAY_SIZE(a3_key_type); in do_ast_otp()
3391 info_cb.scu_info = a1_scu_info; in do_ast_otp()
3392 info_cb.scu_info_len = ARRAY_SIZE(a1_scu_info); in do_ast_otp()
3393 sprintf(info_cb.ver_name, "A3"); in do_ast_otp()
3402 pro_sts = &info_cb.pro_sts; in do_ast_otp()