Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_otp.c29 size_t copy_size; in cc3xx_lowlevel_otp_write() local
41 copy_size = sizeof(word) - start_offset; in cc3xx_lowlevel_otp_write()
42 if (in_done + copy_size > size) { in cc3xx_lowlevel_otp_write()
43 copy_size = size - in_done; in cc3xx_lowlevel_otp_write()
46 memcpy(((uint8_t *)&word) + start_offset, buf + in_done, copy_size); in cc3xx_lowlevel_otp_write()
49 if (memcmp(((uint8_t *)&word) + start_offset, buf + in_done, copy_size)) { in cc3xx_lowlevel_otp_write()
53 in_done += copy_size; in cc3xx_lowlevel_otp_write()
63 copy_size = sizeof(word) - start_offset; in cc3xx_lowlevel_otp_write()
64 if (in_done + copy_size > size) { in cc3xx_lowlevel_otp_write()
65 copy_size = size - in_done; in cc3xx_lowlevel_otp_write()
[all …]
Dcc3xx_rng.c126 size_t copy_size; in cc3xx_lowlevel_rng_get_random() local
132 copy_size = sizeof(entropy_buf) - entropy_buf_used_idx < length ? in cc3xx_lowlevel_rng_get_random()
136 memcpy(buf, ((uint8_t *)entropy_buf) + entropy_buf_used_idx, copy_size); in cc3xx_lowlevel_rng_get_random()
137 length -= copy_size; in cc3xx_lowlevel_rng_get_random()
138 buf += copy_size; in cc3xx_lowlevel_rng_get_random()
139 entropy_buf_used_idx += copy_size; in cc3xx_lowlevel_rng_get_random()
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/
Drse_trng.c24 size_t copy_size; in bl1_trng_generate_random() local
28 copy_size = sizeof(uint32_t) - ((uintptr_t)output % sizeof(uint32_t)); in bl1_trng_generate_random()
29 copy_size = output_size < copy_size ? output_size : copy_size; in bl1_trng_generate_random()
30 memcpy(output, &random_word, copy_size); in bl1_trng_generate_random()
31 output += copy_size; in bl1_trng_generate_random()
32 output_size -= copy_size; in bl1_trng_generate_random()
41 copy_size = output_size % sizeof(uint32_t); in bl1_trng_generate_random()
42 memcpy(output, &random_word, copy_size); in bl1_trng_generate_random()
Dattest_hal.c52 size_t copy_size; in tfm_attest_hal_get_verification_service() local
65 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_verification_service()
67 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_verification_service()
77 size_t copy_size; in tfm_attest_hal_get_profile_definition() local
90 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_profile_definition()
92 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_profile_definition()
107 size_t copy_size; in tfm_plat_get_implementation_id() local
120 copy_size = *size < otp_size ? *size : otp_size; in tfm_plat_get_implementation_id()
122 *size = copy_size; in tfm_plat_get_implementation_id()
/trusted-firmware-m-3.7.0/platform/ext/common/template/
Dattest_hal.c51 size_t copy_size; in tfm_attest_hal_get_verification_service() local
64 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_verification_service()
66 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_verification_service()
76 size_t copy_size; in tfm_attest_hal_get_profile_definition() local
89 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_profile_definition()
91 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_profile_definition()
113 size_t copy_size; in tfm_plat_get_implementation_id() local
126 copy_size = *size < otp_size ? *size : otp_size; in tfm_plat_get_implementation_id()
128 *size = copy_size; in tfm_plat_get_implementation_id()
137 size_t copy_size; in tfm_plat_get_cert_ref() local
[all …]
Dflash_otp_nv_counters_backend.c261 size_t copy_size; in copy_flash_region() local
272 for(idx = 0; idx < end; idx += copy_size) { in copy_flash_region()
273 copy_size = (idx + sizeof(block)) <= end ? sizeof(block) : end - idx; in copy_flash_region()
275 err = OTP_NV_COUNTERS_FLASH_DEV.ReadData(from + idx, block, copy_size / data_width); in copy_flash_region()
280 err = OTP_NV_COUNTERS_FLASH_DEV.ProgramData(to + idx, block, copy_size / data_width); in copy_flash_region()
341 size_t copy_size; in write_otp_nv_counters_flash() local
411 for (idx = erase_start_offset; idx < erase_end_offset; idx += copy_size) { in write_otp_nv_counters_flash()
413 copy_size = sizeof(block); in write_otp_nv_counters_flash()
415 copy_size = erase_end_offset - idx; in write_otp_nv_counters_flash()
420 copy_size / data_width); in write_otp_nv_counters_flash()
[all …]
Dotp_flash.c32 size_t copy_size; in write_to_output() local
39 copy_size = out_len < value_size ? out_len : value_size; in write_to_output()
41 err = read_otp_nv_counters_flash(offset, out, copy_size); in write_to_output()
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps4/corstone315/
Dattest_hal.c52 size_t copy_size; in tfm_attest_hal_get_verification_service() local
65 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_verification_service()
67 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_verification_service()
77 size_t copy_size; in tfm_attest_hal_get_profile_definition() local
90 copy_size = *size < otp_size ? *size : otp_size; in tfm_attest_hal_get_profile_definition()
92 *size = tfm_strnlen((char*)buf, copy_size); in tfm_attest_hal_get_profile_definition()
114 size_t copy_size; in tfm_plat_get_implementation_id() local
127 copy_size = *size < otp_size ? *size : otp_size; in tfm_plat_get_implementation_id()
129 *size = copy_size; in tfm_plat_get_implementation_id()
138 size_t copy_size; in tfm_plat_get_cert_ref() local
[all …]
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/
Dotp_cc312.c283 size_t copy_size; in otp_read() local
306 copy_size = sizeof(word) - start_offset; in otp_read()
307 if (out_done + copy_size > total_copy_size) { in otp_read()
308 copy_size = total_copy_size - out_done; in otp_read()
312 memcpy(out + out_done, ((uint8_t*)&word) + start_offset, copy_size); in otp_read()
313 out_done += copy_size; in otp_read()
356 size_t copy_size; in otp_write() local
374 copy_size = sizeof(word) - start_offset; in otp_write()
375 if (in_done + copy_size > in_len) { in otp_write()
376 copy_size = in_len - in_done; in otp_write()
[all …]