Lines Matching refs:inst
31 static u32 am33xx_prm_read_reg(s16 inst, u16 idx) in am33xx_prm_read_reg() argument
33 return readl_relaxed(prm_base.va + inst + idx); in am33xx_prm_read_reg()
37 static void am33xx_prm_write_reg(u32 val, s16 inst, u16 idx) in am33xx_prm_write_reg() argument
39 writel_relaxed(val, prm_base.va + inst + idx); in am33xx_prm_write_reg()
43 static u32 am33xx_prm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_prm_rmw_reg_bits() argument
47 v = am33xx_prm_read_reg(inst, idx); in am33xx_prm_rmw_reg_bits()
50 am33xx_prm_write_reg(v, inst, idx); in am33xx_prm_rmw_reg_bits()
67 static int am33xx_prm_is_hardreset_asserted(u8 shift, u8 part, s16 inst, in am33xx_prm_is_hardreset_asserted() argument
72 v = am33xx_prm_read_reg(inst, rstctrl_offs); in am33xx_prm_is_hardreset_asserted()
93 static int am33xx_prm_assert_hardreset(u8 shift, u8 part, s16 inst, in am33xx_prm_assert_hardreset() argument
98 am33xx_prm_rmw_reg_bits(mask, mask, inst, rstctrl_offs); in am33xx_prm_assert_hardreset()
123 s16 inst, u16 rstctrl_offs, in am33xx_prm_deassert_hardreset() argument
130 if (am33xx_prm_is_hardreset_asserted(shift, 0, inst, rstctrl_offs) == 0) in am33xx_prm_deassert_hardreset()
134 am33xx_prm_rmw_reg_bits(0xffffffff, mask, inst, rstst_offs); in am33xx_prm_deassert_hardreset()
139 am33xx_prm_rmw_reg_bits(mask, 0, inst, rstctrl_offs); in am33xx_prm_deassert_hardreset()
142 omap_test_timeout(am33xx_prm_is_hardreset_asserted(st_shift, 0, inst, in am33xx_prm_deassert_hardreset()