Lines Matching refs:sec

47 	ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx);  in start_jr0()  local
48 u32 ctpr_ms = sec_in32(&sec->ctpr_ms); in start_jr0()
49 u32 scfgr = sec_in32(&sec->scfgr); in start_jr0()
57 sec_out32(&sec->jrstartr, CONFIG_JRSTARTR_JR0); in start_jr0()
61 sec_out32(&sec->jrstartr, CONFIG_JRSTARTR_JR0); in start_jr0()
67 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in jr_reset_liodn() local
68 sec_out32(&sec->jrliodnr[0].ls, 0); in jr_reset_liodn()
420 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in sec_reset_idx() local
421 uint32_t mcfgr = sec_in32(&sec->mcfgr); in sec_reset_idx()
425 sec_out32(&sec->mcfgr, mcfgr); in sec_reset_idx()
428 sec_out32(&sec->mcfgr, mcfgr); in sec_reset_idx()
430 mcfgr = sec_in32(&sec->mcfgr); in sec_reset_idx()
438 mcfgr = sec_in32(&sec->mcfgr); in sec_reset_idx()
501 ccsr_sec_t __iomem *sec = (ccsr_sec_t __iomem *)SEC_ADDR(sec_idx); in instantiate_rng() local
503 (struct rng4tst __iomem *)&sec->rng; in instantiate_rng()
556 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in get_rng_vid() local
560 vid = (sec_in32(&sec->chavid_ls) & SEC_CHAVID_RNG_LS_MASK) in get_rng_vid()
563 vid = (sec_in32(&sec->vreg.rng) & CHA_VER_VID_MASK) in get_rng_vid()
576 ccsr_sec_t __iomem *sec = (ccsr_sec_t __iomem *)SEC_ADDR(sec_idx); in kick_trng() local
578 (struct rng4tst __iomem *)&sec->rng; in kick_trng()
606 ccsr_sec_t __iomem *sec = (ccsr_sec_t __iomem *)SEC_ADDR(sec_idx); in rng_init() local
608 (struct rng4tst __iomem *)&sec->rng; in rng_init()
642 sec_setbits32(&sec->scfgr, SEC_SCFGR_RDBENABLE); in rng_init()
649 ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); in sec_init_idx() local
650 uint32_t mcr = sec_in32(&sec->mcfgr); in sec_init_idx()
681 sec_out32(&sec->mcfgr, mcr); in sec_init_idx()
693 liodnr = sec_in32(&sec->jrliodnr[0].ls) & in sec_init_idx()
698 sec_out32(&sec->jrliodnr[0].ls, liodnr); in sec_init_idx()
700 liodnr = sec_in32(&sec->jrliodnr[0].ls); in sec_init_idx()