Lines Matching defs:rp
593 md_replica_t *rp,
600 mdname_t *repnp = rp->r_namep;
601 diskaddr_t rep_sblk = rp->r_blkno;
602 diskaddr_t rep_nblks = rp->r_nblk;
647 md_replica_t *rp = rl->rl_repp;
650 if (in_replica(sp, rp, np, slblk, nblks, ep) != 0) {
2172 md_replica_t *rp;
2179 rp = Zalloc(sizeof (*rp));
2201 Free(rp);
2207 Free(rp);
2216 if ((rp->r_namep = metaname_fast(&sp, devname,
2219 Free(rp);
2223 if ((rp->r_namep = metaname(&sp, devname,
2226 Free(rp);
2234 (metachkcomp(rp->r_namep, ep) != 0)) {
2235 Free(rp);
2239 rp->r_blkno = (daddr_t)MD_DISKADDR_ERROR;
2240 rp->r_nblk = (daddr_t)MD_DISKADDR_ERROR;
2241 rp->r_flags = c->c_locator.l_flags | MDDB_F_NODEVID;
2245 if ((rp->r_devid = (ddi_devid_t)malloc(sz)) ==
2247 Free(rp);
2250 (void) memcpy((void *)rp->r_devid,
2252 (void) strcpy(rp->r_minor_name, c->c_locator.l_minor_name);
2253 rp->r_flags &= ~MDDB_F_NODEVID;
2255 rp->r_namep->dev = meta_expldev(c->c_locator.l_dev);
2257 (void) strcpy(rp->r_driver_name, c->c_locator.l_driver);
2259 rp->r_blkno = c->c_locator.l_blkno;
2261 rp->r_nblk = c->c_dbend - c->c_locator.l_blkno + 1;
2264 return (rp);
2307 md_replica_t *rp;
2369 if ((rp = metareplicaname(sp, flags, &c, ep)) == NULL)
2374 (*tail)->rl_repp = rp;