/freebsd/sys/fs/pseudofs/ |
H A D | pseudofs_vncache.c | 120 struct pfs_vdata *pvd, *pvd2; in pfs_vncache_alloc() local 133 SLIST_FOREACH(pvd, hash, pvd_hash) { in pfs_vncache_alloc() 134 if (pvd->pvd_pn == pn && pvd->pvd_pid == pid && in pfs_vncache_alloc() 135 pvd->pvd_vnode->v_mount == mp) { in pfs_vncache_alloc() 136 vp = pvd->pvd_vnode; in pfs_vncache_alloc() 160 pvd = malloc(sizeof *pvd, M_PFSVNCACHE, M_WAITOK); in pfs_vncache_alloc() 163 free(pvd, M_PFSVNCACHE); in pfs_vncache_alloc() 166 pvd->pvd_pn = pn; in pfs_vncache_alloc() 167 pvd->pvd_pid = pid; in pfs_vncache_alloc() 168 (*vpp)->v_data = pvd; in pfs_vncache_alloc() [all …]
|
H A D | pseudofs_vnops.c | 156 struct pfs_vdata *pvd = vn->v_data; in pfs_access() local 160 PFS_TRACE(("%s", pvd->pvd_pn->pn_name)); in pfs_access() 161 (void)pvd; in pfs_access() 178 struct pfs_vdata *pvd = vn->v_data; in pfs_close() local 179 struct pfs_node *pn = pvd->pvd_pn; in pfs_close() 193 if (pvd->pvd_pid != NO_PID) { in pfs_close() 194 proc = pfind(pvd->pvd_pid); in pfs_close() 214 struct pfs_vdata *pvd = vn->v_data; in pfs_getattr() local 215 struct pfs_node *pn = pvd->pvd_pn; in pfs_getattr() 223 if (!pfs_visible(curthread, pn, pvd->pvd_pid, &proc)) in pfs_getattr() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev.c | 358 vdev_t *pvd = vd->vdev_parent; in vdev_get_min_asize() local 364 if (pvd == NULL) in vdev_get_min_asize() 375 return (pvd->vdev_ops->vdev_op_min_asize(pvd)); in vdev_get_min_asize() 514 vdev_add_child(vdev_t *pvd, vdev_t *cvd) in vdev_add_child() argument 523 cvd->vdev_parent = pvd; in vdev_add_child() 525 if (pvd == NULL) in vdev_add_child() 528 ASSERT(id >= pvd->vdev_children || pvd->vdev_child[id] == NULL); in vdev_add_child() 530 oldsize = pvd->vdev_children * sizeof (vdev_t *); in vdev_add_child() 531 pvd->vdev_children = MAX(pvd->vdev_children, id + 1); in vdev_add_child() 532 newsize = pvd->vdev_children * sizeof (vdev_t *); in vdev_add_child() [all …]
|
H A D | vdev_label.c | 1122 for (vdev_t *pvd = vd; pvd != NULL; pvd = pvd->vdev_parent) in vdev_label_init() local 1123 pvd->vdev_guid_sum += guid_delta; in vdev_label_init() 1142 for (vdev_t *pvd = vd; pvd != NULL; pvd = pvd->vdev_parent) in vdev_label_init() local 1143 pvd->vdev_guid_sum += guid_delta; in vdev_label_init() 1906 vdev_t *pvd = vd->vdev_parent; in vdev_label_sync() local 1928 if (pvd && pvd->vdev_ops == &vdev_spare_ops) in vdev_label_sync()
|
H A D | zfs_fm.c | 546 vdev_t *pvd = vd->vdev_parent; in zfs_ereport_start() local 603 if (pvd != NULL) { in zfs_ereport_start() 606 DATA_TYPE_UINT64, pvd->vdev_guid, in zfs_ereport_start() 608 DATA_TYPE_STRING, pvd->vdev_ops->vdev_op_type, in zfs_ereport_start() 610 if (pvd->vdev_path) in zfs_ereport_start() 613 DATA_TYPE_STRING, pvd->vdev_path, NULL); in zfs_ereport_start() 614 if (pvd->vdev_devid) in zfs_ereport_start() 617 DATA_TYPE_STRING, pvd->vdev_devid, NULL); in zfs_ereport_start()
|
H A D | spa.c | 7447 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; local 7507 pvd = oldvd; 7509 pvd = oldvd->vdev_parent; 7548 tvd = pvd; 7549 if (pvd->vdev_top != NULL) 7550 tvd = pvd->vdev_top; 7565 if (pvd->vdev_ops != &vdev_mirror_ops && 7566 pvd->vdev_ops != &vdev_root_ops && 7576 if (pvd->vdev_ops == &vdev_spare_ops && 7589 if (pvd->vdev_ops == &vdev_replacing_ops && [all …]
|
H A D | vdev_draid.c | 2377 vdev_t *pvd = vd->vdev_parent; in vdev_draid_spare_is_active() local 2379 if (pvd != NULL && (pvd->vdev_ops == &vdev_spare_ops || in vdev_draid_spare_is_active() 2380 pvd->vdev_ops == &vdev_replacing_ops || in vdev_draid_spare_is_active() 2381 pvd->vdev_ops == &vdev_draid_ops)) { in vdev_draid_spare_is_active()
|
H A D | vdev_removal.c | 859 vdev_t *pvd; in spa_finish_removal() local 860 pvd = vdev_lookup_top(spa, in spa_finish_removal() 862 ASSERT3P(pvd->vdev_ops, ==, &vdev_indirect_ops); in spa_finish_removal()
|
/freebsd/sys/cddl/dev/dtrace/ |
H A D | dtrace_ioctl.c | 717 dtrace_providerdesc_t *pvd = (dtrace_providerdesc_t *) addr; in dtrace_ioctl() local 722 pvd->dtvd_name[DTRACE_PROVNAMELEN - 1] = '\0'; in dtrace_ioctl() 726 if (strcmp(pvp->dtpv_name, pvd->dtvd_name) == 0) in dtrace_ioctl() 735 bcopy(&pvp->dtpv_priv, &pvd->dtvd_priv, sizeof (dtrace_ppriv_t)); in dtrace_ioctl() 736 bcopy(&pvp->dtpv_attr, &pvd->dtvd_attr, sizeof (dtrace_pattr_t)); in dtrace_ioctl()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | vdev_impl.h | 582 extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd); 583 extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd); 584 extern void vdev_compact_children(vdev_t *pvd);
|
/freebsd/sys/arm64/arm64/ |
H A D | pmap.c | 216 struct pmap_large_md_page *pvd; in pa_to_pmdp() local 218 pvd = _pa_to_pmdp(pa); in pa_to_pmdp() 219 if (pvd == NULL) in pa_to_pmdp() 221 return (pvd); in pa_to_pmdp() 1543 struct pmap_large_md_page *pvd; in pmap_init_pv_table() local 1552 CTASSERT((sizeof(*pvd) == 64)); in pmap_init_pv_table() 1562 s += round_page(pages * sizeof(*pvd)); in pmap_init_pv_table() 1572 pvd = pv_table; in pmap_init_pv_table() 1579 s = round_page(pages * sizeof(*pvd)); in pmap_init_pv_table() 1586 pmap_qenter((vm_offset_t)pvd + j, &m, 1); in pmap_init_pv_table() [all …]
|
/freebsd/sys/fs/udf/ |
H A D | ecma167-udf.h | 373 struct pri_vol_desc pvd; member
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 3710 vdev_t *oldvd, *newvd, *pvd; in ztest_vdev_attach_detach() local 3812 pvd = oldvd->vdev_parent; in ztest_vdev_attach_detach() 3813 pguid = pvd->vdev_guid; in ztest_vdev_attach_detach() 3884 if (pvd->vdev_ops != &vdev_mirror_ops && in ztest_vdev_attach_detach() 3885 pvd->vdev_ops != &vdev_root_ops && (!replacing || in ztest_vdev_attach_detach() 3886 pvd->vdev_ops == &vdev_replacing_ops || in ztest_vdev_attach_detach() 3887 pvd->vdev_ops == &vdev_spare_ops)) in ztest_vdev_attach_detach() 3900 else if (newvd_is_dspare && pvd != vdev_draid_spare_get_parent(newvd)) in ztest_vdev_attach_detach() 3917 if (pvd->vdev_ops == &vdev_mirror_ops || in ztest_vdev_attach_detach() 3918 pvd->vdev_ops == &vdev_root_ops) { in ztest_vdev_attach_detach() [all …]
|
/freebsd/sys/amd64/amd64/ |
H A D | pmap.c | 2364 struct pmap_large_md_page *pvd; in pmap_init_pv_table() local 2378 CTASSERT((sizeof(*pvd) == 64)); in pmap_init_pv_table() 2404 pvd = &pv_table[start]; in pmap_init_pv_table() 2407 s = round_page(pages * sizeof(*pvd)); in pmap_init_pv_table() 2408 highest = start + (s / sizeof(*pvd)) - 1; in pmap_init_pv_table() 2414 pmap_qenter((vm_offset_t)pvd + j, &m, 1); in pmap_init_pv_table() 2417 for (j = 0; j < s / sizeof(*pvd); j++) { in pmap_init_pv_table() 2418 rw_init_flags(&pvd->pv_lock, "pmap pv list", RW_NEW); in pmap_init_pv_table() 2419 TAILQ_INIT(&pvd->pv_page.pv_list); in pmap_init_pv_table() 2420 pvd->pv_page.pv_gen = 0; in pmap_init_pv_table() [all …]
|
/freebsd/sys/cddl/boot/zfs/ |
H A D | zfssubr.c | 1346 vdev_child(vdev_t *pvd, uint64_t devidx) in vdev_child() argument 1350 STAILQ_FOREACH(cvd, &pvd->v_children, v_childlink) { in vdev_child()
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | dtrace.c | 17463 dtrace_providerdesc_t pvd; local 17466 if (copyin((void *)arg, &pvd, sizeof (pvd)) != 0) 17469 pvd.dtvd_name[DTRACE_PROVNAMELEN - 1] = '\0'; 17473 if (strcmp(pvp->dtpv_name, pvd.dtvd_name) == 0) 17482 bcopy(&pvp->dtpv_priv, &pvd.dtvd_priv, sizeof (dtrace_ppriv_t)); 17483 bcopy(&pvp->dtpv_attr, &pvd.dtvd_attr, sizeof (dtrace_pattr_t)); 17485 if (copyout(&pvd, (void *)arg, sizeof (pvd)) != 0)
|