Lines Matching refs:gp
58 struct g_geom *gp);
59 static int g_label_destroy(struct g_geom *gp, boolean_t force);
118 struct g_geom *gp __unused) in g_label_destroy_geom()
198 struct g_geom *gp; in g_label_create() local
213 gp = NULL; in g_label_create()
216 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_create()
217 pp2 = LIST_FIRST(&gp->provider); in g_label_create()
232 gp = g_slice_new(mp, 1, pp, &cp, NULL, 0, NULL); in g_label_create()
233 if (gp == NULL) { in g_label_create()
239 gp->orphan = g_label_orphan; in g_label_create()
240 gp->spoiled = g_label_spoiled; in g_label_create()
241 gp->resize = g_label_resize; in g_label_create()
243 g_slice_config(gp, 0, G_SLICE_CONFIG_SET, (off_t)0, mediasize, in g_label_create()
246 return (gp); in g_label_create()
250 g_label_destroy(struct g_geom *gp, boolean_t force) in g_label_destroy() argument
255 pp = LIST_FIRST(&gp->provider); in g_label_destroy()
268 g_slice_spoiled(LIST_FIRST(&gp->consumer)); in g_label_destroy()
323 struct g_geom *gp; in g_label_taste() local
338 gp = g_new_geomf(mp, "label:taste"); in g_label_taste()
339 gp->start = g_label_start_taste; in g_label_taste()
340 gp->access = g_label_access_taste; in g_label_taste()
341 gp->orphan = g_label_orphan_taste; in g_label_taste()
342 cp = g_new_consumer(gp); in g_label_taste()
391 g_destroy_geom(gp); in g_label_taste()
463 struct g_geom *gp; in g_label_find_geom() local
468 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_find_geom()
469 pp = LIST_FIRST(&gp->provider); in g_label_find_geom()
472 return (gp); in g_label_find_geom()
481 struct g_geom *gp; in g_label_ctl_destroy() local
509 gp = g_label_find_geom(mp, name); in g_label_ctl_destroy()
510 if (gp == NULL) { in g_label_ctl_destroy()
515 error = g_label_destroy(gp, *force); in g_label_ctl_destroy()
518 LIST_FIRST(&gp->provider)->name, error); in g_label_ctl_destroy()