Lines Matching full:gc

345 	struct gconfig *gc;  in gpart_activate()  local
355 LIST_FOREACH(gc, &pp->lg_geom->lg_config, lg_config) { in gpart_activate()
356 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_activate()
357 scheme = gc->lg_val; in gpart_activate()
367 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in gpart_activate()
368 if (strcmp(gc->lg_name, "index") == 0) { in gpart_activate()
369 idx = atoi(gc->lg_val); in gpart_activate()
412 struct gconfig *gc; in gpart_bootcode() local
424 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in gpart_bootcode()
425 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_bootcode()
426 scheme = gc->lg_val; in gpart_bootcode()
467 struct gconfig *gc; in gpart_partcode() local
473 LIST_FOREACH(gc, &pp->lg_geom->lg_config, lg_config) { in gpart_partcode()
474 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_partcode()
475 scheme = gc->lg_val; in gpart_partcode()
484 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in gpart_partcode()
485 if (strcmp(gc->lg_name, "index") == 0) { in gpart_partcode()
486 indexstr = gc->lg_val; in gpart_partcode()
550 struct gconfig *gc; in gpart_edit() local
587 LIST_FOREACH(gc, &cp->lg_geom->lg_config, lg_config) { in gpart_edit()
588 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_edit()
589 scheme = gc->lg_val; in gpart_edit()
619 LIST_FOREACH(gc, &geom->lg_config, lg_config) { in gpart_edit()
620 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_edit()
621 scheme = gc->lg_val; in gpart_edit()
630 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in gpart_edit()
631 if (strcmp(gc->lg_name, "type") == 0) { in gpart_edit()
632 oldtype = gc->lg_val; in gpart_edit()
633 items[0].init = gc->lg_val; in gpart_edit()
635 if (strcmp(gc->lg_name, "label") == 0 && gc->lg_val != NULL) { in gpart_edit()
637 items[3].init = gc->lg_val; in gpart_edit()
639 if (strcmp(gc->lg_name, "index") == 0) in gpart_edit()
640 idx = atoi(gc->lg_val); in gpart_edit()
831 struct gconfig *gc; in part_compare() local
834 LIST_FOREACH(gc, &(*a)->lg_config, lg_config) in part_compare()
835 if (strcmp(gc->lg_name, "start") == 0) { in part_compare()
836 astart = strtoimax(gc->lg_val, NULL, 0); in part_compare()
839 LIST_FOREACH(gc, &(*b)->lg_config, lg_config) in part_compare()
840 if (strcmp(gc->lg_name, "start") == 0) { in part_compare()
841 bstart = strtoimax(gc->lg_val, NULL, 0); in part_compare()
856 struct gconfig *gc; in gpart_max_free() local
867 LIST_FOREACH(gc, &geom->lg_config, lg_config) { in gpart_max_free()
868 if (strcmp(gc->lg_name, "first") == 0) in gpart_max_free()
869 start = strtoimax(gc->lg_val, NULL, 0); in gpart_max_free()
870 if (strcmp(gc->lg_name, "last") == 0) in gpart_max_free()
871 end = strtoimax(gc->lg_val, NULL, 0); in gpart_max_free()
887 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in gpart_max_free()
888 if (strcmp(gc->lg_name, "start") == 0) in gpart_max_free()
889 partstart = strtoimax(gc->lg_val, NULL, 0); in gpart_max_free()
890 if (strcmp(gc->lg_name, "end") == 0) in gpart_max_free()
891 partend = strtoimax(gc->lg_val, NULL, 0); in gpart_max_free()
942 struct gconfig *gc; in add_boot_partition() local
952 LIST_FOREACH(gc, &ppi->lg_config, lg_config) in add_boot_partition()
953 if (strcmp(gc->lg_name, "type") == 0) in add_boot_partition()
955 if (gc == NULL) in add_boot_partition()
957 if (strcmp(gc->lg_val, bootpart_type(scheme, &bootmount)) != 0) in add_boot_partition()
977 gc->lg_val, bootmount, NULL); in add_boot_partition()
1033 struct gconfig *gc; in gpart_create() local
1086 LIST_FOREACH(gc, &geom->lg_config, lg_config) in gpart_create()
1087 if (strcmp(gc->lg_name, "scheme") == 0) in gpart_create()
1088 scheme = gc->lg_val; in gpart_create()
1359 struct gconfig *gc; in gpart_delete() local
1415 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in gpart_delete()
1416 if (strcmp(gc->lg_name, "index") == 0) { in gpart_delete()
1417 idx = atoi(gc->lg_val); in gpart_delete()
1439 struct gconfig *gc; in gpart_revert_all() local
1460 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in gpart_revert_all()
1461 if (strcmp(gc->lg_name, "modified") == 0) { in gpart_revert_all()
1462 modified = gc->lg_val; in gpart_revert_all()
1486 struct gconfig *gc; in gpart_commit() local
1519 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in gpart_commit()
1520 if (strcmp(gc->lg_name, "modified") == 0) { in gpart_commit()
1521 modified = gc->lg_val; in gpart_commit()