| /xnu-11215/bsd/dev/dtrace/ |
| H A D | blist.h | 33 #define LOG2(v) (((u_daddr_t)(v) >= 0x80000000U) ? 31 : \ argument 34 ((u_daddr_t)(v) >= 0x40000000U) ? 30 : \ 35 ((u_daddr_t)(v) >= 0x20000000U) ? 29 : \ 36 ((u_daddr_t)(v) >= 0x10000000U) ? 28 : \ 37 ((u_daddr_t)(v) >= 0x08000000U) ? 27 : \ 38 ((u_daddr_t)(v) >= 0x04000000U) ? 26 : \ 39 ((u_daddr_t)(v) >= 0x02000000U) ? 25 : \ 40 ((u_daddr_t)(v) >= 0x01000000U) ? 24 : \ 41 ((u_daddr_t)(v) >= 0x00800000U) ? 23 : \ 42 ((u_daddr_t)(v) >= 0x00400000U) ? 22 : \ [all …]
|
| /xnu-11215/san/memory/ |
| H A D | ubsan.c | 324 ubsan_json_type(ub, "lhs", &v->lhs, v->shift->lhs_t); in format_shift() 325 ubsan_json_type(ub, "rhs", &v->rhs, v->shift->rhs_t); in format_shift() 379 ubsan_json_type(ub, "idx", &v->lhs, v->oob->index_ty); in format_oob() 405 ubsan_json_type(ub, NULL, &v->lhs, v->invalid->type); in format_load_invalid_value() 456 ubsan_json_type(ub, NULL, &v->lhs, v->func_mismatch->type); in format_function_type_mismatch() 463 ubsan_json_type(ub, NULL, &v->lhs, v->vla_bound->type); in format_vla_bound_not_positive() 531 switch (v->ubsan_type) { in ubsan_json_format() 533 format_overflow(v, ub); in ubsan_json_format() 539 format_shift(v, ub); in ubsan_json_format() 548 format_oob(v, ub); in ubsan_json_format() [all …]
|
| /xnu-11215/libkern/os/ |
| H A D | atomic_private.h | 312 __auto_type _v = (v); \ 364 __auto_type _v = (v); \ 391 #define os_atomic_add_orig(p, v, m) _os_atomic_c11_op_orig(p, v, m, fetch_add) argument 392 #define os_atomic_add(p, v, m) _os_atomic_c11_op(p, v, m, fetch_add, +) argument 433 #define os_atomic_sub(p, v, m) _os_atomic_c11_op(p, v, m, fetch_sub, -) argument 474 #define os_atomic_and(p, v, m) _os_atomic_c11_op(p, v, m, fetch_and, &) argument 495 #define os_atomic_andnot_orig(p, v, m) _os_atomic_c11_op_orig(p, (typeof(v))~(v), m, fetch_and) argument 496 #define os_atomic_andnot(p, v, m) _os_atomic_c11_op(p, (typeof(v))~(v), m, fetch_and, &) argument 517 #define os_atomic_or_orig(p, v, m) _os_atomic_c11_op_orig(p, v, m, fetch_or) argument 518 #define os_atomic_or(p, v, m) _os_atomic_c11_op(p, v, m, fetch_or, |) argument [all …]
|
| H A D | refcnt.c | 713 if (v == 0) { in __os_pcpu_ref_retain_panic() 796 uint64_t v; in os_pcpu_ref_count() local 809 uint64_t v; in __os_pcpu_ref_delta() local 817 return v; in __os_pcpu_ref_delta() 846 if (v == 0 || v >= os_pcpu_count_to_value(OS_REFCNT_MAX_COUNT)) { in __os_pcpu_ref_retain_slow() 855 uint64_t v; variable 918 uint64_t v; variable 960 if (os_sub_overflow(v, OS_PCPU_REF_INC, &v)) { in __os_pcpu_ref_release_slow() 968 v = 0; in __os_pcpu_ref_release_slow() 982 uint64_t v; in os_ref_count_t() local [all …]
|
| H A D | atomic.h | 98 cast_to_atomic_pointer(T *v) in cast_to_atomic_pointer() argument 100 return reinterpret_cast<volatile std::atomic<remove_volatile_t<T> > *>(v); in cast_to_atomic_pointer() 105 cast_to_atomic_pointer(std::atomic<T> *v) in cast_to_atomic_pointer() argument 107 return reinterpret_cast<volatile std::atomic<remove_volatile_t<T> > *>(v); in cast_to_atomic_pointer() 112 cast_to_atomic_pointer(volatile std::atomic<T> *v) in cast_to_atomic_pointer() argument 119 cast_to_nonatomic_pointer(T *v) in cast_to_nonatomic_pointer() argument 121 return const_cast<remove_volatile_t<T> *>(v); in cast_to_nonatomic_pointer() 126 cast_to_nonatomic_pointer(std::atomic<T> *v) in cast_to_nonatomic_pointer() argument 128 return reinterpret_cast<remove_volatile_t<T> *>(v); in cast_to_nonatomic_pointer() 133 cast_to_nonatomic_pointer(volatile std::atomic<T> *v) in cast_to_nonatomic_pointer() argument [all …]
|
| H A D | atomic_private_arch.h | 57 #define os_atomic_make_dependency(v) ({ \ argument 61 : [_v] "r" (v)); \ 76 #define os_atomic_store_exclusive(p, v, m) ({ \ argument 79 !__builtin_arm_strex(v, os_cast_to_nonatomic_pointer(p)); \ 132 #define os_atomic_make_dependency(v) ({ \ argument 136 : [_v] "r" (v)); \ 141 #define os_atomic_make_dependency(v) ({ \ argument 145 : [_v] "r" (v)); \ 168 #define os_atomic_store_exclusive(p, v, m) ({ \ argument 171 ? !__builtin_arm_stlex(v, os_cast_to_nonatomic_pointer(p)) \ [all …]
|
| H A D | atomic_private_impl.h | 217 #define _os_atomic_value_cast(p, v) \ argument 218 ({ __typeof__(*os_cast_to_nonatomic_pointer(p)) ___v = (v); ___v; }) 220 #define _os_atomic_c11_op_orig(p, v, m, o) ({ \ argument 224 _os_atomic_value_cast(p, v), \ 230 #define _os_atomic_c11_op(p, v, m, o, op) ({ \ argument 231 __auto_type _v = _os_atomic_value_cast(p, v); \ 235 #define _os_atomic_clang_op_orig(p, v, m, o) ({ \ argument 238 _os_atomic_value_cast(p, v), \ 244 #define _os_atomic_clang_op(p, v, m, o, op) ({ \ argument 245 __auto_type _v = _os_atomic_value_cast(p, v); \
|
| /xnu-11215/osfmk/mach/ |
| H A D | ndr.h | 141 __NDR_READSWAP_assign(v, __NDR_READSWAP__int16_t) 145 __NDR_READSWAP_assign(v, __NDR_READSWAP__uint16_t) 149 __NDR_READSWAP_assign(v, __NDR_READSWAP__int32_t) 153 __NDR_READSWAP_assign(v, __NDR_READSWAP__uint32_t) 157 __NDR_READSWAP_assign(v, __NDR_READSWAP__int64_t) 165 __NDR_READSWAP_assign(v, __NDR_READSWAP__float) 169 __NDR_READSWAP_assign(v, __NDR_READSWAP__double) 173 __NDR_convert__int_rep__int32_t(v,f) 177 __NDR_convert__int_rep__int32_t(v,f) 181 __NDR_convert__int_rep__uint32_t(v,f) [all …]
|
| /xnu-11215/osfmk/arm64/corecrypto/ |
| H A D | arm64_isa_compatibility.h | 70 aese.16b v$0, v$1 74 aesd.16b v$0, v$1 78 aesmc.16b v$0, v$1 82 aesimc.16b v$0, v$1 109 sha1su0 v$0.4s, v$1.4s, v$2.4s 113 sha1su1 v$0.4s, v$1.4s 117 sha1c q$0, s$1, v$2.4s 121 sha1m q$0, s$1, v$2.4s 125 sha1p q$0, s$1, v$2.4s 133 sha256su0 v$0.4s, v$1.4s [all …]
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | lldbwrap.py | 528 if v.IsValid(): 531 return v 696 if not v.IsValid() or not v.TypeIsPointerType(): 711 nv = v.rawCreateValueFromAddress(v.GetName(), addr, ty) 718 v = nv 722 return v 736 return v 1021 if v.IsValid(): 1032 if v.IsValid(): 1044 if v.IsValid(): [all …]
|
| /xnu-11215/EXTERNAL_HEADERS/ |
| H A D | stdint.h | 92 #define INT8_C(v) (v) argument 93 #define INT16_C(v) (v) argument 94 #define INT32_C(v) (v) argument 95 #define INT64_C(v) (v ## LL) argument 97 #define UINT8_C(v) (v) argument 98 #define UINT16_C(v) (v) argument 99 #define UINT32_C(v) (v ## U) argument 100 #define UINT64_C(v) (v ## ULL) argument 103 #define INTMAX_C(v) (v ## L) argument 104 #define UINTMAX_C(v) (v ## UL) argument [all …]
|
| /xnu-11215/osfmk/corecrypto/ |
| H A D | cc_internal.h | 154 cc_popcount32_fallback(uint32_t v) in cc_popcount32_fallback() argument 156 v = v - ((v >> 1) & 0x55555555); in cc_popcount32_fallback() 157 v = (v & 0x33333333) + ((v >> 2) & 0x33333333); in cc_popcount32_fallback() 158 return ((v + (v >> 4) & 0xf0f0f0f) * 0x1010101) >> 24; in cc_popcount32_fallback() 163 cc_popcount64_fallback(uint64_t v) in cc_popcount64_fallback() argument 165 v = v - ((v >> 1) & 0x5555555555555555); in cc_popcount64_fallback() 166 v = (v & 0x3333333333333333) + ((v >> 2) & 0x3333333333333333); in cc_popcount64_fallback() 167 v = (v + (v >> 4)) & 0xf0f0f0f0f0f0f0f; in cc_popcount64_fallback() 168 return (v * 0x101010101010101) >> 56; in cc_popcount64_fallback()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_ntptime.c | 86 #define L_ADD(v, u) ((v) += (u)) argument 87 #define L_SUB(v, u) ((v) -= (u)) argument 88 #define L_ADDHI(v, a) ((v) += (int64_t)(a) << 32) argument 89 #define L_NEG(v) ((v) = -(v)) argument 93 (v) = -(-(v) >> (n)); \ 95 (v) = (v) >> (n); \ 97 #define L_MPY(v, a) ((v) *= (a)) argument 98 #define L_CLR(v) ((v) = 0) argument 99 #define L_ISNEG(v) ((v) < 0) argument 100 #define L_LINT(v, a) \ argument [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | vnode.h | 505 #define VATTR_INIT(v) do {(v)->va_supported = (v)->va_active = 0ll; (v)->va_vafla… argument 511 #define VATTR_CLEAR_SUPPORTED_ALL(v) ((v)->va_supported = 0) argument 512 #define VATTR_IS_ACTIVE(v, a) ((v)->va_active & VNODE_ATTR_ ## a) argument 513 #define VATTR_ALL_SUPPORTED(v) (((v)->va_active & (v)->va_supported) == (v)->va_active) argument 514 #define VATTR_INACTIVE_SUPPORTED(v) do {(v)->va_active &= ~(v)->va_supported; (v)->va_supported… argument 515 #define VATTR_SET(v, a, x) do { (v)-> a = (x); VATTR_SET_ACTIVE(v, a);} while(0) argument 516 #define VATTR_WANTED(v, a) VATTR_SET_ACTIVE(v, a) argument 517 #define VATTR_RETURN(v, a, x) do { (v)-> a = (x); VATTR_SET_SUPPORTED(v, a);} while(0) argument 518 #define VATTR_NOT_RETURNED(v, a) (VATTR_IS_ACTIVE(v, a) && !VATTR_IS_SUPPORTED(v, a)) argument 523 #define VATTR_IS(v, a, x) (VATTR_IS_SUPPORTED(v, a) && (v)-> a == (x)) argument [all …]
|
| /xnu-11215/osfmk/arm64/ |
| H A D | genassym.c | 221 DECLARE("NS64_D8", offsetof(arm_context_t, ns.ns_64.v.d[8])); in main() 222 DECLARE("NS64_D9", offsetof(arm_context_t, ns.ns_64.v.d[9])); in main() 223 DECLARE("NS64_D10", offsetof(arm_context_t, ns.ns_64.v.d[10])); in main() 224 DECLARE("NS64_D11", offsetof(arm_context_t, ns.ns_64.v.d[11])); in main() 225 DECLARE("NS64_D12", offsetof(arm_context_t, ns.ns_64.v.d[12])); in main() 226 DECLARE("NS64_D13", offsetof(arm_context_t, ns.ns_64.v.d[13])); in main() 230 DECLARE("NS64_Q0", offsetof(arm_context_t, ns.ns_64.v.q[0])); in main() 231 DECLARE("NS64_Q2", offsetof(arm_context_t, ns.ns_64.v.q[2])); in main() 232 DECLARE("NS64_Q4", offsetof(arm_context_t, ns.ns_64.v.q[4])); in main() 233 DECLARE("NS64_Q6", offsetof(arm_context_t, ns.ns_64.v.q[6])); in main() [all …]
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSEndianTypes.h | 144 void writeValue(Value v) { \ 145 if (__builtin_constant_p(v)) \ 146 mValue = OSSwapHostTo ## argend ## ConstInt ## argsize(v); \ 148 OSWrite ## argend ## Int ## argsize(&mValue, 0, (UValue) v); \ 158 argname (Value v) { writeValue(v); }; \ 159 argname &operator = (Value v) { writeValue(v); return *this; } \
|
| /xnu-11215/tests/ |
| H A D | sysctl_hw.c | 8 int v; variable 31 v = 0; 32 v_size = sizeof(v); 33 ret = sysctlbyname("hw.cpu64bit_capable", &v, &v_size, NULL, 0); 36 T_EXPECT_EQ(v, 1, "cpu is 64 bit capable");
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_systm.h | 92 #define ABS(v) (((v) > 0) ? (v) : -(v)) argument
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.h | 439 na->na_num_tx_slots = v; in na_set_nslots() 442 na->na_num_rx_slots = v; in na_set_nslots() 446 na->na_num_allocator_slots = v; in na_set_nslots() 449 na->na_num_event_slots = v; in na_set_nslots() 452 na->na_num_large_buf_alloc_slots = v; in na_set_nslots() 490 na->na_num_tx_rings = v; in na_set_nrings() 493 na->na_num_rx_rings = v; in na_set_nrings() 497 na->na_num_allocator_ring_pairs = v; in na_set_nrings() 500 na->na_num_event_rings = v; in na_set_nrings() 504 ASSERT(v <= 1); in na_set_nrings() [all …]
|
| /xnu-11215/tests/cxx_safe_buffers_src/ |
| H A D | unsafe_forge_span.cpp | 29 std::vector<T> v; in tests() local 30 std::span<T> span = os::span::__unsafe_forge_span(v.begin(), v.end()); in tests() 32 CHECK(span.data() == v.data() && span.size() == 0); in tests()
|
| /xnu-11215/security/ |
| H A D | mac_label.c | 200 mac_label_set(struct label *label, int slot, intptr_t v) in mac_label_set() argument 208 label, slot, v); in mac_label_set() 210 if (v == MAC_LABEL_NULL_SLOT) { in mac_label_set() 213 v = mac_label_slot_encode(v); in mac_label_set() 214 zalloc_ro_update_field(ZONE_ID_MAC_LABEL, label, l_perpolicy[slot], &v); in mac_label_set()
|
| /xnu-11215/bsd/net/ |
| H A D | radix.h | 367 (void *v, void *mask, 370 (void *v, void *mask, 373 (void *v, void *mask, struct radix_node_head *head); 375 (void *v, void *mask, struct radix_node_head *head); 377 (void *v, struct radix_node_head *head); 380 (void *v, struct radix_node_head *head, 383 (void *v, void *mask, struct radix_node_head *head); 386 (void *v, void *mask, struct radix_node_head *head, 389 (void *v, struct radix_node_head *head);
|
| H A D | radix.c | 320 caddr_t cp = v, cp2; in rn_match_args() 353 cplim = v + vlen; in rn_match_args() 465 rn_set_key(tt, v, vlen); in rn_newpair() 487 caddr_t cp = v + head_off; in rn_insert() 496 caddr_t cplim = v + vlen; in rn_insert() 514 cp = v; in rn_insert() 757 rn_set_key(tt, v, vlen); in rn_addroute() 854 caddr_t v, netmask; in rn_delete() local 857 v = v_arg; in rn_delete() 860 tt = rn_search(v, x); in rn_delete() [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOReporterDefs.h | 92 _elements[idx].values.v[0], \ 93 _elements[idx].values.v[1], \ 94 _elements[idx].values.v[2], \ 95 _elements[idx].values.v[3]); \
|
| /xnu-11215/libkern/stdio/ |
| H A D | scanf.c | 614 char v; in __sccl() local 619 v = 1; /* default => accept */ in __sccl() 622 v = 0; /* default => reject */ in __sccl() 625 (void) memset(tab, v, 256); in __sccl() 637 v = 1 - v; in __sccl() 640 tab[c] = v; /* take character c */ in __sccl() 674 tab[++c] = v; in __sccl()
|