Lines Matching defs:cp
64 gv_orphan(struct g_consumer *cp)
72 KASSERT(cp != NULL, ("gv_orphan: null cp"));
73 gp = cp->geom;
77 d = cp->private;
587 struct g_consumer *cp;
602 cp = g_new_consumer(gp);
603 if (g_attach(cp, pp) != 0) {
604 g_destroy_consumer(cp);
607 if (g_access(cp, 1, 0, 0) != 0) {
608 g_detach(cp);
609 g_destroy_consumer(cp);
614 error = gv_read_header(cp, &vhdr);
617 g_access(cp, -1, 0, 0);
618 g_detach(cp);
619 g_destroy_consumer(cp);