Lines Matching full:gp
673 struct ggeom *gp; in find_geom_by_provider() local
677 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in find_geom_by_provider()
678 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in find_geom_by_provider()
680 return (gp); in find_geom_by_provider()
689 compute_tree_width_geom(struct gmesh *mesh, struct ggeom *gp, int indent) in compute_tree_width_geom() argument
697 max_width = width = indent + strlen(gp->lg_name); in compute_tree_width_geom()
699 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in compute_tree_width_geom()
722 struct ggeom *gp; in compute_tree_width() local
728 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in compute_tree_width()
729 if (!LIST_EMPTY(&gp->lg_consumer)) in compute_tree_width()
731 width = compute_tree_width_geom(mesh, gp, 0); in compute_tree_width()
741 show_tree_geom(struct gmesh *mesh, struct ggeom *gp, int indent, int width) in show_tree_geom() argument
748 if (LIST_EMPTY(&gp->lg_provider)) { in show_tree_geom()
750 width - indent, width - indent, gp->lg_name, in show_tree_geom()
751 GEOM_CLASS_WIDTH, GEOM_CLASS_WIDTH, gp->lg_class->lg_name); in show_tree_geom()
755 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in show_tree_geom()
757 width - indent, width - indent, gp->lg_name, in show_tree_geom()
758 GEOM_CLASS_WIDTH, GEOM_CLASS_WIDTH, gp->lg_class->lg_name, in show_tree_geom()
780 struct ggeom *gp; in show_tree() local
795 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in show_tree()
796 if (!LIST_EMPTY(&gp->lg_consumer)) in show_tree()
798 show_tree_geom(&mesh, gp, 0, width); in show_tree()
872 struct ggeom *gp; in find_geom() local
877 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in find_geom()
878 if (strcmp(gp->lg_name, name) == 0) in find_geom()
879 return (gp); in find_geom()
936 list_one_geom(struct ggeom *gp) in list_one_geom() argument
943 printf("Geom name: %s\n", gp->lg_name); in list_one_geom()
944 LIST_FOREACH(conf, &gp->lg_config, lg_config) { in list_one_geom()
947 if (!LIST_EMPTY(&gp->lg_provider)) { in list_one_geom()
950 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in list_one_geom()
955 if (!LIST_EMPTY(&gp->lg_consumer)) { in list_one_geom()
958 LIST_FOREACH(cp, &gp->lg_consumer, lg_consumer) { in list_one_geom()
970 struct ggeom *gp; in list_one_geom_by_provider() local
977 gp = find_geom_by_provider(&mesh, provider_name); in list_one_geom_by_provider()
978 if (gp == NULL) in list_one_geom_by_provider()
981 printf("Geom class: %s\n", gp->lg_class->lg_name); in list_one_geom_by_provider()
982 list_one_geom(gp); in list_one_geom_by_provider()
1014 struct ggeom *gp; in std_list() local
1035 gp = find_geom(classp, name); in std_list()
1036 if (gp == NULL) { in std_list()
1041 list_one_geom(gp); in std_list()
1044 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in std_list()
1045 if (LIST_EMPTY(&gp->lg_provider) && !all) in std_list()
1047 list_one_geom(gp); in std_list()
1062 status_update_len(struct ggeom *gp, int *name_len, int *status_len) in status_update_len() argument
1067 assert(gp != NULL); in status_update_len()
1071 len = strlen(gp->lg_name); in status_update_len()
1074 LIST_FOREACH(conf, &gp->lg_config, lg_config) { in status_update_len()
1084 status_update_len_prs(struct ggeom *gp, int *name_len, int *status_len) in status_update_len_prs() argument
1090 assert(gp != NULL); in status_update_len_prs()
1095 LIST_FOREACH(conf, &gp->lg_config, lg_config) { in status_update_len_prs()
1101 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in status_update_len_prs()
1149 status_one_geom(struct ggeom *gp, int script, int name_len, int status_len) in status_one_geom() argument
1156 name = gp->lg_name; in status_one_geom()
1158 LIST_FOREACH(conf, &gp->lg_config, lg_config) { in status_one_geom()
1165 LIST_FOREACH(cp, &gp->lg_consumer, lg_consumer) { in status_one_geom()
1182 status_one_geom_prs(struct ggeom *gp, int script, int name_len, int status_len) in status_one_geom_prs() argument
1190 LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { in status_one_geom_prs()
1193 LIST_FOREACH(conf, &gp->lg_config, lg_config) { in status_one_geom_prs()
1206 LIST_FOREACH(cp, &gp->lg_consumer, lg_consumer) { in status_one_geom_prs()
1228 struct ggeom *gp; in std_status() local
1253 gp = find_geom(classp, name); in std_status()
1254 if (gp == NULL) in std_status()
1257 status_update_len(gp, in std_status()
1260 status_update_len_prs(gp, in std_status()
1269 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in std_status()
1270 if (LIST_EMPTY(&gp->lg_provider) && !all) in std_status()
1273 status_update_len(gp, in std_status()
1276 status_update_len_prs(gp, in std_status()
1291 gp = find_geom(classp, name); in std_status()
1292 if (gp == NULL) in std_status()
1295 status_one_geom(gp, script, name_len, in std_status()
1298 status_one_geom_prs(gp, script, name_len, in std_status()
1303 LIST_FOREACH(gp, &classp->lg_geom, lg_geom) { in std_status()
1304 if (LIST_EMPTY(&gp->lg_provider) && !all) in std_status()
1307 status_one_geom(gp, script, name_len, in std_status()
1310 status_one_geom_prs(gp, script, name_len, in std_status()