Lines Matching refs:ovinfo
175 struct of_overlay_info *ovinfo = &ov->ovinfo_tab[i]; in of_overlay_apply() local
177 err = of_overlay_apply_one(ov, ovinfo->target, ovinfo->overlay); in of_overlay_apply()
180 __func__, ovinfo->target->full_name); in of_overlay_apply()
232 struct device_node *info_node, struct of_overlay_info *ovinfo) in of_fill_overlay_info() argument
234 ovinfo->overlay = of_get_child_by_name(info_node, "__overlay__"); in of_fill_overlay_info()
235 if (ovinfo->overlay == NULL) in of_fill_overlay_info()
238 ovinfo->target = find_target_node(info_node); in of_fill_overlay_info()
239 if (ovinfo->target == NULL) in of_fill_overlay_info()
245 of_node_put(ovinfo->target); in of_fill_overlay_info()
246 of_node_put(ovinfo->overlay); in of_fill_overlay_info()
248 memset(ovinfo, 0, sizeof(*ovinfo)); in of_fill_overlay_info()
268 struct of_overlay_info *ovinfo; in of_build_overlay_info() local
276 ovinfo = kcalloc(cnt, sizeof(*ovinfo), GFP_KERNEL); in of_build_overlay_info()
277 if (ovinfo == NULL) in of_build_overlay_info()
282 memset(&ovinfo[cnt], 0, sizeof(*ovinfo)); in of_build_overlay_info()
283 err = of_fill_overlay_info(ov, node, &ovinfo[cnt]); in of_build_overlay_info()
290 kfree(ovinfo); in of_build_overlay_info()
295 ov->ovinfo_tab = ovinfo; in of_build_overlay_info()
311 struct of_overlay_info *ovinfo; in of_free_overlay_info() local
316 ovinfo = &ov->ovinfo_tab[i]; in of_free_overlay_info()
318 of_node_put(ovinfo->target); in of_free_overlay_info()
319 of_node_put(ovinfo->overlay); in of_free_overlay_info()