Lines Matching full:gp

57     struct g_geom *gp);
156 struct g_geom *gp; in g_concat_orphan() local
159 gp = cp->geom; in g_concat_orphan()
160 sc = gp->softc; in g_concat_orphan()
175 struct g_geom *gp; in g_concat_access() local
180 gp = pp->geom; in g_concat_access()
181 sc = gp->softc; in g_concat_access()
191 LIST_FOREACH_SAFE(cp1, &gp->consumer, consumer, tmp) { in g_concat_access()
206 LIST_FOREACH(cp2, &gp->consumer, consumer) { in g_concat_access()
532 struct g_geom *gp; in g_concat_add_disk() local
555 gp = sc->sc_geom; in g_concat_add_disk()
556 fcp = LIST_FIRST(&gp->consumer); in g_concat_add_disk()
558 cp = g_new_consumer(gp); in g_concat_add_disk()
629 struct g_geom *gp; in g_concat_create() local
640 LIST_FOREACH(gp, &mp->geom, geom) { in g_concat_create()
641 sc = gp->softc; in g_concat_create()
644 gp->name); in g_concat_create()
648 gp = g_new_geomf(mp, "%s", md->md_name); in g_concat_create()
650 gp->start = g_concat_start; in g_concat_create()
651 gp->spoiled = g_concat_orphan; in g_concat_create()
652 gp->orphan = g_concat_orphan; in g_concat_create()
653 gp->access = g_concat_access; in g_concat_create()
654 gp->dumpconf = g_concat_dumpconf; in g_concat_create()
667 gp->softc = sc; in g_concat_create()
668 sc->sc_geom = gp; in g_concat_create()
673 return (gp); in g_concat_create()
681 struct g_geom *gp; in g_concat_destroy() local
702 gp = sc->sc_geom; in g_concat_destroy()
703 LIST_FOREACH_SAFE(cp, &gp->consumer, consumer, cp1) { in g_concat_destroy()
708 if (!LIST_EMPTY(&gp->consumer)) in g_concat_destroy()
711 gp->softc = NULL; in g_concat_destroy()
713 gp->name)); in g_concat_destroy()
722 G_CONCAT_DEBUG(0, "Device %s destroyed.", gp->name); in g_concat_destroy()
723 g_wither_geom(gp, ENXIO); in g_concat_destroy()
729 struct g_class *mp __unused, struct g_geom *gp) in g_concat_destroy_geom() argument
733 sc = gp->softc; in g_concat_destroy_geom()
743 struct g_geom *gp; in g_concat_taste() local
755 gp = g_new_geomf(mp, "concat:taste"); in g_concat_taste()
756 gp->start = g_concat_start; in g_concat_taste()
757 gp->access = g_concat_access; in g_concat_taste()
758 gp->orphan = g_concat_orphan; in g_concat_taste()
759 cp = g_new_consumer(gp); in g_concat_taste()
767 g_destroy_geom(gp); in g_concat_taste()
770 gp = NULL; in g_concat_taste()
799 LIST_FOREACH(gp, &mp->geom, geom) { in g_concat_taste()
800 sc = gp->softc; in g_concat_taste()
811 if (gp != NULL) { in g_concat_taste()
812 G_CONCAT_DEBUG(1, "Adding disk %s to %s.", pp->name, gp->name); in g_concat_taste()
817 gp->name, error); in g_concat_taste()
821 gp = g_concat_create(mp, &md, G_CONCAT_TYPE_AUTOMATIC); in g_concat_taste()
822 if (gp == NULL) { in g_concat_taste()
827 sc = gp->softc; in g_concat_taste()
828 G_CONCAT_DEBUG(1, "Adding disk %s to %s.", pp->name, gp->name); in g_concat_taste()
833 gp->name, error); in g_concat_taste()
839 return (gp); in g_concat_taste()
849 struct g_geom *gp; in g_concat_ctl_create() local
889 gp = g_concat_create(mp, &md, G_CONCAT_TYPE_MANUAL); in g_concat_ctl_create()
890 if (gp == NULL) { in g_concat_ctl_create()
895 sc = gp->softc; in g_concat_ctl_create()
897 sbuf_printf(sb, "Can't attach disk(s) to %s:", gp->name); in g_concat_ctl_create()
909 no, pp->name, gp->name); in g_concat_ctl_create()
917 g_concat_destroy(gp->softc, 1); in g_concat_ctl_create()
927 struct g_geom *gp; in g_concat_find_device() local
932 LIST_FOREACH(gp, &mp->geom, geom) { in g_concat_find_device()
933 sc = gp->softc; in g_concat_find_device()
1057 struct g_geom *gp; in g_concat_ctl_append() local
1101 gp = sc->sc_geom; in g_concat_ctl_append()
1102 fcp = LIST_FIRST(&gp->consumer); in g_concat_ctl_append()
1130 cp = g_new_consumer(gp); in g_concat_ctl_append()
1218 g_concat_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, in g_concat_dumpconf() argument
1224 sc = gp->softc; in g_concat_dumpconf()