Lines Matching defs:gp
77 struct g_geom *gp;
84 gp = cp->geom;
85 sc = gp->softc;
86 gp->flags |= G_GEOM_WITHER;
87 LIST_FOREACH(pp, &gp->provider, provider)
96 struct g_geom *gp;
99 gp = pp->geom;
100 cp = LIST_FIRST(&gp->consumer);
116 struct g_geom *gp;
128 gp = NULL;
131 gp = g_new_geomf(mp, "%s.bde", pp->name);
132 cp = g_new_consumer(gp);
138 g_destroy_geom(gp);
158 gp->softc = sc;
159 sc->geom = gp;
185 kproc_create(g_bde_worker, gp, &sc->thread, 0, 0,
186 "g_bde %s", gp->name);
187 pp = g_new_providerf(gp, "%s", gp->name);
204 if (gp->softc != NULL)
205 g_free(gp->softc);
206 g_destroy_geom(gp);
212 g_bde_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp)
218 g_trace(G_T_TOPOLOGY, "g_bde_destroy_geom(%s, %s)", mp->name, gp->name);
223 KASSERT(gp != NULL, ("NULL geom"));
224 pp = LIST_FIRST(&gp->provider);
228 sc = gp->softc;
229 cp = LIST_FIRST(&gp->consumer);
241 g_wither_geom(gp, ENXIO);
248 struct g_geom *gp;
256 gp = gctl_get_geom(req, mp, "geom");
257 if (gp != NULL)
258 g_bde_destroy_geom(req, mp, gp);