Lines Matching full:gp

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