Home
last modified time | relevance | path

Searched refs:vs (Results 1 – 25 of 265) sorted by relevance

1234567891011

/freebsd/usr.sbin/bhyve/
H A Dvirtio.c61 #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 Dvirtio.h247 #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 Dgdb.c786 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 Dlibzfs_status.c100 vdev_missing(vdev_stat_t *vs, uint_t vsc) in vdev_missing() argument
103 return (vs->vs_state == VDEV_STATE_CANT_OPEN && in vdev_missing()
104 vs->vs_aux == VDEV_AUX_OPEN_FAILED); in vdev_missing()
108 vdev_faulted(vdev_stat_t *vs, uint_t vsc) in vdev_faulted() argument
111 return (vs->vs_state == VDEV_STATE_FAULTED); in vdev_faulted()
115 vdev_errors(vdev_stat_t *vs, uint_t vsc) in vdev_errors() argument
118 return (vs->vs_state == VDEV_STATE_DEGRADED || in vdev_errors()
119 vs->vs_read_errors != 0 || vs->vs_write_errors != 0 || in vdev_errors()
120 vs->vs_checksum_errors != 0); in vdev_errors()
124 vdev_broken(vdev_stat_t *vs, uint_t vsc) in vdev_broken() argument
[all …]
/freebsd/sys/net/
H A Dvnet.c515 struct vnet_sysinit *vs, *vs2; in vnet_register_sysinit() local
518 vs = arg; in vnet_register_sysinit()
519 KASSERT(vs->subsystem > SI_SUB_VNET, ("vnet sysinit too early")); in vnet_register_sysinit()
524 if (vs2->subsystem > vs->subsystem) in vnet_register_sysinit()
526 if (vs2->subsystem == vs->subsystem && vs2->order > vs->order) in vnet_register_sysinit()
530 TAILQ_INSERT_BEFORE(vs2, vs, link); in vnet_register_sysinit()
532 TAILQ_INSERT_TAIL(&vnet_constructors, vs, link); in vnet_register_sysinit()
541 vs->func(vs->arg); in vnet_register_sysinit()
551 struct vnet_sysinit *vs; in vnet_deregister_sysinit() local
553 vs = arg; in vnet_deregister_sysinit()
[all …]
/freebsd/tools/tools/vimage/
H A Dvimage.c323 getjail(vstat_t *vs, int lastjid, int verbose) in getjail() argument
329 bzero(vs, sizeof(*vs)); in getjail()
335 jailparam_import_raw(&params[psize++], &vs->vnet, sizeof(vs->vnet)); in getjail()
338 jailparam_import_raw(&params[psize++], &vs->name, sizeof(vs->name)); in getjail()
344 jailparam_import_raw(&params[psize++], &vs->path, sizeof(vs->path)); in getjail()
347 jailparam_import_raw(&params[psize++], &vs->hostname, in getjail()
348 sizeof(vs->hostname)); in getjail()
351 jailparam_import_raw(&params[psize++], &vs->domainname, in getjail()
352 sizeof(vs->domainname)); in getjail()
355 jailparam_import_raw(&params[psize++], &vs->childcnt, in getjail()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dutil.c48 vdev_stat_t *vs; in show_vdev_stats() local
75 (uint64_t **)&vs, &c) != 0) in show_vdev_stats()
76 vs = v0; in show_vdev_stats()
86 sec = MAX(1, vs->vs_timestamp / NANOSEC); in show_vdev_stats()
88 nicenum(vs->vs_alloc, used, sizeof (used)); in show_vdev_stats()
89 nicenum(vs->vs_space - vs->vs_alloc, avail, sizeof (avail)); in show_vdev_stats()
90 nicenum(vs->vs_ops[ZIO_TYPE_READ] / sec, rops, sizeof (rops)); in show_vdev_stats()
91 nicenum(vs->vs_ops[ZIO_TYPE_WRITE] / sec, wops, sizeof (wops)); in show_vdev_stats()
92 nicenum(vs->vs_bytes[ZIO_TYPE_READ] / sec, rbytes, in show_vdev_stats()
94 nicenum(vs->vs_bytes[ZIO_TYPE_WRITE] / sec, wbytes, in show_vdev_stats()
[all …]
/freebsd/contrib/unbound/services/
H A Dview.c122 views_enter_view_name(struct views* vs, char* name) in views_enter_view_name() argument
131 lock_rw_wrlock(&vs->lock); in views_enter_view_name()
133 if(!rbtree_insert(&vs->vtree, &v->node)) { in views_enter_view_name()
137 lock_rw_unlock(&vs->lock); in views_enter_view_name()
140 lock_rw_unlock(&vs->lock); in views_enter_view_name()
145 views_apply_cfg(struct views* vs, struct config_file* cfg) in views_apply_cfg() argument
158 if(!(v = views_enter_view_name(vs, cv->name))) in views_apply_cfg()
225 views_find_view(struct views* vs, const char* name, int write) in views_find_view() argument
231 lock_rw_rdlock(&vs->lock); in views_find_view()
232 if(!(v = (struct view*)rbtree_search(&vs->vtree, &key.node))) { in views_find_view()
[all …]
/freebsd/sys/kern/
H A Dsubr_stats.c78 #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 Dvfs_hash.c76 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 Dxdr_float.c97 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/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticInstallAPIKinds.td58 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 Dzpool_influxdb.c342 vdev_stat_t *vs; in print_summary_stats() local
346 (uint64_t **)&vs, &c) != 0) { in print_summary_stats()
350 pool_name, zpool_state_to_name((vdev_state_t)vs->vs_state, in print_summary_stats()
351 (vdev_aux_t)vs->vs_aux), vdev_desc); in print_summary_stats()
352 print_kv("alloc", vs->vs_alloc); in print_summary_stats()
353 print_kv(",free", vs->vs_space - vs->vs_alloc); in print_summary_stats()
354 print_kv(",size", vs->vs_space); in print_summary_stats()
355 print_kv(",read_bytes", vs->vs_bytes[ZIO_TYPE_READ]); in print_summary_stats()
356 print_kv(",read_errors", vs->vs_read_errors); in print_summary_stats()
357 print_kv(",read_ops", vs->vs_ops[ZIO_TYPE_READ]); in print_summary_stats()
[all …]
/freebsd/sys/nlm/
H A Dnlm_prot_impl.c1757 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 Dvdev.cc161 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 Dzpool_main.c1163 vdev_stat_t *vs; in fill_vdev_info() local
1248 (uint64_t **)&vs, &c) == 0) { in fill_vdev_info()
1250 vdev_state_str[vs->vs_state]); in fill_vdev_info()
2725 print_status_initialize(vdev_stat_t *vs, boolean_t verbose) in print_status_initialize() argument
2728 if ((vs->vs_initialize_state == VDEV_INITIALIZE_ACTIVE || in print_status_initialize()
2729 vs->vs_initialize_state == VDEV_INITIALIZE_SUSPENDED || in print_status_initialize()
2730 vs->vs_initialize_state == VDEV_INITIALIZE_COMPLETE) && in print_status_initialize()
2731 !vs->vs_scan_removing) { in print_status_initialize()
2735 time_t t = vs->vs_initialize_action_time; in print_status_initialize()
2737 if (vs->vs_initialize_state != in print_status_initialize()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dmeta-cmd-cmp.exp16 vs
26 vs
32 vs
43 vs
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c118 vdev_stat_t *vs; in zfs_toplevel_state() local
124 (uint64_t **)&vs, &c) == 0); in zfs_toplevel_state()
125 return (vs->vs_state); in zfs_toplevel_state()
214 vdev_stat_t *vs; in zfs_process_add() local
228 (uint64_t **)&vs, &c) == 0); in zfs_process_add()
229 if (vs->vs_state == VDEV_STATE_HEALTHY) { in zfs_process_add()
398 if ((vs->vs_state != VDEV_STATE_DEGRADED) && in zfs_process_add()
399 (vs->vs_state != VDEV_STATE_FAULTED) && in zfs_process_add()
400 (vs->vs_state != VDEV_STATE_REMOVED) && in zfs_process_add()
401 (vs->vs_state != VDEV_STATE_CANT_OPEN)) { in zfs_process_add()
[all …]
H A Dzfs_retire.c155 vdev_stat_t *vs; in remove_spares() local
177 ZPOOL_CONFIG_VDEV_STATS, (uint64_t **)&vs, &c); in remove_spares()
178 if (vs->vs_state != VDEV_STATE_REMOVED && in remove_spares()
388 vdev_stat_t *vs; in zfs_retire_recv() local
441 (uint64_t **)&vs, &c); in zfs_retire_recv()
448 if ((vs->vs_state == VDEV_STATE_REMOVED && state == in zfs_retire_recv()
449 VDEV_STATE_REMOVED) || vs->vs_state == VDEV_STATE_OFFLINE) in zfs_retire_recv()
/freebsd/usr.sbin/jail/
H A Dconfig.c137 struct cfstring *s, *vs, *ns; in load_config() local
211 TAILQ_FOREACH(vs, &vp->val, tq) in load_config()
212 if (!STAILQ_EMPTY(&vs->vars)) { in load_config()
220 vs = TAILQ_FIRST(&vp->val); in load_config()
221 if (TAILQ_NEXT(vs, tq) != NULL && in load_config()
229 s->s = erealloc(s->s, s->len + vs->len + 1); in load_config()
230 memmove(s->s + v->pos + vs->len, in load_config()
233 memcpy(s->s + v->pos, vs->s, vs->len); in load_config()
236 vv->pos += vs->len; in load_config()
237 s->len += vs->len; in load_config()
[all …]
/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vncache.c122 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/tests/sys/cddl/zfs/tests/cli_root/zfs_upgrade/
H A Dzfs_upgrade.kshlib45 typeset vs=$(get_pool_prop version $pool)
46 if [ "$vs" = "-" ]; then
49 echo "$vs"
/freebsd/contrib/sqlite3/tea/win/
H A Dnmakehlp.c628 unsigned char *ks, *ke, *vs, *ve; in SubstituteFile() local
633 vs = ke; in SubstituteFile()
634 while (vs && *vs && isspace(*vs)) ++vs; in SubstituteFile()
635 ve = vs; in SubstituteFile()
638 list_insert(&substPtr, (char*)ks, (char*)vs); in SubstituteFile()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoV.td379 // vs<nf>r.v vd, (rs1)
804 def _VS : VALUVV<funct6, OPMVV, opcodestr # ".vs">,
809 def _VS : VALUVV<funct6, OPMVV, opcodestr # ".vs">,
814 def _VS : VALUVV<funct6, OPIVV, opcodestr # ".vs">,
819 def _VS : VALUVV<funct6, OPFVV, opcodestr # ".vs">,
824 def _VS : VALUVV<funct6, OPFVV, opcodestr # ".vs">,
829 def _VS : VALUVV<funct6, OPFVV, opcodestr # ".vs">,
834 def _VS : VALUVV<funct6, OPFVV, opcodestr # ".vs">,
839 def _VS : VALUVV<funct6, OPFVV, opcodestr # ".vs">,
1099 def : InstAlias<"vneg.v $vd, $vs$vm", (VRSUB_VX VR:$vd, VR:$vs, X0, VMaskOp:$vm)>;
[all …]
/freebsd/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c480 char ns[30], vs[10]; in pmcstat_cgnode_topprint() local
486 snprintf(vs, sizeof(vs), "%.1f", v); in pmcstat_cgnode_topprint()
514 PMCSTAT_PRINTW("%5.5s", vs); in pmcstat_cgnode_topprint()
558 vs_len = snprintf(vs, sizeof(vs), ":%.1f", v); in pmcstat_cgnode_topprint()
582 PMCSTAT_PRINTW("%s", vs); in pmcstat_cgnode_topprint()

1234567891011