Home
last modified time | relevance | path

Searched refs:MIN (Results 1 – 25 of 232) sorted by relevance

12345678910

/xnu-12377.81.4/bsd/kern/
H A Dsys_recount.c111 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 Dsys_coalition.c272 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 Dsubr_log_stream.c405 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 Dkern_memorystatus_freeze.c261 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 Dvm_shared_region_xnu.h148 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 DOSLib.h62 *__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 Dtcp_rledbat.c109 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 Dtcp_ledbat.c225 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 Dparam.h224 #ifndef MIN
225 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
/xnu-12377.81.4/bsd/nfs/
H A Dxdr_subs.h234 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 Drandomdev.c191 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 Dmisc_protos.h51 #ifndef MIN
52 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
H A Dmpsc_ring.c230 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 Dbsd_kern.c1134 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 Dtest_file_helper.c67 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 Dhwtrace.c336 #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 Dif_mib.c196 error = SYSCTL_OUT(req, ifmd_supp, MIN(sizeof(*ifmd_supp),
221 error = SYSCTL_OUT(req, ifmd_lh, MIN(sizeof(struct if_linkheuristics),
H A Dif_pflog.h66 #define PFLOGIF_ZONE_MAX_ELEM MIN(IFNETS_MAX, PFLOGIFS_MAX)
/xnu-12377.81.4/libkern/os/
H A Dlog_encode.c155 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 Dpmap_common.c313 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 Dkdp_common.c251 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 Dstubs.c51 len = MIN(maxlen, slen); in copyoutstr()
/xnu-12377.81.4/bsd/skywalk/packet/
H A Dpacket_copy.c248 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 Dmisc_needed_deps.c5 #ifndef MIN
6 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
/xnu-12377.81.4/tests/
H A Dbpf_write.c266 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()

12345678910