| /netbsd-src/external/bsd/ipf/dist/ |
| H A D | ip_fil_compat.c | 1437 frentry_4_1_34_t *old; local 1439 KMALLOC(old, frentry_4_1_34_t *); 1440 if (old == NULL) { 1445 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old)); 1447 if (old->fr_type != FR_T_NONE && 1448 old->fr_type != FR_T_IPF) { 1451 KFREE(old); 1454 frentry_4_1_34_to_current(softc, old, 1459 KFREE(old); 1461 frentry_4_1_16_t *old; local [all …]
|
| /netbsd-src/sys/external/bsd/ipf/netinet/ |
| H A D | ip_fil_compat.c | 1430 frentry_4_1_34_t *old; in ipf_in_compat() local 1432 KMALLOC(old, frentry_4_1_34_t *); in ipf_in_compat() 1433 if (old == NULL) { in ipf_in_compat() 1438 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old)); in ipf_in_compat() 1440 if (old->fr_type != FR_T_NONE && in ipf_in_compat() 1441 old->fr_type != FR_T_IPF) { in ipf_in_compat() 1444 KFREE(old); in ipf_in_compat() 1447 frentry_4_1_34_to_current(softc, old, in ipf_in_compat() 1452 KFREE(old); in ipf_in_compat() 1454 frentry_4_1_16_t *old; in ipf_in_compat() local [all …]
|
| /netbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_bswap.c | 44 e2fs_sb_bswap(struct ext2fs *old, struct ext2fs *new) in e2fs_sb_bswap() argument 48 memcpy(new, old, sizeof(struct ext2fs)); in e2fs_sb_bswap() 49 new->e2fs_icount = bswap32(old->e2fs_icount); in e2fs_sb_bswap() 50 new->e2fs_bcount = bswap32(old->e2fs_bcount); in e2fs_sb_bswap() 51 new->e2fs_rbcount = bswap32(old->e2fs_rbcount); in e2fs_sb_bswap() 52 new->e2fs_fbcount = bswap32(old->e2fs_fbcount); in e2fs_sb_bswap() 53 new->e2fs_ficount = bswap32(old->e2fs_ficount); in e2fs_sb_bswap() 54 new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock); in e2fs_sb_bswap() 55 new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize); in e2fs_sb_bswap() 56 new->e2fs_fsize = bswap32(old->e2fs_fsize); in e2fs_sb_bswap() [all …]
|
| /netbsd-src/external/mpl/bind/dist/tests/dns/ |
| H A D | update_test.c | 79 uint32_t old = 50; in ISC_RUN_TEST_IMPL() local 84 serial = dns_update_soaserial(old, dns_updatemethod_increment, NULL); in ISC_RUN_TEST_IMPL() 85 assert_true(isc_serial_lt(old, serial)); in ISC_RUN_TEST_IMPL() 92 uint32_t old = 0xffffffffu; in ISC_RUN_TEST_IMPL() local 97 serial = dns_update_soaserial(old, dns_updatemethod_increment, NULL); in ISC_RUN_TEST_IMPL() 98 assert_true(isc_serial_lt(old, serial)); in ISC_RUN_TEST_IMPL() 105 uint32_t old; in ISC_RUN_TEST_IMPL() local 111 old = mystdtime - 1; in ISC_RUN_TEST_IMPL() 113 serial = dns_update_soaserial(old, dns_updatemethod_unixtime, NULL); in ISC_RUN_TEST_IMPL() 114 assert_true(isc_serial_lt(old, seria in ISC_RUN_TEST_IMPL() 121 uint32_t old; ISC_RUN_TEST_IMPL() local 137 uint32_t old; ISC_RUN_TEST_IMPL() local 153 uint32_t old; ISC_RUN_TEST_IMPL() local 170 uint32_t old; ISC_RUN_TEST_IMPL() local 187 uint32_t old; ISC_RUN_TEST_IMPL() local 203 uint32_t old; ISC_RUN_TEST_IMPL() local 219 uint32_t old, serial; ISC_RUN_TEST_IMPL() local 237 uint32_t old; ISC_RUN_TEST_IMPL() local 272 uint32_t old; ISC_RUN_TEST_IMPL() local [all...] |
| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | refcount.h | 57 unsigned old, new; in refcount_inc_not_zero() local 60 old = atomic_read(&rc->rc_count); in refcount_inc_not_zero() 61 if (old == 0) in refcount_inc_not_zero() 63 new = old + 1; in refcount_inc_not_zero() 64 } while (atomic_cmpxchg(&rc->rc_count, old, new) != old); in refcount_inc_not_zero() 66 return old; in refcount_inc_not_zero() 72 unsigned old, new; in refcount_dec_and_test() local 75 old = atomic_read(&rc->rc_count); in refcount_dec_and_test() 76 KASSERT(old); in refcount_dec_and_test() 77 new = old - 1; in refcount_dec_and_test() [all …]
|
| H A D | kref.h | 81 unsigned int old, new; in kref_sub() local 86 old = atomic_load_relaxed(&kref->kr_count); in kref_sub() 87 KASSERTMSG((count <= old), "overreleasing kref: %u - %u", in kref_sub() 88 old, count); in kref_sub() 89 new = (old - count); in kref_sub() 90 } while (atomic_cas_uint(&kref->kr_count, old, new) != old); in kref_sub() 105 unsigned int old, new; in kref_put_lock() local 110 old = atomic_load_relaxed(&kref->kr_count); in kref_put_lock() 111 KASSERT(old > 0); in kref_put_lock() 112 if (old == 1) { in kref_put_lock() [all …]
|
| H A D | atomic.h | 212 unsigned old, new; in atomic_fetch_add() local 216 old = atomic->a_u.au_uint; in atomic_fetch_add() 217 new = old + value; in atomic_fetch_add() 218 } while (atomic_cas_uint(&atomic->a_u.au_uint, old, new) != old); in atomic_fetch_add() 221 return old; in atomic_fetch_add() 233 unsigned old, new; in atomic_fetch_xor() local 237 old = atomic->a_u.au_uint; in atomic_fetch_xor() 238 new = old ^ value; in atomic_fetch_xor() 239 } while (atomic_cas_uint(&atomic->a_u.au_uint, old, new) != old); in atomic_fetch_xor() 242 return old; in atomic_fetch_xor() [all …]
|
| /netbsd-src/external/lgpl3/mpc/dist/tests/ |
| H A D | mpfr_flags.c | 63 int old, neu; in check_mpfr_flags() local 65 old = (counter & 1) != 0; in check_mpfr_flags() 67 if (old && (neu == 0)) in check_mpfr_flags() 70 old, neu); in check_mpfr_flags() 73 old = (counter & 2) != 0; in check_mpfr_flags() 75 if (old && (neu == 0)) in check_mpfr_flags() 78 old, neu); in check_mpfr_flags() 82 old = (counter & 4) != 0; in check_mpfr_flags() 84 if (old && (neu == 0)) in check_mpfr_flags() 87 old, neu); in check_mpfr_flags() [all …]
|
| /netbsd-src/sys/ufs/ufs/ |
| H A D | ufs_acl.c | 235 ufs_get_oldacl(acl_type_t type, struct oldacl *old, struct vnode *vp, in ufs_get_oldacl() argument 242 len = sizeof(*old); in ufs_get_oldacl() 248 POSIX1E_ACL_ACCESS_EXTATTR_NAME, &len, old, l); in ufs_get_oldacl() 255 POSIX1E_ACL_DEFAULT_EXTATTR_NAME, &len, old, l); in ufs_get_oldacl() 264 if (len != sizeof(*old)) { in ufs_get_oldacl() 291 struct oldacl *old; in ufs_getacl_posix1e() local 300 old = kmem_zalloc(sizeof(*old), KM_SLEEP); in ufs_getacl_posix1e() 305 error = ufs_get_oldacl(ap->a_type, old, ap->a_vp, l); in ufs_getacl_posix1e() 320 old->acl_cnt = 3; in ufs_getacl_posix1e() 321 old->acl_entry[0].ae_tag = ACL_USER_OBJ; in ufs_getacl_posix1e() [all …]
|
| /netbsd-src/sys/lib/libsa/ |
| H A D | ext2fs.c | 889 e2fs_sb_bswap(struct ext2fs *old, struct ext2fs *new) in e2fs_sb_bswap() argument 893 memcpy(new, old, sizeof(struct ext2fs)); in e2fs_sb_bswap() 894 new->e2fs_icount = bswap32(old->e2fs_icount); in e2fs_sb_bswap() 895 new->e2fs_bcount = bswap32(old->e2fs_bcount); in e2fs_sb_bswap() 896 new->e2fs_rbcount = bswap32(old->e2fs_rbcount); in e2fs_sb_bswap() 897 new->e2fs_fbcount = bswap32(old->e2fs_fbcount); in e2fs_sb_bswap() 898 new->e2fs_ficount = bswap32(old->e2fs_ficount); in e2fs_sb_bswap() 899 new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock); in e2fs_sb_bswap() 900 new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize); in e2fs_sb_bswap() 901 new->e2fs_fsize = bswap32(old->e2fs_fsize); in e2fs_sb_bswap() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/lloadd/ |
| H A D | epoch.c | 76 struct pending_ref *old, *next; in epoch_shutdown() local 89 for ( old = next; old; old = next ) { in epoch_shutdown() 90 next = old->next; in epoch_shutdown() 92 old->dispose( old->object ); in epoch_shutdown() 93 ch_free( old ); in epoch_shutdown() 99 for ( old = next; old; old = next ) { in epoch_shutdown() 100 next = old->next; in epoch_shutdown() 102 old->dispose( old->object ); in epoch_shutdown() 103 ch_free( old ); in epoch_shutdown() 118 struct pending_ref *old, *ref = NULL; in epoch_join() local [all …]
|
| /netbsd-src/tools/binutils/ |
| H A D | mknative-binutils.old | 23 mkdir -p $_TOP/external/gpl3/binutils.old/lib/libbfd/arch/$BFD_MACHINE_ARCH 29 } | write_mk external/gpl3/binutils.old/lib/libbfd/arch/$BFD_MACHINE_ARCH/defs.mk 31 write_c external/gpl3/binutils.old/lib/libbfd/arch/$BFD_MACHINE_ARCH/bfd.h <$_TMPDIR/bfd/bfd.h 32 …write_c external/gpl3/binutils.old/lib/libbfd/arch/$BFD_MACHINE_ARCH/bfdver.h <$_TMPDIR/bfd/bfdver… 36 } | write_c external/gpl3/binutils.old/lib/libbfd/arch/$BFD_MACHINE_ARCH/config.h 42 mkdir -p $_TOP/external/gpl3/binutils.old/lib/libopcodes/arch/$BFD_MACHINE_ARCH 47 } | write_mk external/gpl3/binutils.old/lib/libopcodes/arch/$BFD_MACHINE_ARCH/defs.mk 51 } | write_c external/gpl3/binutils.old/lib/libopcodes/arch/$BFD_MACHINE_ARCH/config.h 55 mkdir -p $_TOP/external/gpl3/binutils.old/lib/libgnuctf/arch/$BFD_MACHINE_ARCH 59 } | write_mk external/gpl3/binutils.old/lib/libgnuctf/arch/$BFD_MACHINE_ARCH/defs.mk [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_lock.c | 67 unsigned int old, new, prev; in drm_lock_take() local 72 old = *lock; in drm_lock_take() 73 if (old & _DRM_LOCK_HELD) in drm_lock_take() 74 new = old | _DRM_LOCK_CONT; in drm_lock_take() 80 prev = cmpxchg(lock, old, new); in drm_lock_take() 81 } while (prev != old); in drm_lock_take() 84 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take() 85 if (old & _DRM_LOCK_HELD) { in drm_lock_take() 116 unsigned int old, new, prev; in drm_lock_transfer() local 121 old = *lock; in drm_lock_transfer() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | umask.c | 42 umask_i4_sub (GFC_INTEGER_4 *mask, GFC_INTEGER_4 *old) in umask_i4_sub() argument 45 if (old != NULL) in umask_i4_sub() 46 *old = (GFC_INTEGER_4) val; in umask_i4_sub() 54 umask_i8_sub (GFC_INTEGER_8 *mask, GFC_INTEGER_8 *old) in umask_i8_sub() argument 57 if (old != NULL) in umask_i8_sub() 58 *old = (GFC_INTEGER_8) val; in umask_i8_sub() 71 GFC_INTEGER_4 old; in umask_i4() local 72 umask_i4_sub (mask, &old); in umask_i4() 73 return old; in umask_i4() 82 GFC_INTEGER_8 old; in umask_i8() local [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libbacktrace/ |
| H A D | atomic.c | 81 void *old; in backtrace_atomic_store_pointer() local 84 old = *pp; in backtrace_atomic_store_pointer() 85 while (!__sync_bool_compare_and_swap (pp, old, p)) in backtrace_atomic_store_pointer() 86 old = *pp; in backtrace_atomic_store_pointer() 94 size_t old; in backtrace_atomic_store_size_t() local 96 old = *p; in backtrace_atomic_store_size_t() 97 while (!__sync_bool_compare_and_swap (p, old, v)) in backtrace_atomic_store_size_t() 98 old = *p; in backtrace_atomic_store_size_t() 106 size_t old; in backtrace_atomic_store_int() local 108 old = *p; in backtrace_atomic_store_int() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | umask.c | 42 umask_i4_sub (GFC_INTEGER_4 *mask, GFC_INTEGER_4 *old) in umask_i4_sub() argument 45 if (old != NULL) in umask_i4_sub() 46 *old = (GFC_INTEGER_4) val; in umask_i4_sub() 54 umask_i8_sub (GFC_INTEGER_8 *mask, GFC_INTEGER_8 *old) in umask_i8_sub() argument 57 if (old != NULL) in umask_i8_sub() 58 *old = (GFC_INTEGER_8) val; in umask_i8_sub() 71 GFC_INTEGER_4 old; in umask_i4() local 72 umask_i4_sub (mask, &old); in umask_i4() 73 return old; in umask_i4() 82 GFC_INTEGER_8 old; in umask_i8() local [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libbacktrace/ |
| H A D | atomic.c | 81 void *old; in backtrace_atomic_store_pointer() local 84 old = *pp; in backtrace_atomic_store_pointer() 85 while (!__sync_bool_compare_and_swap (pp, old, p)) in backtrace_atomic_store_pointer() 86 old = *pp; in backtrace_atomic_store_pointer() 94 size_t old; in backtrace_atomic_store_size_t() local 96 old = *p; in backtrace_atomic_store_size_t() 97 while (!__sync_bool_compare_and_swap (p, old, v)) in backtrace_atomic_store_size_t() 98 old = *p; in backtrace_atomic_store_size_t() 106 size_t old; in backtrace_atomic_store_int() local 108 old = *p; in backtrace_atomic_store_int() [all …]
|
| /netbsd-src/common/lib/libc/atomic/ |
| H A D | atomic_nand_64_cas.c | 44 uint64_t old, new; in fetch_and_nand_8() local 47 old = *addr; in fetch_and_nand_8() 48 new = ~(old & val); in fetch_and_nand_8() 49 } while (atomic_cas_64(addr, old, new) != old); in fetch_and_nand_8() 50 return old; in fetch_and_nand_8() 56 uint64_t old, new; in nand_and_fetch_8() local 59 old = *addr; in nand_and_fetch_8() 60 new = ~(old & val); in nand_and_fetch_8() 61 } while (atomic_cas_64(addr, old, new) != old); in nand_and_fetch_8()
|
| H A D | atomic_sub_8_cas.c | 44 uint8_t old, new; in fetch_and_sub_1() local 47 old = *addr; in fetch_and_sub_1() 48 new = old - val; in fetch_and_sub_1() 49 } while (atomic_cas_8(addr, old, new) != old); in fetch_and_sub_1() 50 return old; in fetch_and_sub_1() 56 uint8_t old, new; in sub_and_fetch_1() local 59 old = *addr; in sub_and_fetch_1() 60 new = old - val; in sub_and_fetch_1() 61 } while (atomic_cas_8(addr, old, new) != old); in sub_and_fetch_1()
|
| H A D | atomic_nand_16_cas.c | 44 uint16_t old, new; in fetch_and_nand_2() local 47 old = *addr; in fetch_and_nand_2() 48 new = ~(old & val); in fetch_and_nand_2() 49 } while (atomic_cas_16(addr, old, new) != old); in fetch_and_nand_2() 50 return old; in fetch_and_nand_2() 56 uint16_t old, new; in nand_and_fetch_2() local 59 old = *addr; in nand_and_fetch_2() 60 new = ~(old & val); in nand_and_fetch_2() 61 } while (atomic_cas_16(addr, old, new) != old); in nand_and_fetch_2()
|
| H A D | atomic_add_8_cas.c | 44 uint8_t old, new; in fetch_and_add_1() local 47 old = *addr; in fetch_and_add_1() 48 new = old + val; in fetch_and_add_1() 49 } while (atomic_cas_8(addr, old, new) != old); in fetch_and_add_1() 50 return old; in fetch_and_add_1() 56 uint8_t old, new; in add_and_fetch_1() local 59 old = *addr; in add_and_fetch_1() 60 new = old + val; in add_and_fetch_1() 61 } while (atomic_cas_8(addr, old, new) != old); in add_and_fetch_1()
|
| H A D | atomic_xor_8_cas.c | 44 uint8_t old, new; in fetch_and_xor_1() local 47 old = *addr; in fetch_and_xor_1() 48 new = old ^ val; in fetch_and_xor_1() 49 } while (atomic_cas_8(addr, old, new) != old); in fetch_and_xor_1() 50 return old; in fetch_and_xor_1() 56 uint8_t old, new; in xor_and_fetch_1() local 59 old = *addr; in xor_and_fetch_1() 60 new = old ^ val; in xor_and_fetch_1() 61 } while (atomic_cas_8(addr, old, new) != old); in xor_and_fetch_1()
|
| H A D | atomic_sub_16_cas.c | 44 uint16_t old, new; in fetch_and_sub_2() local 47 old = *addr; in fetch_and_sub_2() 48 new = old - val; in fetch_and_sub_2() 49 } while (atomic_cas_16(addr, old, new) != old); in fetch_and_sub_2() 50 return old; in fetch_and_sub_2() 56 uint16_t old, new; in sub_and_fetch_2() local 59 old = *addr; in sub_and_fetch_2() 60 new = old - val; in sub_and_fetch_2() 61 } while (atomic_cas_16(addr, old, new) != old); in sub_and_fetch_2()
|
| H A D | atomic_xor_16_cas.c | 44 uint16_t old, new; in fetch_and_xor_2() local 47 old = *addr; in fetch_and_xor_2() 48 new = old ^ val; in fetch_and_xor_2() 49 } while (atomic_cas_16(addr, old, new) != old); in fetch_and_xor_2() 50 return old; in fetch_and_xor_2() 56 uint16_t old, new; in xor_and_fetch_2() local 59 old = *addr; in xor_and_fetch_2() 60 new = old ^ val; in xor_and_fetch_2() 61 } while (atomic_cas_16(addr, old, new) != old); in xor_and_fetch_2()
|
| H A D | atomic_sub_32_cas.c | 42 uint32_t old, new; in fetch_and_sub_4() local 45 old = *addr; in fetch_and_sub_4() 46 new = old - val; in fetch_and_sub_4() 47 } while (atomic_cas_32(addr, old, new) != old); in fetch_and_sub_4() 48 return old; in fetch_and_sub_4() 54 uint32_t old, new; in sub_and_fetch_4() local 57 old = *addr; in sub_and_fetch_4() 58 new = old - val; in sub_and_fetch_4() 59 } while (atomic_cas_32(addr, old, new) != old); in sub_and_fetch_4()
|