Lines Matching refs:offset
66 static uint32_t validate_otp_offset(uint32_t offset) in validate_otp_offset() argument
68 if ((offset & 0x3) || (offset > (AM_REG_OTP_SIZE - 4))) in validate_otp_offset()
85 uint32_t am_hal_otp_read_word(uint32_t offset, uint32_t *pVal) in am_hal_otp_read_word() argument
90 status = validate_otp_offset(offset); in am_hal_otp_read_word()
108 *pVal = am_hal_load_ui32((uint32_t *)(AM_REG_OTP_BASEADDR + offset)); in am_hal_otp_read_word()
111 *pVal = AM_REGVAL(AM_REG_OTP_BASEADDR + offset); in am_hal_otp_read_word()
147 uint32_t am_hal_otp_write_word(uint32_t offset, uint32_t value) in am_hal_otp_write_word() argument
152 status = validate_otp_offset(offset); in am_hal_otp_write_word()
165 otp_write_word_func(offset, value); in am_hal_otp_write_word()
167 if ((am_hal_load_ui32((uint32_t *)(AM_REG_OTP_BASEADDR + offset)) & value) != value) in am_hal_otp_write_word()
174 AM_REGVAL(AM_REG_OTP_BASEADDR + offset) = value; in am_hal_otp_write_word()
177 if ((AM_REGVAL(AM_REG_OTP_BASEADDR + offset) & value) != value) in am_hal_otp_write_word()