| /NextBSD/sys/compat/linuxkpi/common/include/asm/ |
| HD | atomic.h | 42 #define atomic_add(i, v) atomic_add_return((i), (v)) argument 43 #define atomic_sub(i, v) atomic_sub_return((i), (v)) argument 44 #define atomic_inc_return(v) atomic_add_return(1, (v)) argument 45 #define atomic_add_negative(i, v) (atomic_add_return((i), (v)) < 0) argument 46 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) argument 47 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) argument 48 #define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0) argument 49 #define atomic_dec_return(v) atomic_sub_return(1, (v)) argument 52 atomic_add_return(int i, atomic_t *v) in atomic_add_return() 58 atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() [all …]
|
| HD | atomic-long.h | 42 #define atomic_long_add(i, v) atomic_long_add_return((i), (v)) argument 43 #define atomic_long_inc_return(v) atomic_long_add_return(1, (v)) argument 46 atomic_long_add_return(long i, atomic_long_t *v) in atomic_long_add_return() 52 atomic_long_set(atomic_long_t *v, long i) in atomic_long_set() 58 atomic_long_read(atomic_long_t *v) in atomic_long_read() 64 atomic_long_inc(atomic_long_t *v) in atomic_long_inc() 70 atomic_long_dec(atomic_long_t *v) in atomic_long_dec() 76 atomic_long_dec_and_test(atomic_long_t *v) in atomic_long_dec_and_test()
|
| /NextBSD/lib/libdispatch/src/shims/ |
| HD | atomic.h | 121 #define dispatch_atomic_store(p, v, m) \ argument 125 #define dispatch_atomic_xchg(p, v, m) \ argument 129 #define dispatch_atomic_cmpxchg(p, e, v, m) \ argument 134 #define dispatch_atomic_cmpxchgv(p, e, v, g, m) \ argument 139 #define dispatch_atomic_cmpxchgvw(p, e, v, g, m) \ argument 144 #define _dispatch_atomic_c11_op(p, v, m, o, op) \ argument 148 #define _dispatch_atomic_c11_op_orig(p, v, m, o, op) \ argument 153 #define dispatch_atomic_add(p, v, m) \ argument 155 #define dispatch_atomic_add_orig(p, v, m) \ argument 157 #define dispatch_atomic_sub(p, v, m) \ argument [all …]
|
| /NextBSD/contrib/compiler-rt/lib/tsan/rtl/ |
| HD | tsan_interface_atomic.cc | 81 template<typename T> T func_xchg(volatile T *v, T op) { in func_xchg() 88 template<typename T> T func_add(volatile T *v, T op) { in func_add() 92 template<typename T> T func_sub(volatile T *v, T op) { in func_sub() 96 template<typename T> T func_and(volatile T *v, T op) { in func_and() 100 template<typename T> T func_or(volatile T *v, T op) { in func_or() 104 template<typename T> T func_xor(volatile T *v, T op) { in func_xor() 108 template<typename T> T func_nand(volatile T *v, T op) { in func_nand() 120 template<typename T> T func_cas(volatile T *v, T cmp, T xch) { in func_cas() 130 a128 func_xchg(volatile a128 *v, a128 op) { in func_xchg() 137 a128 func_add(volatile a128 *v, a128 op) { in func_add() [all …]
|
| /NextBSD/contrib/libucl/klib/ |
| HD | kvec.h | 56 #define kv_init(v) ((v).n = (v).m = 0, (v).a = 0) argument 57 #define kv_destroy(v) free((v).a) argument 58 #define kv_A(v, i) ((v).a[(i)]) argument 59 #define kv_pop(v) ((v).a[--(v).n]) argument 60 #define kv_size(v) ((v).n) argument 61 #define kv_max(v) ((v).m) argument 63 #define kv_resize(type, v, s) ((v).m = (s), (v).a = (type*)realloc((v).a, sizeof(type) * (v).m)) argument 65 #define kv_grow(type, v) ((v).m = ((v).m > 1 ? (v).m * kv_grow_factor : 2), \ argument 74 #define kv_push(type, v, x) do { \ argument 81 #define kv_prepend(type, v, x) do { \ argument [all …]
|
| /NextBSD/lib/libosxsupport/ |
| HD | atomic_compat.h | 33 #define OSAtomicIncrement32Barrier(v) atomic_fetchadd_int((volatile int *)v, 1) argument 34 #define OSAtomicDecrement32Barrier(v) atomic_fetchadd_int((volatile int *)v, -1) argument 35 #define OSAtomicTestAndSetBarrier(i, v) atomic_testandset_int((volatile int *)v, i) argument 36 #define OSAtomicAdd64(i, v) atomic_add_64((volatile int *)v, i) argument 37 #define OSAtomicIncrement32(v) atomic_fetchadd_32((volatile int *)v, 1) argument 38 #define OSAtomicDecrement32(v) atomic_fetchadd_32((volatile int *)v, -1) argument 39 #define OSAtomicCompareAndSwapLongBarrier(o, i, v) atomic_cmpset_long(v, o, i) argument 40 #define OSAtomicCompareAndSwap32Barrier(o, i, v) atomic_cmpset_32(v, o, i) argument
|
| /NextBSD/contrib/elftoolchain/libelftc/ |
| HD | libelftc_vstr.c | 49 get_strlen_sum(const struct vector_str *v) in get_strlen_sum() 68 vector_str_dest(struct vector_str *v) in vector_str_dest() 89 vector_str_find(const struct vector_str *v, const char *o, size_t l) in vector_str_find() 112 vector_str_get_flat(const struct vector_str *v, size_t *l) in vector_str_get_flat() 145 vector_str_grow(struct vector_str *v) in vector_str_grow() 178 vector_str_init(struct vector_str *v) in vector_str_init() 202 vector_str_pop(struct vector_str *v) in vector_str_pop() 224 vector_str_push(struct vector_str *v, const char *str, size_t len) in vector_str_push() 290 vector_str_substr(const struct vector_str *v, size_t begin, size_t end, in vector_str_substr()
|
| /NextBSD/sys/boot/mips/beri/common/ |
| HD | mips.h | 77 byteswap16(uint16_t v) in byteswap16() 84 byteswap32(uint32_t v) in byteswap32() 98 uint8_t v; in mips_ioread_uint8() local 105 mips_iowrite_uint8(vaddr_t vaddr, uint8_t v) in mips_iowrite_uint8() 114 uint32_t v; in mips_ioread_uint32() local 121 mips_iowrite_uint32(vaddr_t vaddr, uint32_t v) in mips_iowrite_uint32() 138 mips_iowrite_uint32le(vaddr_t vaddr, uint32_t v) in mips_iowrite_uint32le()
|
| /NextBSD/sys/fs/tmpfs/ |
| HD | tmpfs_vnops.c | 79 tmpfs_lookup(struct vop_cachedlookup_args *v) in tmpfs_lookup() 210 tmpfs_create(struct vop_create_args *v) in tmpfs_create() 227 tmpfs_mknod(struct vop_mknod_args *v) in tmpfs_mknod() 242 tmpfs_open(struct vop_open_args *v) in tmpfs_open() 276 tmpfs_close(struct vop_close_args *v) in tmpfs_close() 287 tmpfs_access(struct vop_access_args *v) in tmpfs_access() 341 tmpfs_getattr(struct vop_getattr_args *v) in tmpfs_getattr() 380 tmpfs_setattr(struct vop_setattr_args *v) in tmpfs_setattr() 435 tmpfs_read(struct vop_read_args *v) in tmpfs_read() 453 tmpfs_write(struct vop_write_args *v) in tmpfs_write() [all …]
|
| /NextBSD/contrib/nvi/regex/ |
| HD | regexec.c | 63 #define CLEAR(v) ((v) = 0) argument 64 #define SET0(v, n) ((v) &= ~(1 << (n))) argument 65 #define SET1(v, n) ((v) |= 1 << (n)) argument 66 #define ISSET(v, n) ((v) & (1 << (n))) argument 72 #define SETUP(v) ((v) = 0) argument 76 #define ISSTATEIN(v, o) ((v) & (o)) argument 81 #define ISSETBACK(v, n) ((v) & ((unsigned)here >> (n))) argument 110 #define CLEAR(v) memset(v, 0, m->g->nstates) argument 111 #define SET0(v, n) ((v)[n] = 0) argument 112 #define SET1(v, n) ((v)[n] = 1) argument [all …]
|
| /NextBSD/contrib/llvm/lib/Support/ |
| HD | regexec.c | 60 #define CLEAR(v) ((v) = 0) argument 61 #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) argument 62 #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) argument 63 #define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) argument 69 #define SETUP(v) ((v) = 0) argument 73 #define ISSTATEIN(v, o) (((v) & (o)) != 0) argument 78 #define ISSETBACK(v, n) (((v) & ((unsigned long)here >> (n))) != 0) argument 107 #define CLEAR(v) memset(v, 0, m->g->nstates) argument 108 #define SET0(v, n) ((v)[n] = 0) argument 109 #define SET1(v, n) ((v)[n] = 1) argument [all …]
|
| /NextBSD/tests/sys/kern/acct/ |
| HD | acct_test.c | 59 check_result(const char *name, float expected, union cf v) in check_result() 81 union cf v; in ATF_TC_BODY() local 97 union cf v; in ATF_TC_BODY() local 112 union cf v; in ATF_TC_BODY() local 129 union cf v; in ATF_TC_BODY() local 146 union cf v; in ATF_TC_BODY() local 165 union cf v; in ATF_TC_BODY() local 185 union cf v; in ATF_TC_BODY() local 203 union cf v; in ATF_TC_BODY() local
|
| /NextBSD/sys/arm/freescale/imx/ |
| HD | imx6_ipu.c | 104 #define TEMPLATE_SYNC(v) ((v) << 0) argument 105 #define TEMPLATE_GLUELOGIC(v) ((v) << 4) argument 106 #define TEMPLATE_MAPPING(v) ((v) << 15) argument 107 #define TEMPLATE_WAVEFORM(v) ((v) << 11) argument 111 #define TEMPLATE_OPCODE(v) ((v) << 4) argument 149 #define DI_RUN_VALUE_M1(v) ((v) << 19) argument 150 #define DI_RUN_RESOLUTION(v) ((v) << 16) argument 151 #define DI_OFFSET_VALUE(v) ((v) << 3) argument 153 #define DI_CNT_POLARITY_GEN_EN(v) ((v) << 29) argument 155 #define DI_CNT_CLR_SEL(v) ((v) << 25) argument [all …]
|
| /NextBSD/sys/dev/altera/jtag_uart/ |
| HD | altera_jtag_uart_tty.c | 91 aju_data_write(struct altera_jtag_uart_softc *sc, uint32_t v) in aju_data_write() 106 aju_control_write(struct altera_jtag_uart_softc *sc, uint32_t v) in aju_control_write() 127 uint32_t v; in aju_readable() local 159 uint32_t v; in aju_intr_readable_enable() local 171 uint32_t v; in aju_intr_writable_enable() local 183 uint32_t v; in aju_intr_writable_disable() local 195 uint32_t v; in aju_intr_disable() local 243 uint32_t v; in aju_handle_output() local 349 uint32_t v; in aju_ac_callout() local 380 uint32_t v; in aju_intr() local
|
| HD | altera_jtag_uart_cons.c | 114 uint32_t v; in mips_ioread_uint32() local 121 mips_iowrite_uint32(vaddr_t vaddr, uint32_t v) in mips_iowrite_uint32() 138 mips_iowrite_uint32le(vaddr_t vaddr, uint32_t v) in mips_iowrite_uint32le() 157 aju_cons_data_write(uint32_t v) in aju_cons_data_write() 173 aju_cons_control_write(uint32_t v) in aju_cons_control_write() 186 uint32_t v; in aju_cons_readable() local 204 uint32_t v; in aju_cons_write() local 275 uint32_t v; in aju_cninit() local
|
| /NextBSD/sys/dev/drm2/ |
| HD | drm_atomic.h | 43 #define atomic_set(p, v) do { *(u_int *)(p) = (v); } while (0) argument 46 #define atomic64_set(p, v) atomic_store_rel_64(p, v) argument 48 #define atomic_add(v, p) atomic_add_int(p, v) argument 49 #define atomic_sub(v, p) atomic_subtract_int(p, v) argument 53 #define atomic_add_return(v, p) (atomic_fetchadd_int(p, v) + (v)) argument 54 #define atomic_sub_return(v, p) (atomic_fetchadd_int(p, -(v)) - (v)) argument 58 #define atomic_add_and_test(v, p) (atomic_add_return(v, p) == 0) argument 59 #define atomic_sub_and_test(v, p) (atomic_sub_return(v, p) == 0) argument 63 #define atomic_xchg(p, v) atomic_swap_int(p, v) argument 64 #define atomic64_xchg(p, v) atomic_swap_64(p, v) argument
|
| /NextBSD/contrib/llvm/tools/clang/lib/Headers/ |
| HD | stdint.h | 297 #define __int_c(v, suffix) __int_c_join(v, suffix) argument 298 #define __uint_c(v, suffix) __int_c_join(v##U, suffix) argument 317 # define INT64_C(v) __int_c(v, __int64_c_suffix) argument 318 # define UINT64_C(v) __uint_c(v, __int64_c_suffix) argument 320 # define INT64_C(v) v argument 321 # define UINT64_C(v) v ## U argument 328 # define INT56_C(v) __int_c(v, __INT56_C_SUFFIX__) argument 329 # define UINT56_C(v) __uint_c(v, __INT56_C_SUFFIX__) argument 334 # define INT56_C(v) v argument 335 # define UINT56_C(v) v ## U argument [all …]
|
| /NextBSD/sys/mips/include/ |
| HD | atomic.h | 81 atomic_set_32(__volatile uint32_t *p, uint32_t v) in atomic_set_32() 97 atomic_clear_32(__volatile uint32_t *p, uint32_t v) in atomic_clear_32() 113 atomic_add_32(__volatile uint32_t *p, uint32_t v) in atomic_add_32() 128 atomic_subtract_32(__volatile uint32_t *p, uint32_t v) in atomic_subtract_32() 178 atomic_set_64(__volatile uint64_t *p, uint64_t v) in atomic_set_64() 195 atomic_clear_64(__volatile uint64_t *p, uint64_t v) in atomic_clear_64() 212 atomic_add_64(__volatile uint64_t *p, uint64_t v) in atomic_add_64() 228 atomic_subtract_64(__volatile uint64_t *p, uint64_t v) in atomic_subtract_64() 413 atomic_fetchadd_32(__volatile uint32_t *p, uint32_t v) in atomic_fetchadd_32() 483 atomic_fetchadd_64(__volatile uint64_t *p, uint64_t v) in atomic_fetchadd_64() [all …]
|
| /NextBSD/sys/nfsclient/ |
| HD | nfsm_subs.h | 76 #define nfsm_fhtom(v, v3) \ argument 104 #define nfsm_request(v, t, p, c) \ argument 132 #define nfsm_mtofh(d, v, v3, f) \ argument 146 #define nfsm_loadattr(v, a) \ argument 153 #define nfsm_postop_attr(v, f) \ argument 160 #define nfsm_postop_attr_va(v, f, va) \ argument 171 #define nfsm_wcc_data(v, f) \ argument
|
| /NextBSD/contrib/tcsh/ |
| HD | sh.func.c | 150 doonintr(Char **v, struct command *c) in doonintr() 182 donohup(Char **v, struct command *c) in donohup() 199 dohup(Char **v, struct command *c) in dohup() 212 dozip(Char **v, struct command *c) in dozip() 220 dofiletest(Char **v, struct command *c) in dofiletest() 254 doalias(Char **v, struct command *c) in doalias() 281 unalias(Char **v, struct command *c) in unalias() 290 dologout(Char **v, struct command *c) in dologout() 300 dologin(Char **v, struct command *c) in dologin() 325 donewgrp(Char **v, struct command *c) in donewgrp() [all …]
|
| /NextBSD/sys/i386/include/ |
| HD | atomic.h | 243 atomic_fetchadd_int(volatile u_int *p, u_int v) in atomic_fetchadd_int() 257 atomic_testandset_int(volatile u_int *p, u_int v) in atomic_testandset_int() 416 atomic_store_rel_64_i386(volatile uint64_t *p, uint64_t v) in atomic_store_rel_64_i386() 434 atomic_swap_64_i386(volatile uint64_t *p, uint64_t v) in atomic_swap_64_i386() 491 atomic_store_rel_64_i586(volatile uint64_t *p, uint64_t v) in atomic_store_rel_64_i586() 507 atomic_swap_64_i586(volatile uint64_t *p, uint64_t v) in atomic_swap_64_i586() 544 atomic_store_rel_64(volatile uint64_t *p, uint64_t v) in atomic_store_rel_64() 554 atomic_swap_64(volatile uint64_t *p, uint64_t v) in atomic_swap_64() 612 atomic_fetchadd_long(volatile u_long *p, u_long v) in atomic_fetchadd_long() 619 atomic_testandset_long(volatile u_long *p, u_int v) in atomic_testandset_long() [all …]
|
| /NextBSD/lib/libc/regex/ |
| HD | regexec.c | 100 #define CLEAR(v) ((v) = 0) argument 101 #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) argument 102 #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) argument 103 #define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) argument 109 #define SETUP(v) ((v) = 0) argument 113 #define ISSTATEIN(v, o) (((v) & (o)) != 0) argument 118 #define ISSETBACK(v, n) (((v) & ((unsigned long)here >> (n))) != 0) argument 152 #define CLEAR(v) memset(v, 0, m->g->nstates) argument 153 #define SET0(v, n) ((v)[n] = 0) argument 154 #define SET1(v, n) ((v)[n] = 1) argument [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/ |
| HD | Scalar.h | 44 Scalar(int v) : m_type(e_sint), m_data() { m_data.sint = v; } in Scalar() 45 Scalar(unsigned int v) : m_type(e_uint), m_data() { m_data.uint = v; } in Scalar() 46 Scalar(long v) : m_type(e_slong), m_data() { m_data.slong = v; } in Scalar() 47 Scalar(unsigned long v) : m_type(e_ulong), m_data() { m_data.ulong = v; } in Scalar() 48 Scalar(long long v) : m_type(e_slonglong), m_data() { m_data.slonglong = v; } in Scalar() 49 Scalar(unsigned long long v): m_type(e_ulonglong), m_data() { m_data.ulonglong = v; } in Scalar() 50 Scalar(float v) : m_type(e_float), m_data() { m_data.flt = v; } in Scalar() 51 Scalar(double v) : m_type(e_double), m_data() { m_data.dbl = v; } in Scalar() 52 Scalar(long double v) : m_type(e_long_double), m_data() { m_data.ldbl = v; } in Scalar()
|
| /NextBSD/contrib/libarchive/libarchive/ |
| HD | archive_write_set_options.c | 41 const char *v) in archive_write_set_format_option() 50 const char *v) in archive_write_set_filter_option() 59 const char *v) in archive_write_set_option() 76 const char *v) in archive_set_format_option() 93 const char *v) in archive_set_filter_option() 125 const char *v) in archive_set_option()
|
| /NextBSD/crypto/openssh/ |
| HD | chacha.c | 18 #define U8C(v) (v##U) argument 19 #define U32C(v) (v##U) argument 21 #define U8V(v) ((u8)(v) & U8C(0xFF)) argument 22 #define U32V(v) ((u32)(v) & U32C(0xFFFFFFFF)) argument 24 #define ROTL32(v, n) \ argument 33 #define U32TO8_LITTLE(p, v) \ argument 41 #define ROTATE(v,c) (ROTL32(v,c)) argument 42 #define XOR(v,w) ((v) ^ (w)) argument 43 #define PLUS(v,w) (U32V((v) + (w))) argument 44 #define PLUSONE(v) (PLUS((v),1)) argument
|