Lines Matching refs:hwmods
121 * omap_device_build_from_dt - build an omap_device with multiple hwmods
130 struct omap_hwmod **hwmods;
139 oh_cnt = of_property_count_strings(node, "ti,hwmods");
141 dev_dbg(&pdev->dev, "No 'hwmods' to build omap_device\n");
146 ret = of_property_read_string_index(node, "ti,hwmods", 0, &oh_name);
156 hwmods = kcalloc(oh_cnt, sizeof(struct omap_hwmod *), GFP_KERNEL);
157 if (!hwmods) {
163 of_property_read_string_index(node, "ti,hwmods", i, &oh_name);
171 hwmods[i] = oh;
176 od = omap_device_alloc(pdev, hwmods, oh_cnt);
201 kfree(hwmods);
256 * _omap_device_enable_hwmods - call omap_hwmod_enable() on all hwmods
259 * Enable all underlying hwmods. Returns 0.
267 ret |= omap_hwmod_enable(od->hwmods[i]);
273 * _omap_device_idle_hwmods - call omap_hwmod_idle() on all hwmods
276 * Idle all underlying hwmods. Returns 0.
284 ret |= omap_hwmod_idle(od->hwmods[i]);
302 * If any hwmods exist for the omap_device associated with @pdev,
314 ret = omap_hwmod_get_context_loss_count(od->hwmods[0]);
326 * hwmods, and resources.
336 struct omap_hwmod **hwmods;
345 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL);
346 if (!hwmods)
349 od->hwmods = hwmods;
354 hwmods[i]->od = od;
355 _add_hwmod_clocks_clkdev(od, hwmods[i]);
374 kfree(od->hwmods);
500 * Do whatever is necessary for the hwmods underlying omap_device @od
567 * associated with the hwmods backing the platform_device @pdev. All
568 * of the hwmods associated with @pdev must have the same hardreset
580 ret = omap_hwmod_assert_hardreset(od->hwmods[i], name);
594 * associated with the hwmods backing the platform_device @pdev. All
595 * of the hwmods associated with @pdev must have the same hardreset
608 ret = omap_hwmod_deassert_hardreset(od->hwmods[i], name);
686 if (od->hwmods[i]->flags & HWMOD_INIT_NO_IDLE)