Searched refs:max_cycles (Results 1 - 6 of 6) sorted by relevance

/linux-master/kernel/time/
H A Djiffies.c40 .max_cycles = 10,
H A Dclocksource.c938 u64 max_nsecs, max_cycles; local
944 max_cycles = ULLONG_MAX;
945 do_div(max_cycles, mult+maxadj);
949 * determined by the minimum of max_cycles and mask.
953 max_cycles = min(max_cycles, mask);
954 max_nsecs = clocksource_cyc2ns(max_cycles, mult - maxadj, shift);
956 /* return the max_cycles value as well if requested */
958 *max_cyc = max_cycles;
967 * clocksource_update_max_deferment - Updates the clocksource max_idle_ns & max_cycles
[all...]
H A Dclocksource-wdtest.c48 .max_cycles = 10,
H A Dtimekeeping.c204 u64 max_cycles = tk->tkr_mono.clock->max_cycles; local
207 if (offset > max_cycles) {
208 printk_deferred("WARNING: timekeeping: Cycle offset (%lld) is larger than allowed by the '%s' clock's max_cycles value (%lld): time overflow danger\n",
209 offset, name, max_cycles);
212 if (offset > (max_cycles >> 1)) {
214 offset, name, max_cycles >> 1);
258 max = tkr->clock->max_cycles;
272 /* Cap delta value to the max_cycles values to avoid mult overflows */
275 delta = tkr->clock->max_cycles;
[all...]
/linux-master/include/linux/
H A Dclocksource.h49 * @max_cycles: Maximum safe cycle value which won't overflow on
107 u64 max_cycles; member in struct:clocksource
222 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask, u64 *max_cycles);
/linux-master/drivers/char/hw_random/
H A Dcctrng.c182 u32 max_cycles; local
185 max_cycles = CCTRNG_TIMEOUT(drvdata->smpl_ratio[drvdata->active_rosc]);
186 cc_iowrite(drvdata, CC_RNG_WATCHDOG_VAL_REG_OFFSET, max_cycles);

Completed in 154 milliseconds