Lines Matching refs:hwmods
121 struct omap_hwmod **hwmods; in omap_device_build_from_dt() local
135 hwmods = kzalloc(sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_build_from_dt()
136 if (!hwmods) { in omap_device_build_from_dt()
150 hwmods[i] = oh; in omap_device_build_from_dt()
155 od = omap_device_alloc(pdev, hwmods, oh_cnt); in omap_device_build_from_dt()
179 kfree(hwmods); in omap_device_build_from_dt()
225 ret |= omap_hwmod_enable(od->hwmods[i]); in _omap_device_enable_hwmods()
242 ret |= omap_hwmod_idle(od->hwmods[i]); in _omap_device_idle_hwmods()
272 ret = omap_hwmod_get_context_loss_count(od->hwmods[0]); in omap_device_get_context_loss_count()
294 c += omap_hwmod_count_resources(od->hwmods[i], flags); in omap_device_count_resources()
325 r = omap_hwmod_fill_resources(od->hwmods[i], res); in omap_device_fill_resources()
352 r = omap_hwmod_fill_dma_resources(od->hwmods[i], res); in _od_fill_dma_resources()
378 struct omap_hwmod **hwmods; in omap_device_alloc() local
387 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_alloc()
388 if (!hwmods) in omap_device_alloc()
391 od->hwmods = hwmods; in omap_device_alloc()
464 hwmods[i]->od = od; in omap_device_alloc()
465 _add_hwmod_clocks_clkdev(od, hwmods[i]); in omap_device_alloc()
471 kfree(hwmods); in omap_device_alloc()
486 kfree(od->hwmods); in omap_device_delete()
795 ret = omap_hwmod_assert_hardreset(od->hwmods[i], name); in omap_device_assert_hardreset()
823 ret = omap_hwmod_deassert_hardreset(od->hwmods[i], name); in omap_device_deassert_hardreset()
901 if (od->hwmods[i]->flags & HWMOD_INIT_NO_IDLE) in omap_device_late_idle()