Lines Matching refs:ovinfo
174 struct of_overlay_info *ovinfo = &ov->ovinfo_tab[i]; in of_overlay_apply() local
176 err = of_overlay_apply_one(ov, ovinfo->target, ovinfo->overlay); in of_overlay_apply()
179 __func__, ovinfo->target->full_name); in of_overlay_apply()
231 struct device_node *info_node, struct of_overlay_info *ovinfo) in of_fill_overlay_info() argument
233 ovinfo->overlay = of_get_child_by_name(info_node, "__overlay__"); in of_fill_overlay_info()
234 if (ovinfo->overlay == NULL) in of_fill_overlay_info()
237 ovinfo->target = find_target_node(info_node); in of_fill_overlay_info()
238 if (ovinfo->target == NULL) in of_fill_overlay_info()
244 of_node_put(ovinfo->target); in of_fill_overlay_info()
245 of_node_put(ovinfo->overlay); in of_fill_overlay_info()
247 memset(ovinfo, 0, sizeof(*ovinfo)); in of_fill_overlay_info()
267 struct of_overlay_info *ovinfo; in of_build_overlay_info() local
275 ovinfo = kcalloc(cnt, sizeof(*ovinfo), GFP_KERNEL); in of_build_overlay_info()
276 if (ovinfo == NULL) in of_build_overlay_info()
281 memset(&ovinfo[cnt], 0, sizeof(*ovinfo)); in of_build_overlay_info()
282 err = of_fill_overlay_info(ov, node, &ovinfo[cnt]); in of_build_overlay_info()
289 kfree(ovinfo); in of_build_overlay_info()
294 ov->ovinfo_tab = ovinfo; in of_build_overlay_info()
310 struct of_overlay_info *ovinfo; in of_free_overlay_info() local
315 ovinfo = &ov->ovinfo_tab[i]; in of_free_overlay_info()
317 of_node_put(ovinfo->target); in of_free_overlay_info()
318 of_node_put(ovinfo->overlay); in of_free_overlay_info()