Lines Matching refs:ovcs_id

1512 static int __init overlay_data_apply(const char *overlay_name, int *ovcs_id);
1930 static void of_unittest_track_overlay(int ovcs_id, int overlay_nr) in of_unittest_track_overlay() argument
1935 track_ovcs_id[track_ovcs_id_cnt] = ovcs_id; in of_unittest_track_overlay()
1940 static void of_unittest_untrack_overlay(int ovcs_id) in of_unittest_untrack_overlay() argument
1948 WARN_ON(track_ovcs_id[track_ovcs_id_cnt] != ovcs_id); in of_unittest_untrack_overlay()
1953 int ret, ovcs_id, overlay_nr, save_ovcs_id; in of_unittest_remove_tracked_overlays() local
1958 ovcs_id = track_ovcs_id[track_ovcs_id_cnt - 1]; in of_unittest_remove_tracked_overlays()
1960 save_ovcs_id = ovcs_id; in of_unittest_remove_tracked_overlays()
1961 ret = of_overlay_remove(&ovcs_id); in of_unittest_remove_tracked_overlays()
1972 static int __init of_unittest_apply_overlay(int overlay_nr, int *ovcs_id) in of_unittest_apply_overlay() argument
1983 if (!overlay_data_apply(overlay_name, ovcs_id)) { in of_unittest_apply_overlay()
1987 of_unittest_track_overlay(*ovcs_id, overlay_nr); in of_unittest_apply_overlay()
1997 int ret, ovcs_id; in of_unittest_apply_overlay_check() local
2008 ovcs_id = 0; in of_unittest_apply_overlay_check()
2009 ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id); in of_unittest_apply_overlay_check()
2032 int ret, ovcs_id, save_ovcs_id; in of_unittest_apply_revert_overlay_check() local
2044 ovcs_id = 0; in of_unittest_apply_revert_overlay_check()
2045 ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id); in of_unittest_apply_revert_overlay_check()
2060 save_ovcs_id = ovcs_id; in of_unittest_apply_revert_overlay_check()
2061 ret = of_overlay_remove(&ovcs_id); in of_unittest_apply_revert_overlay_check()
2195 int i, save_ovcs_id[2], ovcs_id; in of_unittest_overlay_6() local
2222 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_6()
2228 save_ovcs_id[0] = ovcs_id; in of_unittest_overlay_6()
2229 of_unittest_track_overlay(ovcs_id, overlay_nr + 0); in of_unittest_overlay_6()
2239 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_6()
2245 save_ovcs_id[1] = ovcs_id; in of_unittest_overlay_6()
2246 of_unittest_track_overlay(ovcs_id, overlay_nr + 1); in of_unittest_overlay_6()
2266 ovcs_id = save_ovcs_id[i]; in of_unittest_overlay_6()
2267 if (of_overlay_remove(&ovcs_id)) { in of_unittest_overlay_6()
2297 int i, save_ovcs_id[2], ovcs_id; in of_unittest_overlay_8() local
2309 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_8()
2319 save_ovcs_id[0] = ovcs_id; in of_unittest_overlay_8()
2320 of_unittest_track_overlay(ovcs_id, overlay_nr + 0); in of_unittest_overlay_8()
2328 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_8()
2338 save_ovcs_id[1] = ovcs_id; in of_unittest_overlay_8()
2339 of_unittest_track_overlay(ovcs_id, overlay_nr + 1); in of_unittest_overlay_8()
2342 ovcs_id = save_ovcs_id[0]; in of_unittest_overlay_8()
2350 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_8()
2372 ovcs_id = save_ovcs_id[i]; in of_unittest_overlay_8()
2373 if (of_overlay_remove(&ovcs_id)) { in of_unittest_overlay_8()
2821 int ovcs_id; in of_unittest_overlay_notify() local
2846 unittest(overlay_data_apply("overlay_16", &ovcs_id), in of_unittest_overlay_notify()
2851 unittest(ovcs_id, "ovcs_id not created for overlay_16\n"); in of_unittest_overlay_notify()
2857 unittest(overlay_data_apply("overlay_17", &ovcs_id), in of_unittest_overlay_notify()
2862 unittest(ovcs_id, "ovcs_id not created for overlay_17\n"); in of_unittest_overlay_notify()
2864 if (ovcs_id) { in of_unittest_overlay_notify()
2865 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
2872 unittest(overlay_data_apply("overlay_18", &ovcs_id), in of_unittest_overlay_notify()
2875 unittest(ovcs_id, "ovcs_id not created for overlay_18\n"); in of_unittest_overlay_notify()
2877 if (ovcs_id) { in of_unittest_overlay_notify()
2880 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
2894 unittest(ovcs_id, "ovcs_id removed for overlay_18\n"); in of_unittest_overlay_notify()
2898 unittest(overlay_data_apply("overlay_19", &ovcs_id), in of_unittest_overlay_notify()
2901 unittest(ovcs_id, "ovcs_id not created for overlay_19\n"); in of_unittest_overlay_notify()
2903 if (ovcs_id) { in of_unittest_overlay_notify()
2905 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
2915 unittest(!ovcs_id, "changeset ovcs_id = %d not removed for overlay_19\n", in of_unittest_overlay_notify()
2916 ovcs_id); in of_unittest_overlay_notify()
2920 unittest(overlay_data_apply("overlay_20", &ovcs_id), in of_unittest_overlay_notify()
2923 if (ovcs_id) { in of_unittest_overlay_notify()
2924 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
3168 int ovcs_id; member
3332 static int __init overlay_data_apply(const char *overlay_name, int *ovcs_id) in overlay_data_apply() argument
3354 ret = of_overlay_fdt_apply(info->dtbo_begin, size, &info->ovcs_id); in overlay_data_apply()
3355 if (ovcs_id) in overlay_data_apply()
3356 *ovcs_id = info->ovcs_id; in overlay_data_apply()