Lines Matching refs:hwmods
133 struct omap_hwmod **hwmods; in omap_device_build_from_dt() local
159 hwmods = kcalloc(oh_cnt, sizeof(struct omap_hwmod *), GFP_KERNEL); in omap_device_build_from_dt()
160 if (!hwmods) { in omap_device_build_from_dt()
174 hwmods[i] = oh; in omap_device_build_from_dt()
179 od = omap_device_alloc(pdev, hwmods, oh_cnt); in omap_device_build_from_dt()
204 kfree(hwmods); in omap_device_build_from_dt()
269 ret |= omap_hwmod_enable(od->hwmods[i]); in _omap_device_enable_hwmods()
286 ret |= omap_hwmod_idle(od->hwmods[i]); in _omap_device_idle_hwmods()
310 struct omap_hwmod **hwmods; in omap_device_alloc() local
318 hwmods = kmemdup_array(ohs, oh_cnt, sizeof(*hwmods), GFP_KERNEL); in omap_device_alloc()
319 if (!hwmods) in omap_device_alloc()
322 od->hwmods = hwmods; in omap_device_alloc()
327 hwmods[i]->od = od; in omap_device_alloc()
328 _add_hwmod_clocks_clkdev(od, hwmods[i]); in omap_device_alloc()
347 kfree(od->hwmods); in omap_device_delete()
536 ret = omap_hwmod_assert_hardreset(od->hwmods[i], name); in omap_device_assert_hardreset()
564 ret = omap_hwmod_deassert_hardreset(od->hwmods[i], name); in omap_device_deassert_hardreset()
610 if (od->hwmods[i]->flags & HWMOD_INIT_NO_IDLE) in omap_device_late_idle()