Home
last modified time | relevance | path

Searched refs:UINT32_MAX (Results 1 – 25 of 111) sorted by relevance

12345

/xnu-8019.80.24/iokit/Kernel/
H A DIOSharedDataQueue.cpp92 if (size > UINT32_MAX - DATA_QUEUE_MEMORY_HEADER_SIZE - DATA_QUEUE_MEMORY_APPENDIX_SIZE) { in initWithCapacity()
198 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in peek()
200 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in peek()
229 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) { in enqueue()
239 if ((entrySize <= UINT32_MAX - tail) && in enqueue()
342 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in dequeue()
345 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in dequeue()
351 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in dequeue()
360 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in dequeue()
361 (entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headOffset) || in dequeue()
H A DIODataQueue.cpp97 if (size > UINT32_MAX - DATA_QUEUE_MEMORY_HEADER_SIZE) { in initWithCapacity()
129 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in initWithEntries()
131 (numEntries > UINT32_MAX - 1) || in initWithEntries()
133 (entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX / (numEntries + 1))) { in initWithEntries()
169 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) { in enqueue()
186 if ((entrySize <= UINT32_MAX - tail) && in enqueue()
/xnu-8019.80.24/iokit/DriverKit/
H A Dbounded_array_ref.h86 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
98 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
114 if (__improbable(last - first > UINT32_MAX)) { in bounded_array_ref()
126 if (__improbable(data.size() > UINT32_MAX)) { in bounded_array_ref()
138 if (__improbable(N > UINT32_MAX)) { in bounded_array_ref()
H A Dsafe_allocation.h193 if (__improbable(n > UINT32_MAX)) {
212 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
230 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
/xnu-8019.80.24/libkern/libkern/c++/
H A Dbounded_array_ref.h86 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
98 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
114 if (__improbable(last - first > UINT32_MAX)) { in bounded_array_ref()
126 if (__improbable(data.size() > UINT32_MAX)) { in bounded_array_ref()
138 if (__improbable(N > UINT32_MAX)) { in bounded_array_ref()
H A Dsafe_allocation.h193 if (__improbable(n > UINT32_MAX)) {
212 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
230 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
/xnu-8019.80.24/iokit/System/
H A DIODataQueueDispatchSourceShared.h329 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in Peek()
331 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in Peek()
344 if ((dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in Peek()
414 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in DequeueWithCoalesce()
417 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in DequeueWithCoalesce()
428 if ((dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in DequeueWithCoalesce()
437 if ((headSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in DequeueWithCoalesce()
438 (headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headOffset) || in DequeueWithCoalesce()
529 if ((entrySize <= (UINT32_MAX - tail)) && in EnqueueWithCoalesce()
/xnu-8019.80.24/tests/
H A Ddisk_mount_conditioner.c114 T_ASSERT_LT(newinfo.ioqueue_depth, UINT32_MAX, "ioqueue_depth is the value from the mount"); in verify_mount_fallback_values()
115 T_ASSERT_LT(newinfo.maxreadcnt, UINT32_MAX, "maxreadcnt is value from the mount"); in verify_mount_fallback_values()
116 T_ASSERT_LT(newinfo.maxwritecnt, UINT32_MAX, "maxwritecnt is value from the mount"); in verify_mount_fallback_values()
117 T_ASSERT_LT(newinfo.segreadcnt, UINT32_MAX, "segreadcnt is value from the mount"); in verify_mount_fallback_values()
118 T_ASSERT_LT(newinfo.segwritecnt, UINT32_MAX, "segwritecnt is value from the mount"); in verify_mount_fallback_values()
147 memset(&info, UINT32_MAX, sizeof(info));
172 memset(&info, UINT32_MAX, sizeof(info));
194 memset(&info, UINT32_MAX, sizeof(info));
/xnu-8019.80.24/EXTERNAL_HEADERS/
H A Dstdint.h130 #define UINT32_MAX 4294967295U macro
146 #define UINT_LEAST32_MAX UINT32_MAX
162 #define UINT_FAST32_MAX UINT32_MAX
/xnu-8019.80.24/bsd/vfs/
H A Dvfs_support.c744 assert(ap->a_size <= UINT32_MAX); in nop_pagein()
754 assert(ap->a_size <= UINT32_MAX); in err_pagein()
775 assert(ap->a_size <= UINT32_MAX); in nop_pageout()
785 assert(ap->a_size <= UINT32_MAX); in err_pageout()
/xnu-8019.80.24/bsd/kern/
H A Dkern_physio.c173 assert(iosize <= UINT32_MAX); in physio()
220 assert(0 <= done && done <= UINT32_MAX); in physio()
H A Dkern_memorystatus_freeze.c230 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_force_new_interval()
232 memorystatus_freeze_start_normal_throttle_interval((uint32_t) MIN(new_budget, UINT32_MAX), now_ts); in memorystatus_freeze_force_new_interval()
414 …CTOR_UINT(_kern, memorystatus_freeze_pages_min, &memorystatus_freeze_pages_min, 0, UINT32_MAX, "");
415 …CTOR_UINT(_kern, memorystatus_freeze_pages_max, &memorystatus_freeze_pages_max, 0, UINT32_MAX, "");
416 …T(_kern, memorystatus_freeze_processes_max, &memorystatus_frozen_processes_max, 0, UINT32_MAX, "");
418 …ze_private_shared_pages_ratio, &memorystatus_freeze_private_shared_pages_ratio, 0, UINT32_MAX, "");
419 …n, memorystatus_freeze_min_processes, &memorystatus_freeze_suspended_threshold, 0, UINT32_MAX, "");
452 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX));
465 …orystatus_max_freeze_demotions_daily, &memorystatus_max_frozen_demotions_daily, 0, UINT32_MAX, "");
470 …tus_thaw_count_demotion_threshold, &memorystatus_thaw_count_demotion_threshold, 0, UINT32_MAX, "");
[all …]
H A Dmach_fat.c279 if ((UINT32_MAX - i_size) < i_begin) { in fatfile_validate_fatarches()
296 if ((UINT32_MAX - j_size) < j_begin) { in fatfile_validate_fatarches()
/xnu-8019.80.24/bsd/sys/
H A Dreason.h153 (code) = (code) | (((osr_namespace) & ((uint64_t)UINT32_MAX)) << 32)
155 (code) = (code) | ((osr_code) & ((uint64_t)UINT32_MAX))
/xnu-8019.80.24/osfmk/arm/
H A Dmonotonic.h35 #define MT_CORE_MAXVAL UINT32_MAX
/xnu-8019.80.24/bsd/net/
H A Dkpi_interface.c416 ifp->if_baudrate = (br > UINT32_MAX) ? UINT32_MAX : (uint32_t)br; in ifnet_allocate_extended()
1404 ifp->if_baudrate = (baudrate > UINT32_MAX) ? UINT32_MAX : (uint32_t)baudrate; in ifnet_set_baudrate()
1444 ifp->if_output_bw.eff_bw > UINT32_MAX ? in ifnet_set_link_status_outbw()
1445 UINT32_MAX : in ifnet_set_link_status_outbw()
1452 ifp->if_output_bw.max_bw > UINT32_MAX ? in ifnet_set_link_status_outbw()
1453 UINT32_MAX : in ifnet_set_link_status_outbw()
1490 ifp->if_baudrate = (br > UINT32_MAX) ? UINT32_MAX : (uint32_t)br; in ifnet_set_output_bandwidths()
1526 ifp->if_input_bw.eff_bw > UINT32_MAX ? in ifnet_set_link_status_inbw()
1527 UINT32_MAX : in ifnet_set_link_status_inbw()
1533 sr->dl_max_bandwidth = ifp->if_input_bw.max_bw > UINT32_MAX ? in ifnet_set_link_status_inbw()
[all …]
/xnu-8019.80.24/tests/ktrace/
H A Dkdebug_coproc_tests.c165 uint64_t arg_timestamp = (tp->arg1 & UINT32_MAX) | (tp->arg2 << 32); in expect_convert_between_abs_cont()
184 uint64_t arg_timestamp = (tp->arg1 & UINT32_MAX) | (tp->arg2 << 32); in expect_convert_between_abs_cont()
/xnu-8019.80.24/osfmk/atm/
H A Datm_types.h65 #define ATM_SUBAID32_MAX (UINT32_MAX)
/xnu-8019.80.24/osfmk/kperf/
H A Dbuffer.h51 #define LOWER_32(U64) ((U64) & (UINT32_MAX))
53 #define ENCODE_LOWER_64(U32) (((uint64_t)(U32)) & (UINT32_MAX))
H A Dkdebug_trigger.c85 [KPERF_KDEBUG_FILTER_DEBUGID_FN] = UINT32_MAX,
/xnu-8019.80.24/osfmk/kdp/output_stages/
H A Dout_aea.c170 if (length <= UINT32_MAX) { in aea_stage_outproc()
173 chunk = UINT32_MAX; in aea_stage_outproc()
/xnu-8019.80.24/osfmk/mach/
H A Dvm_statistics.h182 #define VM_STATISTICS_TRUNCATE_TO_32_BIT(value) ((uint32_t)(((value) > UINT32_MAX ) ? UINT32_MAX : …
H A Dvm_types.h70 #define PPNUM_MAX UINT32_MAX
/xnu-8019.80.24/osfmk/vm/
H A Dvm_purgeable_internal.h51 #define TOKEN_COUNT_MAX UINT32_MAX
/xnu-8019.80.24/osfmk/ipc/
H A Dipc_entry.h105 #define IPC_ENTRY_INDEX_MAX (UINT32_MAX)

12345