Lines Matching refs:part
58 u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx) in omap4_prminst_read_inst_reg() argument
60 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_prminst_read_inst_reg()
61 part == OMAP4430_INVALID_PRCM_PARTITION || in omap4_prminst_read_inst_reg()
62 !_prm_bases[part].va); in omap4_prminst_read_inst_reg()
63 return readl_relaxed(_prm_bases[part].va + inst + idx); in omap4_prminst_read_inst_reg()
67 void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx) in omap4_prminst_write_inst_reg() argument
69 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_prminst_write_inst_reg()
70 part == OMAP4430_INVALID_PRCM_PARTITION || in omap4_prminst_write_inst_reg()
71 !_prm_bases[part].va); in omap4_prminst_write_inst_reg()
72 writel_relaxed(val, _prm_bases[part].va + inst + idx); in omap4_prminst_write_inst_reg()
76 u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, s16 inst, in omap4_prminst_rmw_inst_reg_bits() argument
81 v = omap4_prminst_read_inst_reg(part, inst, idx); in omap4_prminst_rmw_inst_reg_bits()
84 omap4_prminst_write_inst_reg(v, part, inst, idx); in omap4_prminst_rmw_inst_reg_bits()
99 int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, in omap4_prminst_is_hardreset_asserted() argument
104 v = omap4_prminst_read_inst_reg(part, inst, rstctrl_offs); in omap4_prminst_is_hardreset_asserted()
123 int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, in omap4_prminst_assert_hardreset() argument
128 omap4_prminst_rmw_inst_reg_bits(mask, mask, part, inst, rstctrl_offs); in omap4_prminst_assert_hardreset()
152 int omap4_prminst_deassert_hardreset(u8 shift, u8 st_shift, u8 part, s16 inst, in omap4_prminst_deassert_hardreset() argument
160 if (omap4_prminst_is_hardreset_asserted(shift, part, inst, in omap4_prminst_deassert_hardreset()
165 omap4_prminst_rmw_inst_reg_bits(0xffffffff, st_mask, part, inst, in omap4_prminst_deassert_hardreset()
168 omap4_prminst_rmw_inst_reg_bits(mask, 0, part, inst, rstctrl_offs); in omap4_prminst_deassert_hardreset()
170 omap_test_timeout(omap4_prminst_is_hardreset_asserted(st_shift, part, in omap4_prminst_deassert_hardreset()