Home
last modified time | relevance | path

Searched refs:oldstate (Results 1 – 9 of 9) sorted by relevance

/freebsd-9-stable/sys/geom/vinum/
Dgeom_vinum_state.c125 int oldstate; in gv_set_drive_state() local
129 oldstate = d->state; in gv_set_drive_state()
131 if (newstate == oldstate) in gv_set_drive_state()
141 if (d->state != oldstate) { in gv_set_drive_state()
158 int oldstate, status; in gv_set_sd_state() local
162 oldstate = s->state; in gv_set_sd_state()
167 if (newstate == oldstate) in gv_set_sd_state()
285 int oldstate, plexdown; in gv_set_plex_state() local
289 oldstate = p->state; in gv_set_plex_state()
293 if (newstate == oldstate) in gv_set_plex_state()
[all …]
/freebsd-9-stable/lib/libthr/thread/
Dthr_cancel.c78 _pthread_setcancelstate(int state, int *oldstate) in _pthread_setcancelstate() argument
97 if (oldstate) { in _pthread_setcancelstate()
98 *oldstate = oldval ? PTHREAD_CANCEL_ENABLE : in _pthread_setcancelstate()
/freebsd-9-stable/sys/kern/
Dkern_umtx.c2630 int32_t state, oldstate; in do_rw_rdlock() local
2652 oldstate = casuword32(&rwlock->rw_state, state, state + 1); in do_rw_rdlock()
2653 if (oldstate == -1) { in do_rw_rdlock()
2657 if (oldstate == state) { in do_rw_rdlock()
2664 state = oldstate; in do_rw_rdlock()
2683 oldstate = casuword32(&rwlock->rw_state, state, state | URWLOCK_READ_WAITERS); in do_rw_rdlock()
2684 if (oldstate == -1) { in do_rw_rdlock()
2688 if (oldstate == state) in do_rw_rdlock()
2690 state = oldstate; in do_rw_rdlock()
2739 oldstate = casuword32(&rwlock->rw_state, state, in do_rw_rdlock()
[all …]
/freebsd-9-stable/lib/libkse/thread/
Dthr_cancel.c180 _pthread_setcancelstate(int state, int *oldstate) in _pthread_setcancelstate() argument
213 if (ret == 0 && oldstate != NULL) in _pthread_setcancelstate()
214 *oldstate = ostate; in _pthread_setcancelstate()
/freebsd-9-stable/usr.sbin/kgmon/
Dkgmon.c320 int mib[3], oldstate; local
327 if (sysctl(mib, 3, &oldstate, &sz, NULL, 0) < 0)
329 if (oldstate == state)
/freebsd-9-stable/contrib/ncurses/ncurses/base/
Dlib_mouse.c227 int oldstate = 0; in mouse_server() local
257 if ((mouev.fs ^ oldstate) & MOUSE_BN1_DOWN) in mouse_server()
260 if ((mouev.fs ^ oldstate) & MOUSE_BN2_DOWN) in mouse_server()
263 if ((mouev.fs ^ oldstate) & MOUSE_BN3_DOWN) in mouse_server()
268 oldstate = mouev.fs; in mouse_server()
/freebsd-9-stable/crypto/heimdal/lib/roken/
Dresolve.c614 char *oldstate; in dns_srv_order() local
643 oldstate = initstate(time(NULL), (char*)state, sizeof(state)); in dns_srv_order()
687 setstate(oldstate); in dns_srv_order()
/freebsd-9-stable/sys/dev/pci/
Dpci.c2359 int result, oldstate, highest, delay; in pci_set_powerstate_method() local
2369 oldstate = pci_get_powerstate(child); in pci_set_powerstate_method()
2370 if (oldstate == state) in pci_set_powerstate_method()
2385 highest = (oldstate > state) ? oldstate : state; in pci_set_powerstate_method()
2417 pci_printf(cfg, "Transition from D%d to D%d\n", oldstate, in pci_set_powerstate_method()
/freebsd-9-stable/sys/dev/firewire/
Dfirewire.c1947 int i, len, oldstate; in fw_rcv() local
1998 oldstate = rb->xfer->flag; in fw_rcv()
2000 switch (oldstate) { in fw_rcv()