Lines Matching refs:oh_cnt
126 int oh_cnt, i, ret = 0; in omap_device_build_from_dt() local
129 oh_cnt = of_property_count_strings(node, "ti,hwmods"); in omap_device_build_from_dt()
130 if (oh_cnt <= 0) { in omap_device_build_from_dt()
135 hwmods = kzalloc(sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_build_from_dt()
141 for (i = 0; i < oh_cnt; i++) { in omap_device_build_from_dt()
155 od = omap_device_alloc(pdev, hwmods, oh_cnt); in omap_device_build_from_dt()
372 struct omap_hwmod **ohs, int oh_cnt) in omap_device_alloc() argument
385 od->hwmods_cnt = oh_cnt; in omap_device_alloc()
387 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_alloc()
463 for (i = 0; i < oh_cnt; i++) { in omap_device_alloc()
535 int oh_cnt, void *pdata, in omap_device_build_ss() argument
542 if (!ohs || oh_cnt == 0 || !pdev_name) in omap_device_build_ss()
560 od = omap_device_alloc(pdev, ohs, oh_cnt); in omap_device_build_ss()