Home
last modified time | relevance | path

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

123456789

/xnu-11215/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 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 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()
348 error = copyin(buffer, &limit, MIN(bufsize, sizeof(limit))); in coalition_ledger_logical_writes_limit()
H A Dkern_memorystatus_freeze.c236 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_force_new_interval()
398 processes_frozen_xpc_service = MIN(processes_frozen_xpc_service, processes_frozen); in get_thaw_percentage_fg_non_xpc_service()
452 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX));
1094 buffer_size = MIN(list_size, INT32_MAX); in memorystatus_freezer_get_status()
1148 buffer_size = MIN(buffer_size, sizeof(global_frozen_procs_t)); in memorystatus_freezer_get_procs()
1575 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_reset_interval()
1859 max_pages = MIN(max_pages, UINT32_MAX); in memorystatus_freeze_process()
2534 return (uint32_t) MIN(new_budget, UINT32_MAX); in memorystatus_freeze_calculate_new_budget()
2720 return copyout(&new_budget, req->oldptr, MIN(sizeof(req->oldlen), sizeof(new_budget)));
2747 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_out_of_budget()
[all …]
H A Dtty_dev.c647 cc = MIN((int)uio_resid(uio), (int)sizeof(tio32));
654 cc = MIN((int)uio_resid(uio), (int)sizeof(tio64));
660 cc = MIN((int)uio_resid(uio), (int)sizeof(tp->t_termios));
695 cc = q_to_b(&tp->t_outq, (u_char *)buf, MIN((int)uio_resid(uio), BUFSIZ));
899 cc = MIN((int)uio_resid(uio), BUFSIZ);
/xnu-11215/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-11215/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-11215/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.c223 return MIN(GAIN_CONSTANT, tcp_ceil(2 * target_qdelay / in ledbat_gain()
287 update = (uint32_t)(MIN(((double)qdelay / target_qdelay - 1), 0.5) * in ledbat_pp_congestion_avd()
341 update = MIN(bytes_acked, TCP_CC_CWND_INIT_PKTS * in ledbat_pp_ack_rcvd()
358 update = MIN(tp->t_bytes_acked / gain_factor, in ledbat_pp_ack_rcvd()
/xnu-11215/bsd/sys/
H A Dparam.h224 #ifndef MIN
225 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
/xnu-11215/osfmk/kern/
H A Dmisc_protos.h51 #ifndef MIN
52 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
H A Dbsd_kern.c1107 ptinfo->pti_faults = (int32_t) MIN(counter_load(&task->faults), INT32_MAX); in fill_taskprocinfo()
1108 ptinfo->pti_pageins = (int32_t) MIN(counter_load(&task->pageins), INT32_MAX); in fill_taskprocinfo()
1109 ptinfo->pti_cow_faults = (int32_t) MIN(counter_load(&task->cow_faults), INT32_MAX); in fill_taskprocinfo()
1110 ptinfo->pti_messages_sent = (int32_t) MIN(counter_load(&task->messages_sent), INT32_MAX); in fill_taskprocinfo()
1111 ptinfo->pti_messages_received = (int32_t) MIN(counter_load(&task->messages_received), INT32_MAX); in fill_taskprocinfo()
1112 ptinfo->pti_syscalls_mach = (int32_t) MIN(task->syscalls_mach + syscalls_mach, INT32_MAX); in fill_taskprocinfo()
1113 ptinfo->pti_syscalls_unix = (int32_t) MIN(task->syscalls_unix + syscalls_unix, INT32_MAX); in fill_taskprocinfo()
1114 ptinfo->pti_csw = (int32_t) MIN(task->c_switch + cswitch, INT32_MAX); in fill_taskprocinfo()
/xnu-11215/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-11215/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-11215/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-11215/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-11215/pexpert/arm/hwtrace/
H A Dhwtrace.c330 #ifndef MIN
331 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
399 const uint32_t percent = MIN(100, panic_trace_partial_percent); in panic_trace_apply_partial_policy()
/xnu-11215/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()
570 space_needed = MIN(space_needed, logmem_max_size(ctx->ctx_logmem)); in os_log_context_encode()
/xnu-11215/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-11215/osfmk/kdp/
H A Dkdp_common.c233 size_t cur_size = (uint32_t) MIN(src_rem, dst_rem); in kdp_generic_copyin()
234 cur_size = MIN(cur_size, rem); in kdp_generic_copyin()
300 validated = MIN(src_rem, dst_rem); in kdp_generic_copyin_string_slowpath()
/xnu-11215/bsd/dev/arm/
H A Dstubs.c51 len = MIN(maxlen, slen); in copyoutstr()
/xnu-11215/bsd/net/
H A Dif_pflog.h66 #define PFLOGIF_ZONE_MAX_ELEM MIN(IFNETS_MAX, PFLOGIFS_MAX)
/xnu-11215/bsd/skywalk/packet/
H A Dpacket_copy.c244 clen = (uint16_t)MIN(len, sblen); in _pkt_copyaddr_sum()
270 clen = (uint16_t)MIN(len, sblen); in _pkt_copyaddr_sum()
438 clen = MIN(len, sblen); in _pkt_copypkt_sum()
439 clen = MIN(clen, dlim); in _pkt_copypkt_sum()
553 clen = MIN(len, sblen); in pkt_sum()
582 clen = MIN(len, sblen); in pkt_sum()
1094 count = MIN(count, (unsigned)len); in m_copypkt_sum()
1095 count0 = count = MIN(count, dlim); in m_copypkt_sum()
1483 uint32_t tmp_len = MIN(remaining_len, in pkt_copy_to_mbuf()
1696 uint32_t tmp_len = MIN(remaining_len, in pkt_copy_multi_buflet_to_mbuf()
[all …]
/xnu-11215/bsd/tests/
H A Dbsd_tests.c257 length_to_copy = MIN((uint32_t)(strlen(version) + 1), OSVERSIZE); in xnupost_export_testdata()
263 length_to_copy = MIN((uint32_t)(strlen(PE_boot_args()) + 1), BOOT_LINE_LENGTH); in xnupost_export_testdata()
/xnu-11215/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()

123456789