Lines Matching refs:gp

72 g_slice_free(struct g_geom *gp)
76 gsp = gp->softc;
77 gp->softc = NULL;
97 struct g_geom *gp;
103 gp = pp->geom;
104 cp = LIST_FIRST(&gp->consumer);
106 gsp = gp->softc;
139 if (error == 0 && (gp->flags & G_GEOM_WITHER) != 0 &&
141 g_slice_free(gp);
157 struct g_geom *gp;
167 gp = bp->bio_to->geom;
168 gsp = gp->softc;
169 cp = LIST_FIRST(&gp->consumer);
214 struct g_geom *gp;
224 gp = pp->geom;
225 gsp = gp->softc;
226 cp = LIST_FIRST(&gp->consumer);
267 gp, NULL);
326 g_slice_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp)
330 gsp = gp->softc;
351 g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...)
361 gp->name, idx, how);
363 gsp = gp->softc;
407 pp = g_new_providerf(gp, "%s", sbuf_data(sb));
408 pp2 = LIST_FIRST(&gp->consumer)->provider;
445 g_slice_conf_hot(struct g_geom *gp, u_int idx, off_t offset, off_t length, int ract, int dact, int wact)
453 gp->name, idx, (intmax_t)offset, (intmax_t)length);
455 gsp = gp->softc;
458 LIST_FOREACH(pp, &gp->provider, provider)
461 LIST_FOREACH(cp, &gp->consumer, consumer)
489 struct g_geom *gp;
492 gp = cp->geom;
493 g_trace(G_T_TOPOLOGY, "%s(%p/%s)", __func__, cp, gp->name);
494 g_wither_geom(gp, ENXIO);
501 g_slice_free(gp);
514 g_slice_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp)
517 g_slice_spoiled(LIST_FIRST(&gp->consumer));
524 struct g_geom *gp;
532 gp = g_new_geomf(mp, "%s", pp->name);
535 gp->softc = gsp;
536 gp->start = g_slice_start;
537 gp->access = g_slice_access;
538 gp->orphan = g_slice_orphan;
539 gp->spoiled = g_slice_spoiled;
540 if (gp->dumpconf == NULL)
541 gp->dumpconf = g_slice_dumpconf;
542 if (gp->class->destroy_geom == NULL)
543 gp->class->destroy_geom = g_slice_destroy_geom;
544 cp = g_new_consumer(gp);
550 g_wither_geom(gp, ENXIO);
556 return (gp);