Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 102) sorted by relevance

12345

/xnu-11215/osfmk/kperf/
H A Dkperf_kpc.c94 unsigned int max = (kpcd->configc + 3) / 4; in kperf_kpc_config_log() local
95 for (unsigned int i = 0; i < max; i++) { in kperf_kpc_config_log()
96 uint32_t flag = (i == 0) ? DBG_FUNC_START : ((i == (max - 1)) ? DBG_FUNC_END : DBG_FUNC_NONE); in kperf_kpc_config_log()
102 unsigned int max = (kpcd->configc + 1) / 2; in kperf_kpc_config_log() local
103 for (unsigned int i = 0; i < max; i++) { in kperf_kpc_config_log()
104 uint32_t flag = (i == 0) ? DBG_FUNC_START : ((i == (max - 1)) ? DBG_FUNC_END : DBG_FUNC_NONE); in kperf_kpc_config_log()
119 unsigned int max = (kpcd->counterc + 3) / 4; in kperf_kpc_log() local
121 for (unsigned int i = 0; i < max; i++) { in kperf_kpc_log()
122 uint32_t flag = (i == 0) ? DBG_FUNC_START : ((i == (max - 1)) ? DBG_FUNC_END : DBG_FUNC_NONE); in kperf_kpc_log()
131 unsigned int max = (kpcd->counterc + 1) / 2; in kperf_kpc_log()
[all …]
/xnu-11215/libkern/zlib/
H A Dinftrees.c66 unsigned min, max; /* minimum and maximum code lengths */ in inflate_table() local
138 for (max = MAXBITS; max >= 1; max--) in inflate_table()
139 if (count[max] != 0) break; in inflate_table()
140 if (root > max) root = max; in inflate_table()
141 if (max == 0) { /* no symbols to code at all */ in inflate_table()
161 if (left > 0 && (type == CODES || max != 1)) in inflate_table()
277 if (len == max) break; in inflate_table()
293 while (curr + drop < max) { in inflate_table()
/xnu-11215/osfmk/kern/
H A Dmk_sp.c81 int max, bas; in thread_set_policy() local
106 max = rr_limit->max_priority; in thread_set_policy()
107 if (invalid_pri(bas) || invalid_pri(max)) { in thread_set_policy()
127 max = fifo_limit->max_priority; in thread_set_policy()
128 if (invalid_pri(bas) || invalid_pri(max)) { in thread_set_policy()
149 max = ts_limit->max_priority; in thread_set_policy()
150 if (invalid_pri(bas) || invalid_pri(max)) { in thread_set_policy()
H A Dbsd_kern.c549 ledger_amount_t max; in get_task_phys_footprint_interval_max() local
554 return max; in get_task_phys_footprint_interval_max()
568 ledger_amount_t max; in get_task_phys_footprint_lifetime_max() local
573 return max; in get_task_phys_footprint_lifetime_max()
586 ledger_amount_t max; in get_task_phys_footprint_limit() local
588 ret = ledger_get_limit(task->ledger, task_ledgers.phys_footprint, &max); in get_task_phys_footprint_limit()
590 return max; in get_task_phys_footprint_limit()
802 ledger_amount_t max; in get_task_neural_nofootprint_total_interval_max() local
807 return max; in get_task_neural_nofootprint_total_interval_max()
818 ledger_amount_t max; in get_task_neural_nofootprint_total_lifetime_max() local
[all …]
H A Dtelemetry.h119 uint16_t max; member
139 if (comment >= des->base && comment <= des->max) { in find_brk_descriptor_by_comment()
H A Daffinity.c292 info->max = THREAD_AFFINITY_TAG_NULL; in task_affinity_info()
304 if (info->max == THREAD_AFFINITY_TAG_NULL || in task_affinity_info()
305 aset->aset_tag > (uint32_t) info->max) { in task_affinity_info()
306 info->max = aset->aset_tag; in task_affinity_info()
/xnu-11215/tools/tests/jitter/
H A Dtimer_jitter.c193 print_stats_us(const char *label, double avg, double max, double min, double stddev) in print_stats_us() argument
195 printf("Max %s: %.1lfus\n", label, max / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom))); in print_stats_us()
203 print_stats_fract(const char *label, double avg, double max, double min, double stddev) in print_stats_fract() argument
205 printf("Max %s jitter: %.1lf%%\n", label, max * 100); in print_stats_fract()
232 double avg, stddev, max, min; in main() local
410 compute_stats(jitter_arr, iterations, &avg, &max, &min, &stddev); in main()
414 print_stats_us("jitter", avg, max, min, stddev); in main()
423 compute_stats(wakeup_second_jitter_arr, iterations, &avg, &max, &min, &stddev); in main()
426 print_stats_us("second jitter", avg, max, min, stddev); in main()
/xnu-11215/tests/
H A Dtest_ip_drop_membership.c87 test_ip_drop_membership(uint32_t max) in test_ip_drop_membership() argument
92 if (max == 0) { in test_ip_drop_membership()
93 max = 1; in test_ip_drop_membership()
101 for (uint32_t i = 0; i < max; i++) { in test_ip_drop_membership()
H A Daqm_qdelay_utun.c225 char min[32], max[32], avg[32]; variable
230 nsec_to_str(ifcqs->ifqs_fq_codel_stats.fcls_max_qdelay, max);
233 T_LOG("min/max/avg qdelay %10s %10s %10s", min, max, avg);
249 nsec_to_str(ifcqs->ifqs_fq_codel_stats.fcls_max_qdelay, max);
252 T_LOG("min/max/avg qdelay %10s %10s %10s", min, max, avg);
/xnu-11215/libsyscall/mach/
H A Dstring.c71 int width, max = length; in _mach_vsnprintf() local
107 if (max > 0) { in _mach_vsnprintf()
110 return max - (length + 1); /* don't include the final NULL in the return value */ in _mach_vsnprintf()
/xnu-11215/bsd/netinet/
H A Dtcp_cc.c49 sndsb->sb_idealsize = min(max(tcp_sendspace, tp->snd_ssthresh), \
124 max(2 * tp->t_maxseg, TCP_CC_CWND_INIT_BYTES)); in tcp_cc_cwnd_init_or_reset()
293 tp->snd_cwnd = (max(tp->t_pipeack, tp->t_lossflightsize) >> 1); in tcp_cc_adjust_nonvalidated_cwnd()
295 tp->snd_cwnd = max(tp->snd_cwnd, tp->t_maxseg); in tcp_cc_adjust_nonvalidated_cwnd()
297 tp->snd_cwnd = max(tp->snd_cwnd, TCP_CC_CWND_INIT_BYTES); in tcp_cc_adjust_nonvalidated_cwnd()
H A Dtcp_cubic.c195 elapsed_time += max(tcp_cubic_use_minrtt, rtt); in tcp_cubic_update()
404 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_cubic_pre_fr()
406 win = (max(tp->t_pipeack, tp->t_lossflightsize)) >> 1; in tcp_cubic_pre_fr()
520 ncwnd = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_cubic_post_fr()
531 flight_size = max(ncwnd, flight_size); in tcp_cubic_post_fr()
543 tp->snd_cwnd = max(flight_size, tp->t_maxseg) + tp->t_maxseg; in tcp_cubic_post_fr()
H A Dtcp_newreno.c243 tp->snd_cwnd = max(ss, tp->t_maxseg) + tp->t_maxseg; in tcp_newreno_post_fr()
332 tp->snd_cwnd = max(tcp_initial_cwnd(tp), cwnd * tp->t_maxseg); in tcp_newreno_switch_cc()
/xnu-11215/bsd/sys/
H A Dsysctl.h571 #define __EXPERIMENT_FACTOR_SPEC(parent, name, p, min, max) \ argument
575 .max_value = max, \
580 #define EXPERIMENT_FACTOR_UINT(parent, name, ptr, min, max, descr) \ argument
581 __EXPERIMENT_FACTOR_SPEC(parent, name, ptr, min, max); \
585 #define EXPERIMENT_FACTOR_INT(parent, name, ptr, min, max, descr) \ argument
586 __EXPERIMENT_FACTOR_SPEC(parent, name, ptr, min, max); \
591 __EXPERIMENT_FACTOR_SPEC(parent, name, ptr, min, max); \
595 #define EXPERIMENT_FACTOR_LONG(parent, name, ptr, min, max, descr) \ argument
596 __EXPERIMENT_FACTOR_SPEC(parent, name, ptr, min, max); \
601 __EXPERIMENT_FACTOR_SPEC(parent, name, ptr, min, max); \
[all …]
/xnu-11215/osfmk/tests/
H A Dvm_parameter_validation_kern.c1385 0, KB16, copy, cur, max, VM_INHERIT_DEFAULT); in help_call_map_fn__allocate__prot_pairs()
1391 call_map_fn__allocate_fixed__prot_pairs(map_fn_t fn, MAP_T map, vm_prot_t cur, vm_prot_t max) in call_map_fn__allocate_fixed__prot_pairs() argument
1397 call_map_fn__allocate_fixed_copy__prot_pairs(map_fn_t fn, MAP_T map, vm_prot_t cur, vm_prot_t max) in call_map_fn__allocate_fixed_copy__prot_pairs() argument
1403 call_map_fn__allocate_anywhere__prot_pairs(map_fn_t fn, MAP_T map, vm_prot_t cur, vm_prot_t max) in call_map_fn__allocate_anywhere__prot_pairs() argument
1405 return help_call_map_fn__allocate__prot_pairs(fn, map, VM_FLAGS_ANYWHERE, false, cur, max); in call_map_fn__allocate_anywhere__prot_pairs()
1414 memobject, KB16, copy, cur, max, VM_INHERIT_DEFAULT); in help_call_map_fn__memobject__prot_pairs()
1421 call_map_fn__memobject_fixed__prot_pairs(map_fn_t fn, MAP_T map, vm_prot_t cur, vm_prot_t max) in call_map_fn__memobject_fixed__prot_pairs() argument
1433 call_map_fn__memobject_anywhere__prot_pairs(map_fn_t fn, MAP_T map, vm_prot_t cur, vm_prot_t max) in call_map_fn__memobject_anywhere__prot_pairs() argument
1435 return help_call_map_fn__memobject__prot_pairs(fn, map, VM_FLAGS_ANYWHERE, false, cur, max); in call_map_fn__memobject_anywhere__prot_pairs()
1676 call_ ## map_fn ## __ ## instance ## __prot_pairs(MAP_T map, vm_prot_t cur, vm_prot_t max) \
[all …]
/xnu-11215/bsd/net/pktsched/
H A Dpktsched_netem.c879 uint64_t child, parent, max; in heap_extract() local
891 max = h->size - 1; in heap_extract()
892 while (child <= max) { in heap_extract()
893 if (child != max && h->p[child + 1].key < h->p[child].key) { in heap_extract()
902 if (parent != max) { in heap_extract()
904 h->p[parent] = h->p[max]; in heap_extract()
905 _PKTSCHED_PKT_INIT(&h->p[max].pkt); in heap_extract()
/xnu-11215/tests/bounded_ptr_src/
H A Darith.add_assign.cpp126 std::ptrdiff_t max_n = std::numeric_limits<std::ptrdiff_t>::max() / sizeof_T; in tests()
160 std::int64_t max_n = std::numeric_limits<std::int32_t>::max() / sizeof_T; in tests()
H A Darith.subtract_assign.cpp123 std::ptrdiff_t max_n = std::numeric_limits<std::ptrdiff_t>::max() / sizeof_T; in tests()
157 std::int64_t max_n = std::numeric_limits<std::int32_t>::max() / sizeof_T; in tests()
/xnu-11215/tools/cocci/
H A Dzalloc-data.cocci2 // $ spatch --max-width=80 --use-gitgrep --in-place --include-headers --sp-file tools/cocci/zalloc.…
/xnu-11215/tests/safe_allocation_src/
H A Dctor.allocate.cpp42 std::size_t max_n = std::numeric_limits<std::size_t>::max() / sizeof(T); in tests()
/xnu-11215/osfmk/arm64/
H A Dstatus.c1080 unsigned int max; in machine_thread_get_state() local
1091 max = 32; in machine_thread_get_state()
1093 max = 64; in machine_thread_get_state()
1100 bcopy(thread_state, state, (max + 1) * sizeof(uint32_t)); in machine_thread_get_state()
1101 *count = (max + 1); in machine_thread_get_state()
1552 unsigned int max; in machine_thread_set_state() local
1559 max = 32; in machine_thread_set_state()
1561 max = 64; in machine_thread_set_state()
1568 bcopy(state, thread_state, (max + 1) * sizeof(uint32_t)); in machine_thread_set_state()
/xnu-11215/tools/lldbmacros/
H A Dxnudefines.py22 max_mask = max(strings_dict.keys())
H A Druff.toml31 mccabe.max-complexity = 10
/xnu-11215/tests/bounded_array_ref_src/
H A Dslice.cpp184 std::uint32_t n = std::numeric_limits<std::uint32_t>::max() / 2 + 1; in tests()
185 std::uint32_t m = std::numeric_limits<std::uint32_t>::max() / 2 + 1; in tests()
/xnu-11215/osfmk/vm/
H A Dlz4.c169 clamp(uint32_t x, uint32_t max) in clamp() argument
172 return x > max ? max : x; in clamp()

12345