| /xnu-11215/bsd/dev/arm64/ |
| H A D | disassembler.c | 13 uint32_t value; member 18 …{ .mask = 0xFFFFFFFF, .value = FASTTRAP_ARM64_OP_VALUE_FUNC_ENTRY, .type = FASTTRAP_T_ARM64_STANDA… 32 …{ .mask = FASTTRAP_ARM64_OP_MASK_B_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_B_PC_REL, .type = FAST… 34 …{ .mask = FASTTRAP_ARM64_OP_MASK_BLR, .value = FASTTRAP_ARM64_OP_VALUE_BLR, .type = FASTTRAP_T_ARM… 35 …{ .mask = FASTTRAP_ARM64_OP_MASK_BR, .value = FASTTRAP_ARM64_OP_VALUE_BR, .type = FASTTRAP_T_ARM64… 36 …{ .mask = FASTTRAP_ARM64_OP_MASK_RET, .value = FASTTRAP_ARM64_OP_VALUE_RET, .type = FASTTRAP_T_ARM… 37 …{ .mask = FASTTRAP_ARM64_OP_MASK_ADRP, .value = FASTTRAP_ARM64_OP_VALUE_ADRP, .type = FASTTRAP_T_A… 38 …{ .mask = FASTTRAP_ARM64_OP_MASK_ADR, .value = FASTTRAP_ARM64_OP_VALUE_ADR, .type = FASTTRAP_T_ARM… 39 …{ .mask = FASTTRAP_ARM64_OP_MASK_PRFM, .value = FASTTRAP_ARM64_OP_VALUE_PRFM, .type = FASTTRAP_T_A… 41 …{ .mask = FASTTRAP_ARM64_OP_MASK_RETAB, .value = FASTTRAP_ARM64_OP_VALUE_RETAB, .type = FASTTRAP_T… [all …]
|
| /xnu-11215/libkern/gen/ |
| H A D | OSAtomicOperations.c | 137 OSIncrementAtomic(volatile SInt32 * value) in OSIncrementAtomic() argument 139 return os_atomic_inc_orig(value, relaxed); in OSIncrementAtomic() 144 OSDecrementAtomic(volatile SInt32 * value) in OSDecrementAtomic() argument 146 return os_atomic_dec_orig(value, relaxed); in OSDecrementAtomic() 207 OSIncrementAtomic8(volatile SInt8 * value) in OSIncrementAtomic8() argument 209 return os_atomic_inc_orig(value, relaxed); in OSIncrementAtomic8() 213 OSDecrementAtomic8(volatile SInt8 * value) in OSDecrementAtomic8() argument 215 return os_atomic_dec_orig(value, relaxed); in OSDecrementAtomic8() 237 OSIncrementAtomic16(volatile SInt16 * value) in OSIncrementAtomic16() argument 239 return OSAddAtomic16(1, value); in OSIncrementAtomic16() [all …]
|
| /xnu-11215/libkern/c++/ |
| H A D | OSNumber.cpp | 67 value = (inValue & sizeMask); in init() 111 double value) in withDouble() argument 119 me->fpValue = value; in withDouble() 126 float value) in withFloat() argument 134 me->fpValue = (double) value; in withFloat() 143 return (double) value; in doubleValue() 152 return (float) value; in floatValue() 194 return (unsigned int) value; in unsigned32BitValue() 203 return value; in unsigned64BitValue() 212 value = ((value + inValue) & sizeMask); in addValue() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_common.h | 51 const uint64_t value) in __nexus_attr_set() argument 62 nxa->nxa_tx_rings = value; in __nexus_attr_set() 67 nxa->nxa_rx_rings = value; in __nexus_attr_set() 72 nxa->nxa_tx_slots = value; in __nexus_attr_set() 92 nxa->nxa_pipes = value; in __nexus_attr_set() 102 nxa->nxa_mhints = value; in __nexus_attr_set() 107 nxa->nxa_qmap = value; in __nexus_attr_set() 113 nxa->nxa_ifindex = value; in __nexus_attr_set() 159 uint64_t *value) in __nexus_attr_get() argument 205 *value = nxa->nxa_pipes; in __nexus_attr_get() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | sys_coalition.c | 529 uint32_t value = uap->value; in sys_coalition_policy_set() local 609 error = SYSCTL_IN(req, &value, sizeof(value)); 645 error = SYSCTL_IN(req, &value, sizeof(value)); 682 error = SYSCTL_IN(req, &value, sizeof(value)); 733 error = SYSCTL_IN(req, &value, sizeof(value)); 736 error = SYSCTL_IN(req, &value, sizeof(value) - sizeof(value[0])); 807 error = SYSCTL_IN(req, value, sizeof(value)); 809 error = SYSCTL_IN(req, value, sizeof(value) - sizeof(value[0])); 833 return SYSCTL_OUT(req, value, sizeof(value[0])); 874 (energy_id_t)value[1], (energy_id_t)value[2], value[3]); [all …]
|
| H A D | counter_test.c | 119 int64_t value = 0; variable 125 error = sysctl_io_number(req, value, sizeof(int64_t), &value, NULL); 129 counter_add(&test_scalable_counter, value); 137 int64_t value = 0; variable 143 error = sysctl_io_number(req, value, sizeof(int64_t), &value, NULL); 155 uint64_t value; variable 160 value = counter_load(&test_scalable_counter); 161 return SYSCTL_OUT(req, &value, sizeof(value)); 208 uint64_t value = racy_counter; variable 209 return SYSCTL_OUT(req, &value, sizeof(value)); [all …]
|
| /xnu-11215/libkern/os/ |
| H A D | log_encode.c | 69 unsigned long long value = 0; in is_kernel_pointer() local 387 err = log_encode_fmt_arg(&value.ch, sizeof(value.ch), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 392 err = log_encode_fmt_arg(&value.s, sizeof(value.s), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 397 err = log_encode_fmt_arg(&value.i, sizeof(value.i), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 402 err = log_encode_fmt_arg(&value.l, sizeof(value.l), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 407 err = log_encode_fmt_arg(&value.ll, sizeof(value.ll), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 412 err = log_encode_fmt_arg(&value.z, sizeof(value.z), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 433 err = log_encode_fmt_arg(&value.p, sizeof(value.p), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 439 err = log_encode_fmt_arg(&value.ch, sizeof(value.ch), OSLF_CMD_TYPE_SCALAR, ctx); in log_encode_fmt() 445 if (!value.pch) { in log_encode_fmt() [all …]
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_object_internal.h | 90 bool value) in VM_OBJECT_SET_PAGER_CREATED() argument 98 bool value) in VM_OBJECT_SET_PAGER_INITIALIZED() argument 106 bool value) in VM_OBJECT_SET_PAGER_READY() argument 114 bool value) in VM_OBJECT_SET_PAGER_TRUSTED() argument 122 bool value) in VM_OBJECT_SET_CAN_PERSIST() argument 130 bool value) in VM_OBJECT_SET_INTERNAL() argument 138 bool value) in VM_OBJECT_SET_PRIVATE() argument 146 bool value) in VM_OBJECT_SET_PAGEOUT() argument 154 bool value) in VM_OBJECT_SET_ALIVE() argument 171 bool value) in VM_OBJECT_SET_PURGEABLE_ONLY_BY_KERNEL() argument [all …]
|
| /xnu-11215/pexpert/arm/ |
| H A D | pe_identify_machine.c | 39 void const *value; in pe_identify_machine() local 64 if ((kSuccess != SecureDTGetProperty(cpu, "state", &value, &size)) || in pe_identify_machine() 65 (strncmp((char const *)value, "running", size) != 0)) { in pe_identify_machine() 87 gPEClockFrequencyInfo.bus_frequency_hz = *(uint64_t const *)value; in pe_identify_machine() 89 gPEClockFrequencyInfo.bus_frequency_hz = *(uint32_t const *)value; in pe_identify_machine() 104 gPEClockFrequencyInfo.mem_frequency_hz = *(uint64_t const *)value; in pe_identify_machine() 106 gPEClockFrequencyInfo.mem_frequency_hz = *(uint32_t const *)value; in pe_identify_machine() 115 gPEClockFrequencyInfo.prf_frequency_hz = *(uint64_t const *)value; in pe_identify_machine() 117 gPEClockFrequencyInfo.prf_frequency_hz = *(uint32_t const *)value; in pe_identify_machine() 126 gPEClockFrequencyInfo.fix_frequency_hz = *(uint64_t const *)value; in pe_identify_machine() [all …]
|
| /xnu-11215/tests/ |
| H A D | ecc_test.c | 162 uint value; in cleanup_ecc_test() local 163 size_t s = sizeof value; in cleanup_ecc_test() 166 value = 0; in cleanup_ecc_test() 167 (void)sysctlbyname("vm.test_ecc_dcs", NULL, NULL, &value, s); in cleanup_ecc_test() 170 value = 1; in cleanup_ecc_test() 178 uint value = 0; in run_test() local 179 size_t s = sizeof value; in run_test() 184 value = (uint)use_dcs; in run_test() 185 err = sysctlbyname("vm.test_ecc_dcs", NULL, NULL, &value, s); in run_test() 191 value = 0; in run_test() [all …]
|
| H A D | tcp_cache.c | 35 int ret, value = 0; variable 36 size_t len = sizeof(value); 38 ret = sysctlbyname("net.inet.tcp.test_cache", &value, &len, NULL, 0); 40 value = 1; 42 &value, sizeof(value)), NULL); 44 &value, sizeof(value));
|
| H A D | bpflib.c | 136 bpf_set_immediate(int fd, u_int value) in bpf_set_immediate() argument 138 return ioctl(fd, BIOCIMMEDIATE, &value); in bpf_set_immediate() 174 return ioctl(fd, BIOCSWRITEMAX, &value); in bpf_set_write_size_max() 176 #pragma unused(fd, value) in bpf_set_write_size_max() 185 return ioctl(fd, BIOCGWRITEMAX, value); in bpf_get_write_size_max() 187 #pragma unused(fd, value) in bpf_get_write_size_max() 193 bpf_set_batch_write(int fd, u_int value) in bpf_set_batch_write() argument 198 #pragma unused(fd, value) in bpf_set_batch_write() 204 bpf_get_batch_write(int fd, u_int *value) in bpf_get_batch_write() argument 207 return ioctl(fd, BIOCGBATCHWRITE, value); in bpf_get_batch_write() [all …]
|
| /xnu-11215/tests/nvram_tests/ |
| H A D | nvram_helper.c | 50 typeID = CFGetTypeID(value); in PrintVariable() 53 if (CFBooleanGetValue(value)) { in PrintVariable() 78 length = CFDataGetLength(value); in PrintVariable() 84 dataPtr = CFDataGetBytePtr(value); in PrintVariable() 129 if (value == NULL) { in ConvertValueToCFTypeRef() 132 if (!strcmp("true", value)) { in ConvertValueToCFTypeRef() 138 number = strtol(value, 0, 0); in ConvertValueToCFTypeRef() 145 if (value == NULL) { in ConvertValueToCFTypeRef() 148 length = strlen(value); in ConvertValueToCFTypeRef() 154 if (value[cnt] == '%') { in ConvertValueToCFTypeRef() [all …]
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSNumber.h | 88 unsigned long long value; member 92 unsigned long long value; variable 100 unsigned long long value; member 104 unsigned long long value; 141 unsigned long long value, 152 double value); 160 float value); 219 unsigned long long value, 411 virtual void addValue(signed long long value); 425 virtual void setValue(unsigned long long value);
|
| H A D | OSValueObject.h | 159 void setValue(const T& value); 269 virtual bool isEqualTo(const T& value) const; 436 OSValueObject<T>::withValue(const T& value) in withValue() argument 444 me->setValue(value); in withValue() 494 OSValueObject<T>::setValue(const T& value) in setValue() argument 497 if (&value != data) { in setValue() 499 memcpy(data, &value, getLength()); in setValue() 501 *data = value; in setValue() 550 return *data == value; in isEqualTo() 573 OSValueObjectWithValue(const T& value) in OSValueObjectWithValue() argument [all …]
|
| H A D | OSData.h | 198 withValue(const T& value) in withValue() argument 201 return withBytes(&value, sizeof(T)); in withValue() 268 withValueNoCopy(T& value) in withValueNoCopy() argument 271 return withBytesNoCopy(&value, sizeof(T)); in withValueNoCopy() 408 initWithValue(const T& value) in initWithValue() argument 411 return initWithBytes(&value, sizeof(T)); in initWithValue() 472 initWithValueNoCopy(T& value) in initWithValueNoCopy() argument 475 return initWithBytesNoCopy(&value, sizeof(T)); in initWithValueNoCopy() 482 bool initWithValueNoCopy(T&& value) = delete; 729 appendValue(const T& value) in appendValue() argument [all …]
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | nvram.py | 30 value = var_dict.dictionary[x].value 33 value_info = GetObjectTypeStr(value) 35 print("Couldn't obtain object type for name:", name, "value:", value) 44 print(name, '=', GetString(value)) 46 data_ptr = Cast(value.data, 'uint8_t *') 49 for i in range(value.length): 56 print(name, '=', GetNumber(value)) 58 print(name, '=', GetBoolean(value))
|
| /xnu-11215/bsd/net/ |
| H A D | multi_layer_pkt_log.c | 57 int value = net_mpklog_enabled; variable 59 int error = sysctl_handle_int(oidp, &value, 0, req); 64 net_mpklog_enabled = (value == 0) ? 0 : 1; 76 int value = net_mpklog_type; variable 78 int error = sysctl_handle_int(oidp, &value, 0, req); 83 if (value != OS_LOG_TYPE_DEFAULT && 84 value != OS_LOG_TYPE_INFO) { 87 net_mpklog_type = (uint8_t)value;
|
| /xnu-11215/osfmk/arm64/ |
| H A D | speculation.h | 66 #define SPECULATION_GUARD_ZEROING_GEN(out, value, cmp_1, cmp_2, cc, cmp_prefix, cs_prefix) \ argument 75 : [_cmp_1] "r" (cmp_1), [_cmp_2] "r" (cmp_2), [_value] "r" (value), [_zero] "rz" (0ULL) \ 83 #define SPECULATION_GUARD_ZEROING_XXX(out, value, cmp_1, cmp_2, cc) \ argument 84 SPECULATION_GUARD_ZEROING_GEN(out, value, cmp_1, cmp_2, cc, "", "") 86 #define SPECULATION_GUARD_ZEROING_XWW(out, value, cmp_1, cmp_2, cc) \ argument 87 SPECULATION_GUARD_ZEROING_GEN(out, value, cmp_1, cmp_2, cc, "w", "") 89 #define SPECULATION_GUARD_ZEROING_WXX(out, value, cmp_1, cmp_2, cc) \ argument 90 SPECULATION_GUARD_ZEROING_GEN(out, value, cmp_1, cmp_2, cc, "", "w") 92 #define SPECULATION_GUARD_ZEROING_WWW(out, value, cmp_1, cmp_2, cc) \ argument 93 SPECULATION_GUARD_ZEROING_GEN(out, value, cmp_1, cmp_2, cc, "w", "w")
|
| H A D | iofilter.c | 38 int io_filter_main(uint64_t addr, uint64_t value, uint64_t width, unsigned int io_attr_index, unsig… 42 io_filter_write(uint64_t addr, uint64_t value, uint64_t width, unsigned int io_attr_index, unsigned… in io_filter_write() argument 93 *(volatile uint8_t *)addr = (uint8_t) value; in io_filter_write() 96 *(volatile uint16_t *)addr = (uint16_t) value; in io_filter_write() 99 *(volatile uint32_t *)addr = (uint32_t) value; in io_filter_write() 102 *(volatile uint64_t *)addr = (uint64_t) value; in io_filter_write() 113 io_filter_main(uint64_t addr, uint64_t value, uint64_t width, unsigned int io_attr_index, unsigned … in io_filter_main() argument 125 return io_filter_write(addr, value, width, io_attr_index, io_filter_entry_index); in io_filter_main()
|
| /xnu-11215/tools/lldbmacros/core/ |
| H A D | kernelcore.py | 5 from .cvalue import value 45 return (value(e.AddressOf()) for e in ccol.iter_linked_list( 88 return (value(e.AddressOf()) for e in ccol.iter_linked_list( 169 return (value(e.AddressOf()) for e in ccol.iter_queue( 224 return (value(e.AddressOf()) for e in ccol.iter_mpsc_queue( 387 return value(sbv) 411 return value(sbv) 429 return value(sbv.AddressOf()) 448 return value(var) 545 (value(next(iter_za).AddressOf()), value(next(iter_zs).AddressOf())) [all …]
|
| /xnu-11215/tests/counter/ |
| H A D | common.c | 11 int value = 1; in init_scalable_counter_test() local 13 result = sysctlbyname("kern.scalable_counter_test_start", NULL, NULL, &value, sizeof(value)); in init_scalable_counter_test() 21 int value = 1; in fini_scalable_counter_test() local 22 result = sysctlbyname("kern.scalable_counter_test_finish", NULL, NULL, &value, sizeof(value)); in fini_scalable_counter_test()
|
| /xnu-11215/libkern/kxld/ |
| H A D | kxld_dict.c | 62 void *value; member 236 check(value); in kxld_dict_insert() 262 entry->value = value; in kxld_dict_insert() 360 if (value) { in kxld_dict_remove() 361 *value = NULL; in kxld_dict_remove() 369 if (value) { in kxld_dict_remove() 370 *value = entry->value; in kxld_dict_remove() 384 void **value) in kxld_dict_iterator_get_next() argument 390 check(value); in kxld_dict_iterator_get_next() 393 *value = NULL; in kxld_dict_iterator_get_next() [all …]
|
| /xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/ |
| H A D | Serialization.h | 61 int64_t value; member 68 return __unsafe_forge_bidi_indexable(void *, element->data.value, element->length); in CESerializedElementGetData() 72 element->data.value = (intptr_t)bytes; in CESerializedElementSetData() 170 #define CESerializeInteger(intv) (CESerializedElement_t){.type = kCESerializedInteger, .data.value … 171 #define CESerializeBool(boolVal) (CESerializedElement_t){.type = kCESerializedBool, .data.value = !… 172 …String(strVal) (CESerializedElement_t){.type = kCESerializedString, .data.value = (intptr_t)strVal… 173 #define CESerializeKey(strVal) (CESerializedElement_t){.type = kCESerializedKey, .data.value = (int… 174 …cKey(strVal, len) (CESerializedElement_t){.type = kCESerializedKey, .data.value = (intptr_t)strVal… 175 …g(strVal, len) (CESerializedElement_t){.type = kCESerializedString, .data.value = (intptr_t)strVal… 176 …ta(dataVal, len) (CESerializedElement_t){.type = kCESerializedData, .data.value = (intptr_t)dataVa…
|
| /xnu-11215/tools/lldbmacros/tests/lldbmock/ |
| H A D | memorymock.py | 99 if isinstance(value, bytes) or isinstance(value, bytearray): 105 return value[:size] 118 if isinstance(value, int): 174 def __set__(self, instance, value): argument 178 if not self.serializer.accepts(value): 222 def __setbit(self, idx, value): argument 223 if value: 234 def __setitem__(self, key, value): argument 238 self.__setbit(key, value) 264 def __set__(self, instance, value): argument [all …]
|