/freebsd/sys/i386/linux/ |
H A D | linux_copyout.c | 50 int *oldval; member 59 *st->oldval = atomic_swap_int((int *)kva, st->oparg); in futex_xchgl_slow0() 63 futex_xchgl(int oparg, uint32_t *uaddr, int *oldval) in futex_xchgl() argument 68 st.oldval = oldval; in futex_xchgl() 81 *st->oldval = atomic_fetchadd_int((int *)kva, st->oparg); in futex_addl_slow0() 85 futex_addl(int oparg, uint32_t *uaddr, int *oldval) in futex_addl() argument 90 st.oldval = oldval; in futex_addl() 107 *st->oldval = old; in futex_orl_slow0() 111 futex_orl(int oparg, uint32_t *uaddr, int *oldval) in futex_orl() argument 116 st.oldval = oldval; in futex_orl() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/delegate/ |
H A D | delegate_common.kshlib | 391 typeset oldval 422 typeset oldval 511 typeset oldval 514 oldval=$(get_prop $perm $dtst) 515 if [[ $oldval == "on" ]]; then 517 elif [[ $oldval == "off" ]]; then 535 typeset oldval 538 oldval=$(get_prop $perm $dtst) 539 if [[ $oldval -eq 1 ]]; then 541 elif [[ $oldval -eq 2 ]]; then [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 334 typeset oldval 451 typeset oldval 454 oldval=$(get_prop $perm $dtst) 455 if [[ $oldval == "on" ]]; then 457 elif [[ $oldval == "off" ]]; then 475 typeset oldval 478 oldval=$(get_prop $perm $dtst) 479 if [[ $oldval -eq 1 ]]; then 481 elif [[ $oldval -eq 2 ]]; then 483 elif [[ $oldval -eq 3 ]]; then [all …]
|
/freebsd/contrib/mandoc/ |
H A D | manpath.c | 226 char *oldval; in manconf_output() local 254 oldval = mandoc_strdup(conf->includes); in manconf_output() 261 oldval = mandoc_strdup(conf->man); in manconf_output() 268 oldval = mandoc_strdup(conf->paper); in manconf_output() 275 oldval = mandoc_strdup(conf->style); in manconf_output() 282 mandoc_asprintf(&oldval, "%zu", conf->indent); in manconf_output() 293 mandoc_asprintf(&oldval, "%zu", conf->width); in manconf_output() 304 oldval = mandoc_strdup(conf->outfilename); in manconf_output() 311 oldval = mandoc_strdup(conf->tagfilename); in manconf_output() 322 oldval = mandoc_strdup(conf->tag); in manconf_output() [all …]
|
/freebsd/tests/sys/kern/ |
H A D | sigsys.c | 67 int oldval; in sysctlset() local 70 ATF_REQUIRE(sysctlbyname(name, &oldval, &oldlen, NULL, 0) == 0); in sysctlset() 73 snprintf(buf, sizeof(buf), "%d", oldval); in sysctlset() 83 int n, oldval; in sysctlcleanup() local 88 if (sscanf(buf, "%d", &oldval) == 1) { in sysctlcleanup() 89 oldlen = sizeof(oldval); in sysctlcleanup() 91 &oldval, oldlen); in sysctlcleanup()
|
/freebsd/sys/compat/linux/ |
H A D | linux_futex.h | 91 int futex_xchgl(int oparg, uint32_t *uaddr, int *oldval); 92 int futex_addl(int oparg, uint32_t *uaddr, int *oldval); 93 int futex_orl(int oparg, uint32_t *uaddr, int *oldval); 94 int futex_andl(int oparg, uint32_t *uaddr, int *oldval); 95 int futex_xorl(int oparg, uint32_t *uaddr, int *oldval);
|
H A D | linux_futex.c | 138 int oldval = 0, ret; in futex_atomic_op() local 145 ret = futex_xchgl(oparg, uaddr, &oldval); in futex_atomic_op() 148 ret = futex_addl(oparg, uaddr, &oldval); in futex_atomic_op() 151 ret = futex_orl(oparg, uaddr, &oldval); in futex_atomic_op() 154 ret = futex_andl(~oparg, uaddr, &oldval); in futex_atomic_op() 157 ret = futex_xorl(oparg, uaddr, &oldval); in futex_atomic_op() 169 *res = (oldval == cmparg); in futex_atomic_op() 172 *res = (oldval != cmparg); in futex_atomic_op() 175 *res = (oldval < cmparg); in futex_atomic_op() 178 *res = (oldval >= cmparg); in futex_atomic_op() [all …]
|
H A D | linux_sysctl.c | 81 if (la->oldval != 0) { in handle_string() 83 error = copyout(value, PTRIN(la->oldval), len + 1); in handle_string()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_cancel.c | 86 int oldval, val; in _thr_setcancelstate() local 99 oldval = atomic_swap_int(&curthread->cancel_enable, val); in _thr_setcancelstate() 103 *oldstate = oldval ? PTHREAD_CANCEL_ENABLE : in _thr_setcancelstate() 113 int oldval; in _thr_setcanceltype() local 115 oldval = curthread->cancel_async; in _thr_setcanceltype() 129 *oldtype = oldval ? PTHREAD_CANCEL_ASYNCHRONOUS : in _thr_setcanceltype()
|
/freebsd/tests/sys/vm/ |
H A D | shared_shadow_inval_test.c | 170 child_verify(struct shared_state *ss, int depth, int newval, int oldval) in child_verify() argument 176 expectval = i < ss->modlen ? newval : oldval; in child_verify() 181 depth, foundval, expectval, oldval); in child_verify() 188 pid_t mypid, oldval, pid; in child() local 252 oldval = atomic_load_acq_int(ss->p); in child() 269 child_verify(ss, depth, pid, oldval); in child() 299 oldval = atomic_load_acq_int(ss->p); in child() 301 child_verify(ss, depth, oldval, oldval); in child()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_atomic.c | 111 uint64_t oldval; in atomic_cas_64() local 114 oldval = *target; in atomic_cas_64() 115 if (oldval == cmp) in atomic_cas_64() 118 return (oldval); in atomic_cas_64()
|
/freebsd/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_atomic.c | 111 uint64_t oldval; in atomic_cas_64() local 114 oldval = *target; in atomic_cas_64() 115 if (oldval == cmp) in atomic_cas_64() 118 return (oldval); in atomic_cas_64()
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | env_test.c | 93 char *oldval; in ATF_TC_BODY() local 96 RE(atf_text_format(&oldval, "%s", atf_env_get("PATH"))); in ATF_TC_BODY() 98 ATF_REQUIRE(strcmp(atf_env_get("PATH"), oldval) != 0); in ATF_TC_BODY() 100 free(oldval); in ATF_TC_BODY()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_machdep.c | 175 int futex_xchgl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 176 int futex_xchgl_smap(int oparg, uint32_t *uaddr, int *oldval); 184 int futex_addl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 185 int futex_addl_smap(int oparg, uint32_t *uaddr, int *oldval); 193 int futex_orl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 194 int futex_orl_smap(int oparg, uint32_t *uaddr, int *oldval); 202 int futex_andl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 203 int futex_andl_smap(int oparg, uint32_t *uaddr, int *oldval); 211 int futex_xorl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 212 int futex_xorl_smap(int oparg, uint32_t *uaddr, int *oldval);
|
/freebsd/sys/i386/i386/ |
H A D | copyout.c | 425 uint32_t oldval; member 436 ca->res = 1 - atomic_fcmpset_int((u_int *)kva, &ca->oldval, in casueword_slow0() 441 casueword32(volatile uint32_t *base, uint32_t oldval, uint32_t *oldvalp, in casueword32() argument 447 ca.oldval = oldval; in casueword32() 452 *oldvalp = ca.oldval; in casueword32() 459 casueword(volatile u_long *base, u_long oldval, u_long *oldvalp, u_long newval) in casueword() argument 464 ca.oldval = oldval; in casueword() 469 *oldvalp = ca.oldval; in casueword()
|
/freebsd/contrib/jemalloc/src/ |
H A D | ctl.c | 1478 t oldval; \ 1487 oldval = (v); \ 1488 READ(oldval, t); \ 1503 t oldval; \ 1510 oldval = (v); \ 1511 READ(oldval, t); \ 1524 t oldval; \ 1528 oldval = (v); \ 1529 READ(oldval, t); \ 1546 t oldval; \ [all …]
|
/freebsd/sys/amd64/amd64/ |
H A D | copyout.c | 127 int casueword32_nosmap(volatile uint32_t *base, uint32_t oldval, 129 int casueword32_smap(volatile uint32_t *base, uint32_t oldval, 139 int casueword_nosmap(volatile u_long *p, u_long oldval, u_long *oldvalp, 141 int casueword_smap(volatile u_long *p, u_long oldval, u_long *oldvalp,
|
/freebsd/sys/amd64/vmm/io/ |
H A D | vrtc.c | 595 uint8_t oldval, changed; in vrtc_set_reg_c() local 611 oldval = rtc->reg_c; in vrtc_set_reg_c() 613 changed = oldval ^ rtc->reg_c; in vrtc_set_reg_c() 616 oldval, rtc->reg_c); in vrtc_set_reg_c() 635 uint8_t oldval, changed; in vrtc_set_reg_b() local 640 oldval = rtc->reg_b; in vrtc_set_reg_b() 644 changed = oldval ^ newval; in vrtc_set_reg_b() 647 oldval, newval); in vrtc_set_reg_b() 708 uint8_t oldval, changed; in vrtc_set_reg_a() local 713 oldval = vrtc->rtcdev.reg_a; in vrtc_set_reg_a() [all …]
|
H A D | vhpet.c | 399 uint64_t oldval, newval; in vhpet_timer_update_config() local 407 oldval = vhpet->timer[n].cap_config; in vhpet_timer_update_config() 409 newval = oldval; in vhpet_timer_update_config() 412 newval |= oldval & HPET_TCAP_RO_MASK; in vhpet_timer_update_config() 414 if (newval == oldval) in vhpet_timer_update_config() 474 uint64_t data, mask, oldval, val64; in vhpet_mmio_write() local 520 oldval = vhpet->config; in vhpet_mmio_write() 529 if ((oldval ^ vhpet->config) & HPET_CNF_ENABLE) { in vhpet_mmio_write()
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_machdep.c | 553 int futex_xchgl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 554 int futex_xchgl_smap(int oparg, uint32_t *uaddr, int *oldval); 562 int futex_addl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 563 int futex_addl_smap(int oparg, uint32_t *uaddr, int *oldval); 571 int futex_orl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 572 int futex_orl_smap(int oparg, uint32_t *uaddr, int *oldval); 580 int futex_andl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 581 int futex_andl_smap(int oparg, uint32_t *uaddr, int *oldval); 589 int futex_xorl_nosmap(int oparg, uint32_t *uaddr, int *oldval); 590 int futex_xorl_smap(int oparg, uint32_t *uaddr, int *oldval);
|
/freebsd/sys/netinet/ |
H A D | sctp_os_bsd.h | 462 int32_t oldval; \ 463 oldval = atomic_fetchadd_int(addr, -val); \ 464 if (oldval < val) { \ 471 int32_t oldval; \ 472 oldval = atomic_fetchadd_int(addr, -val); \ 473 if (oldval < val) { \
|
/freebsd/sys/arm64/arm64/ |
H A D | support_ifunc.c | 50 DEFINE_IFUNC(, int, casueword32, (volatile uint32_t *base, uint32_t oldval, 59 DEFINE_IFUNC(, int, casueword, (volatile u_long *base, u_long oldval,
|
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | env_test.cpp | 68 const std::string& oldval = atf::env::get("PATH"); in ATF_TEST_CASE_BODY() local 70 ATF_REQUIRE(atf::env::get("PATH") != oldval); in ATF_TEST_CASE_BODY()
|
/freebsd/usr.sbin/pkg/ |
H A D | config.c | 183 const char *oldval; in subst_packagesite() local 186 oldval = c[PACKAGESITE].value; in subst_packagesite() 188 oldval = c[PACKAGESITE].val; in subst_packagesite() 190 if ((variable_string = strstr(oldval, "${ABI}")) == NULL) in subst_packagesite() 194 (int)(variable_string - oldval), oldval, abi, in subst_packagesite()
|
/freebsd/sys/dev/nvme/ |
H A D | nvme_sysctl.c | 99 uint32_t oldval = ctrlr->int_coal_time; in nvme_sysctl_int_coal_time() local 106 if (oldval != ctrlr->int_coal_time) in nvme_sysctl_int_coal_time() 118 uint32_t oldval = ctrlr->int_coal_threshold; in nvme_sysctl_int_coal_threshold() local 125 if (oldval != ctrlr->int_coal_threshold) in nvme_sysctl_int_coal_threshold()
|