Home
last modified time | relevance | path

Searched refs:newval (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd/sys/cddl/compat/opensolaris/sys/
H A Datomic.h51 uint64_t newval);
93 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) in atomic_cas_32() argument
96 (void)atomic_fcmpset_32(target, &cmp, newval); in atomic_cas_32()
101 if (atomic_fcmpset_32(target, &cmp, newval)) in atomic_cas_32()
124 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument
127 (void)atomic_fcmpset_64(target, &cmp, newval); in atomic_cas_64()
132 if (atomic_fcmpset_64(target, &cmp, newval)) in atomic_cas_64()
160 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) in atomic_cas_ptr() argument
163 (uint64_t)cmp, (uint64_t)newval)); in atomic_cas_ptr()
167 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) in atomic_cas_ptr() argument
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Datomic.h57 uint64_t newval);
102 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) in atomic_cas_32() argument
105 (void) atomic_fcmpset_32(target, &cmp, newval); in atomic_cas_32()
110 if (atomic_fcmpset_32(target, &cmp, newval)) in atomic_cas_32()
135 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument
138 (void) atomic_fcmpset_64(target, &cmp, newval); in atomic_cas_64()
143 if (atomic_fcmpset_64(target, &cmp, newval)) in atomic_cas_64()
172 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) in atomic_cas_ptr() argument
175 (uint64_t)cmp, (uint64_t)newval)); in atomic_cas_ptr()
179 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) in atomic_cas_ptr() argument
[all …]
/freebsd/tools/regression/priv/
H A Dpriv_msgbuf.c57 int newval; in priv_msgbuf_privonly_setup() local
68 newval = 0; in priv_msgbuf_privonly_setup()
69 if (sysctlbyname(MSGBUF_CONTROL_NAME, NULL, NULL, &newval, in priv_msgbuf_privonly_setup()
70 sizeof(newval)) < 0) { in priv_msgbuf_privonly_setup()
102 int newval; in priv_msgbuf_unprivok_setup() local
113 newval = 1; in priv_msgbuf_unprivok_setup()
114 if (sysctlbyname(MSGBUF_CONTROL_NAME, NULL, NULL, &newval, in priv_msgbuf_unprivok_setup()
115 sizeof(newval)) < 0) { in priv_msgbuf_unprivok_setup()
/freebsd/sys/powerpc/include/
H A Datomic.h562 atomic_cmpset_char(volatile u_char *p, u_char cmpval, u_char newval)
579 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p)
586 atomic_cmpset_short(volatile u_short *p, u_short cmpval, u_short newval) in atomic_cmpset_short() argument
603 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p) in atomic_cmpset_short()
610 atomic_cmpset_masked(uint32_t *p, uint32_t cmpval, uint32_t newval,
632 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p),
643 atomic_cmpset_int(volatile u_int* p, u_int cmpval, u_int newval) in atomic_cmpset_int() argument
660 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p) in atomic_cmpset_int()
666 atomic_cmpset_long(volatile u_long* p, u_long cmpval, u_long newval) in atomic_cmpset_long() argument
694 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p) in atomic_cmpset_long()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/include/sys/crypto/
H A Dimpl.h135 int newval = atomic_add_32_nv(&(desc)->pd_refcnt, 1); \
136 ASSERT(newval != 0); \
140 int newval = atomic_add_32_nv(&(desc)->pd_irefcnt, 1); \
141 ASSERT(newval != 0); \
146 int newval = atomic_add_32_nv(&(desc)->pd_irefcnt, -1); \
147 ASSERT(newval != -1); \
148 if (newval == 0) { \
157 int newval = atomic_add_32_nv(&(desc)->pd_refcnt, -1); \
158 ASSERT(newval != -1); \
159 if (newval == 0) { \
H A Dsched_impl.h77 int newval = atomic_add_32_nv(&(ictx)->kc_refcnt, -1); \
78 ASSERT(newval != -1); \
79 if (newval == 0) \
/freebsd/sys/riscv/include/
H A Datomic.h69 uint##WIDTH##_t cmpval, uint##WIDTH##_t newval) \
73 retval = atomic_cmpset_##WIDTH(p, cmpval, newval); \
80 uint##WIDTH##_t cmpval, uint##WIDTH##_t newval) \
83 return (atomic_cmpset_##WIDTH(p, cmpval, newval)); \
89 uint##WIDTH##_t *cmpval, uint##WIDTH##_t newval) \
93 retval = atomic_fcmpset_##WIDTH(p, cmpval, newval); \
100 uint##WIDTH##_t *cmpval, uint##WIDTH##_t newval) \
103 return (atomic_fcmpset_##WIDTH(p, cmpval, newval)); \
193 atomic_cmpset_32(volatile uint32_t *p, uint32_t cmpval, uint32_t newval) in atomic_cmpset_32() argument
209 : "rJ" ((long)(int32_t)cmpval), "rJ" (newval) in atomic_cmpset_32()
[all …]
/freebsd/sys/i386/i386/
H A Dperfmon.c265 quad_t newval = 0; in writectl5() local
269 newval |= P5FLAG_USR << 16; in writectl5()
271 newval |= P5FLAG_OS << 16; in writectl5()
273 newval |= P5FLAG_E << 16; in writectl5()
274 newval |= (ctl_shadow[1] & 0x3f) << 16; in writectl5()
278 newval |= P5FLAG_USR; in writectl5()
280 newval |= P5FLAG_OS; in writectl5()
282 newval |= P5FLAG_E; in writectl5()
283 newval |= ctl_shadow[0] & 0x3f; in writectl5()
286 wrmsr(msr_ctl[0], newval); in writectl5()
H A Dcopyout.c426 uint32_t newval; member
437 ca->newval); in casueword_slow0()
442 uint32_t newval) in casueword32() argument
448 ca.newval = newval; in casueword32()
459 casueword(volatile u_long *base, u_long oldval, u_long *oldvalp, u_long newval) in casueword() argument
465 ca.newval = newval; in casueword()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_atomic.c100 uint64_t newval; in atomic_add_64_nv() local
103 newval = (*target += delta); in atomic_add_64_nv()
105 return (newval); in atomic_add_64_nv()
109 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument
116 *target = newval; in atomic_cas_64()
/freebsd/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_atomic.c100 uint64_t newval; in atomic_add_64_nv() local
103 newval = (*target += delta); in atomic_add_64_nv()
105 return (newval); in atomic_add_64_nv()
109 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument
116 *target = newval; in atomic_cas_64()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_kauth_pr_47598.c50 static void set_curtain(int newval);
77 set_curtain(int newval) in set_curtain() argument
80 if (sysctlbyname(curtain_name, NULL, 0, &newval, sizeof(newval)) != 0) in set_curtain()
81 atf_tc_fail("failed to set %s to %d", curtain_name, newval); in set_curtain()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_objset.c179 checksum_changed_cb(void *arg, uint64_t newval) in checksum_changed_cb() argument
186 ASSERT(newval != ZIO_CHECKSUM_INHERIT); in checksum_changed_cb()
188 os->os_checksum = zio_checksum_select(newval, ZIO_CHECKSUM_ON_VALUE); in checksum_changed_cb()
192 compression_changed_cb(void *arg, uint64_t newval) in compression_changed_cb() argument
199 ASSERT(newval != ZIO_COMPRESS_INHERIT); in compression_changed_cb()
202 ZIO_COMPRESS_ALGO(newval), ZIO_COMPRESS_ON); in compression_changed_cb()
204 ZIO_COMPRESS_LEVEL(newval), ZIO_COMPLEVEL_DEFAULT); in compression_changed_cb()
208 copies_changed_cb(void *arg, uint64_t newval) in copies_changed_cb() argument
215 ASSERT(newval > 0); in copies_changed_cb()
216 ASSERT(newval <= spa_max_replication(os->os_spa)); in copies_changed_cb()
[all …]
/freebsd/sys/amd64/vmm/io/
H A Dvrtc.c106 static void vrtc_set_reg_c(struct vrtc *vrtc, uint8_t newval);
591 vrtc_set_reg_c(struct vrtc *vrtc, uint8_t newval) in vrtc_set_reg_c() argument
600 newval &= RTCIR_ALARM | RTCIR_PERIOD | RTCIR_UPDATE; in vrtc_set_reg_c()
603 if ((aintr_enabled(vrtc) && (newval & RTCIR_ALARM) != 0) || in vrtc_set_reg_c()
604 (pintr_enabled(vrtc) && (newval & RTCIR_PERIOD) != 0) || in vrtc_set_reg_c()
605 (uintr_enabled(vrtc) && (newval & RTCIR_UPDATE) != 0)) { in vrtc_set_reg_c()
612 rtc->reg_c = newirqf | newval; in vrtc_set_reg_c()
629 vrtc_set_reg_b(struct vrtc *vrtc, uint8_t newval) in vrtc_set_reg_b() argument
643 rtc->reg_b = newval; in vrtc_set_reg_b()
644 changed = oldval ^ newval; in vrtc_set_reg_b()
[all …]
/freebsd/contrib/libucl/tests/basic/
H A D18.res7 key = "newval";
13 key = "newval";
22 key1 = "newval";
H A D18.in9 key = "newval"
14 key = "newval"
29 key1 = "newval"
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Datomic.h68 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) in atomic_cas_ptr() argument
71 (uint64_t)cmp, (uint64_t)newval)); in atomic_cas_ptr()
75 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) in atomic_cas_ptr() argument
78 (uint32_t)cmp, (uint32_t)newval)); in atomic_cas_ptr()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c312 atime_changed_cb(void *arg, uint64_t newval) in atime_changed_cb() argument
325 if (newval) in atime_changed_cb()
332 relatime_changed_cb(void *arg, uint64_t newval) in relatime_changed_cb() argument
334 ((zfsvfs_t *)arg)->z_relatime = newval; in relatime_changed_cb()
338 xattr_changed_cb(void *arg, uint64_t newval) in xattr_changed_cb() argument
342 if (newval == ZFS_XATTR_OFF) { in xattr_changed_cb()
347 if (newval == ZFS_XATTR_SA) in xattr_changed_cb()
355 acltype_changed_cb(void *arg, uint64_t newval) in acltype_changed_cb() argument
359 switch (newval) { in acltype_changed_cb()
380 blksz_changed_cb(void *arg, uint64_t newval) in blksz_changed_cb() argument
[all …]
/freebsd/sbin/sysctl/
H A Dsysctl.c249 const void *newval; in parse_numeric() local
273 newval = &intval; in parse_numeric()
278 newval = &uintval; in parse_numeric()
283 newval = &longval; in parse_numeric()
288 newval = &ulongval; in parse_numeric()
293 newval = &i8val; in parse_numeric()
298 newval = &i16val; in parse_numeric()
303 newval = &i32val; in parse_numeric()
308 newval = &i64val; in parse_numeric()
313 newval = &u8val; in parse_numeric()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dnvlist_to_lua.c272 nvlist_t *newval = fnvlist_alloc(); in run_tests() local
273 fnvlist_add_nvlist(newval, "key", nvl); in run_tests()
275 nvl = newval; in run_tests()
281 nvlist_t *newval = fnvlist_alloc(); in run_tests() local
282 fnvlist_add_nvlist(newval, "key", nvl); in run_tests()
284 nvl = newval; in run_tests()
/freebsd/sys/netinet/
H A Dsctp_bsd_addr.c393 int value, newval, thisend, thisbegin; in sctp_packet_log() local
417 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
418 if (newval >= SCTP_PACKET_LOG_SIZE) { in sctp_packet_log()
424 thisend = newval; in sctp_packet_log()
431 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
432 if (newval >= SCTP_PACKET_LOG_SIZE) { in sctp_packet_log()
438 thisend = newval; in sctp_packet_log()
/freebsd/sys/amd64/amd64/
H A Dcopyout.c128 uint32_t *oldvalp, uint32_t newval);
130 uint32_t *oldvalp, uint32_t newval);
140 u_long newval);
142 u_long newval);
/freebsd/sys/arm64/include/
H A Datomic.h148 uint##t##_t cmpval, uint##t##_t newval)
153 uint##t##_t *cmpval, uint##t##_t newval)
170 : "r" (p), "r" (cmpval), "r" (newval) \
190 : "r" (oldval), "r" (p), "r" (newval) \
201 newval)); \
204 newval)); \
221 : "r" (p), "r" (_cmpval), "r" (newval) \
242 : "r" (_cmpval), "r" (p), "r" (newval) \
254 newval)); \
257 newval)); \
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c468 atime_changed_cb(void *arg, uint64_t newval) in atime_changed_cb() argument
472 if (newval == TRUE) { in atime_changed_cb()
486 xattr_changed_cb(void *arg, uint64_t newval) in xattr_changed_cb() argument
490 if (newval == ZFS_XATTR_OFF) { in xattr_changed_cb()
495 if (newval == ZFS_XATTR_SA) in xattr_changed_cb()
503 blksz_changed_cb(void *arg, uint64_t newval) in blksz_changed_cb() argument
506 ASSERT3U(newval, <=, spa_maxblocksize(dmu_objset_spa(zfsvfs->z_os))); in blksz_changed_cb()
507 ASSERT3U(newval, >=, SPA_MINBLOCKSIZE); in blksz_changed_cb()
508 ASSERT(ISP2(newval)); in blksz_changed_cb()
510 zfsvfs->z_max_blksz = newval; in blksz_changed_cb()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_pfil.c705 int newval; in ipfw_chg_hook() local
720 newval = *(int *)arg1; in ipfw_chg_hook()
722 error = sysctl_handle_int(oidp, &newval, 0, req); in ipfw_chg_hook()
728 newval = (newval) ? 1 : 0; in ipfw_chg_hook()
730 if (*(int *)arg1 == newval) in ipfw_chg_hook()
733 error = ipfw_link(af, newval == 0 ? true : false); in ipfw_chg_hook()
736 *(int *)arg1 = newval; in ipfw_chg_hook()

1234