Lines Matching full:hwmods
121 * omap_device_build_from_dt - build an omap_device with multiple hwmods
130 struct omap_hwmod **hwmods; in omap_device_build_from_dt() local
139 oh_cnt = of_property_count_strings(node, "ti,hwmods"); in omap_device_build_from_dt()
141 dev_dbg(&pdev->dev, "No 'hwmods' to build omap_device\n"); in omap_device_build_from_dt()
146 ret = of_property_read_string_index(node, "ti,hwmods", 0, &oh_name); in omap_device_build_from_dt()
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()
163 of_property_read_string_index(node, "ti,hwmods", i, &oh_name); 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()
254 * _omap_device_enable_hwmods - call omap_hwmod_enable() on all hwmods
257 * Enable all underlying hwmods. Returns 0.
265 ret |= omap_hwmod_enable(od->hwmods[i]); in _omap_device_enable_hwmods()
271 * _omap_device_idle_hwmods - call omap_hwmod_idle() on all hwmods
274 * Idle all underlying hwmods. Returns 0.
282 ret |= omap_hwmod_idle(od->hwmods[i]); in _omap_device_idle_hwmods()
300 * If any hwmods exist for the omap_device associated with @pdev,
312 ret = omap_hwmod_get_context_loss_count(od->hwmods[0]); in omap_device_get_context_loss_count()
324 * hwmods, and resources.
334 struct omap_hwmod **hwmods; in omap_device_alloc() local
343 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_alloc()
344 if (!hwmods) in omap_device_alloc()
347 od->hwmods = hwmods; in omap_device_alloc()
352 hwmods[i]->od = od; in omap_device_alloc()
353 _add_hwmod_clocks_clkdev(od, hwmods[i]); in omap_device_alloc()
372 kfree(od->hwmods); in omap_device_delete()
498 * Do whatever is necessary for the hwmods underlying omap_device @od
565 * associated with the hwmods backing the platform_device @pdev. All
566 * of the hwmods associated with @pdev must have the same hardreset
578 ret = omap_hwmod_assert_hardreset(od->hwmods[i], name); in omap_device_assert_hardreset()
592 * associated with the hwmods backing the platform_device @pdev. All
593 * of the hwmods associated with @pdev must have the same hardreset
606 ret = omap_hwmod_deassert_hardreset(od->hwmods[i], name); in omap_device_deassert_hardreset()
684 if (od->hwmods[i]->flags & HWMOD_INIT_NO_IDLE) in omap_device_late_idle()