Lines Matching refs:clkctrl_offs
87 static u32 _clkctrl_idlest(u8 part, u16 inst, u16 clkctrl_offs) in _clkctrl_idlest() argument
89 u32 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); in _clkctrl_idlest()
104 static bool _is_module_ready(u8 part, u16 inst, u16 clkctrl_offs) in _is_module_ready() argument
108 v = _clkctrl_idlest(part, inst, clkctrl_offs); in _is_module_ready()
276 static int omap4_cminst_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, in omap4_cminst_wait_module_ready() argument
281 if (!clkctrl_offs) in omap4_cminst_wait_module_ready()
284 omap_test_timeout(_is_module_ready(part, inst, clkctrl_offs), in omap4_cminst_wait_module_ready()
302 static int omap4_cminst_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, in omap4_cminst_wait_module_idle() argument
307 if (!clkctrl_offs) in omap4_cminst_wait_module_idle()
310 omap_test_timeout((_clkctrl_idlest(part, inst, clkctrl_offs) == in omap4_cminst_wait_module_idle()
327 u16 clkctrl_offs) in omap4_cminst_module_enable() argument
331 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); in omap4_cminst_module_enable()
334 omap4_cminst_write_inst_reg(v, part, inst, clkctrl_offs); in omap4_cminst_module_enable()
345 static void omap4_cminst_module_disable(u8 part, u16 inst, u16 clkctrl_offs) in omap4_cminst_module_disable() argument
349 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); in omap4_cminst_module_disable()
351 omap4_cminst_write_inst_reg(v, part, inst, clkctrl_offs); in omap4_cminst_module_disable()