/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_state.c | 123 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 D | geom_vinum.c | 633 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 D | xenbusb.c | 138 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 D | zfs_mod.c | 199 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 D | vmm.c | 1113 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 D | vmm.c | 1388 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 D | tcpstate | 40 newstate = args[3]->tcps_state; 43 tcp_state_string[newstate]);
|
H A D | tcptrack | 76 newstate = args[3]->tcps_state; 79 tcp_state_string[newstate]);
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | engine.c | 247 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 D | mkerr.pl | 290 my $newstate = 0; 296 $newstate = 1; 668 if ( $newstate ) {
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm.c | 1374 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 D | README | 43 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 D | vatpic.c | 116 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 D | vioapic.c | 137 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 D | if_uralvar.h | 78 int (*newstate)(struct ieee80211vap *, member
|
H A D | if_urtwvar.h | 89 int (*newstate)(struct ieee80211vap *, member
|
H A D | if_rumvar.h | 94 int (*newstate)(struct ieee80211vap *, member
|
H A D | if_runvar.h | 119 int (*newstate)(struct ieee80211vap *, member
|
H A D | if_uathvar.h | 179 int (*newstate)(struct ieee80211vap *, member
|
/freebsd/usr.sbin/apm/ |
H A D | apm.c | 332 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 D | if_ipwvar.h | 87 int (*newstate)(struct ieee80211vap *, member
|
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_core.h | 700 VCHIQ_CONNSTATE_T oldstate, VCHIQ_CONNSTATE_T newstate); 706 vchiq_set_conn_state(VCHIQ_STATE_T *state, VCHIQ_CONNSTATE_T newstate);
|
H A D | vchiq_core.c | 168 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 D | nlm_prot_impl.c | 762 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 D | if_rtwn.c | 558 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()
|