Lines Matching defs:to

7  * as defined in and that are subject to the Apple Public Source License
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
105 * This routine is called to obtain an HPET and have it assigned
106 * to a CPU. It returns 0 if successful and non-zero if one could
172 * add the HPET to the package too.
215 xmod = (uint32_t *)(rcbaArea + 0x3404); /* Point to the HPTC */
220 "enabling and assigning to 0xFED00000 (hope that's ok)\n");
234 * and convert to frequency in hertz.
241 * with about 32 bits of fraction. The value is converted to a
242 * base-2 fixed point number. To convert from HPET to nanoseconds,
244 * then shift right 32 bits. If the value is known to be small,
249 * Begin conversion of base 10 femtoseconds to base 2, calculate:
250 * - HPET ticks to nanoseconds conversion in base 2 fraction (* 2**32)
251 * - nanoseconds to HPET ticks conversion
264 * Begin conversion of base 10 femtoseconds to base 2
265 * HPET ticks to nanoseconds in base 2 fraction (times 1048576)
270 /* Calculate conversion from TSC to HPET */
272 DBG(" CVT: TSC to HPET = %08X.%08X\n",
275 /* Calculate conversion from HPET to TSC */
277 DBG(" CVT: HPET to TSC = %08X.%08X\n",
280 /* Calculate conversion from BUS to HPET */
282 DBG(" CVT: BUS to HPET = %08X.%08X\n",
285 /* Calculate conversion from HPET to BUS */
287 DBG(" CVT: HPET to BUS = %08X.%08X\n",
292 * This routine is used to get various information about the HPET
293 * without having to export gobs of globals. It fills in a data
317 * when it assigns an HPET timer to a processor.
370 * ahead and add the HPET to the package too.
384 * It just hands off to the power management code so that the
391 /* All we do here is to bump the count */
410 hpetReg_t *to = &saved_hpet;
412 to->GEN_CONF = from->GEN_CONF;
413 to->TIM0_CONF = from->TIM0_CONF;
414 to->TIM0_COMP = from->TIM0_COMP;
415 to->TIM1_CONF = from->TIM1_CONF;
416 to->TIM1_COMP = from->TIM1_COMP;
417 to->TIM2_CONF = from->TIM2_CONF;
418 to->TIM2_COMP = from->TIM2_COMP;
419 to->MAIN_CNT = from->MAIN_CNT;
426 hpetReg_t *to = (hpetReg_t *) hpetArea;
436 "enabling and assigning to 0xFED00000 (hope that's ok)\n");
440 to->GEN_CONF = from->GEN_CONF & ~1;
442 to->TIM0_CONF = from->TIM0_CONF;
443 to->TIM0_COMP = from->TIM0_COMP;
444 to->TIM1_CONF = from->TIM1_CONF;
445 to->TIM1_COMP = from->TIM1_COMP;
446 to->TIM2_CONF = from->TIM2_CONF;
447 to->TIM2_COMP = from->TIM2_COMP;
448 to->GINTR_STA = -1ULL;
449 to->MAIN_CNT = from->MAIN_CNT;
451 to->GEN_CONF = from->GEN_CONF;