Home
last modified time | relevance | path

Searched refs:vsp (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dvmem.c355 #define VMEM_INSERT(vprev, vsp, type) \ argument
358 (vsp)->vs_##type##next = (vnext); \
359 (vsp)->vs_##type##prev = (vprev); \
360 (vprev)->vs_##type##next = (vsp); \
361 (vnext)->vs_##type##prev = (vsp); \
364 #define VMEM_DELETE(vsp, type) \ argument
366 vmem_seg_t *vprev = (vsp)->vs_##type##prev; \
367 vmem_seg_t *vnext = (vsp)->vs_##type##next; \
378 vmem_seg_t *vsp; in vmem_getseg_global() local
381 if ((vsp = vmem_segfree) != NULL) in vmem_getseg_global()
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem.c223 #define VMEM_INSERT(vprev, vsp, type) \ argument
226 (vsp)->vs_##type##next = (vnext); \
227 (vsp)->vs_##type##prev = (vprev); \
228 (vprev)->vs_##type##next = (vsp); \
229 (vnext)->vs_##type##prev = (vsp); \
232 #define VMEM_DELETE(vsp, type) \ argument
234 vmem_seg_t *vprev = (vsp)->vs_##type##prev; \
235 vmem_seg_t *vnext = (vsp)->vs_##type##next; \
246 vmem_seg_t *vsp; in vmem_getseg_global() local
249 if ((vsp = vmem_segfree) != NULL) in vmem_getseg_global()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_acl_vnops.c123 acl_getacl2(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) in acl_getacl2() argument
141 if (nfs_acl_dup_cache(vsp, rp->r_secattr)) { in acl_getacl2()
149 args.mask = vsp->vsa_mask; in acl_getacl2()
176 *vsp = res.resok.acl; in acl_getacl2()
186 acl_setacl2(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) in acl_setacl2() argument
197 args.acl = *vsp; in acl_setacl2()
504 acl_getacl3(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) in acl_getacl3() argument
521 if (nfs_acl_dup_cache(vsp, rp->r_secattr)) { in acl_getacl3()
529 args.mask = vsp->vsa_mask; in acl_getacl3()
557 *vsp = res.resok.acl; in acl_getacl3()
[all …]
H A Dnfs4_acl.c235 vs_acet_destroy(vsecattr_t *vsp) in vs_acet_destroy() argument
237 if (vsp->vsa_mask != (VSA_ACE | VSA_ACECNT)) in vs_acet_destroy()
240 if ((vsp->vsa_aclentp != NULL) && in vs_acet_destroy()
241 (vsp->vsa_aclcnt > 0) && in vs_acet_destroy()
242 (vsp->vsa_mask & VSA_ACE) && in vs_acet_destroy()
243 (vsp->vsa_mask & VSA_ACECNT)) in vs_acet_destroy()
244 kmem_free(vsp->vsa_aclentp, in vs_acet_destroy()
245 vsp->vsa_aclcnt * sizeof (ace_t)); in vs_acet_destroy()
247 vsp->vsa_aclentp = NULL; in vs_acet_destroy()
248 vsp->vsa_aclcnt = 0; in vs_acet_destroy()
[all …]
H A Dnfs4_rnode.c242 vsecattr_t *vsp; in r4inactive() local
257 vsp = rp->r_secattr; in r4inactive()
284 if (vsp != NULL) in r4inactive()
285 nfs4_acl_free_cache(vsp); in r4inactive()
1403 vsecattr_t *vsp; in nfs4_free_data_reclaim() local
1417 vsp = rp->r_secattr; in nfs4_free_data_reclaim()
1428 if (rdc == FALSE && contents == NULL && vsp == NULL && xattr == NULL) in nfs4_free_data_reclaim()
1447 if (vsp != NULL) in nfs4_free_data_reclaim()
1448 nfs4_acl_free_cache(vsp); in nfs4_free_data_reclaim()
1465 vsecattr_t *vsp; in nfs4_active_data_reclaim() local
[all …]
H A Dnfs_subr.c2181 vsecattr_t *vsp; in rinactive() local
2224 vsp = rp->r_secattr; in rinactive()
2258 if (vsp != NULL) in rinactive()
2259 nfs_acl_free(vsp); in rinactive()
3947 vsecattr_t *vsp; in nfs_free_data_reclaim() local
3962 vsp = rp->r_secattr; in nfs_free_data_reclaim()
3978 vsp == NULL && in nfs_free_data_reclaim()
3999 if (vsp != NULL) in nfs_free_data_reclaim()
4000 nfs_acl_free(vsp); in nfs_free_data_reclaim()
4016 vsecattr_t *vsp; in nfs_active_data_reclaim() local
[all …]
H A Dnfs_client.c486 vsecattr_t *vsp; in nfs_attr_cache() local
591 vsp = rp->r_secattr; in nfs_attr_cache()
594 if (vsp != NULL) in nfs_attr_cache()
595 nfs_acl_free(vsp); in nfs_attr_cache()
629 vsecattr_t *vsp; in nfs3_attr_cache() local
734 vsp = rp->r_secattr; in nfs3_attr_cache()
737 if (vsp != NULL) in nfs3_attr_cache()
738 nfs_acl_free(vsp); in nfs3_attr_cache()
H A Dnfs4_client.c449 vsecattr_t *vsp; in nfs4_attr_cache() local
637 vsp = rp->r_secattr; in nfs4_attr_cache()
640 if (vsp != NULL) in nfs4_attr_cache()
641 nfs4_acl_free_cache(vsp); in nfs4_attr_cache()
H A Dnfs_vnops.c1195 vsecattr_t *vsp; in nfssetattr() local
1308 vsp = rp->r_secattr; in nfssetattr()
1311 if (vsp != NULL) in nfssetattr()
1312 nfs_acl_free(vsp); in nfssetattr()
H A Dnfs3_vnops.c1356 vsecattr_t *vsp; in nfs3setattr() local
1451 vsp = rp->r_secattr; in nfs3setattr()
1454 if (vsp != NULL) in nfs3setattr()
1455 nfs_acl_free(vsp); in nfs3setattr()
H A Dnfs4_vnops.c3798 vsecattr_t *vsp; in nfs4setattr() local
3965 vsp = rp->r_secattr; in nfs4setattr()
3968 if (vsp != NULL) in nfs4setattr()
3969 nfs4_acl_free_cache(vsp); in nfs4setattr()
4197 vsp = rp->r_secattr; in nfs4setattr()
4200 if (vsp != NULL) in nfs4setattr()
4201 nfs4_acl_free_cache(vsp); in nfs4setattr()
/illumos-gate/usr/src/common/devid/
H A Ddevid_smp.c104 uint8_t *vsp; in ddi_devid_smp_encode() local
140 vsp = &srmir->srmir_vs_52[0]; in ddi_devid_smp_encode()
141 s = ((uint64_t)vsp[0] << 56) | in ddi_devid_smp_encode()
142 ((uint64_t)vsp[1] << 48) | in ddi_devid_smp_encode()
143 ((uint64_t)vsp[2] << 40) | in ddi_devid_smp_encode()
144 ((uint64_t)vsp[3] << 32) | in ddi_devid_smp_encode()
145 ((uint64_t)vsp[4] << 24) | in ddi_devid_smp_encode()
146 ((uint64_t)vsp[5] << 16) | in ddi_devid_smp_encode()
147 ((uint64_t)vsp[6] << 8) | in ddi_devid_smp_encode()
148 ((uint64_t)vsp[7]); in ddi_devid_smp_encode()
/illumos-gate/usr/src/uts/common/fs/
H A Dvnode.c172 vopstats_t *vsp = &vfsp->vfs_vopstats; \
173 uint64_t *stataddr = &(vsp->n##counter.value.ui64); \
178 if ((vsp = vfsp->vfs_fstypevsp) != NULL) { \
179 vsp->n##counter.value.ui64++; \
188 vopstats_t *vsp = &vfsp->vfs_vopstats; \
189 uint64_t *stataddr = &(vsp->n##counter.value.ui64); \
194 vsp->bytecounter.value.ui64 += bytesval; \
195 if ((vsp = vfsp->vfs_fstypevsp) != NULL) { \
196 vsp->n##counter.value.ui64++; \
197 vsp->bytecounter.value.ui64 += bytesval; \
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN/common/
H A Dsun_enclosure.c47 uint8_t *vsp; in enc_parse_feature_block() local
56 &vsp, &vsp_len) != 0 || in enc_parse_feature_block()
60 sfbip = (sun_feature_block_impl_t *)vsp; in enc_parse_feature_block()
83 LIBSES_EN_PROP_CSN, (char *)(vsp + cid_off), in enc_parse_feature_block()
/illumos-gate/usr/src/test/bhyve-tests/tests/viona/
H A Dlink_params.c42 print_errors(vioc_set_params_t *vsp) in print_errors() argument
44 if (vsp->vsp_error_sz == 0) { in print_errors()
49 if (nvlist_unpack(vsp->vsp_error, vsp->vsp_error_sz, &nverr, 0) != 0) { in print_errors()
/illumos-gate/usr/src/lib/libumem/common/sys/
H A Dvmem_impl_user.h73 #define VS_SIZE(vsp) ((vsp)->vs_end - (vsp)->vs_start) argument
/illumos-gate/usr/src/uts/common/sys/
H A Dvmem_impl.h74 #define VS_SIZE(vsp) ((vsp)->vs_end - (vsp)->vs_start) argument
/illumos-gate/usr/src/uts/intel/io/viona/
H A Dviona_main.c1664 vioc_set_params_t vsp; in viona_ioc_set_params() local
1668 if (ddi_copyin(udata, &vsp, sizeof (vsp), md) != 0) { in viona_ioc_set_params()
1672 if (vsp.vsp_param_sz > VIONA_MAX_PARAM_NVLIST_SZ) { in viona_ioc_set_params()
1675 } else if (vsp.vsp_param_sz == 0) { in viona_ioc_set_params()
1684 const size_t packed_sz = vsp.vsp_param_sz; in viona_ioc_set_params()
1686 if (ddi_copyin(vsp.vsp_param, packed, packed_sz, md) != 0) { in viona_ioc_set_params()
1722 if (err_packed_sz > vsp.vsp_error_sz) { in viona_ioc_set_params()
1726 } else if (ddi_copyout(err_packed, vsp.vsp_error, in viona_ioc_set_params()
1730 vsp.vsp_error_sz = err_packed_sz; in viona_ioc_set_params()
1739 vsp.vsp_error_sz = 0; in viona_ioc_set_params()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/qsort/
H A Dqsort_test.c38 #define timespecsub(tsp, usp, vsp) \ argument
40 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
41 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
42 if ((vsp)->tv_nsec < 0) { \
43 (vsp)->tv_sec--; \
44 (vsp)->tv_nsec += 1000000000L; \
/illumos-gate/usr/src/cmd/stat/fsstat/
H A Dfsstat.c390 get_vopstats(kstat_ctl_t *kc, char *ksname, vopstats_t *vsp, kstat_t **kspp) in get_vopstats() argument
413 if (kstat_read(kc, ksp, vsp) == -1) { in get_vopstats()
965 vopstats_t *vsp = &ent->e_vs[CUR_INDEX]; in main()
968 if (get_vopstats(kc, ent->e_ksname, vsp, &ksp) == 0) { in main()
969 (*dfunc)(ent->e_name, NULL, vsp, in main()
956 vopstats_t *vsp = &ent->e_vs[CUR_INDEX]; main() local
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgenunix.c3682 sysfile_vmem_seg(uintptr_t addr, const vmem_seg_t *vsp, void **target) in sysfile_vmem_seg() argument
3684 if (vsp->vs_type == VMEM_ALLOC && (void *)vsp->vs_start == *target) { in sysfile_vmem_seg()