Home
last modified time | relevance | path

Searched refs:sec_out32 (Results 1 – 6 of 6) sorted by relevance

/trusted-firmware-a-3.4.0/include/drivers/nxp/crypto/caam/
Dcaam_io.h27 #define sec_out32(a, v) mmio_write_32((uintptr_t)(a), bswap32(v)) macro
32 sec_out32(((uintptr_t)(addr)), (uint32_t)((val) >> 32)); \
33 sec_out32(((uintptr_t)(addr)) + 4, (uint32_t)(val)); })
36 #define sec_out32(a, v) mmio_write_32((uintptr_t)(a), (v)) macro
41 sec_out32(((uintptr_t)(addr)) + 4, (uint32_t)((val) >> 32)); \
42 sec_out32(((uintptr_t)(addr)), (uint32_t)(val)); })
Dsec_hw_specific.h205 #define sec_write_addr(a, v) sec_out32((a), (v))
215 (sec_out32(JR_REG(name, (jr)), (val)))
218 (sec_out32(JR_REG_LO(name, (jr)), (val)))
500 sec_out32(&regs->irja, num); in hw_enqueue_desc_on_job_ring()
/trusted-firmware-a-3.4.0/drivers/nxp/crypto/caam/src/
Dsec_hw_specific.c36 sec_out32(&regs->irba_h, PHYS_ADDR_HI(start_addr)); in hw_set_input_ring_start_addr()
38 sec_out32(&regs->irba_h, 0); in hw_set_input_ring_start_addr()
40 sec_out32(&regs->irba_l, PHYS_ADDR_LO(start_addr)); in hw_set_input_ring_start_addr()
47 sec_out32(&regs->orba_h, PHYS_ADDR_HI(start_addr)); in hw_set_output_ring_start_addr()
49 sec_out32(&regs->orba_h, 0); in hw_set_output_ring_start_addr()
51 sec_out32(&regs->orba_l, PHYS_ADDR_LO(start_addr)); in hw_set_output_ring_start_addr()
63 sec_out32(&regs->orjr, num); in hw_remove_entries()
166 sec_out32(&regs->irs, SEC_JOB_RING_SIZE); in hw_reset_job_ring()
169 sec_out32(&regs->ors, SEC_JOB_RING_SIZE); in hw_reset_job_ring()
200 sec_out32(&regs->jrcr, JR_REG_JRCR_VAL_RESET); in hw_shutdown_job_ring()
[all …]
Drng.c66 sec_out32(get_caam_addr() + RNG_REG_RTMCTL_OFFSET, val); in kick_trng()
74 sec_out32(get_caam_addr() + RNG_REG_RTSDCTL_OFFSET, val); in kick_trng()
76 sec_out32(get_caam_addr() + RNG_REG_RTFRQMIN_OFFSET, ent_delay >> 2); in kick_trng()
78 sec_out32(get_caam_addr() + RNG_REG_RTFRQMAX_OFFSET, RTFRQMAX_DISABLE); in kick_trng()
85 sec_out32(get_caam_addr() + RNG_REG_RTMCTL_OFFSET, val); in kick_trng()
90 sec_out32(get_caam_addr() + RNG_REG_RTMCTL_OFFSET, val); in kick_trng()
Dcaam.c42 sec_out32(g_nxp_caam_addr + SEC_REG_JR0ICIDR_MS_OFFSET, in config_tz()
47 sec_out32(g_nxp_caam_addr + SEC_REG_JR1ICIDR_MS_OFFSET, in config_tz()
52 sec_out32(g_nxp_caam_addr + SEC_REG_JR2ICIDR_MS_OFFSET, in config_tz()
57 sec_out32(g_nxp_caam_addr + SEC_REG_JR3ICIDR_MS_OFFSET, in config_tz()
104 sec_out32((g_nxp_caam_addr + SEC_REG_JRSTARTR_OFFSET), tmp); in start_jr()
204 sec_out32(g_nxp_caam_addr + SEC_REG_MCFGR_OFFSET, mcfgr); in config_sec_block()
247 sec_out32((uint32_t *)&desc_addr[i], desc_word); in run_descriptor_jr()
/trusted-firmware-a-3.4.0/drivers/nxp/crypto/caam/src/auth/
Dhash.c88 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_hi, in hash_update()
91 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_hi, 0x0); in hash_update()
93 sec_out32(&ctx->sg_tbl[ctx->sg_num].addr_lo, (uintptr_t) data_ptr); in hash_update()
95 sec_out32(&ctx->sg_tbl[ctx->sg_num].len_flag, in hash_update()
131 sec_out32(&ctx->sg_tbl[ctx->sg_num - 1].len_flag, final); in hash_final()