/xnu-2422.115.4/bsd/dev/ |
H A D | unix_startup.c | 164 int scale; local 169 if ((scale = nmbclusters / NMBCLUSTERS) > 1) { 170 tcp_sendspace *= scale; 171 tcp_recvspace *= scale; 313 bsd_scale_setup(int scale) argument 316 if ((scale > 0) && (serverperfmode == 0)) { 317 maxproc *= scale; 321 if ((scale > 0) && (serverperfmode !=0)) { 322 maxproc = 2500 * scale; 326 maxfiles = (150000 * scale); [all...] |
/xnu-2422.115.4/tools/tests/kqueue_tests/ |
H A D | kqueue_timer_tests.c | 55 test_absolute_kevent(int time, int scale) argument 66 switch (scale) { 80 printf("Failure: scale 0x%x not recognized.\n", scale); 92 NOTE_ABSOLUTE | scale, deadline, 0,0,0); 102 test_oneshot_kevent(int time, int scale) argument 108 switch (scale) { 126 printf("Failure: scale 0x%x not recognized.\n", scale); 134 EV_SET64(&kev, 2, EVFILT_TIMER, EV_ADD | EV_ONESHOT, scale, tim [all...] |
/xnu-2422.115.4/osfmk/i386/ |
H A D | pal_native.h | 74 uint32_t scale; /* tsc -> nanosec multiplier */ member in struct:pal_rtc_nanotime
|
H A D | pal_routines.h | 172 uint32_t scale,
|
H A D | rtclock.c | 135 * with this ratio expressed as a 32-bit scale and shift 139 * The tuple {tsc_base, ns_base, scale, shift} is exported in the commpage 148 commpage_set_nanotime(rntp->tsc_base, rntp->ns_base, rntp->scale, rntp->shift); 161 _pal_rtc_nanotime_store(tsc, base, rntp->scale, rntp->shift, rntp); 224 _pal_rtc_nanotime_store(tsc_base, base, rntp->scale, rntp->shift, rntp); 334 /* the "scale" factor will overflow unless cycles>SLOW_TSC_THRESHOLD */ 344 rntp->scale = (uint32_t)(((uint64_t)NSEC_PER_SEC << 32) / cycles);
|
H A D | pmCPU.h | 90 uint32_t scale; /* tsc -> nanosec multiplier */ member in struct:pm_rtc_nanotime
|
H A D | pmCPU.c | 870 rtc_nanotime->scale = pal_rtc_nanotime_info.scale;
|
H A D | genassym.c | 494 offsetof(pal_rtc_nanotime_t *, scale));
|
/xnu-2422.115.4/osfmk/kern/ |
H A D | startup.c | 593 int scale = 0; local 599 scale = (int)((uint64_t)sane_size / (uint64_t)(8 * 1024 * 1024 *1024ULL)); 601 if (scale > 16) 602 scale = 16; 605 scale = 2; 607 task_max = MAX(task_max, task_max_base * scale); 609 if (scale != 0) { 616 bsd_scale_setup(scale);
|
/xnu-2422.115.4/osfmk/i386/commpage/ |
H A D | commpage.h | 143 extern void commpage_set_nanotime(uint64_t tsc_base, uint64_t ns_base, uint32_t scale, uint32_t shift);
|
H A D | commpage.c | 496 uint32_t scale, 527 p32->nt_scale = scale; 528 p64->nt_scale = scale; 493 commpage_set_nanotime( uint64_t tsc_base, uint64_t ns_base, uint32_t scale, uint32_t shift ) argument
|
/xnu-2422.115.4/osfmk/console/ |
H A D | video_console.c | 1918 int scale = 0x10000; local 1920 a = vc_rotate_matr[kDataRotate & flags][0][0] * scale; 1921 b = vc_rotate_matr[kDataRotate & flags][0][1] * scale; 1922 c = vc_rotate_matr[kDataRotate & flags][1][0] * scale; 1923 d = vc_rotate_matr[kDataRotate & flags][1][1] * scale; 1924 sx = ((a + b) < 0) ? ((width * scale) - 0x8000) : 0; 1925 sy = ((c + d) < 0) ? ((height * scale) - 0x8000) : 0; 1976 int scale = 0x10000; local 1978 a = vc_rotate_matr[kDataRotate & flags][0][0] * scale; 1979 b = vc_rotate_matr[kDataRotate & flags][0][1] * scale; 2042 int scale = 0x10000; local 2107 int scale = 0x10000; local 2577 unsigned int scale = (unsigned int)boot_vinfo->v_scale; local [all...] |
/xnu-2422.115.4/osfmk/profiling/ |
H A D | profile-internal.h | 239 unsigned long scale; /* scaling factor (65536 / scale) */ member in struct:profile_profil
|
H A D | profile-mk.c | 127 pv->profil_info.scale = 0x10000 / HISTFRACTION;
|
/xnu-2422.115.4/tools/tests/libMicro/ |
H A D | libmicro.c | 1206 long long scale; local 1229 /* find a suitable min and scale */ 1243 scale = y * (HISTOSIZE - 1); 1244 if (scale < (HISTOSIZE - 1)) { 1245 scale = (HISTOSIZE - 1); 1260 j = (HISTOSIZE - 1) * (b->ba_data[i] - min) / scale; 1287 (min + scale * (double)i / (HISTOSIZE - 1)));
|
/xnu-2422.115.4/bsd/kern/ |
H A D | bsd_init.c | 1153 bsd_exec_setup(int scale) argument 1156 switch (scale) {
|
/xnu-2422.115.4/bsd/net/pktsched/ |
H A D | pktsched_fairq.c | 733 u_int32_t scale; local 780 * Otherwise calculate the scale factor and select 781 * the queue with the lowest scale factor. This 785 scale = cl->cl_bw_current * 100 / cl->cl_bandwidth; 786 if (scale < best_scale) { 789 best_scale = scale;
|
/xnu-2422.115.4/bsd/dev/i386/ |
H A D | sysctl.c | 750 SYSCTL_UINT(_machdep_tsc_nanotime, OID_AUTO, scale, 752 (uint32_t *)&pal_rtc_nanotime_info.scale, 0, "");
|
/xnu-2422.115.4/iokit/IOKit/ |
H A D | IOService.h | 1834 void start_ack_timer( UInt32 value, UInt32 scale );
|
/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_cluster.c | 999 u_int scale; local 1012 scale = WRITE_THROTTLE_SSD; 1014 scale = WRITE_THROTTLE; 1017 scale += MAX_CLUSTERS; 1019 async_throttle = min(IO_SCALE(vp, VNODE_ASYNC_THROTTLE), ((scale * max_cluster_size) / max_cluster) - 1);
|
/xnu-2422.115.4/iokit/Kernel/ |
H A D | IOServicePM.cpp | 5390 void IOService::start_ack_timer ( UInt32 interval, UInt32 scale ) 5395 clock_interval_to_deadline(interval, scale, &deadline); 5402 if (interval * scale > kSecondScale) {
|