Lines Matching refs:otp_part
1202 if (!data->otp_part) { in stm32prog_otp_write()
1203 data->otp_part = memalign(CONFIG_SYS_CACHELINE_SIZE, OTP_SIZE); in stm32prog_otp_write()
1204 if (!data->otp_part) in stm32prog_otp_write()
1209 memset(data->otp_part, 0, OTP_SIZE); in stm32prog_otp_write()
1214 memcpy((void *)((u32)data->otp_part + offset), buffer, *size); in stm32prog_otp_write()
1233 if (!data->otp_part) in stm32prog_otp_read()
1234 data->otp_part = in stm32prog_otp_read()
1237 if (!data->otp_part) { in stm32prog_otp_read()
1243 memset(data->otp_part, 0, OTP_SIZE); in stm32prog_otp_read()
1247 (u32)data->otp_part, 0); in stm32prog_otp_read()
1252 if (!data->otp_part) { in stm32prog_otp_read()
1259 memcpy(buffer, (void *)((u32)data->otp_part + offset), *size); in stm32prog_otp_read()
1278 if (!data->otp_part) { in stm32prog_otp_start()
1284 (u32)data->otp_part, 0, 0, 0, 0, 0, &res); in stm32prog_otp_start()
1307 free(data->otp_part); in stm32prog_otp_start()
1308 data->otp_part = NULL; in stm32prog_otp_start()
1707 free(data->otp_part); in stm32prog_clean()