Lines Matching refs:value

182 	uint32_t value;  in bsec_set_config()  local
185 value = ((((uint32_t)cfg->freq << BSEC_CONF_FRQ_SHIFT) & in bsec_set_config()
194 mmio_write_32(bsec_base + BSEC_OTP_CONF_OFF, value); in bsec_set_config()
204 value = ((((uint32_t)cfg->upper_otp_lock << UPPER_OTP_LOCK_SHIFT) & in bsec_set_config()
213 mmio_write_32(bsec_base + BSEC_OTP_LOCK_OFF, value); in bsec_set_config()
227 uint32_t value; in bsec_get_config() local
233 value = mmio_read_32(bsec_base + BSEC_OTP_CONF_OFF); in bsec_get_config()
234 cfg->power = (uint8_t)((value & BSEC_CONF_POWER_UP_MASK) >> in bsec_get_config()
236 cfg->freq = (uint8_t)((value & BSEC_CONF_FRQ_MASK) >> in bsec_get_config()
238 cfg->pulse_width = (uint8_t)((value & BSEC_CONF_PRG_WIDTH_MASK) >> in bsec_get_config()
240 cfg->tread = (uint8_t)((value & BSEC_CONF_TREAD_MASK) >> in bsec_get_config()
243 value = mmio_read_32(bsec_base + BSEC_OTP_LOCK_OFF); in bsec_get_config()
244 cfg->upper_otp_lock = (uint8_t)((value & UPPER_OTP_LOCK_MASK) >> in bsec_get_config()
246 cfg->den_lock = (uint8_t)((value & DENREG_LOCK_MASK) >> in bsec_get_config()
248 cfg->prog_lock = (uint8_t)((value & GPLOCK_LOCK_MASK) >> in bsec_get_config()
574 bool bsec_write_sr_lock(uint32_t otp, uint32_t value) in bsec_write_sr_lock() argument
585 if ((bank_value & otp_mask) == value) { in bsec_write_sr_lock()
590 if (value != 0U) { in bsec_write_sr_lock()
594 if (value != 0U) { in bsec_write_sr_lock()
635 bool bsec_write_sw_lock(uint32_t otp, uint32_t value) in bsec_write_sw_lock() argument
646 if ((bank_value & otp_mask) == value) { in bsec_write_sw_lock()
651 if (value != 0U) { in bsec_write_sw_lock()
655 if (value != 0U) { in bsec_write_sw_lock()
696 bool bsec_write_sp_lock(uint32_t otp, uint32_t value) in bsec_write_sp_lock() argument
707 if ((bank_value & otp_mask) == value) { in bsec_write_sp_lock()
712 if (value != 0U) { in bsec_write_sp_lock()
716 if (value != 0U) { in bsec_write_sp_lock()
778 uint32_t bsec_otp_lock(uint32_t service, uint32_t value) in bsec_otp_lock() argument
784 mmio_write_32(reg, value << BSEC_LOCK_UPPER_OTP); in bsec_otp_lock()
787 mmio_write_32(reg, value << BSEC_LOCK_DEBUG); in bsec_otp_lock()
790 mmio_write_32(reg, value << BSEC_LOCK_PROGRAM); in bsec_otp_lock()