Home
last modified time | relevance | path

Searched refs:newstate (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/sys/geom/vinum/
H A Dgeom_vinum_state.c123 gv_set_drive_state(struct gv_drive *d, int newstate, int flags) in gv_set_drive_state() argument
132 if (newstate == oldstate) in gv_set_drive_state()
136 if ((newstate == GV_DRIVE_DOWN) && gv_consumer_is_open(d->consumer) && in gv_set_drive_state()
140 d->state = newstate; in gv_set_drive_state()
155 gv_set_sd_state(struct gv_sd *s, int newstate, int flags) in gv_set_sd_state() argument
168 if (newstate == oldstate) in gv_set_sd_state()
171 switch (newstate) { in gv_set_sd_state()
269 s->state = newstate; in gv_set_sd_state()
283 gv_set_plex_state(struct gv_plex *p, int newstate, int flags) in gv_set_plex_state() argument
294 if (newstate == oldstate) in gv_set_plex_state()
[all …]
H A Dgeom_vinum.c633 int newstate, flags, err, rename; in gv_worker() local
719 newstate = ev->arg3; in gv_worker()
721 err = gv_set_sd_state(s, newstate, flags); in gv_worker()
730 newstate = ev->arg3; in gv_worker()
732 err = gv_set_drive_state(d, newstate, flags); in gv_worker()
741 newstate = ev->arg3; in gv_worker()
743 err = gv_set_vol_state(v, newstate, flags); in gv_worker()
752 newstate = ev->arg3; in gv_worker()
754 err = gv_set_plex_state(p, newstate, flags); in gv_worker()
/freebsd/sys/xen/xenbus/
H A Dxenbusb.c138 enum xenbus_state newstate; in xenbusb_otherend_watch_cb() local
149 newstate = xenbus_read_driver_state(ivars->xd_otherend_path); in xenbusb_otherend_watch_cb()
150 XENBUSB_OTHEREND_CHANGED(bus, child, newstate); in xenbusb_otherend_watch_cb()
901 enum xenbus_state newstate; in xenbusb_write_ivar() local
910 newstate = (enum xenbus_state)value; in xenbusb_write_ivar()
912 if (ivars->xd_state == newstate) { in xenbusb_write_ivar()
931 "%d", newstate); in xenbusb_write_ivar()
939 if (newstate != XenbusStateClosing) in xenbusb_write_ivar()
945 ivars->xd_state = newstate; in xenbusb_write_ivar()
948 (newstate in xenbusb_write_ivar()
[all...]
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c199 vdev_state_t newstate; in zfs_process_add() local
344 if (zpool_vdev_online(zhp, fullpath, online_flag, &newstate) == 0 && in zfs_process_add()
345 (newstate == VDEV_STATE_HEALTHY || in zfs_process_add()
346 newstate == VDEV_STATE_DEGRADED)) { in zfs_process_add()
349 "%s", fullpath, physpath, (newstate == VDEV_STATE_HEALTHY) ? in zfs_process_add()
368 &newstate); in zfs_process_add()
388 ZFS_ONLINE_FORCEFAULT, &newstate); in zfs_process_add()
393 err ? (int)newstate : 0); in zfs_process_add()
463 ZFS_ONLINE_FORCEFAULT, &newstate); in zfs_process_add()
509 ZFS_ONLINE_FORCEFAULT, &newstate); in zfs_process_add()
[all …]
/freebsd/sys/riscv/vmm/
H A Dvmm.c1113 vcpu_set_state_locked(struct vcpu *vcpu, enum vcpu_state newstate, in vcpu_set_state_locked() argument
1154 error = (newstate != VCPU_FROZEN); in vcpu_set_state_locked()
1157 error = (newstate == VCPU_FROZEN); in vcpu_set_state_locked()
1167 vcpu->state = newstate; in vcpu_set_state_locked()
1168 if (newstate == VCPU_RUNNING) in vcpu_set_state_locked()
1173 if (newstate == VCPU_IDLE) in vcpu_set_state_locked()
1180 vcpu_require_state(struct vcpu *vcpu, enum vcpu_state newstate) in vcpu_require_state() argument
1184 if ((error = vcpu_set_state(vcpu, newstate, false)) != 0) in vcpu_require_state()
1185 panic("Error %d setting state to %d\n", error, newstate); in vcpu_require_state()
1189 vcpu_require_state_locked(struct vcpu *vcpu, enum vcpu_state newstate) in vcpu_require_state_locked() argument
[all …]
/freebsd/sys/arm64/vmm/
H A Dvmm.c1388 vcpu_set_state_locked(struct vcpu *vcpu, enum vcpu_state newstate, in vcpu_set_state_locked() argument
1428 error = (newstate != VCPU_FROZEN); in vcpu_set_state_locked()
1431 error = (newstate == VCPU_FROZEN); in vcpu_set_state_locked()
1441 vcpu->state = newstate; in vcpu_set_state_locked()
1442 if (newstate == VCPU_RUNNING) in vcpu_set_state_locked()
1447 if (newstate == VCPU_IDLE) in vcpu_set_state_locked()
1454 vcpu_require_state(struct vcpu *vcpu, enum vcpu_state newstate) in vcpu_require_state() argument
1458 if ((error = vcpu_set_state(vcpu, newstate, false)) != 0) in vcpu_require_state()
1459 panic("Error %d setting state to %d\n", error, newstate); in vcpu_require_state()
1463 vcpu_require_state_locked(struct vcpu *vcpu, enum vcpu_state newstate) in vcpu_require_state_locked() argument
[all …]
/freebsd/share/dtrace/
H A Dtcpstate40 newstate = args[3]->tcps_state;
43 tcp_state_string[newstate]);
H A Dtcptrack76 newstate = args[3]->tcps_state;
79 tcp_state_string[newstate]);
/freebsd/contrib/sendmail/libmilter/
H A Dengine.c247 int newstate; local
353 newstate = cmds[i].cm_next;
357 curstate, newstate, next_states[curstate]);
359 if (newstate != ST_NONE && !trans_ok(curstate, newstate))
365 newstate, MI_MASK(newstate),
378 if (!trans_ok(curstate, newstate))
399 if (newstate != ST_NONE)
401 curstate = newstate;
/freebsd/crypto/openssl/util/
H A Dmkerr.pl290 my $newstate = 0;
296 $newstate = 1;
668 if ( $newstate ) {
/freebsd/sys/amd64/vmm/
H A Dvmm.c1374 vcpu_set_state_locked(struct vcpu *vcpu, enum vcpu_state newstate, in vcpu_set_state_locked() argument
1417 error = (newstate != VCPU_FROZEN); in vcpu_set_state_locked()
1420 error = (newstate == VCPU_FROZEN); in vcpu_set_state_locked()
1431 vcpu_state2str(vcpu->state), vcpu_state2str(newstate)); in vcpu_set_state_locked()
1433 vcpu->state = newstate; in vcpu_set_state_locked()
1434 if (newstate == VCPU_RUNNING) in vcpu_set_state_locked()
1439 if (newstate == VCPU_IDLE) in vcpu_set_state_locked()
1446 vcpu_require_state(struct vcpu *vcpu, enum vcpu_state newstate) in vcpu_require_state() argument
1450 if ((error = vcpu_set_state(vcpu, newstate, false)) != 0) in vcpu_require_state()
1451 panic("Error %d setting state to %d\n", error, newstate); in vcpu_require_state()
[all …]
/freebsd/tools/tools/net80211/mlme_assoc/
H A DREADME43 The tool is useful to trigger net80211::newstate() changes while other
44 newstate() changes are pending or being executed.
/freebsd/sys/amd64/vmm/io/
H A Dvatpic.c116 static void vatpic_set_pinstate(struct vatpic *vatpic, int pin, bool newstate);
418 vatpic_set_pinstate(struct vatpic *vatpic, int pin, bool newstate) in vatpic_set_pinstate() argument
432 if (newstate) in vatpic_set_pinstate()
455 pin, newstate ? "asserted" : "deasserted", newcnt); in vatpic_set_pinstate()
H A Dvioapic.c137 vioapic_set_pinstate(struct vioapic *vioapic, int pin, bool newstate) in vioapic_set_pinstate() argument
149 if (newstate) in vioapic_set_pinstate()
168 pin, pinstate_str(newstate), newcnt); in vioapic_set_pinstate()
/freebsd/sys/dev/usb/wlan/
H A Dif_uralvar.h78 int (*newstate)(struct ieee80211vap *, member
H A Dif_urtwvar.h89 int (*newstate)(struct ieee80211vap *, member
H A Dif_rumvar.h94 int (*newstate)(struct ieee80211vap *, member
H A Dif_runvar.h119 int (*newstate)(struct ieee80211vap *, member
H A Dif_uathvar.h179 int (*newstate)(struct ieee80211vap *, member
/freebsd/usr.sbin/apm/
H A Dapm.c332 apm_display(int fd, int newstate) in apm_display() argument
334 if (ioctl(fd, APMIO_DISPLAY, &newstate) == -1) in apm_display()
/freebsd/sys/dev/ipw/
H A Dif_ipwvar.h87 int (*newstate)(struct ieee80211vap *, member
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_core.h700 VCHIQ_CONNSTATE_T oldstate, VCHIQ_CONNSTATE_T newstate);
706 vchiq_set_conn_state(VCHIQ_STATE_T *state, VCHIQ_CONNSTATE_T newstate);
H A Dvchiq_core.c168 vchiq_set_service_state(VCHIQ_SERVICE_T *service, int newstate) in vchiq_set_service_state() argument
173 srvstate_names[newstate]); in vchiq_set_service_state()
174 service->srvstate = newstate; in vchiq_set_service_state()
410 vchiq_set_conn_state(VCHIQ_STATE_T *state, VCHIQ_CONNSTATE_T newstate) in vchiq_set_conn_state() argument
415 conn_state_names[newstate]); in vchiq_set_conn_state()
416 state->conn_state = newstate; in vchiq_set_conn_state()
417 vchiq_platform_conn_state_changed(state, oldstate, newstate); in vchiq_set_conn_state()
2823 int newstate; in close_service_complete() local
2833 newstate = VCHIQ_SRVSTATE_LISTENING; in close_service_complete()
2835 newstate = VCHIQ_SRVSTATE_CLOSEWAIT; in close_service_complete()
[all …]
/freebsd/sys/nlm/
H A Dnlm_prot_impl.c762 nlm_host_notify(struct nlm_host *host, int newstate) in nlm_host_notify() argument
766 if (newstate) { in nlm_host_notify()
769 host->nh_sysid, newstate); in nlm_host_notify()
790 host->nh_state = newstate; in nlm_host_notify()
797 if (newstate != 0 in nlm_host_notify()
/freebsd/sys/dev/rtwn/
H A Dif_rtwn.c558 uvp->newstate = vap->iv_newstate; in rtwn_vap_create()
1039 return (uvp->newstate(vap, nstate, arg)); in rtwn_monitor_newstate()
1058 error = uvp->newstate(vap, nstate, arg); in rtwn_newstate()
1171 return (early_newstate ? 0 : uvp->newstate(vap, nstate, arg)); in rtwn_newstate()

123