Home
last modified time | relevance | path

Searched refs:set_field_u32 (Results 1 – 4 of 4) sorted by relevance

/optee_os/core/drivers/
H A Dimx_ocotp.c242 timing = set_field_u32(timing, OCOTP_TIMING_RELAX, relax); in ocotp_set_timing()
243 timing = set_field_u32(timing, OCOTP_TIMING_STROBE_READ, strobe_read); in ocotp_set_timing()
244 timing = set_field_u32(timing, OCOTP_TIMING_STROBE_PROG, strobe_prog); in ocotp_set_timing()
266 reg = set_field_u32(reg, OCOTP_CTRL_ADDR, OCOTP_ADDR(bank, word)); in ocotp_write_fuse()
267 reg = set_field_u32(reg, OCOTP_CTRL_WR_UNLOCK, in ocotp_write_fuse()
/optee_os/core/drivers/crypto/stm32/
H A Dstm32_saes.c140 set_field_u32(cr, _SAES_CR_CHMOD_MASK, _SAES_CR_CHMOD_##mode)
570 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_MODE_MASK, in stm32_saes_init()
573 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_MODE_MASK, in stm32_saes_init()
606 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_DATATYPE_MASK, in stm32_saes_init()
624 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_KEYSEL_MASK, in stm32_saes_init()
656 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_KEYSEL_MASK, in stm32_saes_init()
660 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_KEYSEL_MASK, in stm32_saes_init()
664 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_KEYSEL_MASK, in stm32_saes_init()
668 ctx->cr = set_field_u32(ctx->cr, _SAES_CR_KEYSEL_MASK, in stm32_saes_init()
/optee_os/core/arch/riscv/kernel/
H A Dthread_arch.c181 xstatus = set_field_u32(xstatus, CSR_XSTATUS_IE, 0); in xstatus_for_xret()
182 xstatus = set_field_u32(xstatus, CSR_XSTATUS_PIE, pie); in xstatus_for_xret()
183 xstatus = set_field_u32(xstatus, CSR_XSTATUS_SPP, pp); in xstatus_for_xret()
/optee_os/lib/libutils/ext/include/
H A Dutil.h296 static inline uint32_t set_field_u32(uint32_t reg, uint32_t mask, uint32_t val) in set_field_u32() function