/netbsd-current/external/gpl2/lvm2/dist/lib/format1/ |
H A D | layout.c | 49 static int _adjust_pe_on_disk(struct pv_disk *pvd) argument 51 uint32_t pe_start = pvd->pe_start << SECTOR_SHIFT; 53 if (pe_start < pvd->pe_on_disk.base + pvd->pe_on_disk.size) 56 pvd->pe_on_disk.size = pe_start - pvd->pe_on_disk.base; 60 static void _calc_simple_layout(struct pv_disk *pvd) argument 62 pvd->pv_on_disk.base = METADATA_BASE; 63 pvd->pv_on_disk.size = PV_SIZE; 65 pvd 103 struct pv_disk *pvd = &dl->pvd; local 124 struct pv_disk *pvd = dm_malloc(sizeof(*pvd)); local [all...] |
H A D | lvm1-label.c | 37 struct pv_disk *pvd = (struct pv_disk *) buf; local 44 version = xlate16(pvd->version); 46 if (pvd->id[0] == 'H' && pvd->id[1] == 'M' && 62 struct pv_disk *pvd = (struct pv_disk *) buf; local 69 munge_pvd(dev, pvd); 71 if (*pvd->vg_name) { 72 if (!read_vgd(dev, &vgd, pvd)) 75 vgname = (char *) pvd->vg_name; 76 exported = pvd [all...] |
H A D | disk-rep.c | 117 static int _munge_formats(struct pv_disk *pvd) argument 122 switch (pvd->version) { 124 pvd->pe_start = ((pvd->pe_on_disk.base + 125 pvd->pe_on_disk.size) >> SECTOR_SHIFT); 129 pvd->version = 1; 130 pe_start = pvd->pe_start << SECTOR_SHIFT; 131 pvd->pe_on_disk.size = pe_start - pvd->pe_on_disk.base; 139 if (pvd 168 _munge_exported_vg(struct pv_disk *pvd) argument 186 munge_pvd(struct device *dev, struct pv_disk *pvd) argument 208 _read_pvd(struct device *dev, struct pv_disk *pvd) argument 229 read_vgd(struct device *dev, struct vg_disk *vgd, struct pv_disk *pvd) argument 433 struct pv_disk *pvd; local [all...] |
H A D | import-export.c | 57 struct physical_volume *pv, struct pv_disk *pvd, 63 memcpy(&pv->id, pvd->pv_uuid, ID_LEN); 66 if (!*pvd->vg_name) 68 else if (!(pv->vg_name = dm_pool_strdup(mem, (char *)pvd->vg_name))) { 77 strncpy(vg->system_id, (char *)pvd->system_id, NAME_LEN); 80 strncmp(vg->system_id, (char *)pvd->system_id, sizeof(pvd->system_id))) 82 "volume group", pvd->system_id, 89 if (pvd->pv_status & VG_EXPORTED) 92 if (pvd 55 import_pv(const struct format_type *fmt, struct dm_pool *mem, struct device *dev, struct volume_group *vg, struct physical_volume *pv, struct pv_disk *pvd, struct vg_disk *vgd) argument 142 export_pv(struct cmd_context *cmd, struct dm_pool *mem __attribute((unused)), struct volume_group *vg, struct pv_disk *pvd, struct physical_volume *pv) argument [all...] |
H A D | vg_number.c | 47 if (!*dl->pvd.vg_name || !strcmp((char *)dl->pvd.vg_name, candidate_vg))
|
H A D | disk-rep.h | 166 struct pv_disk pvd __attribute((aligned(8))); 210 struct physical_volume *pv, struct pv_disk *pvd, 214 struct pv_disk *pvd, struct physical_volume *pv); 244 int munge_pvd(struct device *dev, struct pv_disk *pvd); 245 int read_vgd(struct device *dev, struct vg_disk *vgd, struct pv_disk *pvd);
|
H A D | format1.c | 45 exported = dl->pvd.pv_status & VG_EXPORTED; 50 if (exported != (dl->pvd.pv_status & VG_EXPORTED)) { 54 if (dl->pvd.pv_status & VG_EXPORTED) 109 pv_count, first->pvd.vg_name, first->vgd.pv_cur); 210 if (!export_pv(fid->fmt->cmd, mem, vg, &dl->pvd, pv) || 286 if (!import_pv(fmt, fmt->cmd->mem, dl->dev, NULL, pv, &dl->pvd, &dl->vgd)) 389 if (!export_pv(fmt->cmd, mem, NULL, &dl->pvd, pv)) 394 dl->pvd.pv_on_disk.base = METADATA_BASE; 395 dl->pvd.pv_on_disk.size = PV_SIZE; 396 dl->pvd [all...] |
H A D | import-extents.c | 126 for (i = 0; i < dl->pvd.pe_total; i++) {
|
/netbsd-current/sys/arch/sandpoint/stand/altboot/ |
H A D | main.c | 157 int b, d, f, bdf, pvd; local 159 pvd = lata[n].pvd; 162 PCI_VENDOR(pvd), PCI_PRODUCT(pvd), b, d, f); 167 int b, d, f, bdf, pvd; local 169 pvd = lnif[n].pvd; 172 PCI_VENDOR(pvd), PCI_PRODUCT(pvd), 177 int b, d, f, bdf, pvd; local [all...] |
H A D | globals.h | 80 unsigned pvd; /* device ID */ member in struct:pcidev
|
H A D | pci.c | 373 list[index].pvd = pciid;
|
/netbsd-current/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | vdev.c | 213 vdev_t *pvd = vd->vdev_parent; local 219 if (pvd == NULL) 233 if (pvd->vdev_ops == &vdev_raidz_ops) 234 return (pvd->vdev_min_asize / pvd->vdev_children); 236 return (pvd->vdev_min_asize); 300 vdev_add_child(vdev_t *pvd, vdev_t *cvd) argument 310 cvd->vdev_parent = pvd; 312 if (pvd == NULL) 315 ASSERT(id >= pvd 341 vdev_remove_child(vdev_t *pvd, vdev_t *cvd) argument 378 vdev_compact_children(vdev_t *pvd) argument 875 vdev_t *pvd = cvd->vdev_parent; local 910 vdev_t *pvd = mvd->vdev_parent; local 1598 vdev_t *pvd = vd->vdev_parent; local 2589 vdev_t *vd, *tvd, *pvd, *rvd = spa->spa_root_vdev; local 2971 vdev_t *pvd; local 3577 vdev_t *cvd, *pvd = vd->vdev_parent; local [all...] |
H A D | zfs_fm.c | 258 vdev_t *pvd = vd->vdev_parent; local 277 if (pvd != NULL) { 280 DATA_TYPE_UINT64, pvd->vdev_guid, 282 DATA_TYPE_STRING, pvd->vdev_ops->vdev_op_type, 284 if (pvd->vdev_path) 287 DATA_TYPE_STRING, pvd->vdev_path, NULL); 288 if (pvd->vdev_devid) 291 DATA_TYPE_STRING, pvd->vdev_devid, NULL);
|
H A D | vdev_label.c | 692 for (vdev_t *pvd = vd; pvd != NULL; pvd = pvd->vdev_parent) 693 pvd->vdev_guid_sum += guid_delta; 712 for (vdev_t *pvd = vd; pvd != NULL; pvd = pvd->vdev_parent) 713 pvd [all...] |
H A D | spa.c | 4882 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; local 4900 pvd = oldvd->vdev_parent; 4928 if (pvd->vdev_ops != &vdev_mirror_ops && 4929 pvd->vdev_ops != &vdev_root_ops) 4938 if (pvd->vdev_ops == &vdev_spare_ops && 4951 if (pvd->vdev_ops == &vdev_replacing_ops && 4954 } else if (pvd->vdev_ops == &vdev_spare_ops && 5001 if (pvd->vdev_ops != pvops) 5002 pvd = vdev_add_parent(oldvd, pvops); 5004 ASSERT(pvd 5087 vdev_t *vd, *pvd, *cvd, *tvd; local 5949 vdev_t *vd, *pvd, *ppvd; local [all...] |
/netbsd-current/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
H A D | vdev_impl.h | 339 extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd); 340 extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd); 341 extern void vdev_compact_children(vdev_t *pvd);
|
/netbsd-current/external/cddl/osnet/dev/dtrace/ |
H A D | dtrace_ioctl.c | 743 dtrace_providerdesc_t *pvd = (dtrace_providerdesc_t *) addr; local 748 pvd->dtvd_name[DTRACE_PROVNAMELEN - 1] = '\0'; 754 if (strcmp(pvp->dtpv_name, pvd->dtvd_name) == 0) 763 if (strcmp(pvd->dtvd_name, "proc") == 0) 766 provider = pvd->dtvd_name; 780 bcopy(&pvp->dtpv_priv, &pvd->dtvd_priv, sizeof (dtrace_ppriv_t)); 781 bcopy(&pvp->dtpv_attr, &pvd->dtvd_attr, sizeof (dtrace_pattr_t));
|
/netbsd-current/sys/fs/udf/ |
H A D | ecma167-udf.h | 821 struct pri_vol_desc pvd; member in union:dscrptr
|
H A D | udf_subr.c | 1023 UDF_UPDATE_DSCR(ump->primary_vol, &dscr->pvd);
|
/netbsd-current/external/cddl/osnet/dist/cmd/ztest/ |
H A D | ztest.c | 2750 vdev_t *oldvd, *newvd, *pvd; local 2813 pvd = oldvd->vdev_parent; 2814 pguid = pvd->vdev_guid; 2859 * If pvd is not a mirror or root, the attach should fail with ENOTSUP, 2866 if (pvd->vdev_ops != &vdev_mirror_ops && 2867 pvd->vdev_ops != &vdev_root_ops && (!replacing || 2868 pvd->vdev_ops == &vdev_replacing_ops || 2869 pvd->vdev_ops == &vdev_spare_ops))
|
/netbsd-current/external/cddl/osnet/dist/uts/common/dtrace/ |
H A D | dtrace.c | 17932 dtrace_providerdesc_t pvd; 17935 if (copyin((void *)arg, &pvd, sizeof (pvd)) != 0) 17938 pvd.dtvd_name[DTRACE_PROVNAMELEN - 1] = '\0'; 17942 if (strcmp(pvp->dtpv_name, pvd.dtvd_name) == 0) 17951 bcopy(&pvp->dtpv_priv, &pvd.dtvd_priv, sizeof (dtrace_ppriv_t)); 17952 bcopy(&pvp->dtpv_attr, &pvd.dtvd_attr, sizeof (dtrace_pattr_t)); 17954 if (copyout(&pvd, (void *)arg, sizeof (pvd)) != 0)
|