Lines Matching full:gp
60 struct g_geom *gp);
61 static int g_label_destroy(struct g_geom *gp, boolean_t force);
130 struct g_geom *gp __unused) in g_label_destroy_geom()
225 struct g_geom *gp; in g_label_create() local
240 gp = NULL; in g_label_create()
247 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_create()
248 pp2 = LIST_FIRST(&gp->provider); in g_label_create()
263 gp = g_slice_new(mp, 1, pp, &cp, NULL, 0, NULL); in g_label_create()
264 if (gp == NULL) { in g_label_create()
270 gp->orphan = g_label_orphan; in g_label_create()
271 gp->spoiled = g_label_spoiled; in g_label_create()
272 gp->resize = g_label_resize; in g_label_create()
274 g_slice_config(gp, 0, G_SLICE_CONFIG_SET, (off_t)0, mediasize, in g_label_create()
277 return (gp); in g_label_create()
281 g_label_destroy(struct g_geom *gp, boolean_t force) in g_label_destroy() argument
286 pp = LIST_FIRST(&gp->provider); in g_label_destroy()
299 g_slice_spoiled(LIST_FIRST(&gp->consumer)); in g_label_destroy()
382 struct g_geom *gp; in g_label_taste() local
402 gp = g_new_geomf(mp, "label:taste"); in g_label_taste()
403 gp->start = g_label_start_taste; in g_label_taste()
404 gp->access = g_label_access_taste; in g_label_taste()
405 gp->orphan = g_label_orphan_taste; in g_label_taste()
406 cp = g_new_consumer(gp); in g_label_taste()
436 g_destroy_geom(gp); in g_label_taste()
495 struct g_geom *gp; in g_label_find_geom() local
500 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_find_geom()
501 pp = LIST_FIRST(&gp->provider); in g_label_find_geom()
504 return (gp); in g_label_find_geom()
513 struct g_geom *gp; in g_label_ctl_destroy() local
541 gp = g_label_find_geom(mp, name); in g_label_ctl_destroy()
542 if (gp == NULL) { in g_label_ctl_destroy()
547 error = g_label_destroy(gp, *force); in g_label_ctl_destroy()
550 LIST_FIRST(&gp->provider)->name, error); in g_label_ctl_destroy()