Searched refs:ecc_key_addr (Results 1 – 3 of 3) sorted by relevance
97 hi_u32 ecc_key_addr = { 0 }; in upg_get_boot_key_addr() local107 ecc_key_addr = ecc_key_addr | val; in upg_get_boot_key_addr()109 ecc_key_addr = ecc_key_addr | (val << BIT_U16); in upg_get_boot_key_addr()110 ctx->ecc_key_addr = ecc_key_addr; in upg_get_boot_key_addr()1092 if (ctx->ecc_key_addr == 0) { in upg_get_unencrpt_ecc_key()1096 ret = hi_flash_read(ctx->ecc_key_addr, key_len, key); in upg_get_unencrpt_ecc_key()1170 if ((ctx->ecc_key_addr == 0) || (ctx->ecc_key_addr < head->code_section_offset)) { in upg_get_decrpt_ecc_key()1173 hi_u32 data_len = upg_align_128bit(ctx->ecc_key_addr - head->code_section_offset + key_len); in upg_get_decrpt_ecc_key()1175 ctx->ecc_key_addr, data_len); in upg_get_decrpt_ecc_key()1192 …if (memcpy_s(key, key_len, raw_data + (ctx->ecc_key_addr - head->code_section_offset), key_len) !=… in upg_get_decrpt_ecc_key()
74 hi_u32 ecc_key_addr; /* flash addr of ecc key */ member
72 uintptr_t ecc_key_addr = ((uintptr_t)(&g_boot_ecc_key[0]) - (uintptr_t)(&__data_start)) + in boot_upg_save_ecc_key_pos() local74 hi_reg_write16(DIAG_CTL_GP_REG2_REG, (ecc_key_addr & MASK_U16)); in boot_upg_save_ecc_key_pos()75 hi_reg_write16(DIAG_CTL_GP_REG3_REG, (ecc_key_addr >> BIT_U16)); in boot_upg_save_ecc_key_pos()