Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/
Dnv_counters.c77 size_t counter_size; in read_otp_counter() local
82 err = tfm_plat_otp_get_size(id, &counter_size); in read_otp_counter()
87 counter_size = counter_size > OTP_COUNTER_MAX_SIZE ? OTP_COUNTER_MAX_SIZE in read_otp_counter()
88 : counter_size; in read_otp_counter()
90 err = tfm_plat_otp_read(id, counter_size, (uint8_t *)counter_value); in read_otp_counter()
95 err = count_zero_bits(counter_value, counter_size, &count); in read_otp_counter()
100 count = (counter_size * 8) - count; in read_otp_counter()
110 size_t counter_size; in read_otp_counter() local
116 err = tfm_plat_otp_get_size(id, &counter_size); in read_otp_counter()
121 counter_size = counter_size > OTP_COUNTER_MAX_SIZE ? OTP_COUNTER_MAX_SIZE in read_otp_counter()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps4/corstone315/
Dnv_counters.c36 size_t counter_size; in read_nv_counter_otp() local
42 err = tfm_plat_otp_get_size(id, &counter_size); in read_nv_counter_otp()
47 counter_size = counter_size > OTP_COUNTER_MAX_SIZE ? OTP_COUNTER_MAX_SIZE in read_nv_counter_otp()
48 : counter_size; in read_nv_counter_otp()
50 err = tfm_plat_otp_read(id, counter_size, (uint8_t *)counter_value); in read_nv_counter_otp()
56 for (idx = 0; idx < counter_size / sizeof(uint32_t); idx++) { in read_nv_counter_otp()
113 size_t counter_size; in set_nv_counter_otp() local
118 err = tfm_plat_otp_get_size(id, &counter_size); in set_nv_counter_otp()
123 counter_size = counter_size > OTP_COUNTER_MAX_SIZE ? OTP_COUNTER_MAX_SIZE in set_nv_counter_otp()
124 : counter_size; in set_nv_counter_otp()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/common/template/
Dnv_counters.c56 size_t counter_size; in read_nv_counter_otp() local
63 err = tfm_plat_otp_get_size(id, &counter_size); in read_nv_counter_otp()
68 counter_size = counter_size > OTP_COUNTER_MAX_SIZE ? OTP_COUNTER_MAX_SIZE : counter_size; in read_nv_counter_otp()
70 err = tfm_plat_otp_read(id, counter_size, counter_value); in read_nv_counter_otp()
76 for (byte_idx = 0; byte_idx < counter_size; byte_idx++) { in read_nv_counter_otp()
165 size_t counter_size; in set_nv_counter_otp() local
170 err = tfm_plat_otp_get_size(id, &counter_size); in set_nv_counter_otp()
175 counter_size = counter_size > OTP_COUNTER_MAX_SIZE ? OTP_COUNTER_MAX_SIZE : counter_size; in set_nv_counter_otp()
177 if (value > (8 * counter_size)) { in set_nv_counter_otp()
187 err = tfm_plat_otp_write(id, counter_size, counter_value); in set_nv_counter_otp()