Home
last modified time | relevance | path

Searched refs:erase_end_offset (Results 1 – 1 of 1) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/common/template/
Dflash_otp_nv_counters_backend.c341 size_t erase_end_offset; in write_otp_nv_counters_flash() local
350 erase_end_offset = round_up(offset + cnt, TFM_OTP_NV_COUNTERS_SECTOR_SIZE); in write_otp_nv_counters_flash()
360 if (erase_end_offset > TFM_OTP_NV_COUNTERS_AREA_SIZE) { in write_otp_nv_counters_flash()
388 if (erase_end_offset <= swap_count_erase_start_offset) { in write_otp_nv_counters_flash()
399 erase_end_offset - erase_start_offset); in write_otp_nv_counters_flash()
405 if (erase_end_offset > swap_count_program_block_start_offset) { in write_otp_nv_counters_flash()
406 erase_end_offset = swap_count_program_block_start_offset; in write_otp_nv_counters_flash()
409 for (idx = erase_start_offset; idx < erase_end_offset; idx += copy_size) { in write_otp_nv_counters_flash()
410 if ((idx + sizeof(block)) <= erase_end_offset) { in write_otp_nv_counters_flash()
413 copy_size = erase_end_offset - idx; in write_otp_nv_counters_flash()
[all …]