| /xnu-12377.81.4/bsd/kern/ |
| H A D | sys_recount.c | 111 return copyout(&counts, buf, MIN(sizeof(counts), size)); in _selfcounts() 115 return copyout(&counts, buf, MIN(sizeof(counts), size)); in _selfcounts() 119 return copyout(&counts, buf, MIN(sizeof(counts), size)); in _selfcounts() 137 const size_t counts_len = MIN(MIN(recount_topo_count(RCT_TOPO_CPU_KIND), in _selfcounts_perf_level() 147 return copyout(&counts, buf, MIN(sizeof(counts[0]) * counts_len, size)); in _selfcounts_perf_level() 155 return copyout(&counts, buf, MIN(sizeof(counts[0]) * counts_len, size)); in _selfcounts_perf_level() 163 return copyout(&counts, buf, MIN(sizeof(counts[0]) * counts_len, size)); in _selfcounts_perf_level() 232 const size_t counts_len = MIN(recount_topo_count(RCT_TOPO_CPU_KIND), in proc_pidthreadcounts() 247 size_t copyout_size = MIN(sizeof(uint64_t) + in proc_pidthreadcounts()
|
| H A D | sys_coalition.c | 272 return copyout(&cru, buffer, MIN(bufsize, sizeof(cru))); in coalition_info_resource_usage() 288 return copyout(&c_debuginfo, buffer, MIN(bufsize, sizeof(c_debuginfo))); in coalition_info_get_debug_info() 303 error = copyin(buffer, name, MIN(bufsize, sizeof(name) - 1)); in coalition_info_set_name_internal() 324 error = copyin(buffer, &flags, MIN(bufsize, sizeof(flags))); in coalition_info_efficiency() 349 size_t alloc_count = MIN(size_in / sizeof(pid_t), (user_size_t)COALITION_INFO_PID_LIST_MAX_PIDS); in coalition_info_pid_list() 364 user_size_t size_out = MIN(alloc_count * sizeof(pid_t), ntasks * sizeof(pid_t)); in coalition_info_pid_list() 386 error = copyin(buffer, &limit, MIN(bufsize, sizeof(limit))); in coalition_ledger_logical_writes_limit()
|
| H A D | subr_log_stream.c | 405 const size_t remains = MIN(n, rb_size - offset); in rbuf_copy() 419 const size_t remains = MIN(n, rb_size - offset); in rbuf_set() 434 const size_t remains = MIN(n, rb_size - offset); in rbuf_read() 523 size_t blk_avail = MIN(log_stream_written(ls, lc->lc_stream_pos), in log_cache_refill() 877 if (log_size > MIN(uio_resid(uio), INT_MAX)) { in oslog_streamread() 1042 log_stream_size = MIN(log_stream_size, LOG_STREAM_MAX_SIZE); in oslog_stream_init() 1045 log_stream_cache_size = MIN(log_stream_cache_size, LOG_CACHE_MAX_SIZE); in oslog_stream_init() 1046 log_stream_cache_size = MIN(log_stream_cache_size, log_stream_size / 2); in oslog_stream_init()
|
| H A D | kern_memorystatus_freeze.c | 261 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_force_new_interval() 263 memorystatus_freeze_start_normal_throttle_interval((uint32_t) MIN(new_budget, UINT32_MAX), now_ts); in memorystatus_freeze_force_new_interval() 423 processes_frozen_xpc_service = MIN(processes_frozen_xpc_service, processes_frozen); in get_thaw_percentage_fg_non_xpc_service() 424 processes_thawed_fg_xpc_service = MIN(processes_thawed_fg_xpc_service, processes_thawed_fg); in get_thaw_percentage_fg_non_xpc_service() 471 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); 1113 buffer_size = MIN(list_size, INT32_MAX); in memorystatus_freezer_get_status() 1167 buffer_size = MIN(buffer_size, sizeof(global_frozen_procs_t)); in memorystatus_freezer_get_procs() 1594 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_reset_interval() 1857 max_pages = MIN(memorystatus_freeze_pages_max, memorystatus_freeze_budget_pages_remaining); in memorystatus_freeze_process() 1878 max_pages = MIN(max_pages, UINT32_MAX); in memorystatus_freeze_process() [all …]
|
| /xnu-12377.81.4/osfmk/vm/ |
| H A D | vm_shared_region_xnu.h | 148 MIN(sizeof(struct vm_shared_region_slide_info_entry_v1), \ 149 MIN(sizeof(struct vm_shared_region_slide_info_entry_v2), \ 150 MIN(sizeof(struct vm_shared_region_slide_info_entry_v3), \ 151 MIN(sizeof(struct vm_shared_region_slide_info_entry_v4), \
|
| /xnu-12377.81.4/libkern/libkern/c++/ |
| H A D | OSLib.h | 62 *__countp = (uint32_t)MIN(__kar.size / sizeof(ty), UINT32_MAX); \ 75 *__countp = (uint32_t)MIN(__kar.size / sizeof(ty), UINT32_MAX); \
|
| /xnu-12377.81.4/bsd/netinet/ |
| H A D | tcp_rledbat.c | 109 return MIN(GAIN_CONSTANT, tcp_ceil(2 * target_qdelay / in rledbat_gain() 189 update = (uint32_t)(MIN(((double)qdelay / target_qdelay - 1), 0.5) * in rledbat_congestion_avd() 301 update = MIN(segment_len, TCP_CC_CWND_INIT_PKTS * in tcp_rledbat_data_rcvd() 325 update = MIN(tp->t_rlstate.rcvd_bytes / gain_factor, in tcp_rledbat_data_rcvd() 415 tp->t_rlstate.ssthresh = MIN(tp->t_rlstate.ssthresh, in tcp_rledbat_switch_to()
|
| H A D | tcp_ledbat.c | 225 return MIN(GAIN_CONSTANT, tcp_ceil(2 * target_qdelay / in ledbat_gain() 289 update = (uint32_t)(MIN(((double)qdelay / target_qdelay - 1), 0.5) * in ledbat_pp_congestion_avd() 343 update = MIN(bytes_acked, TCP_CC_CWND_INIT_PKTS * in ledbat_pp_ack_rcvd() 360 update = MIN(tp->t_bytes_acked / gain_factor, in ledbat_pp_ack_rcvd()
|
| /xnu-12377.81.4/bsd/sys/ |
| H A D | param.h | 224 #ifndef MIN 225 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
|
| /xnu-12377.81.4/bsd/nfs/ |
| H A D | xdr_subs.h | 234 tlen = MIN(xbp->xb_left, len); in xb_advance() 395 tlen = MIN(xbp->xb_left, len); in xb_add_bytes() 434 tlen = MIN(xbp->xb_left, len); in xb_get_bytes() 553 for (__i=0; __i < MIN(__len, (uint32_t)(LEN)); __i++) \
|
| /xnu-12377.81.4/bsd/dev/random/ |
| H A D | randomdev.c | 191 size_t bytesToInput = MIN((size_t)uio_resid(uio), sizeof(rdBuffer)); in random_write() 216 size_t bytesToRead = MIN(bytes_remaining, sizeof(buffer)); in random_read()
|
| /xnu-12377.81.4/osfmk/kern/ |
| H A D | misc_protos.h | 51 #ifndef MIN 52 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
|
| H A D | mpsc_ring.c | 230 uint32_t const size_contig = MIN(left_contig, size); in _mpsc_ring_copy() 318 head_tail.mrht_head = MIN(head_tail.mrht_head, hold); in mpsc_ring_read_start()
|
| H A D | bsd_kern.c | 1134 ptinfo->pti_faults = (int32_t) MIN(counter_load(&task->faults), INT32_MAX); in fill_taskprocinfo() 1135 ptinfo->pti_pageins = (int32_t) MIN(counter_load(&task->pageins), INT32_MAX); in fill_taskprocinfo() 1136 ptinfo->pti_cow_faults = (int32_t) MIN(counter_load(&task->cow_faults), INT32_MAX); in fill_taskprocinfo() 1137 ptinfo->pti_messages_sent = (int32_t) MIN(counter_load(&task->messages_sent), INT32_MAX); in fill_taskprocinfo() 1138 ptinfo->pti_messages_received = (int32_t) MIN(counter_load(&task->messages_received), INT32_MAX); in fill_taskprocinfo() 1139 ptinfo->pti_syscalls_mach = (int32_t) MIN(task->syscalls_mach + syscalls_mach, INT32_MAX); in fill_taskprocinfo() 1140 ptinfo->pti_syscalls_unix = (int32_t) MIN(task->syscalls_unix + syscalls_unix, INT32_MAX); in fill_taskprocinfo() 1141 ptinfo->pti_csw = (int32_t) MIN(task->c_switch + cswitch, INT32_MAX); in fill_taskprocinfo()
|
| /xnu-12377.81.4/tools/tests/perf_index/ |
| H A D | test_file_helper.c | 67 left = MIN(length, max_file_size / num_threads); in test_file_read_setup() 101 filesize = MIN(length, max_file_size / num_threads); in test_file_read()
|
| /xnu-12377.81.4/pexpert/arm/hwtrace/ |
| H A D | hwtrace.c | 336 #ifndef MIN 337 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro 412 const uint32_t percent = MIN(100, panic_trace_partial_percent); in panic_trace_apply_partial_policy()
|
| /xnu-12377.81.4/bsd/net/ |
| H A D | if_mib.c | 196 error = SYSCTL_OUT(req, ifmd_supp, MIN(sizeof(*ifmd_supp), 221 error = SYSCTL_OUT(req, ifmd_lh, MIN(sizeof(struct if_linkheuristics),
|
| H A D | if_pflog.h | 66 #define PFLOGIF_ZONE_MAX_ELEM MIN(IFNETS_MAX, PFLOGIFS_MAX)
|
| /xnu-12377.81.4/libkern/os/ |
| H A D | log_encode.c | 155 const size_t final_arg_len = MIN(arg_len, UINT16_MAX); in log_create_range() 225 MIN(range->length, ctx->ctx_content_sz - ctx->ctx_content_off)); in log_encode_public_data() 361 precision = MIN(precision, LOG_FMT_MAX_PRECISION); in log_encode_fmt() 582 space_needed = MIN(space_needed, logmem_max_size(ctx->ctx_logmem)); in os_log_context_encode()
|
| /xnu-12377.81.4/osfmk/i386/ |
| H A D | pmap_common.c | 313 int i, j, e = MIN(pmap_pagetable_corruption_incidents, PMAP_PAGETABLE_CORRUPTION_MAX_LOG); 355 pv_hashed_low_water_mark = MIN(pv_hashed_low_water_mark, 16000); in mapping_free_prime() 358 pv_hashed_kern_low_water_mark = MIN(pv_hashed_kern_low_water_mark, 16000); in mapping_free_prime()
|
| /xnu-12377.81.4/osfmk/kdp/ |
| H A D | kdp_common.c | 251 size_t cur_size = (uint32_t) MIN(src_rem, dst_rem); in kdp_generic_copyin() 252 cur_size = MIN(cur_size, rem); in kdp_generic_copyin() 329 validated = MIN(src_rem, dst_rem); in kdp_generic_copyin_string_slowpath()
|
| /xnu-12377.81.4/bsd/dev/arm/ |
| H A D | stubs.c | 51 len = MIN(maxlen, slen); in copyoutstr()
|
| /xnu-12377.81.4/bsd/skywalk/packet/ |
| H A D | packet_copy.c | 248 clen = (uint16_t)MIN(len, sblen); in _pkt_copyaddr_sum() 274 clen = (uint16_t)MIN(len, sblen); in _pkt_copyaddr_sum() 446 clen = MIN(len, sblen); in _pkt_copypkt_sum() 447 clen = MIN(clen, dlim); in _pkt_copypkt_sum() 561 clen = MIN(len, sblen); in pkt_sum() 590 clen = MIN(len, sblen); in pkt_sum() 1117 count = MIN(count, (unsigned)len); in m_copypkt_sum() 1118 count0 = count = MIN(count, dlim); in m_copypkt_sum() 1526 uint32_t tmp_len = MIN(remaining_len, in pkt_copy_to_mbuf() 1757 uint32_t tmp_len = MIN(remaining_len, in pkt_copy_multi_buflet_to_mbuf() [all …]
|
| /xnu-12377.81.4/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_deps.c | 5 #ifndef MIN 6 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
|
| /xnu-12377.81.4/tests/ |
| H A D | bpf_write.c | 266 HexDump(pkt, MIN((size_t)nwritten, 512)); in do_bpf_write() 290 HexDump(buffer, MIN((size_t)(hp->bh_hdrlen + hp->bh_caplen), 512)); in do_bpf_write()
|