Lines Matching refs:oh
283 struct omap_hwmod *oh; in dispc_disable_outputs() local
285 oh = omap_hwmod_lookup("dss_dispc"); in dispc_disable_outputs()
286 if (!oh) { in dispc_disable_outputs()
291 if (!oh->dev_attr) { in dispc_disable_outputs()
296 da = (struct omap_dss_dispc_dev_attr *)oh->dev_attr; in dispc_disable_outputs()
299 v = omap_hwmod_read(oh, DISPC_CONTROL); in dispc_disable_outputs()
305 v = omap_hwmod_read(oh, DISPC_CONTROL2); in dispc_disable_outputs()
311 v = omap_hwmod_read(oh, DISPC_CONTROL3); in dispc_disable_outputs()
343 omap_hwmod_write(irq_mask, oh, DISPC_IRQSTATUS); in dispc_disable_outputs()
346 v = omap_hwmod_read(oh, DISPC_CONTROL); in dispc_disable_outputs()
348 omap_hwmod_write(v, oh, DISPC_CONTROL); in dispc_disable_outputs()
352 v = omap_hwmod_read(oh, DISPC_CONTROL2); in dispc_disable_outputs()
354 omap_hwmod_write(v, oh, DISPC_CONTROL2); in dispc_disable_outputs()
359 v = omap_hwmod_read(oh, DISPC_CONTROL3); in dispc_disable_outputs()
361 omap_hwmod_write(v, oh, DISPC_CONTROL3); in dispc_disable_outputs()
365 while ((omap_hwmod_read(oh, DISPC_IRQSTATUS) & irq_mask) != in dispc_disable_outputs()
376 int omap_dss_reset(struct omap_hwmod *oh) in omap_dss_reset() argument
382 if (!(oh->class->sysc->sysc_flags & SYSS_HAS_RESET_STATUS)) { in omap_dss_reset()
387 for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) in omap_dss_reset()
395 omap_hwmod_write(0x0, oh, DSS_SDI_CONTROL); in omap_dss_reset()
396 omap_hwmod_write(0x0, oh, DSS_PLL_CONTROL); in omap_dss_reset()
403 omap_hwmod_write(0x0, oh, DSS_CONTROL); in omap_dss_reset()
405 omap_test_timeout((omap_hwmod_read(oh, oh->class->sysc->syss_offs) in omap_dss_reset()
414 for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) in omap_dss_reset()