Lines Matching refs:hwmods

124  * omap_device_build_from_dt - build an omap_device with multiple hwmods
133 struct omap_hwmod **hwmods;
142 oh_cnt = of_property_count_strings(node, "ti,hwmods");
144 dev_dbg(&pdev->dev, "No 'hwmods' to build omap_device\n");
149 ret = of_property_read_string_index(node, "ti,hwmods", 0, &oh_name);
159 hwmods = kcalloc(oh_cnt, sizeof(struct omap_hwmod *), GFP_KERNEL);
160 if (!hwmods) {
166 of_property_read_string_index(node, "ti,hwmods", i, &oh_name);
174 hwmods[i] = oh;
179 od = omap_device_alloc(pdev, hwmods, oh_cnt);
204 kfree(hwmods);
258 * _omap_device_enable_hwmods - call omap_hwmod_enable() on all hwmods
261 * Enable all underlying hwmods. Returns 0.
269 ret |= omap_hwmod_enable(od->hwmods[i]);
275 * _omap_device_idle_hwmods - call omap_hwmod_idle() on all hwmods
278 * Idle all underlying hwmods. Returns 0.
286 ret |= omap_hwmod_idle(od->hwmods[i]);
300 * hwmods, and resources.
310 struct omap_hwmod **hwmods;
318 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL);
319 if (!hwmods)
322 od->hwmods = hwmods;
327 hwmods[i]->od = od;
328 _add_hwmod_clocks_clkdev(od, hwmods[i]);
347 kfree(od->hwmods);
456 * Do whatever is necessary for the hwmods underlying omap_device @od
523 * associated with the hwmods backing the platform_device @pdev. All
524 * of the hwmods associated with @pdev must have the same hardreset
536 ret = omap_hwmod_assert_hardreset(od->hwmods[i], name);
550 * associated with the hwmods backing the platform_device @pdev. All
551 * of the hwmods associated with @pdev must have the same hardreset
564 ret = omap_hwmod_deassert_hardreset(od->hwmods[i], name);
610 if (od->hwmods[i]->flags & HWMOD_INIT_NO_IDLE)