Lines Matching full:gp

52 static int g_nop_destroy(struct g_geom *gp, boolean_t force);
54 struct g_geom *gp);
109 struct g_geom *gp; in g_nop_resize() local
115 gp = cp->geom; in g_nop_resize()
116 sc = gp->softc; in g_nop_resize()
121 g_nop_destroy(gp, 1); in g_nop_resize()
125 LIST_FOREACH(pp, &gp->provider, provider) in g_nop_resize()
140 struct g_geom *gp; in g_nop_kerneldump() local
144 gp = bp->bio_to->geom; in g_nop_kerneldump()
145 g_trace(G_T_TOPOLOGY, "%s(%s, %jd, %jd)", __func__, gp->name, in g_nop_kerneldump()
148 pp = LIST_FIRST(&gp->provider); in g_nop_kerneldump()
166 g_nop_pass(struct bio *cbp, struct g_geom *gp) in g_nop_pass() argument
170 g_io_request(cbp, LIST_FIRST(&gp->consumer)); in g_nop_pass()
177 struct g_geom *gp; in g_nop_pass_timeout() local
182 gp = gndelay->dl_bio->bio_to->geom; in g_nop_pass_timeout()
183 sc = gp->softc; in g_nop_pass_timeout()
189 g_nop_pass(gndelay->dl_bio, gp); in g_nop_pass_timeout()
198 struct g_geom *gp; in g_nop_start() local
205 gp = bp->bio_to->geom; in g_nop_start()
206 sc = gp->softc; in g_nop_start()
287 pp = LIST_FIRST(&gp->provider); in g_nop_start()
316 g_nop_pass(cbp, gp); in g_nop_start()
322 struct g_geom *gp; in g_nop_access() local
326 gp = pp->geom; in g_nop_access()
327 cp = LIST_FIRST(&gp->consumer); in g_nop_access()
341 struct g_geom *gp; in g_nop_create() local
351 gp = NULL; in g_nop_create()
413 LIST_FOREACH(gp, &mp->geom, geom) { in g_nop_create()
414 if (strcmp(gp->name, name) == 0) { in g_nop_create()
419 gp = g_new_geomf(mp, "%s", name); in g_nop_create()
449 gp->softc = sc; in g_nop_create()
451 newpp = g_new_providerf(gp, "%s", gp->name); in g_nop_create()
460 cp = g_new_consumer(gp); in g_nop_create()
470 G_NOP_DEBUG(0, "Device %s created.", gp->name); in g_nop_create()
479 g_free(gp->softc); in g_nop_create()
480 g_destroy_geom(gp); in g_nop_create()
487 struct g_geom *gp = pp->geom; in g_nop_providergone() local
488 struct g_nop_softc *sc = gp->softc; in g_nop_providergone()
493 gp->softc = NULL; in g_nop_providergone()
500 g_nop_destroy(struct g_geom *gp, boolean_t force) in g_nop_destroy() argument
506 sc = gp->softc; in g_nop_destroy()
509 pp = LIST_FIRST(&gp->provider); in g_nop_destroy()
520 G_NOP_DEBUG(0, "Device %s removed.", gp->name); in g_nop_destroy()
523 g_wither_geom(gp, ENXIO); in g_nop_destroy()
529 g_nop_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) in g_nop_destroy_geom() argument
532 return (g_nop_destroy(gp, 0)); in g_nop_destroy_geom()
798 struct g_geom *gp; in g_nop_find_geom() local
800 LIST_FOREACH(gp, &mp->geom, geom) { in g_nop_find_geom()
801 if (strcmp(gp->name, name) == 0) in g_nop_find_geom()
802 return (gp); in g_nop_find_geom()
811 struct g_geom *gp; in g_nop_ctl_destroy() local
841 gp = g_nop_find_geom(mp, name); in g_nop_ctl_destroy()
842 if (gp == NULL) { in g_nop_ctl_destroy()
847 error = g_nop_destroy(gp, *force); in g_nop_ctl_destroy()
850 gp->name, error); in g_nop_ctl_destroy()
936 g_nop_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, in g_nop_dumpconf() argument
943 sc = gp->softc; in g_nop_dumpconf()