Lines Matching refs:sec
40 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in start_jr0() local
41 u32 ctpr_ms = sec_in32(&sec->ctpr_ms); in start_jr0()
42 u32 scfgr = sec_in32(&sec->scfgr); in start_jr0()
50 sec_out32(&sec->jrstartr, CONFIG_JRSTARTR_JR0); in start_jr0()
54 sec_out32(&sec->jrstartr, CONFIG_JRSTARTR_JR0); in start_jr0()
60 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in jr_reset_liodn() local
61 sec_out32(&sec->jrliodnr[0].ls, 0); in jr_reset_liodn()
413 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in sec_reset_idx() local
414 uint32_t mcfgr = sec_in32(&sec->mcfgr); in sec_reset_idx()
418 sec_out32(&sec->mcfgr, mcfgr); in sec_reset_idx()
421 sec_out32(&sec->mcfgr, mcfgr); in sec_reset_idx()
423 mcfgr = sec_in32(&sec->mcfgr); in sec_reset_idx()
431 mcfgr = sec_in32(&sec->mcfgr); in sec_reset_idx()
449 ccsr_sec_t __iomem *sec = (ccsr_sec_t __iomem *)SEC_ADDR(sec_idx); in instantiate_rng() local
451 (struct rng4tst __iomem *)&sec->rng; in instantiate_rng()
495 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in get_rng_vid() local
496 u32 cha_vid = sec_in32(&sec->chavid_ls); in get_rng_vid()
507 ccsr_sec_t __iomem *sec = (ccsr_sec_t __iomem *)SEC_ADDR(sec_idx); in kick_trng() local
509 (struct rng4tst __iomem *)&sec->rng; in kick_trng()
537 ccsr_sec_t __iomem *sec = (ccsr_sec_t __iomem *)SEC_ADDR(sec_idx); in rng_init() local
539 (struct rng4tst __iomem *)&sec->rng; in rng_init()
572 sec_setbits32(&sec->scfgr, SEC_SCFGR_RDBENABLE); in rng_init()
579 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in sec_init_idx() local
580 uint32_t mcr = sec_in32(&sec->mcfgr); in sec_init_idx()
613 sec_out32(&sec->mcfgr, mcr); in sec_init_idx()
625 liodnr = sec_in32(&sec->jrliodnr[0].ls) & in sec_init_idx()
630 sec_out32(&sec->jrliodnr[0].ls, liodnr); in sec_init_idx()
632 liodnr = sec_in32(&sec->jrliodnr[0].ls); in sec_init_idx()
639 for (i = 0; i < ARRAY_SIZE(sec->jrliodnr); i++) { in sec_init_idx()
640 jrown_ns = sec_in32(&sec->jrliodnr[i].ms); in sec_init_idx()
642 sec_out32(&sec->jrliodnr[i].ms, jrown_ns); in sec_init_idx()