| /xnu-11215/osfmk/arm64/ |
| H A D | tlb.h | 297 uint64_t asid = val >> TLBI_ASID_SHIFT; in flush_mmu_tlb_asid_async() 302 val = val & ~(1ULL << TLBI_ASID_SHIFT); in flush_mmu_tlb_asid_async() 304 val = val | (1ULL << TLBI_ASID_SHIFT); in flush_mmu_tlb_asid_async() 319 flush_mmu_tlb_asid_async(val, strong); in flush_mmu_tlb_asid() 327 flush_core_tlb_asid_async(uint64_t val) in flush_core_tlb_asid_async() argument 339 val = val & ~(1ULL << TLBI_ASID_SHIFT); in flush_core_tlb_asid_async() 341 val = val | (1ULL << TLBI_ASID_SHIFT); in flush_core_tlb_asid_async() 351 flush_core_tlb_asid(uint64_t val) in flush_core_tlb_asid() argument 353 flush_core_tlb_asid_async(val); in flush_core_tlb_asid() 469 flush_core_tlb_allrange(uint64_t val) in flush_core_tlb_allrange() argument [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | lock_ptr.h | 93 #define hw_lck_ptr_init(lck, val, grp) hw_lck_ptr_init(lck, val) argument 112 void *val, 186 #define hw_lck_ptr_unlock(lck, val, grp) \ argument 187 hw_lck_ptr_unlock(lck, val) 189 hw_lck_ptr_unlock_nopreempt(lck, val) 208 void *val, 226 void *val, 234 hw_lck_ptr_wait_for_value(lck, val) 238 __hw_lck_ptr_value(hw_lck_ptr_t val) in __hw_lck_ptr_value() argument 240 vm_offset_t ptr = val.lck_ptr_bits; in __hw_lck_ptr_value() [all …]
|
| H A D | kpc_common.c | 167 kpc_force_all_ctrs(task_t task, int val) in kpc_force_all_ctrs() argument 586 .classes = classes, .configv = val, in kpc_set_period() 590 assert(val); in kpc_set_period() 631 assert(val); in kpc_get_period() 678 assert(val); in kpc_set_actionid() 687 val += count; in kpc_set_actionid() 696 CONFIGURABLE_ACTIONID(i) = *val++; in kpc_set_actionid() 707 CONFIGURABLE_ACTIONID(i) = *val++; in kpc_set_actionid() 723 assert(val); in kpc_get_actionid() 730 val += count; in kpc_get_actionid() [all …]
|
| H A D | lock_ptr.c | 91 hw_lck_ptr_init(hw_lck_ptr_t *lck, void *val, lck_grp_t *grp) in hw_lck_ptr_init() argument 106 __hw_lck_ptr_encode(&init, val); in hw_lck_ptr_init() 322 void *val, in hw_lck_ptr_unlock_fastpath() argument 341 __hw_lck_ptr_encode(&xorv, val); in hw_lck_ptr_unlock_fastpath() 361 hw_lck_ptr_unlock_fastpath(lck, val, false LCK_GRP_ARG(grp)); in hw_lck_ptr_unlock_nopreempt() 365 hw_lck_ptr_unlock(hw_lck_ptr_t *lck, void *val, lck_grp_t *grp) in hw_lck_ptr_unlock() argument 367 hw_lck_ptr_unlock_fastpath(lck, val, true LCK_GRP_ARG(grp)); in hw_lck_ptr_unlock() 376 void *val in hw_lck_ptr_wait_for_value_contended() 393 tmp.lck_ptr_value, __hw_lck_ptr_value(tmp) == val))) { in hw_lck_ptr_wait_for_value_contended() 410 void *val, in hw_lck_ptr_wait_for_value() argument [all …]
|
| H A D | iotrace.h | 53 uint64_t val; member 66 iotrace(iotrace_type_e type, uint64_t vaddr, uint64_t paddr, int size, uint64_t val, in iotrace() argument 86 cur_iotrace_ring[nextidx].val = val; in iotrace() 105 #define iotrace(type, vaddr, paddr, size, val, sabs, duration) argument
|
| H A D | lock_mtx.c | 517 os_atomic_rmw_loop(&lock->lck_mtx.val, state.val, nstate.val, acquire, { in lck_mtx_ilk_lock_nopreempt() 753 state.val = lock_load_exclusive(&lock->lck_mtx.val, acquire); in lck_mtx_lock_adaptive_spin() 774 state.val, nstate.val, acquire))) { in lck_mtx_lock_adaptive_spin() 859 state.val, state.val | LCK_MTX_ILOCK, in lck_mtx_lock_contended() 860 &state.val, acquire)) { in lck_mtx_lock_contended() 997 if (state.val == ostate.val) { in lck_mtx_lock_slow() 1004 ostate.val, state.val, &state.val, acquire); in lck_mtx_lock_slow() 1006 if ((state.val & ~ostate.val) == 0) { in lck_mtx_lock_slow() 1041 lock_cmpxchgv(&lock->lck_mtx.val, in lck_mtx_lock_fastpath() 1042 0, state.val, &state.val, acquire); in lck_mtx_lock_fastpath() [all …]
|
| /xnu-11215/libkern/net/ |
| H A D | inet_aton.c | 44 in_addr_t val = 0; in inet_aton() local 66 val = (in_addr_t)l; in inet_aton() 77 parts[n] = val; in inet_aton() 117 if (val > 0xffffff || parts[0] > 0xff) { in inet_aton() 120 val |= parts[0] << 24; in inet_aton() 124 if (val > 0xffff || parts[0] > 0xff || parts[1] > 0xff) { in inet_aton() 127 val |= (parts[0] << 24) | (parts[1] << 16); in inet_aton() 131 if (val > 0xff || parts[0] > 0xff || parts[1] > 0xff || in inet_aton() 135 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8); in inet_aton() 140 addr->s_addr = htonl(val); in inet_aton()
|
| H A D | inet_pton.c | 142 u_int val; in inet_pton6() local 155 val = 0; in inet_pton6() 163 val <<= 4; in inet_pton6() 164 val |= (pch - xdigits); in inet_pton6() 184 *tp++ = (u_char) (val >> 8) & 0xff; in inet_pton6() 185 *tp++ = (u_char) val & 0xff; in inet_pton6() 187 val = 0; in inet_pton6() 202 *tp++ = (u_char) (val >> 8) & 0xff; in inet_pton6() 203 *tp++ = (u_char) val & 0xff; in inet_pton6()
|
| /xnu-11215/bsd/sys/ |
| H A D | reboot.h | 134 #define B_ADAPTOR(val) (((val) >> B_ADAPTORSHIFT) & B_ADAPTORMASK) argument 137 #define B_CONTROLLER(val) (((val)>>B_CONTROLLERSHIFT) & B_CONTROLLERMASK) argument 140 #define B_UNIT(val) (((val) >> B_UNITSHIFT) & B_UNITMASK) argument 143 #define B_PARTITION(val) (((val) >> B_PARTITIONSHIFT) & B_PARTITIONMASK) argument 146 #define B_TYPE(val) (((val) >> B_TYPESHIFT) & B_TYPEMASK) argument
|
| /xnu-11215/osfmk/mach_debug/ |
| H A D | zone_info.h | 126 #define GET_MZI_COLLECTABLE_BYTES(val) ((val) >> 1) argument 127 #define GET_MZI_COLLECTABLE_FLAG(val) ((val) & 1) argument 129 #define SET_MZI_COLLECTABLE_BYTES(val, size) \ argument 130 (val) = ((val) & 1) | ((size) << 1) 131 #define SET_MZI_COLLECTABLE_FLAG(val, flag) \ argument 132 (val) = (flag) ? ((val) | 1) : (val)
|
| /xnu-11215/bsd/bsm/ |
| H A D | audit_internal.h | 89 #define ADD_U_CHAR(loc, val) \ argument 91 *(loc) = (val); \ 96 #define ADD_U_INT16(loc, val) \ argument 98 be16enc((loc), (val)); \ 102 #define ADD_U_INT32(loc, val) \ argument 104 be32enc((loc), (val)); \ 108 #define ADD_U_INT64(loc, val) \ argument 110 be64enc((loc), (val)); \
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOPMPowerSource.cpp | 230 if (!key || !val) { in setPSProperty() 240 if (val->isEqualTo(lastVal)) { in setPSProperty() 252 properties->setObject(key, val); in setPSProperty() 303 OSNumber *n = OSNumber::withNumber(val, 32); in setCurrentCapacity() 311 OSNumber *n = OSNumber::withNumber(val, 32); in setMaxCapacity() 317 IOPMPowerSource::setTimeRemaining(int val) in setTimeRemaining() argument 319 OSNumber *n = OSNumber::withNumber(val, 32); in setTimeRemaining() 325 IOPMPowerSource::setAmperage(int val) in setAmperage() argument 327 OSNumber *n = OSNumber::withNumber(val, 32); in setAmperage() 349 IOPMPowerSource::setAdapterInfo(int val) in setAdapterInfo() argument [all …]
|
| /xnu-11215/tests/ |
| H A D | in_cksum_test.c | 42 uint16_t val = buf[1]; in dumb_in_cksum() local 43 val <<= 8; in dumb_in_cksum() 44 val |= buf[0]; in dumb_in_cksum() 47 partial += val; in dumb_in_cksum() 48 while ((val = partial >> 16)) { in dumb_in_cksum() 50 partial += val; in dumb_in_cksum() 54 uint16_t val = buf[0]; in dumb_in_cksum() local 55 partial += val; in dumb_in_cksum() 56 while ((val = partial >> 16)) { in dumb_in_cksum() 58 partial += val; in dumb_in_cksum()
|
| H A D | mbuf_tag_test.c | 44 int val; variable 50 val = 1; 52 sysctlbyname("kern.ipc.mb_tag_test", NULL, NULL, &val, sizeof(val)),
|
| H A D | user_msrs.c | 106 uint64_t val, new_val, wrote_val; in msr_test() local 124 op(msr_read, &val); in msr_test() 128 op(msr_write, &val); in msr_test() 134 T_LOG("\tvalue found: 0x%016llx\n", (unsigned long long)val); in msr_test() 143 wrote_val = ~val; in msr_test() 147 if (new_val == val) { in msr_test() 148 T_LOG("\t reg seems to not take writes (0x%016llx). no further testing will be performed\n", val); in msr_test() 176 …s 0x%016llx, expected revert to 0x%016llx!", (unsigned long long)new_val, (unsigned long long)val); in msr_test()
|
| H A D | ip_tos_35768492.c | 56 int val = tos_byte; in my_sendmsg() local 57 int err = setsockopt(sock, level, type, &val, sizeof(val)); in my_sendmsg() 123 int val = 1; variable 124 int err = setsockopt(server4, IPPROTO_IP, IP_RECVTOS, &val, sizeof(val)); 155 int val = 1; variable 161 err = setsockopt(server6, IPPROTO_IPV6, IPV6_RECVTCLASS, &val, sizeof(val));
|
| /xnu-11215/libkern/os/ |
| H A D | ptrtools.h | 32 #define os_unaligned_deref(p) ((__os_unaligned_type(p))(p))->val 35 #define os_access_once(val) (*((volatile __typeof__((val)) *)&(val))) argument 37 #define __os_unaligned_type(p) struct { __typeof__(*(p)) val; } __attribute__((packed)) *
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | counter.py | 14 val = 0 16 val += v 17 return str(val) 28 val = LazyTarget.GetTarget().chkCreateValueFromExpression( 30 print(GetSimpleCounter(value(val)))
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | cvalue.py | 385 return val 446 def unsigned(val): argument 452 if type(val) is value: 454 return int(val) 457 def signed(val): argument 463 if type(val) is value: 465 return int(val) 481 def dereference(val): argument 496 def wrapped(val): argument 510 def addressof(val): argument [all …]
|
| /xnu-11215/pexpert/gen/ |
| H A D | bootargs.c | 70 long long val = 0; in PE_parse_boot_argn_internal() local 143 argnumcpy(val, arg_ptr, max_len); in PE_parse_boot_argn_internal() 380 *(int8_t *)to = (int8_t)val; in argnumcpy() 383 *(int16_t *)to = (int16_t)val; in argnumcpy() 387 ((struct i24 *)to)->i24 = (int32_t)val; in argnumcpy() 390 *(int32_t *)to = (int32_t)val; in argnumcpy() 393 *(int64_t *)to = (int64_t)val; in argnumcpy() 396 *(int32_t *)to = (int32_t)val; in argnumcpy() 407 long long *val, in getval() argument 493 *val = intval * sign; in getval() [all …]
|
| /xnu-11215/osfmk/mach/ |
| H A D | time_value.h | 79 #define time_value_add_usec(val, micros) { \ argument 80 if (((val)->microseconds += (micros)) \ 82 (val)->microseconds -= TIME_MICROS_MAX; \ 83 (val)->seconds++; \
|
| /xnu-11215/bsd/net/ |
| H A D | net_api_stats.h | 153 int64_t val; \ 155 val = counter; \ 156 if (val >= INT64_MAX) { \ 159 } while (!OSCompareAndSwap64(val, val + 1, &(counter))); \
|
| /xnu-11215/tests/vm/ |
| H A D | memorystatus_sort_test.c | 324 int ret, val; in has_unrestrict_coalitions() local 327 val = 0; in has_unrestrict_coalitions() 328 val_sz = sizeof(val); in has_unrestrict_coalitions() 329 ret = sysctlbyname("kern.unrestrict_coalitions", &val, &val_sz, NULL, 0); in has_unrestrict_coalitions() 336 int ret, val = 1; in unrestrict_coalitions() local 338 val_sz = sizeof(val); in unrestrict_coalitions() 339 ret = sysctlbyname("kern.unrestrict_coalitions", NULL, 0, &val, val_sz); in unrestrict_coalitions() 346 int ret, val = 0; in restrict_coalitions() local 348 val_sz = sizeof(val); in restrict_coalitions() 349 ret = sysctlbyname("kern.unrestrict_coalitions", NULL, 0, &val, val_sz); in restrict_coalitions()
|
| /xnu-11215/osfmk/x86_64/ |
| H A D | loose_ends.c | 666 outb(ioport, (uint8_t)val); in ml_port_io_write() 669 outw(ioport, (uint16_t)val); in ml_port_io_write() 672 outl(ioport, (uint32_t)val); in ml_port_io_write() 689 ioport, (eabs - sabs), val, sabs, eabs, in ml_port_io_write() 699 (eabs - sabs), sabs, ioport, val); in ml_port_io_write() 725 ml_port_io_write8(uint16_t ioport, uint8_t val) in ml_port_io_write8() argument 727 ml_port_io_write(ioport, val, 1); in ml_port_io_write8() 733 ml_port_io_write(ioport, val, 2); in ml_port_io_write16() 739 ml_port_io_write(ioport, val, 4); in ml_port_io_write32() 757 *val = ml_phys_read(paddr); in ml_probe_read() [all …]
|
| /xnu-11215/tools/tests/TLBcoherency/ |
| H A D | TLBcoherency.c | 107 set_enable(int val) in set_enable() argument 115 mib[3] = val; in set_enable() 149 uint64_t val = (*(uintptr_t *)parray[i].taddr); in initialize_arena_element() local 151 if (val != 0) { in initialize_arena_element() 152 CONSISTENCY("Mismatch, actual: 0x%llx, expected: 0x%llx\n", (unsigned long long)val, 0ULL); in initialize_arena_element() 202 uintptr_t val = *(uintptr_t *)parray[i].taddr; in tlbexerciser() local 204 if (val != ad) { in tlbexerciser() 209 …CONSISTENCY("Mismatch, actual: 0x%llx, expected: 0x%llx\n", (unsigned long long)val, (unsigned lon… in tlbexerciser()
|