Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/time/
H A Dclocksource.c851 u64 max_nsecs, max_cycles; in clocks_calc_max_nsecs() local
857 max_cycles = ULLONG_MAX; in clocks_calc_max_nsecs()
858 do_div(max_cycles, mult+maxadj); in clocks_calc_max_nsecs()
862 * determined by the minimum of max_cycles and mask. in clocks_calc_max_nsecs()
866 max_cycles = min(max_cycles, mask); in clocks_calc_max_nsecs()
867 max_nsecs = clocksource_cyc2ns(max_cycles, mult - maxadj, shift); in clocks_calc_max_nsecs()
869 /* return the max_cycles value as well if requested */ in clocks_calc_max_nsecs()
871 *max_cyc = max_cycles; in clocks_calc_max_nsecs()
880 * clocksource_update_max_deferment - Updates the clocksource max_idle_ns & max_cycles
[all...]
H A Djiffies.c59 .max_cycles = 10,
H A Dtimekeeping.c204 u64 max_cycles = tk->tkr_mono.clock->max_cycles; in timekeeping_check_update() local
207 if (offset > max_cycles) { in timekeeping_check_update()
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", in timekeeping_check_update()
209 offset, name, max_cycles); in timekeeping_check_update()
212 if (offset > (max_cycles >> 1)) { in timekeeping_check_update()
214 offset, name, max_cycles >> 1); in timekeeping_check_update()
258 max = tkr->clock->max_cycles; in timekeeping_get_delta()
272 /* Cap delta value to the max_cycles values to avoid mult overflows */ in timekeeping_get_delta()
275 delta = tkr->clock->max_cycles; in timekeeping_get_delta()
[all...]
/kernel/linux/linux-6.6/kernel/time/
H A Dclocksource.c940 u64 max_nsecs, max_cycles; in clocks_calc_max_nsecs() local
946 max_cycles = ULLONG_MAX; in clocks_calc_max_nsecs()
947 do_div(max_cycles, mult+maxadj); in clocks_calc_max_nsecs()
951 * determined by the minimum of max_cycles and mask. in clocks_calc_max_nsecs()
955 max_cycles = min(max_cycles, mask); in clocks_calc_max_nsecs()
956 max_nsecs = clocksource_cyc2ns(max_cycles, mult - maxadj, shift); in clocks_calc_max_nsecs()
958 /* return the max_cycles value as well if requested */ in clocks_calc_max_nsecs()
960 *max_cyc = max_cycles; in clocks_calc_max_nsecs()
969 * clocksource_update_max_deferment - Updates the clocksource max_idle_ns & max_cycles
[all...]
H A Djiffies.c40 .max_cycles = 10,
H A Dtimekeeping.c204 u64 max_cycles = tk->tkr_mono.clock->max_cycles; in timekeeping_check_update() local
207 if (offset > max_cycles) { in timekeeping_check_update()
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", in timekeeping_check_update()
209 offset, name, max_cycles); in timekeeping_check_update()
212 if (offset > (max_cycles >> 1)) { in timekeeping_check_update()
214 offset, name, max_cycles >> 1); in timekeeping_check_update()
258 max = tkr->clock->max_cycles; in timekeeping_get_delta()
272 /* Cap delta value to the max_cycles values to avoid mult overflows */ in timekeeping_get_delta()
275 delta = tkr->clock->max_cycles; in timekeeping_get_delta()
[all...]
H A Dclocksource-wdtest.c48 .max_cycles = 10,
/kernel/linux/linux-5.10/include/linux/
H A Dclocksource.h48 * @max_cycles: Maximum safe cycle value which won't overflow on
102 u64 max_cycles; member
216 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask, u64 *max_cycles);
/kernel/linux/linux-6.6/include/linux/
H A Dclocksource.h49 * @max_cycles: Maximum safe cycle value which won't overflow on
107 u64 max_cycles; member
222 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask, u64 *max_cycles);
/kernel/linux/linux-6.6/drivers/char/hw_random/
H A Dcctrng.c182 u32 max_cycles; in cc_trng_enable_rnd_source() local
185 max_cycles = CCTRNG_TIMEOUT(drvdata->smpl_ratio[drvdata->active_rosc]); in cc_trng_enable_rnd_source()
186 cc_iowrite(drvdata, CC_RNG_WATCHDOG_VAL_REG_OFFSET, max_cycles); in cc_trng_enable_rnd_source()
/kernel/linux/linux-5.10/drivers/char/hw_random/
H A Dcctrng.c182 u32 max_cycles; in cc_trng_enable_rnd_source() local
185 max_cycles = CCTRNG_TIMEOUT(drvdata->smpl_ratio[drvdata->active_rosc]); in cc_trng_enable_rnd_source()
186 cc_iowrite(drvdata, CC_RNG_WATCHDOG_VAL_REG_OFFSET, max_cycles); in cc_trng_enable_rnd_source()

Completed in 10 milliseconds