/freebsd-current/sys/cddl/compat/opensolaris/sys/ |
H A D | atomic.h | 51 uint64_t newval); 93 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) argument 96 (void)atomic_fcmpset_32(target, &cmp, newval); 101 if (atomic_fcmpset_32(target, &cmp, newval)) 124 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) argument 127 (void)atomic_fcmpset_64(target, &cmp, newval); 132 if (atomic_fcmpset_64(target, &cmp, newval)) 160 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) argument 163 (uint64_t)cmp, (uint64_t)newval)); 167 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) argument [all...] |
/freebsd-current/tools/regression/priv/ |
H A D | priv_msgbuf.c | 57 int newval; local 68 newval = 0; 69 if (sysctlbyname(MSGBUF_CONTROL_NAME, NULL, NULL, &newval, 70 sizeof(newval)) < 0) { 102 int newval; local 113 newval = 1; 114 if (sysctlbyname(MSGBUF_CONTROL_NAME, NULL, NULL, &newval, 115 sizeof(newval)) < 0) {
|
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | atomic.h | 57 uint64_t newval); 102 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) argument 105 (void) atomic_fcmpset_32(target, &cmp, newval); 110 if (atomic_fcmpset_32(target, &cmp, newval)) 135 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) argument 138 (void) atomic_fcmpset_64(target, &cmp, newval); 143 if (atomic_fcmpset_64(target, &cmp, newval)) 172 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) argument 175 (uint64_t)cmp, (uint64_t)newval)); 179 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) argument [all...] |
/freebsd-current/sys/netinet/ |
H A D | tcp_pcap.h | 34 void tcp_pcap_set_sock_max(struct mbufq *queue, int newval);
|
H A D | sctp_bsd_addr.c | 393 int value, newval, thisend, thisbegin; local 417 newval = SCTP_BASE_VAR(packet_log_end) + total_len; 418 if (newval >= SCTP_PACKET_LOG_SIZE) { 424 thisend = newval; 431 newval = SCTP_BASE_VAR(packet_log_end) + total_len; 432 if (newval >= SCTP_PACKET_LOG_SIZE) { 438 thisend = newval;
|
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_atomic.c | 100 uint64_t newval; local 103 newval = (*target += delta); 105 return (newval); 109 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) argument 116 *target = newval;
|
/freebsd-current/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_atomic.c | 100 uint64_t newval; local 103 newval = (*target += delta); 105 return (newval); 109 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) argument 116 *target = newval;
|
/freebsd-current/sys/contrib/openzfs/module/icp/include/sys/crypto/ |
H A D | impl.h | 135 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 [all...] |
H A D | sched_impl.h | 77 int newval = atomic_add_32_nv(&(ictx)->kc_refcnt, -1); \ 78 ASSERT(newval != -1); \ 79 if (newval == 0) \
|
/freebsd-current/contrib/netbsd-tests/kernel/ |
H A D | t_kauth_pr_47598.c | 50 static void set_curtain(int newval); 77 set_curtain(int newval) argument 80 if (sysctlbyname(curtain_name, NULL, 0, &newval, sizeof(newval)) != 0) 81 atf_tc_fail("failed to set %s to %d", curtain_name, newval);
|
/freebsd-current/sys/powerpc/include/ |
H A D | atomic.h | 557 * two values are equal, update the value of *p with newval. Returns 562 atomic_cmpset_char(volatile u_char *p, u_char cmpval, u_char newval) argument 579 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p) 586 atomic_cmpset_short(volatile u_short *p, u_short cmpval, u_short newval) argument 603 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p) 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) argument 660 : "r" (p), "r" (cmpval), "r" (newval), "m" (*p) 666 atomic_cmpset_long(volatile u_long* p, u_long cmpval, u_long newval) argument 760 atomic_fcmpset_char(volatile u_char *p, u_char *cmpval, u_char newval) argument 785 atomic_fcmpset_short(volatile u_short *p, u_short *cmpval, u_short newval) argument 811 atomic_fcmpset_int(volatile u_int *p, u_int *cmpval, u_int newval) argument 835 atomic_fcmpset_long(volatile u_long *p, u_long *cmpval, u_long newval) argument [all...] |
/freebsd-current/sys/i386/i386/ |
H A D | perfmon.c | 265 quad_t newval = 0; local 269 newval |= P5FLAG_USR << 16; 271 newval |= P5FLAG_OS << 16; 273 newval |= P5FLAG_E << 16; 274 newval |= (ctl_shadow[1] & 0x3f) << 16; 278 newval |= P5FLAG_USR; 280 newval |= P5FLAG_OS; 282 newval |= P5FLAG_E; 283 newval |= ctl_shadow[0] & 0x3f; 286 wrmsr(msr_ctl[0], newval); [all...] |
H A D | copyout.c | 426 uint32_t newval; member in struct:casueword_arg0 437 ca->newval); 442 uint32_t newval) 448 ca.newval = newval; 459 casueword(volatile u_long *base, u_long oldval, u_long *oldvalp, u_long newval) argument 465 ca.newval = newval; 441 casueword32(volatile uint32_t *base, uint32_t oldval, uint32_t *oldvalp, uint32_t newval) argument
|
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | atomic.h | 68 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) argument 71 (uint64_t)cmp, (uint64_t)newval)); 75 atomic_cas_ptr(volatile void *target, void *cmp, void *newval) argument 78 (uint32_t)cmp, (uint32_t)newval));
|
/freebsd-current/sys/riscv/include/ |
H A D | atomic.h | 69 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) argument 209 : "rJ" ((long)(int32_t)cmpval), "rJ" (newval) 216 atomic_fcmpset_32(volatile uint32_t *p, uint32_t *cmpval, uint32_t newval) argument 364 atomic_cmpset_64(volatile uint64_t *p, uint64_t cmpval, uint64_t newval) argument 387 atomic_fcmpset_64(volatile uint64_t *p, uint64_t *cmpval, uint64_t newval) argument [all...] |
/freebsd-current/sys/arm64/arm64/ |
H A D | support_ifunc.c | 51 uint32_t *oldvalp, uint32_t newval)) 60 u_long *oldvalp, u_long newval)) 50 DEFINE_IFUNC(, int, casueword32, (volatile uint32_t *base, uint32_t oldval, uint32_t *oldvalp, uint32_t newval)) argument 59 DEFINE_IFUNC(, int, casueword, (volatile u_long *base, u_long oldval, u_long *oldvalp, u_long newval)) argument
|
/freebsd-current/sys/amd64/amd64/ |
H A D | copyout.c | 128 uint32_t *oldvalp, uint32_t newval); 130 uint32_t *oldvalp, uint32_t newval); 140 u_long newval); 142 u_long newval);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | nvlist_to_lua.c | 272 nvlist_t *newval = fnvlist_alloc(); local 273 fnvlist_add_nvlist(newval, "key", nvl); 275 nvl = newval; 281 nvlist_t *newval = fnvlist_alloc(); local 282 fnvlist_add_nvlist(newval, "key", nvl); 284 nvl = newval;
|
/freebsd-current/sbin/sysctl/ |
H A D | sysctl.c | 243 const void *newval; local 267 newval = &intval; 272 newval = &uintval; 277 newval = &longval; 282 newval = &ulongval; 287 newval = &i8val; 292 newval = &i16val; 297 newval = &i32val; 302 newval = &i64val; 307 newval 353 const void *newval; local [all...] |
/freebsd-current/sys/amd64/vmm/io/ |
H A D | vrtc.c | 105 static void vrtc_set_reg_c(struct vrtc *vrtc, uint8_t newval); 590 vrtc_set_reg_c(struct vrtc *vrtc, uint8_t newval) argument 599 newval &= RTCIR_ALARM | RTCIR_PERIOD | RTCIR_UPDATE; 602 if ((aintr_enabled(vrtc) && (newval & RTCIR_ALARM) != 0) || 603 (pintr_enabled(vrtc) && (newval & RTCIR_PERIOD) != 0) || 604 (uintr_enabled(vrtc) && (newval & RTCIR_UPDATE) != 0)) { 611 rtc->reg_c = newirqf | newval; 628 vrtc_set_reg_b(struct vrtc *vrtc, uint8_t newval) argument 642 rtc->reg_b = newval; 643 changed = oldval ^ newval; 704 vrtc_set_reg_a(struct vrtc *vrtc, uint8_t newval) argument [all...] |
/freebsd-current/crypto/openssl/crypto/bio/ |
H A D | bio_meth.c | 25 int newval; local 31 if (!CRYPTO_UP_REF(&bio_count, &newval, bio_type_lock)) 33 return newval;
|
/freebsd-current/sys/arm64/include/ |
H A D | atomic.h | 147 uint##t##_t cmpval, uint##t##_t newval) 152 uint##t##_t *cmpval, uint##t##_t newval) 169 : "r" (p), "r" (cmpval), "r" (newval) \ 189 : "r" (oldval), "r" (p), "r" (newval) \ 200 newval)); \ 203 newval)); \ 220 : "r" (p), "r" (_cmpval), "r" (newval) \ 241 : "r" (_cmpval), "r" (p), "r" (newval) \ 253 newval)); \ 256 newval)); \ [all...] |
/freebsd-current/sys/dev/nvme/ |
H A D | nvme_sysctl.c | 137 uint32_t newval = *ptr; local 138 int error = sysctl_handle_int(oidp, &newval, 0, req); 143 if (newval > NVME_MAX_TIMEOUT_PERIOD || 144 newval < NVME_MIN_TIMEOUT_PERIOD) { 147 *ptr = newval;
|
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_vfsops.c | 308 atime_changed_cb(void *arg, uint64_t newval) argument 321 if (newval) 328 relatime_changed_cb(void *arg, uint64_t newval) argument 330 ((zfsvfs_t *)arg)->z_relatime = newval; 334 xattr_changed_cb(void *arg, uint64_t newval) argument 338 if (newval == ZFS_XATTR_OFF) { 343 if (newval == ZFS_XATTR_SA) 351 acltype_changed_cb(void *arg, uint64_t newval) argument 355 switch (newval) { 376 blksz_changed_cb(void *arg, uint64_t newval) argument 387 readonly_changed_cb(void *arg, uint64_t newval) argument 402 devices_changed_cb(void *arg, uint64_t newval) argument 407 setuid_changed_cb(void *arg, uint64_t newval) argument 412 exec_changed_cb(void *arg, uint64_t newval) argument 417 nbmand_changed_cb(void *arg, uint64_t newval) argument 432 snapdir_changed_cb(void *arg, uint64_t newval) argument 438 acl_mode_changed_cb(void *arg, uint64_t newval) argument 446 acl_inherit_changed_cb(void *arg, uint64_t newval) argument [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | dmu_objset.c | 178 checksum_changed_cb(void *arg, uint64_t newval) argument 185 ASSERT(newval != ZIO_CHECKSUM_INHERIT); 187 os->os_checksum = zio_checksum_select(newval, ZIO_CHECKSUM_ON_VALUE); 191 compression_changed_cb(void *arg, uint64_t newval) argument 198 ASSERT(newval != ZIO_COMPRESS_INHERIT); 201 ZIO_COMPRESS_ALGO(newval), ZIO_COMPRESS_ON); 203 ZIO_COMPRESS_LEVEL(newval), ZIO_COMPLEVEL_DEFAULT); 207 copies_changed_cb(void *arg, uint64_t newval) argument 214 ASSERT(newval > 0); 215 ASSERT(newval < 221 dedup_changed_cb(void *arg, uint64_t newval) argument 239 primary_cache_changed_cb(void *arg, uint64_t newval) argument 253 secondary_cache_changed_cb(void *arg, uint64_t newval) argument 267 prefetch_changed_cb(void *arg, uint64_t newval) argument 280 sync_changed_cb(void *arg, uint64_t newval) argument 296 redundant_metadata_changed_cb(void *arg, uint64_t newval) argument 312 dnodesize_changed_cb(void *arg, uint64_t newval) argument 340 smallblk_changed_cb(void *arg, uint64_t newval) argument 354 logbias_changed_cb(void *arg, uint64_t newval) argument 366 recordsize_changed_cb(void *arg, uint64_t newval) argument [all...] |