Home
last modified time | relevance | path

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

/freebsd/sys/contrib/pcg-c/include/
H A Dpcg_variants.h868 uint16_t oldstate = rng->state; in pcg_oneseq_16_xsh_rs_8_random_r() local
870 return pcg_output_xsh_rs_16_8(oldstate); in pcg_oneseq_16_xsh_rs_8_random_r()
886 uint32_t oldstate = rng->state; in pcg_oneseq_32_xsh_rs_16_random_r() local
888 return pcg_output_xsh_rs_32_16(oldstate); in pcg_oneseq_32_xsh_rs_16_random_r()
904 uint64_t oldstate = rng->state; in pcg_oneseq_64_xsh_rs_32_random_r() local
906 return pcg_output_xsh_rs_64_32(oldstate); in pcg_oneseq_64_xsh_rs_32_random_r()
944 uint16_t oldstate = rng->state; in pcg_unique_16_xsh_rs_8_random_r() local
946 return pcg_output_xsh_rs_16_8(oldstate); in pcg_unique_16_xsh_rs_8_random_r()
962 uint32_t oldstate = rng->state; in pcg_unique_32_xsh_rs_16_random_r() local
964 return pcg_output_xsh_rs_32_16(oldstate); in pcg_unique_32_xsh_rs_16_random_r()
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_cancel.c83 _thr_setcancelstate(int state, int *oldstate) in _thr_setcancelstate() argument
102 if (oldstate != NULL) { in _thr_setcancelstate()
103 *oldstate = oldval ? PTHREAD_CANCEL_ENABLE : in _thr_setcancelstate()
/freebsd/contrib/libucl/tests/
H A Dtest_msgpack.c72 uint64_t oldstate = rng.state; in pcg32_random() local
74 rng.state = oldstate * 6364136223846793005ULL + (rng.inc | 1); in pcg32_random()
75 uint32_t xorshifted = ((oldstate >> 18u) ^ oldstate) >> 27u; in pcg32_random()
76 uint32_t rot = oldstate >> 59u; in pcg32_random()
/freebsd/share/dtrace/
H A Dtcpstate41 oldstate = args[5]->tcps_state;
42 printf("%s\t\t%s\n", tcp_state_string[oldstate],
H A Dtcptrack77 oldstate = args[5]->tcps_state;
78 printf("State changed from %s\t\t%s\n", tcp_state_string[oldstate],
/freebsd/sys/kern/
H A Dkern_umtx.c3100 int32_t state, oldstate; in do_rw_rdlock() local
3134 &oldstate, state + 1); in do_rw_rdlock()
3140 MPASS(oldstate == state); in do_rw_rdlock()
3147 state = oldstate; in do_rw_rdlock()
3168 &oldstate, state | URWLOCK_READ_WAITERS); in do_rw_rdlock()
3174 MPASS(oldstate == state); in do_rw_rdlock()
3177 state = oldstate; in do_rw_rdlock()
3252 &oldstate, state & ~URWLOCK_READ_WAITERS); in do_rw_rdlock()
3258 MPASS(oldstate == state); in do_rw_rdlock()
3261 state = oldstate; in do_rw_rdlock()
[all …]
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_mouse.c259 int oldstate = 0; in mouse_server() local
290 if ((mouev.fs ^ oldstate) & MOUSE_BN1_DOWN) in mouse_server()
293 if ((mouev.fs ^ oldstate) & MOUSE_BN2_DOWN) in mouse_server()
296 if ((mouev.fs ^ oldstate) & MOUSE_BN3_DOWN) in mouse_server()
301 oldstate = mouev.fs; in mouse_server()
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_core.h709 VCHIQ_CONNSTATE_T oldstate, VCHIQ_CONNSTATE_T newstate);
H A Dvchiq_core.c412 VCHIQ_CONNSTATE_T oldstate = state->conn_state; in vchiq_set_conn_state() local
414 conn_state_names[oldstate], in vchiq_set_conn_state()
417 vchiq_platform_conn_state_changed(state, oldstate, newstate); in vchiq_set_conn_state()
H A Dvchiq_arm.c2997 VCHIQ_CONNSTATE_T oldstate, VCHIQ_CONNSTATE_T newstate) in vchiq_platform_conn_state_changed() argument
3001 get_conn_state_name(oldstate), get_conn_state_name(newstate)); in vchiq_platform_conn_state_changed()
/freebsd/sys/dev/firewire/
H A Dfirewire.c1907 int oldstate; in fw_rcv() local
1958 oldstate = rb->xfer->flag; in fw_rcv()
1960 switch (oldstate) { in fw_rcv()
/freebsd/sys/dev/pci/
H A Dpci.c2850 int oldstate, highest, delay; in pci_set_powerstate_method() local
2860 oldstate = pci_get_powerstate(child); in pci_set_powerstate_method()
2861 if (oldstate == state) in pci_set_powerstate_method()
2876 highest = (oldstate > state) ? oldstate : state; in pci_set_powerstate_method()
2908 pci_powerstate_to_str(oldstate), in pci_set_powerstate_method()
/freebsd/crypto/krb5/src/windows/leashdll/
H A Dlsh_pwd.c666 int oldstate = state; in PasswordProc() local
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev.c4443 vdev_state_t oldstate; in vdev_online() local
4451 oldstate = vd->vdev_state; in vdev_online()
4517 (oldstate < VDEV_STATE_DEGRADED && in vdev_online()
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_main.c8038 vdev_state_t oldstate; in zpool_do_online() local
8061 oldstate = ((vdev_stat_t *)fnvlist_lookup_uint64_array(tgt, in zpool_do_online()
8081 (oldstate >= VDEV_STATE_DEGRADED ? in zpool_do_online()
8083 if (oldstate >= VDEV_STATE_DEGRADED) { in zpool_do_online()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4416 INTERCEPTOR(int, __libc_thr_setcancelstate, int state, int *oldstate)
6622 INTERCEPTOR(int, pthread_setcancelstate, int state, int *oldstate) {
6624 COMMON_INTERCEPTOR_ENTER(ctx, pthread_setcancelstate, state, oldstate);
6625 int res = REAL(pthread_setcancelstate)(state, oldstate);
6626 if (res == 0 && oldstate != nullptr)
6627 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldstate, sizeof(*oldstate));