Home
last modified time | relevance | path

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

/trusted-firmware-m-3.6.0/platform/ext/common/template/
Dflash_otp_nv_counters_backend.c343 size_t erase_end_offset; in write_otp_nv_counters_flash() local
352 erase_end_offset = round_up(offset + cnt, TFM_OTP_NV_COUNTERS_SECTOR_SIZE); in write_otp_nv_counters_flash()
362 if (erase_end_offset > TFM_OTP_NV_COUNTERS_AREA_SIZE) { in write_otp_nv_counters_flash()
390 if (erase_end_offset <= swap_count_erase_start_offset) { in write_otp_nv_counters_flash()
401 erase_end_offset - erase_start_offset); in write_otp_nv_counters_flash()
407 if (erase_end_offset > swap_count_program_block_start_offset) { in write_otp_nv_counters_flash()
408 erase_end_offset = swap_count_program_block_start_offset; in write_otp_nv_counters_flash()
411 for (idx = erase_start_offset; idx < erase_end_offset; idx += copy_size) { in write_otp_nv_counters_flash()
412 if ((idx + sizeof(block)) <= erase_end_offset) { in write_otp_nv_counters_flash()
415 copy_size = erase_end_offset - idx; in write_otp_nv_counters_flash()
[all …]