| /freebsd/usr.sbin/bhyve/ |
| H A D | virtio.c | 61 #define DEV_SOFTC(vs) ((void *)(vs)) argument 68 vi_softc_linkup(struct virtio_softc *vs, struct virtio_consts *vc, in vi_softc_linkup() argument 75 assert((void *)vs == dev_softc); in vi_softc_linkup() 76 vs->vs_vc = vc; in vi_softc_linkup() 77 vs->vs_pi = pi; in vi_softc_linkup() 78 pi->pi_arg = vs; in vi_softc_linkup() 80 vs->vs_queues = queues; in vi_softc_linkup() 82 queues[i].vq_vs = vs; in vi_softc_linkup() 97 vi_reset_dev(struct virtio_softc *vs) in vi_reset_dev() argument 102 if (vs->vs_mtx) in vi_reset_dev() [all …]
|
| H A D | virtio.h | 247 #define VS_LOCK(vs) \ argument 249 if (vs->vs_mtx) \ 250 pthread_mutex_lock(vs->vs_mtx); \ 253 #define VS_UNLOCK(vs) \ argument 255 if (vs->vs_mtx) \ 256 pthread_mutex_unlock(vs->vs_mtx); \ 284 * vs->vs_vc->vc_reset(); then the data structure below is 285 * reinitialized (for each virtqueue: vs->vs_vc->vc_nvq). 352 vi_interrupt(struct virtio_softc *vs, uint8_t isr, uint16_t msix_idx) in vi_interrupt() argument 355 if (pci_msix_enabled(vs in vi_interrupt() 373 vq_interrupt(struct virtio_softc * vs,struct vqueue_info * vq) vq_interrupt() argument [all...] |
| H A D | gdb.c | 786 struct vcpu_state *vs; in report_stop() local 793 vs = &vcpu_state[stopped_vcpu]; in report_stop() 801 if (vs->hit_swbreak) { in report_stop() 805 } else if (vs->stepped) in report_stop() 821 struct vcpu_state *vs; in discard_stop() local 824 vs = &vcpu_state[stopped_vcpu]; in discard_stop() 825 vs->hit_swbreak = false; in discard_stop() 826 vs->stepped = false; in discard_stop() 974 struct vcpu_state *vs; in gdb_cpu_resume() local 977 vs = &vcpu_state[vcpu_id(vcpu)]; in gdb_cpu_resume() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_status.c | 101 vdev_missing(vdev_stat_t *vs, uint_t vsc, void *arg) in vdev_missing() argument 104 return (vs->vs_state == VDEV_STATE_CANT_OPEN && in vdev_missing() 105 vs->vs_aux == VDEV_AUX_OPEN_FAILED); in vdev_missing() 109 vdev_faulted(vdev_stat_t *vs, uint_t vsc, void *arg) in vdev_faulted() argument 112 return (vs->vs_state == VDEV_STATE_FAULTED); in vdev_faulted() 116 vdev_errors(vdev_stat_t *vs, uint_t vsc, void *arg) in vdev_errors() argument 119 return (vs->vs_state == VDEV_STATE_DEGRADED || in vdev_errors() 120 vs->vs_read_errors != 0 || vs->vs_write_errors != 0 || in vdev_errors() 121 vs->vs_checksum_errors != 0); in vdev_errors() 125 vdev_broken(vdev_stat_t *vs, uint_t vsc, void *arg) in vdev_broken() argument [all …]
|
| /freebsd/sys/net/ |
| H A D | vnet.c | 514 struct vnet_sysinit *vs, *vs2; in vnet_register_sysinit() local 517 vs = arg; in vnet_register_sysinit() 518 KASSERT(vs->subsystem > SI_SUB_VNET, ("vnet sysinit too early")); in vnet_register_sysinit() 523 if (vs2->subsystem > vs->subsystem) in vnet_register_sysinit() 525 if (vs2->subsystem == vs->subsystem && vs2->order > vs->order) in vnet_register_sysinit() 529 TAILQ_INSERT_BEFORE(vs2, vs, link); in vnet_register_sysinit() 531 TAILQ_INSERT_TAIL(&vnet_constructors, vs, link); in vnet_register_sysinit() 540 vs->func(vs->arg); in vnet_register_sysinit() 550 struct vnet_sysinit *vs; in vnet_deregister_sysinit() local 552 vs = arg; in vnet_deregister_sysinit() [all …]
|
| /freebsd/tools/tools/vimage/ |
| H A D | vimage.c | 323 getjail(vstat_t *vs, int lastjid, int verbose) in getjail() argument 329 bzero(vs, sizeof(*vs)); in getjail() 335 jailparam_import_raw(¶ms[psize++], &vs->vnet, sizeof(vs->vnet)); in getjail() 338 jailparam_import_raw(¶ms[psize++], &vs->name, sizeof(vs->name)); in getjail() 344 jailparam_import_raw(¶ms[psize++], &vs->path, sizeof(vs->path)); in getjail() 347 jailparam_import_raw(¶ms[psize++], &vs->hostname, in getjail() 348 sizeof(vs->hostname)); in getjail() 351 jailparam_import_raw(¶ms[psize++], &vs->domainname, in getjail() 352 sizeof(vs->domainname)); in getjail() 355 jailparam_import_raw(¶ms[psize++], &vs->childcnt, in getjail() [all …]
|
| /freebsd/contrib/unbound/testcode/ |
| H A D | unitinfra.c | 72 int vs, to, lame, dnsseclame, reclame, probedelay; in test_keep_probing() local 84 *now, &vs, &edns_lame, &to) ); in test_keep_probing() 91 *now, &vs, &edns_lame, &to) ); in test_keep_probing() 92 unit_assert( vs == 0 && to <= USEFUL_SERVER_TOP_TIMEOUT && edns_lame == 0 ); in test_keep_probing() 94 unit_assert( vs == 0 && to == USEFUL_SERVER_TOP_TIMEOUT && edns_lame == 0 ); in test_keep_probing() 125 int vs, to; in infra_test() local 138 &vs, &edns_lame, &to) ); in infra_test() 139 unit_assert( vs == 0 && to == init && edns_lame == 0 ); in infra_test() 144 now, &vs, &edns_lame, &to) ); in infra_test() 145 unit_assert( vs == 0 && to == init*2 && edns_lame == 0 ); in infra_test() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzpool/ |
| H A D | util.c | 50 vdev_stat_t *vs; in show_vdev_stats() local 77 (uint64_t **)&vs, &c) != 0) in show_vdev_stats() 78 vs = v0; in show_vdev_stats() 88 sec = MAX(1, vs->vs_timestamp / NANOSEC); in show_vdev_stats() 90 nicenum(vs->vs_alloc, used, sizeof (used)); in show_vdev_stats() 91 nicenum(vs->vs_space - vs->vs_alloc, avail, sizeof (avail)); in show_vdev_stats() 92 nicenum(vs->vs_ops[ZIO_TYPE_READ] / sec, rops, sizeof (rops)); in show_vdev_stats() 93 nicenum(vs->vs_ops[ZIO_TYPE_WRITE] / sec, wops, sizeof (wops)); in show_vdev_stats() 94 nicenum(vs->vs_bytes[ZIO_TYPE_READ] / sec, rbytes, in show_vdev_stats() 96 nicenum(vs->vs_bytes[ZIO_TYPE_WRITE] / sec, wbytes, in show_vdev_stats() [all …]
|
| /freebsd/contrib/unbound/services/ |
| H A D | view.c | 118 views_enter_view_name(struct views* vs, char* name) in view_create() 127 lock_rw_wrlock(&vs->lock); in views_enter_view_name() 129 if(!rbtree_insert(&vs->vtree, &v->node)) { in views_enter_view_name() 133 lock_rw_unlock(&vs->lock); in views_enter_view_name() 136 lock_rw_unlock(&vs->lock); in views_enter_view_name() 141 views_apply_cfg(struct views* vs, struct config_file* cfg) in views_enter_view_name() 154 if(!(v = views_enter_view_name(vs, cv->name))) in views_apply_cfg() 221 views_find_view(struct views* vs, const char* name, int write) in views_apply_cfg() 227 lock_rw_rdlock(&vs->lock); in views_find_view() 228 if(!(v = (struct view*)rbtree_search(&vs in views_find_view() 122 views_enter_view_name(struct views * vs,char * name) views_enter_view_name() argument 145 views_apply_cfg(struct views * vs,struct config_file * cfg) views_apply_cfg() argument 225 views_find_view(struct views * vs,const char * name,int write) views_find_view() argument [all...] |
| /freebsd/sys/kern/ |
| H A D | subr_stats.c | 78 #define VS_INCERRS(vs) do { \ argument 79 if ((vs)->errs < (1U << VS_EBITS) - 1) \ 80 (vs)->errs++; \ 153 struct voistat *vs, struct sb_iter_ctx *ctx); 1424 struct voistat *vs; local 1434 vs = BLOB_OFFSET(sb, v->stats_off + (stype * sizeof(struct voistat))); 1435 *retvsd = BLOB_OFFSET(sb, vs->data_off); 1437 *retdtype = vs->dtype; 1439 *retvsdsz = vs->dsz; 1588 struct voistat *vs; local [all …]
|
| H A D | vfs_hash.c | 76 enum vgetstate vs; in vfs_hash_get() local 88 vs = vget_prep(vp); in vfs_hash_get() 90 error = vget_finish(vp, flags, vs); in vfs_hash_get() 156 enum vgetstate vs; in vfs_hash_insert() local 170 vs = vget_prep(vp2); in vfs_hash_insert() 172 error = vget_finish(vp2, flags, vs); in vfs_hash_insert()
|
| /freebsd/lib/libc/xdr/ |
| H A D | xdr_float.c | 97 struct vax_single vs, *vsp; in xdr_float() local 107 vs = *((struct vax_single *)fp); in xdr_float() 110 if ((vs.mantissa2 == lim->s.mantissa2) && in xdr_float() 111 (vs.exp == lim->s.exp) && in xdr_float() 112 (vs.mantissa1 == lim->s.mantissa1)) { in xdr_float() 117 is.exp = vs.exp - VAX_SNG_BIAS + IEEE_SNG_BIAS; in xdr_float() 118 is.mantissa = (vs.mantissa1 << 16) | vs.mantissa2; in xdr_float() 120 is.sign = vs.sign; in xdr_float()
|
| /freebsd/crypto/krb5/src/lib/rpc/ |
| H A D | xdr_float.c | 93 struct vax_single vs, *vsp; in xdr_float() local 106 vs = *((struct vax_single *)fp); in xdr_float() 110 if ((vs.mantissa2 == lim->s.mantissa2) && in xdr_float() 111 (vs.exp == lim->s.exp) && in xdr_float() 112 (vs.mantissa1 == lim->s.mantissa1)) { in xdr_float() 117 is.exp = vs.exp - VAX_SNG_BIAS + IEEE_SNG_BIAS; in xdr_float() 118 is.mantissa = (vs.mantissa1 << 16) | vs.mantissa2; in xdr_float() 120 is.sign = vs.sign; in xdr_float()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | DiagnosticInstallAPIKinds.td | 58 def err_architecture_mismatch : Error<"architectures do not match: '%0' (provided) vs '%1' (found)"… 59 def warn_platform_mismatch : Warning<"platform does not match: '%0' (provided) vs '%1' (found)">, I… 60 def err_platform_mismatch : Error<"platform does not match: '%0' (provided) vs '%1' (found)">; 61 def err_install_name_mismatch : Error<"install_name does not match: '%0' (provided) vs '%1' (found)… 62 def err_current_version_mismatch : Error<"current_version does not match: '%0' (provided) vs '%1' (… 63 …_version_mismatch : Error<"compatibility_version does not match: '%0' (provided) vs '%1' (found)">; 64 …match : Error<"the ApplicationExtensionSafe flag does not match: '%0' (provided) vs '%1' (found)">; 65 …mismatch : Error<"the NotForDyldSharedCache flag does not match: '%0' (provided) vs '%1' (found)">; 68 def err_parent_umbrella_mismatch : Error<"parent umbrella does not match: '%0' (provided) vs '%1' (… 70 …_libraries_mismatch : Error<"re-exported libraries do not match: '%0' (provided) vs '%1' (found)">; [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/ |
| H A D | zpool_influxdb.c | 343 vdev_stat_t *vs; in print_summary_stats() local 347 (uint64_t **)&vs, &c) != 0) { in print_summary_stats() 351 pool_name, zpool_state_to_name((vdev_state_t)vs->vs_state, in print_summary_stats() 352 (vdev_aux_t)vs->vs_aux), vdev_desc); in print_summary_stats() 353 print_kv("alloc", vs->vs_alloc); in print_summary_stats() 354 print_kv(",free", vs->vs_space - vs->vs_alloc); in print_summary_stats() 355 print_kv(",size", vs->vs_space); in print_summary_stats() 356 print_kv(",read_bytes", vs->vs_bytes[ZIO_TYPE_READ]); in print_summary_stats() 357 print_kv(",read_errors", vs->vs_read_errors); in print_summary_stats() 358 print_kv(",read_ops", vs->vs_ops[ZIO_TYPE_READ]); in print_summary_stats() [all …]
|
| /freebsd/sys/nlm/ |
| H A D | nlm_prot_impl.c | 1757 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) in nlm_get_vfs_state() argument 1763 memset(vs, 0, sizeof(*vs)); in nlm_get_vfs_state() 1765 vs->vs_mp = vfs_getvfs(&fhp->fh_fsid); in nlm_get_vfs_state() 1766 if (!vs->vs_mp) { in nlm_get_vfs_state() 1772 error = VFS_CHECKEXP(vs->vs_mp, in nlm_get_vfs_state() 1779 (vs->vs_mp->mnt_flag & MNT_RDONLY)) { in nlm_get_vfs_state() 1785 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, LK_EXCLUSIVE, &vs->vs_vp); in nlm_get_vfs_state() 1788 vs->vs_vnlocked = TRUE; in nlm_get_vfs_state() 1804 error = VOP_ACCESS(vs->vs_vp, accmode, cred, curthread); in nlm_get_vfs_state() 1811 error = VOP_ACCESS(vs->vs_vp, VWRITE, cred, curthread); in nlm_get_vfs_state() [all …]
|
| /freebsd/cddl/usr.sbin/zfsd/ |
| H A D | vdev.cc | 161 vdev_stat_t *vs; in State() local 178 vs = reinterpret_cast<vdev_stat_t *>(nvlist_array); in State() 179 return (static_cast<vdev_state>(vs->vs_state)); in State() 287 vdev_stat_t *vs; in IsActiveSpare() local 294 reinterpret_cast<uint64_t **>(&vs), &c); in IsActiveSpare() 295 if (vs == NULL || vs->vs_aux != VDEV_AUX_SPARED) in IsActiveSpare()
|
| /freebsd/sys/contrib/openzfs/cmd/zpool/ |
| H A D | zpool_main.c | 1157 vdev_stat_t *vs; in fill_vdev_info() local 1242 (uint64_t **)&vs, &c) == 0) { in fill_vdev_info() 1244 vdev_state_str[vs->vs_state]); in fill_vdev_info() 2721 print_status_initialize(vdev_stat_t *vs, boolean_t verbose) in print_status_initialize() argument 2724 if ((vs->vs_initialize_state == VDEV_INITIALIZE_ACTIVE || in print_status_initialize() 2725 vs->vs_initialize_state == VDEV_INITIALIZE_SUSPENDED || in print_status_initialize() 2726 vs->vs_initialize_state == VDEV_INITIALIZE_COMPLETE) && in print_status_initialize() 2727 !vs->vs_scan_removing) { in print_status_initialize() 2731 time_t t = vs->vs_initialize_action_time; in print_status_initialize() 2733 if (vs->vs_initialize_state != in print_status_initialize() [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
| H A D | zfs_mod.c | 119 vdev_stat_t *vs; in zfs_toplevel_state() local 125 (uint64_t **)&vs, &c) == 0); in zfs_toplevel_state() 126 return (vs->vs_state); in zfs_toplevel_state() 215 vdev_stat_t *vs; in zfs_process_add() local 230 (uint64_t **)&vs, &c) == 0); in zfs_process_add() 231 if (vs->vs_state == VDEV_STATE_HEALTHY) { in zfs_process_add() 400 if ((vs->vs_state != VDEV_STATE_DEGRADED) && in zfs_process_add() 401 (vs->vs_state != VDEV_STATE_FAULTED) && in zfs_process_add() 402 (vs->vs_state != VDEV_STATE_REMOVED) && in zfs_process_add() 403 (vs->vs_state != VDEV_STATE_CANT_OPEN)) { in zfs_process_add() [all …]
|
| H A D | zfs_retire.c | 156 vdev_stat_t *vs; in remove_spares() local 178 ZPOOL_CONFIG_VDEV_STATS, (uint64_t **)&vs, &c); in remove_spares() 179 if (vs->vs_state != VDEV_STATE_REMOVED && in remove_spares() 389 vdev_stat_t *vs; in zfs_retire_recv() local 443 (uint64_t **)&vs, &c); in zfs_retire_recv() 445 if (vs->vs_state == VDEV_STATE_OFFLINE) in zfs_retire_recv() 453 if ((vs->vs_state == VDEV_STATE_REMOVED && in zfs_retire_recv()
|
| /freebsd/contrib/bmake/unit-tests/ |
| H A D | meta-cmd-cmp.exp | 16 vs 26 vs 32 vs 43 vs
|
| /freebsd/usr.sbin/jail/ |
| H A D | config.c | 137 struct cfstring *s, *vs, *ns; in load_config() local 222 TAILQ_FOREACH(vs, &vp->val, tq) in load_config() 223 if (!STAILQ_EMPTY(&vs->vars)) { in load_config() 231 vs = TAILQ_FIRST(&vp->val); in load_config() 232 if (TAILQ_NEXT(vs, tq) != NULL && in load_config() 240 s->s = erealloc(s->s, s->len + vs->len + 1); in load_config() 241 memmove(s->s + v->pos + vs->len, in load_config() 244 memcpy(s->s + v->pos, vs->s, vs->len); in load_config() 247 vv->pos += vs->len; in load_config() 248 s->len += vs->len; in load_config() [all …]
|
| /freebsd/sys/fs/pseudofs/ |
| H A D | pseudofs_vncache.c | 122 enum vgetstate vs; in pfs_vncache_alloc() local 137 vs = vget_prep(vp); in pfs_vncache_alloc() 139 if (vget_finish(vp, LK_EXCLUSIVE, vs) == 0) { in pfs_vncache_alloc() 220 vs = vget_prep(vp); in pfs_vncache_alloc() 222 if (vget_finish(vp, LK_EXCLUSIVE, vs) == 0) { in pfs_vncache_alloc()
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | X509_STORE_CTX_get_by_subject.pod | 13 int X509_STORE_CTX_get_by_subject(const X509_STORE_CTX *vs, 16 X509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs, 24 and subject I<name> from the store in the provided store context I<vs>.
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_upgrade/ |
| H A D | zfs_upgrade.kshlib | 45 typeset vs=$(get_pool_prop version $pool) 46 if [ "$vs" = "-" ]; then 49 echo "$vs"
|