Home
last modified time | relevance | path

Searched refs:oh_cnt (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/arch/arm/mach-omap2/
Domap_device.c145 int oh_cnt, i, ret = 0; in omap_device_build_from_dt() local
148 oh_cnt = of_property_count_strings(node, "ti,hwmods"); in omap_device_build_from_dt()
149 if (oh_cnt <= 0) { in omap_device_build_from_dt()
165 hwmods = kcalloc(oh_cnt, sizeof(struct omap_hwmod *), GFP_KERNEL); in omap_device_build_from_dt()
171 for (i = 0; i < oh_cnt; i++) { in omap_device_build_from_dt()
185 od = omap_device_alloc(pdev, hwmods, oh_cnt); in omap_device_build_from_dt()
339 struct omap_hwmod **ohs, int oh_cnt) in omap_device_alloc() argument
351 od->hwmods_cnt = oh_cnt; in omap_device_alloc()
353 hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL); in omap_device_alloc()
361 for (i = 0; i < oh_cnt; i++) { in omap_device_alloc()
Domap_device.h79 struct omap_hwmod **ohs, int oh_cnt);