| /xnu-11215/bsd/dev/ |
| H A D | unix_startup.c | 180 int scale; in bsd_startupearly() local 184 tcp_sendspace *= scale; in bsd_startupearly() 185 tcp_recvspace *= scale; in bsd_startupearly() 338 bsd_scale_setup(int scale) in bsd_scale_setup() argument 342 maxproc *= scale; in bsd_scale_setup() 344 if (scale > 2) { in bsd_scale_setup() 345 maxfiles *= scale; in bsd_scale_setup() 351 maxproc = 2500 * scale; in bsd_scale_setup() 360 if (scale > 4) { in bsd_scale_setup() 369 if (scale > 7) { in bsd_scale_setup() [all …]
|
| /xnu-11215/tests/ |
| H A D | kqueue_timer_tests.c | 84 test_absolute_kevent(int time, int scale) in test_absolute_kevent() argument 97 switch (scale) { in test_absolute_kevent() 114 T_FAIL("Failure: scale 0x%x not recognized.\n", scale); in test_absolute_kevent() 120 if (scale == NOTE_MACHTIME) { in test_absolute_kevent() 134 NOTE_ABSOLUTE | scale, deadline, 0, 0, 0); in test_absolute_kevent() 139 T_PASS("%s time:%d, scale:0x%x", __func__, time, scale); in test_absolute_kevent() 142 T_FAIL("%s time:%d, scale:0x%x", __func__, time, scale); in test_absolute_kevent() 147 test_oneshot_kevent(int time, int scale) in test_oneshot_kevent() argument 155 switch (scale) { in test_oneshot_kevent() 177 T_FAIL("Failure: scale 0x%x not recognized.\n", scale); in test_oneshot_kevent() [all …]
|
| H A D | os_refcnt.c | 482 double scale = PCPU_BENCH_LEN * 1e6; variable 501 T_PASS("%.2fM rounds per thread per second (atomic)", count / scale); 513 T_PASS("%.2fM rounds per thread per second (pcpu)", count / scale); 530 T_PASS("%.2fM rounds per thread per second (atomic)", count / (zpercpu_count() * scale)); 545 T_PASS("%.2fM rounds per thread per second (pcpu)", count / (zpercpu_count() * scale));
|
| /xnu-11215/osfmk/arm64/ |
| H A D | WKdmCompress_4k.s | 224 #define scale (PAGES_SIZE_IN_KBYTES/4) macro 263 add next_qp, scratch, #(1024*scale) // next_qp 264 mov remaining, #(CHKPT_WORDS*scale) // remaining input words .. initially set to checkpoint 266 sub byte_count, byte_count, #(12+256*scale) // bit_count - header - tags 267 add next_low_bits, scratch, #(2048*scale) // &tempLowBitsArray[0] 287 add tempQPosArray, scratch, #(1024*scale) // &tempQPosArray[0] 292 add byte_budget, byte_count, #(12+256*scale) // remember the byte budget 424 add rcx, scratch, #(2048*scale) // tempLowBitsArray 600 cmp rdx, #(4096*scale) // has the entire page been processed 621 mov remaining, #((1024 - CHKPT_WORDS)*scale) // remaining input words to process [all …]
|
| H A D | WKdmCompress_16k.s | 226 #define scale (PAGES_SIZE_IN_KBYTES/4) macro 265 add next_qp, scratch, #(1024*scale) // next_qp 266 mov remaining, #(CHKPT_WORDS*scale) // remaining input words .. initially set to checkpoint 268 sub byte_count, byte_count, #(12+256*scale) // bit_count - header - tags 269 add next_low_bits, scratch, #(2048*scale) // &tempLowBitsArray[0] 289 add tempQPosArray, scratch, #(1024*scale) // &tempQPosArray[0] 294 add byte_budget, byte_count, #(12+256*scale) // remember the byte budget 426 add rcx, scratch, #(2048*scale) // tempLowBitsArray 602 cmp rdx, #(4096*scale) // has the entire page been processed 623 mov remaining, #((1024 - CHKPT_WORDS)*scale) // remaining input words to process [all …]
|
| H A D | WKdmDecompress_16k.s | 87 #define scale (PAGES_SIZE_IN_KBYTES/4) macro 189 add r10, src_buf, #(12+256*scale) // TAGS_AREA_END 242 add rcx, scratch, #(1024*scale) // tempQPosArray 270 add rcx, scratch, #(2048*scale) // tempLowBitsArray 271 #if (scale==1) 272 add r11, scratch, #(4096*scale-2) // final tenbits for the rare case 274 add r11, scratch, #(4096*scale) // final tenbits for the rare case 350 add r8, scratch, #(1024*scale) // next_qpos 351 add r11, scratch, #(2048*scale) // tempLowBitsArray 353 mov tags_counter, #(1024*scale) // tag_area_end
|
| H A D | WKdmDecompress_4k.s | 87 #define scale (PAGES_SIZE_IN_KBYTES/4) macro 189 add r10, src_buf, #(12+256*scale) // TAGS_AREA_END 242 add rcx, scratch, #(1024*scale) // tempQPosArray 270 add rcx, scratch, #(2048*scale) // tempLowBitsArray 271 #if (scale==1) 272 add r11, scratch, #(4096*scale-2) // final tenbits for the rare case 274 add r11, scratch, #(4096*scale) // final tenbits for the rare case 350 add r8, scratch, #(1024*scale) // next_qpos 351 add r11, scratch, #(2048*scale) // tempLowBitsArray 353 mov tags_counter, #(1024*scale) // tag_area_end
|
| H A D | tlb.h | 381 unsigned scale = ((order ? order : 1) - 1) / 5; in generate_rtlbi_param() local 382 unsigned granule = 1 << ((5 * scale) + 1); in generate_rtlbi_param() 384 …return tlbi_asid(asid) | RTLBI_TG(pmap_page_shift) | rtlbi_scale(scale) | rtlbi_num(num) | rtlbi_a… in generate_rtlbi_param()
|
| /xnu-11215/pexpert/arm/ |
| H A D | pe_init.c | 254 unsigned int size, scale; in PE_init_iokit() local 290 scale = PE_state.video.v_scale; in PE_init_iokit() 328 *delta -= 50 * scale; in PE_init_iokit() 819 new_data = kalloc(width * height * scale * scale); in pe_prepare_images() 826 for (cnt3 = 0; cnt3 < scale; cnt3++) { in pe_prepare_images() 831 new_data += scale; in pe_prepare_images() 833 new_data += width * scale * (scale - 1); in pe_prepare_images() 835 default_progress.width *= scale; in pe_prepare_images() 836 default_progress.height *= scale; in pe_prepare_images() 837 default_progress.dx *= scale; in pe_prepare_images() [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | rtclock.c | 137 commpage_set_nanotime(rntp->tsc_base, rntp->ns_base, rntp->scale, rntp->shift); in rtc_nanotime_set_commpage() 150 _pal_rtc_nanotime_store(tsc, base, rntp->scale, rntp->shift, rntp); in _rtc_nanotime_init() 220 _pal_rtc_nanotime_store(tsc_base, base, rntp->scale, rntp->shift, rntp); in rtc_clock_napped() 336 rntp->scale = (uint32_t)(((uint64_t)NSEC_PER_SEC << 32) / cycles); in rtc_set_timescale() 404 clock_gettimeofday_set_commpage(uint64_t abstime, uint64_t sec, uint64_t frac, uint64_t scale, uint… in clock_gettimeofday_set_commpage() argument 406 commpage_set_timestamp(abstime, sec, frac, scale, tick_per_sec); in clock_gettimeofday_set_commpage()
|
| H A D | pal_native.h | 74 uint32_t scale; /* tsc -> nanosec multiplier */ member
|
| H A D | pal_routines.h | 170 uint32_t scale,
|
| /xnu-11215/osfmk/kern/ |
| H A D | startup.c | 1003 int scale = 0; in scale_setup() local 1024 scale = (int)((uint64_t)sane_size / (uint64_t)(8 * 1024 * 1024 * 1024ULL)); in scale_setup() 1026 if (scale > 16) { in scale_setup() 1027 scale = 16; in scale_setup() 1033 scale = 2; in scale_setup() 1036 scale = MIN(16, (int)((uint64_t)max_mem_actual / (uint64_t)(4 * 1024 * 1024 * 1024ULL))); in scale_setup() 1040 task_max = MAX(task_max, task_max_base * scale); in scale_setup() 1042 if (scale != 0) { in scale_setup() 1049 bsd_scale_setup(scale); in scale_setup()
|
| H A D | clock.c | 451 uint64_t scale; in get_scale_factors_from_adj() local 477 scale = (uint64_t)1 << 63; in get_scale_factors_from_adj() 478 scale += (adjustment / 1024) * 2199; in get_scale_factors_from_adj() 479 scale /= ticks_per_sec; in get_scale_factors_from_adj() 480 *tick_scale_x = scale * 2; in get_scale_factors_from_adj() 488 scale = (uint64_t) NSEC_PER_SEC; in get_scale_factors_from_adj() 489 scale += nano; in get_scale_factors_from_adj() 490 *s_scale_ns = scale; in get_scale_factors_from_adj()
|
| H A D | machine.c | 1418 uint64_t scale = 1; in machine_timeout_init_with_suffix() local 1428 scale = *scale_data; in machine_timeout_init_with_suffix() 1438 scale = *scale_data; in machine_timeout_init_with_suffix() 1443 scale = boot_arg; in machine_timeout_init_with_suffix() 1480 scale *= global_scale; in machine_timeout_init_with_suffix() 1501 if (os_mul_overflow(timeout, scale, &timeout)) { in machine_timeout_init_with_suffix()
|
| /xnu-11215/osfmk/console/ |
| H A D | video_console.c | 1955 int scale = 0x10000; in vc_blit_rect_8() local 1959 c = vc_rotate_matr[kDataRotate & flags][1][0] * scale; in vc_blit_rect_8() 1960 d = vc_rotate_matr[kDataRotate & flags][1][1] * scale; in vc_blit_rect_8() 2018 int scale = 0x10000; in vc_blit_rect_16() local 2022 c = vc_rotate_matr[kDataRotate & flags][1][0] * scale; in vc_blit_rect_16() 2023 d = vc_rotate_matr[kDataRotate & flags][1][1] * scale; in vc_blit_rect_16() 2094 int scale = 0x10000; in vc_blit_rect_32() local 2098 c = vc_rotate_matr[kDataRotate & flags][1][0] * scale; in vc_blit_rect_32() 2169 int scale = 0x10000; in vc_blit_rect_30() local 2826 if (scale == kPEScaleFactor1x) { in initialize_screen() [all …]
|
| /xnu-11215/osfmk/i386/commpage/ |
| H A D | commpage.h | 137 …age_set_timestamp(uint64_t abstime, uint64_t sec, uint64_t frac, uint64_t scale, uint64_t tick_per… 139 extern void commpage_set_nanotime(uint64_t tsc_base, uint64_t ns_base, uint32_t scale, uint32_t…
|
| H A D | commpage.c | 719 uint32_t scale, in commpage_set_nanotime() argument 755 p32->nt_scale = scale; in commpage_set_nanotime() 756 p64->nt_scale = scale; in commpage_set_nanotime() 777 uint64_t scale, in commpage_set_timestamp() argument 792 p32->Ticks_scale = scale; in commpage_set_timestamp() 793 p64->Ticks_scale = scale; in commpage_set_timestamp()
|
| /xnu-11215/osfmk/arm/commpage/ |
| H A D | commpage.h | 37 extern void commpage_set_timestamp(uint64_t tbr, uint64_t secs, uint64_t frac, uint64_t scale, …
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | IOReportTypes.h | 216 #define __IOR_MAKEUNIT(quantity, scale) \ argument 217 (((IOReportUnit)quantity << 56) | (uint64_t)scale)
|
| /xnu-11215/iokit/IOKit/ |
| H A D | IOReportTypes.h | 216 #define __IOR_MAKEUNIT(quantity, scale) \ argument 217 (((IOReportUnit)quantity << 56) | (uint64_t)scale)
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | kasan.py | 21 def __init__(self, base, scale): argument 23 self._scale = scale 48 def scale(self): member in AbstractShadowMap 55 return 1 << self.scale 553 print("{:<21s}: {:>d} (1:{})".format("Scale", self._sm.scale, 554 1 << self._sm.scale))
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_disk_conditioner.c | 78 weighted_scale_factor(double scale) in weighted_scale_factor() argument 83 double x_m1 = scale - 1; in weighted_scale_factor()
|
| /xnu-11215/osfmk/arm/ |
| H A D | rtclock.c | 307 uint64_t scale, in clock_gettimeofday_set_commpage() argument 310 commpage_set_timestamp(abstime, sec, frac, scale, tick_per_sec); in clock_gettimeofday_set_commpage()
|
| /xnu-11215/config/ |
| H A D | MASTER | 46 # xlarge = extra large scale system configuration 47 # large = large scale system configuration 48 # medium = medium scale system configuration 49 # small = small scale system configuration 50 # xsmall = extra small scale system configuration 51 # bsmall = special extra small scale system configuration
|