Home
last modified time | relevance | path

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

12345

/xnu-10002.41.9/iokit/Kernel/
H A DIOSharedDataQueue.cpp93 if (size > UINT32_MAX - DATA_QUEUE_MEMORY_HEADER_SIZE - DATA_QUEUE_MEMORY_APPENDIX_SIZE) { in initWithCapacity()
200 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in peek()
202 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in peek()
231 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) { in enqueue()
241 if ((entrySize <= UINT32_MAX - tail) && in enqueue()
344 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in dequeue()
347 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in dequeue()
353 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in dequeue()
362 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in dequeue()
363 (entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headOffset) || in dequeue()
H A DIODataQueue.cpp98 if (size > UINT32_MAX - DATA_QUEUE_MEMORY_HEADER_SIZE) { in initWithCapacity()
130 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in initWithEntries()
132 (numEntries > UINT32_MAX - 1) || in initWithEntries()
134 (entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX / (numEntries + 1))) { in initWithEntries()
172 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) { in enqueue()
189 if ((entrySize <= UINT32_MAX - tail) && in enqueue()
/xnu-10002.41.9/libkern/libkern/c++/
H A Dbounded_array_ref.h87 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
99 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
115 if (__improbable(last - first > UINT32_MAX)) { in bounded_array_ref()
127 if (__improbable(data.size() > UINT32_MAX)) { in bounded_array_ref()
139 if (__improbable(N > UINT32_MAX)) { in bounded_array_ref()
H A DOSLib.h62 *__countp = (uint32_t)MIN(__kar.size / sizeof(ty), UINT32_MAX); \
75 *__countp = (uint32_t)MIN(__kar.size / sizeof(ty), UINT32_MAX); \
H A Dsafe_allocation.h197 if (__improbable(n > UINT32_MAX)) {
216 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
234 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
/xnu-10002.41.9/iokit/DriverKit/
H A Dbounded_array_ref.h87 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
99 if (__improbable(n > UINT32_MAX)) { in bounded_array_ref()
115 if (__improbable(last - first > UINT32_MAX)) { in bounded_array_ref()
127 if (__improbable(data.size() > UINT32_MAX)) { in bounded_array_ref()
139 if (__improbable(N > UINT32_MAX)) { in bounded_array_ref()
H A Dsafe_allocation.h197 if (__improbable(n > UINT32_MAX)) {
216 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
234 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
/xnu-10002.41.9/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-10002.41.9/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-10002.41.9/EXTERNAL_HEADERS/
H A Dstdint.h139 #define UINT32_MAX 4294967295U macro
155 #define UINT_LEAST32_MAX UINT32_MAX
171 #define UINT_FAST32_MAX UINT32_MAX
/xnu-10002.41.9/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-10002.41.9/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.c226 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_force_new_interval()
228 memorystatus_freeze_start_normal_throttle_interval((uint32_t) MIN(new_budget, UINT32_MAX), now_ts); in memorystatus_freeze_force_new_interval()
404 …CTOR_UINT(_kern, memorystatus_freeze_pages_min, &memorystatus_freeze_pages_min, 0, UINT32_MAX, "");
405 …CTOR_UINT(_kern, memorystatus_freeze_pages_max, &memorystatus_freeze_pages_max, 0, UINT32_MAX, "");
406 …T(_kern, memorystatus_freeze_processes_max, &memorystatus_frozen_processes_max, 0, UINT32_MAX, "");
408 …ze_private_shared_pages_ratio, &memorystatus_freeze_private_shared_pages_ratio, 0, UINT32_MAX, "");
409 …n, memorystatus_freeze_min_processes, &memorystatus_freeze_suspended_threshold, 0, UINT32_MAX, "");
442 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX));
455 …orystatus_max_freeze_demotions_daily, &memorystatus_max_frozen_demotions_daily, 0, UINT32_MAX, "");
460 …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()
301 if ((UINT32_MAX - j_size) < j_begin) { in fatfile_validate_fatarches()
H A Dstackshot.c238 toadd = UINT32_MAX; in stackshot_entitlement_do_report()
352 post_overflow, (long long)post_overflow_counts, 2 * (long long)UINT32_MAX);
361 post_overflow_counts != 2 * (long long)UINT32_MAX) {
/xnu-10002.41.9/bsd/sys/
H A Dreason.h159 (code) = (code) | (((osr_namespace) & ((uint64_t)UINT32_MAX)) << 32)
161 (code) = (code) | ((osr_code) & ((uint64_t)UINT32_MAX))
/xnu-10002.41.9/bsd/net/
H A Dkpi_interface.c420 ifp->if_baudrate = (br > UINT32_MAX) ? UINT32_MAX : (uint32_t)br; in ifnet_allocate_extended()
1450 ifp->if_baudrate = (baudrate > UINT32_MAX) ? UINT32_MAX : (uint32_t)baudrate; in ifnet_set_baudrate()
1490 ifp->if_output_bw.eff_bw > UINT32_MAX ? in ifnet_set_link_status_outbw()
1491 UINT32_MAX : in ifnet_set_link_status_outbw()
1498 ifp->if_output_bw.max_bw > UINT32_MAX ? in ifnet_set_link_status_outbw()
1499 UINT32_MAX : in ifnet_set_link_status_outbw()
1536 ifp->if_baudrate = (br > UINT32_MAX) ? UINT32_MAX : (uint32_t)br; in ifnet_set_output_bandwidths()
1572 ifp->if_input_bw.eff_bw > UINT32_MAX ? in ifnet_set_link_status_inbw()
1573 UINT32_MAX : in ifnet_set_link_status_inbw()
1579 sr->dl_max_bandwidth = ifp->if_input_bw.max_bw > UINT32_MAX ? in ifnet_set_link_status_inbw()
[all …]
/xnu-10002.41.9/osfmk/atm/
H A Datm_types.h65 #define ATM_SUBAID32_MAX (UINT32_MAX)
/xnu-10002.41.9/tests/ktrace/
H A Dkdebug_coproc_tests.c199 uint64_t arg_timestamp = (tp->arg1 & UINT32_MAX) | (tp->arg2 << 32); in expect_convert_between_abs_cont()
218 uint64_t arg_timestamp = (tp->arg1 & UINT32_MAX) | (tp->arg2 << 32); in expect_convert_between_abs_cont()
/xnu-10002.41.9/bsd/nfs/
H A Dnfs.h250 assert(a_length <= UINT32_MAX); uio_addiov(a_uio, a_baseaddr, (uint32_t)(a_length));
253 uint32_t bytes32 = bytes > UINT32_MAX ? UINT32_MAX : (uint32_t)(bytes); \
255 if (bytes > UINT32_MAX) { \
256 bzero(off + bytes32, (uint32_t)(bytes - UINT32_MAX)); \
/xnu-10002.41.9/osfmk/vm/
H A Dvm_purgeable_internal.h51 #define TOKEN_COUNT_MAX UINT32_MAX
/xnu-10002.41.9/osfmk/kdp/output_stages/
H A Dout_aea.c171 if (length <= UINT32_MAX) { in aea_stage_outproc()
174 chunk = UINT32_MAX; in aea_stage_outproc()
/xnu-10002.41.9/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-10002.41.9/osfmk/mach/
H A Dvm_statistics.h182 #define VM_STATISTICS_TRUNCATE_TO_32_BIT(value) ((uint32_t)(((value) > UINT32_MAX ) ? UINT32_MAX : …

12345