Lines Matching full:gp

59     struct g_geom *gp);
92 static int g_union_destroy(struct gctl_req *req, struct g_geom *gp, bool force);
148 struct g_geom *gp; in g_union_ctl_create() local
243 LIST_FOREACH(gp, &mp->geom, geom) { in g_union_ctl_create()
244 if (strcmp(gp->name, name) == 0) { in g_union_ctl_create()
249 gp = g_new_geomf(mp, "%s", name); in g_union_ctl_create()
268 gp->softc = sc; in g_union_ctl_create()
270 newpp = g_new_providerf(gp, "%s", gp->name); in g_union_ctl_create()
280 lowercp = g_new_consumer(gp); in g_union_ctl_create()
294 uppercp = g_new_consumer(gp); in g_union_ctl_create()
345 gp->name, (intmax_t)sc->sc_writemap_memory); in g_union_ctl_create()
348 gp->name, (intmax_t)sc->sc_writemap_memory); in g_union_ctl_create()
361 g_destroy_geom(gp); in g_union_ctl_create()
405 struct g_geom *gp; in g_union_ctl_destroy() local
435 gp = g_union_find_geom(mp, name); in g_union_ctl_destroy()
436 if (gp == NULL) { in g_union_ctl_destroy()
440 error = g_union_destroy(verbose ? req : NULL, gp, *force); in g_union_ctl_destroy()
443 "cannot destroy device %s.", error, gp->name); in g_union_ctl_destroy()
454 struct g_geom *gp; in g_union_find_geom() local
456 LIST_FOREACH(gp, &mp->geom, geom) { in g_union_find_geom()
457 if (strcmp(gp->name, name) == 0) in g_union_find_geom()
458 return (gp); in g_union_find_geom()
471 struct g_geom *gp; in g_union_ctl_reset() local
494 gp = pp->geom; in g_union_ctl_reset()
495 if (gp->class != mp) { in g_union_ctl_reset()
500 sc = gp->softc; in g_union_ctl_reset()
527 struct g_geom *gp; in g_union_ctl_revert() local
550 gp = pp->geom; in g_union_ctl_revert()
551 if (gp->class != mp) { in g_union_ctl_revert()
556 sc = gp->softc; in g_union_ctl_revert()
608 struct g_geom *gp; in g_union_ctl_commit() local
647 gp = pp->geom; in g_union_ctl_commit()
648 if (gp->class != mp) { in g_union_ctl_commit()
653 sc = gp->softc; in g_union_ctl_commit()
1201 struct g_geom *gp; in g_union_kerneldump() local
1205 gp = bp->bio_to->geom; in g_union_kerneldump()
1206 g_trace(G_T_TOPOLOGY, "%s(%s, %jd, %jd)", __func__, gp->name, in g_union_kerneldump()
1209 pp = LIST_FIRST(&gp->provider); in g_union_kerneldump()
1240 g_union_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, in g_union_dumpconf() argument
1245 if (pp != NULL || cp != NULL || gp->softc == NULL) in g_union_dumpconf()
1247 sc = gp->softc; in g_union_dumpconf()
1298 struct g_geom *gp) in g_union_destroy_geom() argument
1301 return (g_union_destroy(NULL, gp, false)); in g_union_destroy_geom()
1308 g_union_destroy(struct gctl_req *req, struct g_geom *gp, bool force) in g_union_destroy() argument
1315 sc = gp->softc; in g_union_destroy()
1318 pp = LIST_FIRST(&gp->provider); in g_union_destroy()
1324 "so is being forcibly removed.", gp->name); in g_union_destroy()
1326 "is being forcibly removed.", gp->name); in g_union_destroy()
1330 "(r=%d w=%d e=%d).", gp->name, pp->acr, in g_union_destroy()
1333 "(r=%d w=%d e=%d).", gp->name, pp->acr, in g_union_destroy()
1339 gctl_msg(req, 0, "Device %s removed.", gp->name); in g_union_destroy()
1340 G_UNION_DEBUG(1, "Device %s removed.", gp->name); in g_union_destroy()
1345 "to %s.", error, gp->name, sc->sc_lowercp->provider->name); in g_union_destroy()
1348 "to %s.", error, gp->name, sc->sc_uppercp->provider->name); in g_union_destroy()
1350 g_wither_geom(gp, ENXIO); in g_union_destroy()
1361 struct g_geom *gp; in g_union_providergone() local
1365 gp = pp->geom; in g_union_providergone()
1366 sc = gp->softc; in g_union_providergone()
1367 gp->softc = NULL; in g_union_providergone()
1383 struct g_geom *gp; in g_union_resize() local
1387 gp = cp->geom; in g_union_resize()
1388 sc = gp->softc; in g_union_resize()
1396 g_union_destroy(NULL, gp, true); in g_union_resize()