Lines Matching +full:ideal +full:- +full:factor +full:- +full:value
1 /* SPDX-License-Identifier: GPL-2.0 */
34 * struct clocksource - hardware abstraction for a free running counter
35 * Provides mostly state-free accessors to the underlying hardware.
38 * @read: Returns a cycle value, passes clocksource as argument
44 * @maxadj: Maximum adjustment value to mult (~11%)
45 * @archdata: Optional arch-specific data
46 * @max_cycles: Maximum safe cycle value which won't overflow on
50 * @rating: Rating value for selection (higher is better)
54 * 1-99: Unfit for real use
56 * 100-199: Base level usability.
58 * 200-299: Good.
60 * 300-399: Desired.
62 * 400-499: Perfect
63 * The ideal clocksource. A must-use where
75 * @cs_last: Last clocksource value for clocksource watchdog
76 * @wd_last: Last watchdog value corresponding to @cs_last
136 #define CLOCKSOURCE_MASK(bits) GENMASK_ULL((bits) - 1, 0)
156 * clocksource_khz2mult - calculates mult from khz and shift
158 * @shift_constant: Clocksource shift factor
161 * multiplier, given the clocksource shift value
169 * clocksource_hz2mult - calculates mult from hz and shift
171 * @shift_constant: Clocksource shift factor
175 * clocksource shift value
183 * clocksource_cyc2ns - converts clocksource cycles to nanoseconds
193 * XXX - This could use some mult_lxl_ll() asm optimization