Searched refs:scale (Results 1 - 21 of 21) sorted by relevance

/xnu-2422.115.4/bsd/dev/
H A Dunix_startup.c164 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 Dkqueue_timer_tests.c55 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 Dpal_native.h74 uint32_t scale; /* tsc -> nanosec multiplier */ member in struct:pal_rtc_nanotime
H A Dpal_routines.h172 uint32_t scale,
H A Drtclock.c135 * 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 DpmCPU.h90 uint32_t scale; /* tsc -> nanosec multiplier */ member in struct:pm_rtc_nanotime
H A DpmCPU.c870 rtc_nanotime->scale = pal_rtc_nanotime_info.scale;
H A Dgenassym.c494 offsetof(pal_rtc_nanotime_t *, scale));
/xnu-2422.115.4/osfmk/kern/
H A Dstartup.c593 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 Dcommpage.h143 extern void commpage_set_nanotime(uint64_t tsc_base, uint64_t ns_base, uint32_t scale, uint32_t shift);
H A Dcommpage.c496 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 Dvideo_console.c1918 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 Dprofile-internal.h239 unsigned long scale; /* scaling factor (65536 / scale) */ member in struct:profile_profil
H A Dprofile-mk.c127 pv->profil_info.scale = 0x10000 / HISTFRACTION;
/xnu-2422.115.4/tools/tests/libMicro/
H A Dlibmicro.c1206 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 Dbsd_init.c1153 bsd_exec_setup(int scale) argument
1156 switch (scale) {
/xnu-2422.115.4/bsd/net/pktsched/
H A Dpktsched_fairq.c733 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 Dsysctl.c750 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 DIOService.h1834 void start_ack_timer( UInt32 value, UInt32 scale );
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_cluster.c999 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 DIOServicePM.cpp5390 void IOService::start_ack_timer ( UInt32 interval, UInt32 scale )
5395 clock_interval_to_deadline(interval, scale, &deadline);
5402 if (interval * scale > kSecondScale) {

Completed in 159 milliseconds