Lines Matching refs:oh

114 				     struct omap_hwmod *oh)  in _add_hwmod_clocks_clkdev()  argument
118 _add_clkdev(od, "fck", oh->main_clk); in _add_hwmod_clocks_clkdev()
120 for (i = 0; i < oh->opt_clks_cnt; i++) in _add_hwmod_clocks_clkdev()
121 _add_clkdev(od, oh->opt_clks[i].role, oh->opt_clks[i].clk); in _add_hwmod_clocks_clkdev()
141 struct omap_hwmod *oh; in omap_device_build_from_dt() local
173 oh = omap_hwmod_lookup(oh_name); in omap_device_build_from_dt()
174 if (!oh) { in omap_device_build_from_dt()
180 hwmods[i] = oh; in omap_device_build_from_dt()
181 if (oh->flags & HWMOD_INIT_NO_IDLE) in omap_device_build_from_dt()
398 omap_device_copy_resources(struct omap_hwmod *oh, in omap_device_copy_resources() argument
407 if (!oh || !oh->od || !oh->od->pdev) in omap_device_copy_resources()
410 np = oh->od->pdev->dev.of_node; in omap_device_copy_resources()
421 error = omap_hwmod_parse_module_range(oh, np, res); in omap_device_copy_resources()
465 __func__, oh->name, dev_name(&pdev->dev), in omap_device_copy_resources()
487 struct omap_hwmod *oh, in omap_device_build() argument
494 if (!oh || !pdev_name) in omap_device_build()
500 if (strncmp(oh->name, "smartreflex", 11) && in omap_device_build()
501 strncmp(oh->name, "dma", 3)) { in omap_device_build()
525 ret = omap_device_copy_resources(oh, pdev); in omap_device_build()
529 od = omap_device_alloc(pdev, &oh, 1); in omap_device_build()
804 struct omap_hwmod *oh; in omap_device_get_by_hwmod_name() local
811 oh = omap_hwmod_lookup(oh_name); in omap_device_get_by_hwmod_name()
812 if (!oh) { in omap_device_get_by_hwmod_name()
817 if (!oh->od) { in omap_device_get_by_hwmod_name()
823 return &oh->od->pdev->dev; in omap_device_get_by_hwmod_name()