Lines Matching refs:hpet_period
217 static unsigned long hpet_period;
292 * hpet_period is in units of femtoseconds (per cycle), so
293 * mult/2^shift = cyc/ns = 10^6/hpet_period
294 * mult = (10^6 * 2^shift)/hpet_period
295 * mult = (FSEC_PER_NSEC << hpet_clockevent.shift)/hpet_period
298 hpet_period, hpet_clockevent.shift);
563 do_div(hpet_freq, hpet_period);
804 * mult/2^shift = ns/cyc and hpet_period is in units of fsec/cyc
805 * so we first need to convert hpet_period to ns/cyc units:
806 * mult/2^shift = ns/cyc = hpet_period/10^6
807 * mult = (hpet_period * 2^shift)/10^6
808 * mult = (hpet_period << shift)/FSEC_PER_NSEC
811 /* Need to convert hpet_period (fsec/cyc) to cyc/sec:
813 * cyc/sec = FSEC_PER_SEC/hpet_period(fsec/cyc)
814 * cyc/sec = (FSEC_PER_NSEC * NSEC_PER_SEC)/hpet_period
817 do_div(hpet_freq, hpet_period);
839 hpet_period = hpet_readl(HPET_PERIOD);
863 if (hpet_period < HPET_MIN_PERIOD || hpet_period > HPET_MAX_PERIOD)