Lines Matching refs:gp
97 g_bsd_modify(struct g_geom *gp, u_char *label) in g_bsd_modify() argument
110 gsp = gp->softc; in g_bsd_modify()
119 cp = LIST_FIRST(&gp->consumer); in g_bsd_modify()
147 gp->name, in g_bsd_modify()
158 error = g_slice_config(gp, i, G_SLICE_CONFIG_CHECK, in g_bsd_modify()
162 "%s%c", gp->name, 'a' + i); in g_bsd_modify()
173 g_slice_config(gp, u, G_SLICE_CONFIG_SET, in g_bsd_modify()
177 "%s%c", gp->name, 'a' + u); in g_bsd_modify()
207 g_bsd_try(struct g_geom *gp, struct g_slicer *gsp, struct g_consumer *cp, int secsize, struct g_bsd… in g_bsd_try() argument
242 g_bsd_writelabel(struct g_geom *gp, u_char *bootcode) in g_bsd_writelabel() argument
253 gsp = gp->softc; in g_bsd_writelabel()
255 cp = LIST_FIRST(&gp->consumer); in g_bsd_writelabel()
292 struct g_geom *gp; in g_bsd_hotwrite() local
306 gp = bp->bio_to->geom; in g_bsd_hotwrite()
307 gsp = gp->softc; in g_bsd_hotwrite()
312 error = g_bsd_modify(gp, p); in g_bsd_hotwrite()
323 struct g_geom *gp; in g_bsd_start() local
327 gp = bp->bio_to->geom; in g_bsd_start()
328 gsp = gp->softc; in g_bsd_start()
344 g_bsd_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp, struc… in g_bsd_dumpconf() argument
349 gsp = gp->softc; in g_bsd_dumpconf()
351 g_slice_dumpconf(sb, indent, gp, cp, pp); in g_bsd_dumpconf()
392 struct g_geom *gp; in g_bsd_taste() local
418 gp = g_slice_new(mp, MAXPARTITIONS, pp, &cp, &ms, in g_bsd_taste()
420 if (gp == NULL) in g_bsd_taste()
424 gsp = gp->softc; in g_bsd_taste()
470 error = g_bsd_try(gp, gsp, cp, secsize, ms, secsize); in g_bsd_taste()
478 error = g_bsd_try(gp, gsp, cp, secsize, ms, in g_bsd_taste()
483 error = g_bsd_try(gp, gsp, cp, secsize, ms, in g_bsd_taste()
508 error = g_bsd_modify(gp, ms->label); in g_bsd_taste()
516 g_slice_conf_hot(gp, 0, ms->labeloffset, LABELSIZE, in g_bsd_taste()
523 "use gpart instead.\n", gp->name); in g_bsd_taste()
525 return (gp); in g_bsd_taste()
537 struct g_geom *gp; member
549 hp->error = g_bsd_modify(hp->gp, hp->label); in g_bsd_callconfig()
551 hp->error = g_bsd_writelabel(hp->gp, NULL); in g_bsd_callconfig()
563 struct g_geom *gp; in g_bsd_config() local
569 gp = gctl_get_geom(req, mp, "geom"); in g_bsd_config()
570 if (gp == NULL) in g_bsd_config()
572 cp = LIST_FIRST(&gp->consumer); in g_bsd_config()
573 gsp = gp->softc; in g_bsd_config()
583 h0h0.gp = gp; in g_bsd_config()
606 error = g_bsd_writelabel(gp, label); in g_bsd_config()