Lines Matching refs:hwmods
130 struct omap_hwmod **hwmods; in omap_device_build_from_dt() local
156 hwmods = kcalloc(oh_cnt, sizeof(struct omap_hwmod *), GFP_KERNEL); in omap_device_build_from_dt()
157 if (!hwmods) { in omap_device_build_from_dt()
171 hwmods[i] = oh; in omap_device_build_from_dt()
176 od = omap_device_alloc(pdev, hwmods, oh_cnt); in omap_device_build_from_dt()
201 kfree(hwmods); in omap_device_build_from_dt()
267 ret |= omap_hwmod_enable(od->hwmods[i]); in _omap_device_enable_hwmods()
284 ret |= omap_hwmod_idle(od->hwmods[i]); in _omap_device_idle_hwmods()
314 ret = omap_hwmod_get_context_loss_count(od->hwmods[0]); in omap_device_get_context_loss_count()
336 struct omap_hwmod **hwmods; in omap_device_alloc() local
344 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_alloc()
345 if (!hwmods) in omap_device_alloc()
348 od->hwmods = hwmods; in omap_device_alloc()
353 hwmods[i]->od = od; in omap_device_alloc()
354 _add_hwmod_clocks_clkdev(od, hwmods[i]); in omap_device_alloc()
373 kfree(od->hwmods); in omap_device_delete()
579 ret = omap_hwmod_assert_hardreset(od->hwmods[i], name); in omap_device_assert_hardreset()
607 ret = omap_hwmod_deassert_hardreset(od->hwmods[i], name); in omap_device_deassert_hardreset()
685 if (od->hwmods[i]->flags & HWMOD_INIT_NO_IDLE) in omap_device_late_idle()