Lines Matching refs:ovcs_id

1692 static int __init overlay_data_apply(const char *overlay_name, int *ovcs_id);
2075 static void of_unittest_track_overlay(int ovcs_id, int overlay_nr) in of_unittest_track_overlay() argument
2080 track_ovcs_id[track_ovcs_id_cnt] = ovcs_id; in of_unittest_track_overlay()
2085 static void of_unittest_untrack_overlay(int ovcs_id) in of_unittest_untrack_overlay() argument
2093 WARN_ON(track_ovcs_id[track_ovcs_id_cnt] != ovcs_id); in of_unittest_untrack_overlay()
2098 int ret, ovcs_id, overlay_nr, save_ovcs_id; in of_unittest_remove_tracked_overlays() local
2103 ovcs_id = track_ovcs_id[track_ovcs_id_cnt - 1]; in of_unittest_remove_tracked_overlays()
2105 save_ovcs_id = ovcs_id; in of_unittest_remove_tracked_overlays()
2106 ret = of_overlay_remove(&ovcs_id); in of_unittest_remove_tracked_overlays()
2117 static int __init of_unittest_apply_overlay(int overlay_nr, int *ovcs_id) in of_unittest_apply_overlay() argument
2128 if (!overlay_data_apply(overlay_name, ovcs_id)) { in of_unittest_apply_overlay()
2132 of_unittest_track_overlay(*ovcs_id, overlay_nr); in of_unittest_apply_overlay()
2141 int ret, ovcs_id; in __of_unittest_apply_overlay_check() local
2153 ovcs_id = 0; in __of_unittest_apply_overlay_check()
2154 ret = of_unittest_apply_overlay(overlay_nr, &ovcs_id); in __of_unittest_apply_overlay_check()
2169 return ovcs_id; in __of_unittest_apply_overlay_check()
2177 int ovcs_id = __of_unittest_apply_overlay_check(overlay_nr, in of_unittest_apply_overlay_check() local
2179 if (ovcs_id < 0) in of_unittest_apply_overlay_check()
2180 return ovcs_id; in of_unittest_apply_overlay_check()
2190 int ret, ovcs_id, save_ovcs_id; in of_unittest_apply_revert_overlay_check() local
2192 ovcs_id = __of_unittest_apply_overlay_check(overlay_nr, unittest_nr, in of_unittest_apply_revert_overlay_check()
2194 if (ovcs_id < 0) in of_unittest_apply_revert_overlay_check()
2195 return ovcs_id; in of_unittest_apply_revert_overlay_check()
2198 save_ovcs_id = ovcs_id; in of_unittest_apply_revert_overlay_check()
2199 ret = of_overlay_remove(&ovcs_id); in of_unittest_apply_revert_overlay_check()
2333 int i, save_ovcs_id[2], ovcs_id; in of_unittest_overlay_6() local
2360 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_6()
2366 save_ovcs_id[0] = ovcs_id; in of_unittest_overlay_6()
2367 of_unittest_track_overlay(ovcs_id, overlay_nr + 0); in of_unittest_overlay_6()
2377 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_6()
2383 save_ovcs_id[1] = ovcs_id; in of_unittest_overlay_6()
2384 of_unittest_track_overlay(ovcs_id, overlay_nr + 1); in of_unittest_overlay_6()
2404 ovcs_id = save_ovcs_id[i]; in of_unittest_overlay_6()
2405 if (of_overlay_remove(&ovcs_id)) { in of_unittest_overlay_6()
2435 int i, save_ovcs_id[2], ovcs_id; in of_unittest_overlay_8() local
2447 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_8()
2457 save_ovcs_id[0] = ovcs_id; in of_unittest_overlay_8()
2458 of_unittest_track_overlay(ovcs_id, overlay_nr + 0); in of_unittest_overlay_8()
2466 ret = overlay_data_apply(overlay_name, &ovcs_id); in of_unittest_overlay_8()
2476 save_ovcs_id[1] = ovcs_id; in of_unittest_overlay_8()
2477 of_unittest_track_overlay(ovcs_id, overlay_nr + 1); in of_unittest_overlay_8()
2480 ovcs_id = save_ovcs_id[0]; in of_unittest_overlay_8()
2488 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_8()
2510 ovcs_id = save_ovcs_id[i]; in of_unittest_overlay_8()
2511 if (of_overlay_remove(&ovcs_id)) { in of_unittest_overlay_8()
2957 int ovcs_id; in of_unittest_overlay_notify() local
2982 unittest(overlay_data_apply("overlay_16", &ovcs_id), in of_unittest_overlay_notify()
2987 unittest(ovcs_id, "ovcs_id not created for overlay_16\n"); in of_unittest_overlay_notify()
2993 unittest(overlay_data_apply("overlay_17", &ovcs_id), in of_unittest_overlay_notify()
2998 unittest(ovcs_id, "ovcs_id not created for overlay_17\n"); in of_unittest_overlay_notify()
3002 unittest(overlay_data_apply("overlay_18", &ovcs_id), in of_unittest_overlay_notify()
3005 unittest(ovcs_id, "ovcs_id not created for overlay_18\n"); in of_unittest_overlay_notify()
3007 if (ovcs_id) { in of_unittest_overlay_notify()
3010 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
3024 unittest(ovcs_id, "ovcs_id removed for overlay_18\n"); in of_unittest_overlay_notify()
3028 unittest(overlay_data_apply("overlay_19", &ovcs_id), in of_unittest_overlay_notify()
3031 unittest(ovcs_id, "ovcs_id not created for overlay_19\n"); in of_unittest_overlay_notify()
3033 if (ovcs_id) { in of_unittest_overlay_notify()
3035 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
3045 unittest(!ovcs_id, "changeset ovcs_id = %d not removed for overlay_19\n", in of_unittest_overlay_notify()
3046 ovcs_id); in of_unittest_overlay_notify()
3050 unittest(overlay_data_apply("overlay_20", &ovcs_id), in of_unittest_overlay_notify()
3053 if (ovcs_id) { in of_unittest_overlay_notify()
3054 ret = of_overlay_remove(&ovcs_id); in of_unittest_overlay_notify()
3302 int ovcs_id; member
3470 static int __init overlay_data_apply(const char *overlay_name, int *ovcs_id) in overlay_data_apply() argument
3493 ret = of_overlay_fdt_apply(info->dtbo_begin, size, &info->ovcs_id, in overlay_data_apply()
3495 if (ovcs_id) in overlay_data_apply()
3496 *ovcs_id = info->ovcs_id; in overlay_data_apply()
3511 ret2 = of_overlay_remove(&info->ovcs_id); in overlay_data_apply()
3817 int ret, ovcs_id; in testdrv_probe() local
3836 ret = of_overlay_fdt_apply(info->dtbo_begin, size, &ovcs_id, dn); in testdrv_probe()
3842 pci_set_drvdata(pdev, (void *)(uintptr_t)ovcs_id); in testdrv_probe()
3849 int ovcs_id = (int)(uintptr_t)pci_get_drvdata(pdev); in testdrv_remove() local
3852 of_overlay_remove(&ovcs_id); in testdrv_remove()