Lines Matching refs:g_partitions
419 int g_partitions; // = 4; /* maximum partition + 1 */ member
455 #define g_partitions (G.g_partitions ) macro
487 g_partitions = 4; \
1230 struct pte *pe = &ptes[g_partitions]; in read_extended()
1232 if (g_partitions >= MAXIMUM_PARTS) { in read_extended()
1236 struct pte *pre = &ptes[g_partitions - 1]; in read_extended()
1239 g_partitions); in read_extended()
1257 " %u\n", g_partitions + 1); in read_extended()
1264 " %u\n", g_partitions + 1); in read_extended()
1285 g_partitions++; in read_extended()
1291 for (i = 4; i < g_partitions; i++) { in read_extended()
1295 && (g_partitions > 5 || ptes[4].part_table->sys_ind) in read_extended()
1315 g_partitions = 4; in create_doslabel()
1447 g_partitions = 4; in get_boot()
1558 if (g_partitions != 4) in get_boot()
1566 for (i = 3; i < g_partitions; i++) { in get_boot()
1833 g_partitions = 4; in delete_partition()
1843 --g_partitions; in delete_partition()
1856 } else if (g_partitions > 5) { /* 5 will be moved to 4 */ in delete_partition()
1868 if (g_partitions > 5) { in delete_partition()
1869 g_partitions--; in delete_partition()
1870 while (i < g_partitions) { in delete_partition()
1891 i = get_existing_partition(0, g_partitions); in change_sysid()
1893 i = get_partition(0, g_partitions); in change_sysid()
2063 for (i = 0; i < g_partitions; i++) { in wrong_p_order()
2109 for (j = 5; j < g_partitions - 1; j++) { in fix_chain_of_logicals()
2129 for (j = 4; j < g_partitions - 1; j++) { in fix_chain_of_logicals()
2147 for (j = 4; j < g_partitions; j++) in fix_chain_of_logicals()
2237 for (i = 0; i < g_partitions; i++) { in list_table()
2304 for (i = 0; i < g_partitions; i++) { in x_list_table()
2335 for (i = 0; i < g_partitions; pe++,i++) { in fill_bounds()
2377 sector_t first[g_partitions], last[g_partitions]; in verify()
2393 for (i = 0; i < g_partitions; i++) { in verify()
2424 for (i = 4; i < g_partitions; i++) { in verify()
2428 if (i != 4 || i + 1 < g_partitions) in verify()
2460 sector_t first[g_partitions], last[g_partitions]; in add_partition()
2483 for (i = 0; i < g_partitions; i++) in add_partition()
2489 for (i = 0; i < g_partitions; i++) { in add_partition()
2529 for (i = 0; i < g_partitions; i++) { in add_partition()
2540 g_partitions--; in add_partition()
2573 g_partitions = 5; in add_partition()
2580 if (g_partitions > 5 || ptes[4].part_table->sys_ind) { in add_logical()
2581 struct pte *pe = &ptes[g_partitions]; in add_logical()
2588 g_partitions++; in add_logical()
2590 add_partition(g_partitions - 1, LINUX_NATIVE); in add_logical()
2602 add_sun_partition(get_partition(0, g_partitions), LINUX_NATIVE); in new_partition()
2606 sgi_add_partition(get_partition(0, g_partitions), LINUX_NATIVE); in new_partition()
2619 if (!free_primary && g_partitions >= MAXIMUM_PARTS) { in new_partition()
2701 for (i = 3; i < g_partitions; i++) { in write_table()
2757 for (i = 3; i < g_partitions; i++) in print_raw()
2805 move_begin(get_partition(0, g_partitions)); in xselect()
2958 if (!LABEL_IS_SUN && g_partitions > 4) { in open_list_and_close()
3128 toggle_active(get_partition(1, g_partitions)); in fdisk_main()
3130 toggle_sunflags(get_partition(1, g_partitions), in fdisk_main()
3134 get_partition(1, g_partitions)); in fdisk_main()
3157 toggle_sunflags(get_partition(1, g_partitions), in fdisk_main()
3161 get_partition(1, g_partitions)); in fdisk_main()
3173 j = get_existing_partition(1, g_partitions); in fdisk_main()
3175 j = get_partition(1, g_partitions); in fdisk_main()