Home
last modified time | relevance | path

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

123456789

/xnu-10063.141.1/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.c238 return copyout(&cru, buffer, MIN(bufsize, sizeof(cru))); in coalition_info_resource_usage()
254 return copyout(&c_debuginfo, buffer, MIN(bufsize, sizeof(c_debuginfo))); in coalition_info_get_debug_info()
269 error = copyin(buffer, name, MIN(bufsize, sizeof(name) - 1)); in coalition_info_set_name_internal()
290 error = copyin(buffer, &flags, MIN(bufsize, sizeof(flags))); in coalition_info_efficiency()
314 error = copyin(buffer, &limit, MIN(bufsize, sizeof(limit))); in coalition_ledger_logical_writes_limit()
H A Dkern_memorystatus_freeze.c254 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_force_new_interval()
256 memorystatus_freeze_start_normal_throttle_interval((uint32_t) MIN(new_budget, UINT32_MAX), now_ts); in memorystatus_freeze_force_new_interval()
416 processes_frozen_xpc_service = MIN(processes_frozen_xpc_service, processes_frozen); in get_thaw_percentage_fg_non_xpc_service()
417 processes_thawed_fg_xpc_service = MIN(processes_thawed_fg_xpc_service, processes_thawed_fg); in get_thaw_percentage_fg_non_xpc_service()
470 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX));
1113 buffer_size = MIN(list_size, INT32_MAX); in memorystatus_freezer_get_status()
1169 buffer_size = MIN(buffer_size, sizeof(global_frozen_procs_t)); in memorystatus_freezer_get_procs()
1616 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_reset_interval()
1867 max_pages = MIN(memorystatus_freeze_pages_max, memorystatus_freeze_budget_pages_remaining); in memorystatus_freeze_process()
1888 max_pages = MIN(max_pages, UINT32_MAX); in memorystatus_freeze_process()
[all …]
H A Dkern_memorystatus_notify.c852 timestamps[index] = (uint32_t)MIN(UINT32_MAX, curr_ts_seconds); in mark_knote_send_time()
860 …footprint_history->kfh_starting_footprint = (uint32_t) MIN(UINT32_MAX, get_task_phys_footprint(tas… in mark_knote_send_time()
881 …uint32_t task_phys_footprint_mb = (uint32_t) MIN(UINT32_MAX, get_task_phys_footprint(task) / (2UL … in update_knote_footprint_history()
914 minutes_since_last_notification = MIN(minutes_since_warning, minutes_since_critical); in update_knote_footprint_history()
1162 *next_telemetry_update = MIN(*next_telemetry_update, telemetry_update); in vm_pressure_select_optimal_candidate_to_notify()
1394 next_telemetry_update = MIN(next_telemetry_update, telemetry_update); in update_footprints_for_telemetry()
1637 (uint16_t) MIN(UINT16_MAX, memorystatus_pressure_interval_telemetry.num_notifications_sent)); in memorystatus_update_vm_pressure()
/xnu-10063.141.1/osfmk/vm/
H A Dvm_shared_region.h203 MIN(sizeof(struct vm_shared_region_slide_info_entry_v1), \
204 MIN(sizeof(struct vm_shared_region_slide_info_entry_v2), \
205 MIN(sizeof(struct vm_shared_region_slide_info_entry_v3), \
206 MIN(sizeof(struct vm_shared_region_slide_info_entry_v4), \
/xnu-10063.141.1/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-10063.141.1/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-10063.141.1/bsd/sys/
H A Dparam.h224 #ifndef MIN
225 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
/xnu-10063.141.1/osfmk/kern/
H A Dmisc_protos.h51 #ifndef MIN
52 #define MIN(a, b) (((a)<(b))?(a):(b)) macro
H A Dbsd_kern.c1068 ptinfo->pti_faults = (int32_t) MIN(counter_load(&task->faults), INT32_MAX); in fill_taskprocinfo()
1069 ptinfo->pti_pageins = (int32_t) MIN(counter_load(&task->pageins), INT32_MAX); in fill_taskprocinfo()
1070 ptinfo->pti_cow_faults = (int32_t) MIN(counter_load(&task->cow_faults), INT32_MAX); in fill_taskprocinfo()
1071 ptinfo->pti_messages_sent = (int32_t) MIN(counter_load(&task->messages_sent), INT32_MAX); in fill_taskprocinfo()
1072 ptinfo->pti_messages_received = (int32_t) MIN(counter_load(&task->messages_received), INT32_MAX); in fill_taskprocinfo()
1073 ptinfo->pti_syscalls_mach = (int32_t) MIN(task->syscalls_mach + syscalls_mach, INT32_MAX); in fill_taskprocinfo()
1074 ptinfo->pti_syscalls_unix = (int32_t) MIN(task->syscalls_unix + syscalls_unix, INT32_MAX); in fill_taskprocinfo()
1075 ptinfo->pti_csw = (int32_t) MIN(task->c_switch + cswitch, INT32_MAX); in fill_taskprocinfo()
/xnu-10063.141.1/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-10063.141.1/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-10063.141.1/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-10063.141.1/pexpert/arm/hwtrace/
H A Dhwtrace.c334 #ifndef MIN
335 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
403 const uint32_t percent = MIN(100, panic_trace_partial_percent); in panic_trace_apply_partial_policy()
/xnu-10063.141.1/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-10063.141.1/bsd/dev/arm/
H A Dstubs.c50 len = MIN(maxlen, slen); in copyoutstr()
/xnu-10063.141.1/osfmk/i386/
H A Dpmap_common.c294 int i, j, e = MIN(pmap_pagetable_corruption_incidents, PMAP_PAGETABLE_CORRUPTION_MAX_LOG);
336 pv_hashed_low_water_mark = MIN(pv_hashed_low_water_mark, 16000); in mapping_free_prime()
339 pv_hashed_kern_low_water_mark = MIN(pv_hashed_kern_low_water_mark, 16000); in mapping_free_prime()
/xnu-10063.141.1/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-10063.141.1/bsd/net/
H A Dif_pflog.h66 #define PFLOGIF_ZONE_MAX_ELEM MIN(IFNETS_MAX, PFLOGIFS_MAX)
/xnu-10063.141.1/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()
420 clen = MIN(len, sblen); in _pkt_copypkt_sum()
421 clen = MIN(clen, dlim); in _pkt_copypkt_sum()
535 clen = MIN(len, sblen); in pkt_sum()
564 clen = MIN(len, sblen); in pkt_sum()
1070 count = MIN(count, (unsigned)len); in m_copypkt_sum()
1071 count0 = count = MIN(count, dlim); in m_copypkt_sum()
1453 uint32_t tmp_len = MIN(remaining_len, in pkt_copy_to_mbuf()
1666 uint32_t tmp_len = MIN(remaining_len, in pkt_copy_multi_buflet_to_mbuf()
[all …]
/xnu-10063.141.1/osfmk/prng/
H A Dprng_random.c243 n = MIN(nbytes, PAGE_SIZE); in read_erandom()
329 size_t n = MIN(numbytes, CCKPRNG_GENERATE_MAX_NBYTES); in read_random_generate()
/xnu-10063.141.1/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-10063.141.1/tests/
H A Dbpf_write.c285 HexDump(pkt, MIN((size_t)nwritten, 512)); in do_bpf_write()
309 HexDump(buffer, MIN((size_t)(hp->bh_hdrlen + hp->bh_caplen), 512)); in do_bpf_write()

123456789