Lines Matching refs:REG_WRITE
82 #define REG_WRITE(r, v) sys_write32((v), config->base + (r)) macro
122 REG_WRITE(SWT_CR, REG_READ(SWT_CR) | SWT_CR_HLK(1U)); in swt_lock()
125 REG_WRITE(SWT_CR, REG_READ(SWT_CR) | SWT_CR_SLK(1U)); in swt_lock()
143 REG_WRITE(SWT_SR, SWT_SR_WSC(SWT_SR_WSC_UNLOCK_KEY1)); in swt_unlock()
144 REG_WRITE(SWT_SR, SWT_SR_WSC(SWT_SR_WSC_UNLOCK_KEY2)); in swt_unlock()
152 REG_WRITE(SWT_CR, REG_READ(SWT_CR) | SWT_CR_SLK(1U)); in swt_unlock()
184 REG_WRITE(SWT_CR, reg_val | in swt_nxp_s32_setup()
190 REG_WRITE(SWT_IR, SWT_IR_TIF(1U)); in swt_nxp_s32_setup()
191 REG_WRITE(SWT_TO, SWT_TO_WTO(data->timeout.period)); in swt_nxp_s32_setup()
192 REG_WRITE(SWT_WN, SWT_WN_WST(data->timeout.window_start)); in swt_nxp_s32_setup()
195 REG_WRITE(SWT_SK, SWT_SK_SK(config->initial_key)); in swt_nxp_s32_setup()
198 REG_WRITE(SWT_CR, REG_READ(SWT_CR) | SWT_CR_WEN(1U)); in swt_nxp_s32_setup()
221 REG_WRITE(SWT_CR, REG_READ(SWT_CR) & ~SWT_CR_WEN_MASK); in swt_nxp_s32_disable()
222 REG_WRITE(SWT_IR, SWT_IR_TIF(1U)); in swt_nxp_s32_disable()
286 REG_WRITE(SWT_SR, SWT_SR_WSC(SWT_SR_WSC_SERVICE_KEY1)); in swt_nxp_s32_feed()
287 REG_WRITE(SWT_SR, SWT_SR_WSC(SWT_SR_WSC_SERVICE_KEY2)); in swt_nxp_s32_feed()
297 REG_WRITE(SWT_SR, SWT_SR_WSC(swt_gen_service_key(config))); in swt_nxp_s32_feed()
302 REG_WRITE(SWT_SR, SWT_SR_WSC(swt_gen_service_key(config))); in swt_nxp_s32_feed()
309 REG_WRITE(SWT_SR, SWT_SR_WSC(SWT_SR_WSC_UNLOCK_KEY2)); in swt_nxp_s32_feed()
335 REG_WRITE(SWT_IR, reg_val); in swt_nxp_s32_isr()
358 REG_WRITE(SWT_CR, in swt_nxp_s32_init()