Lines Matching refs:cs_data
317 let cs_data = self.clocksource_data(); in clocksource_max_adjustment() localVariable
318 let ret = cs_data.mult as u64 * 11 / 100; in clocksource_max_adjustment()
326 let mut cs_data = self.clocksource_data(); in clocksource_update_freq_scale() localVariable
327 let mut sec: u64 = cs_data.mask.bits(); in clocksource_update_freq_scale()
333 } else if sec > 600 && cs_data.mask.bits() > u32::MAX as u64 { in clocksource_update_freq_scale()
339 cs_data.set_mult(mult); in clocksource_update_freq_scale()
340 cs_data.set_shift(shift); in clocksource_update_freq_scale()
341 self.update_clocksource_data(cs_data)?; in clocksource_update_freq_scale()
344 let mut cs_data = self.clocksource_data(); in clocksource_update_freq_scale() localVariable
345 if scale != 0 && freq != 0 && cs_data.uncertainty_margin == 0 { in clocksource_update_freq_scale()
346 cs_data.set_uncertainty_margin(NSEC_PER_SEC / (scale * freq)); in clocksource_update_freq_scale()
347 if cs_data.uncertainty_margin < 2 * WATCHDOG_MAX_SKEW { in clocksource_update_freq_scale()
348 cs_data.set_uncertainty_margin(2 * WATCHDOG_MAX_SKEW); in clocksource_update_freq_scale()
350 } else if cs_data.uncertainty_margin == 0 { in clocksource_update_freq_scale()
351 cs_data.set_uncertainty_margin(WATCHDOG_THRESHOLD); in clocksource_update_freq_scale()
355 cs_data.set_maxadj(self.clocksource_max_adjustment()); in clocksource_update_freq_scale()
356 self.update_clocksource_data(cs_data)?; in clocksource_update_freq_scale()
363 let mut cs_data = self.clocksource_data(); in clocksource_update_freq_scale() localVariable
364 cs_data.set_mult(cs_data.mult >> 1); in clocksource_update_freq_scale()
365 cs_data.set_shift(cs_data.shift - 1); in clocksource_update_freq_scale()
366 self.update_clocksource_data(cs_data)?; in clocksource_update_freq_scale()
367 let mut cs_data = self.clocksource_data(); in clocksource_update_freq_scale() localVariable
368 cs_data.set_maxadj(self.clocksource_max_adjustment()); in clocksource_update_freq_scale()
369 self.update_clocksource_data(cs_data)?; in clocksource_update_freq_scale()
372 let mut cs_data = self.clocksource_data(); in clocksource_update_freq_scale() localVariable
374 cs_data.set_max_idle_ns(ns as u32); in clocksource_update_freq_scale()
375 self.update_clocksource_data(cs_data)?; in clocksource_update_freq_scale()
408 let cs_data = self.clocksource_data(); in clocksource_enqueue() localVariable
412 if ele.clocksource_data().rating < cs_data.rating { in clocksource_enqueue()
435 let mut cs_data = self.clocksource_data(); in clocksource_enqueue_watchdog() localVariable
438 if cs_data in clocksource_enqueue_watchdog()
444 cs_data in clocksource_enqueue_watchdog()
447 cs.update_clocksource_data(cs_data)?; in clocksource_enqueue_watchdog()
451 if cs_data in clocksource_enqueue_watchdog()
456 cs_data in clocksource_enqueue_watchdog()
459 cs.update_clocksource_data(cs_data.clone())?; in clocksource_enqueue_watchdog()
470 || cs_data.rating in clocksource_enqueue_watchdog()
494 let mut cs_data = self.clocksource_data(); in set_unstable() localVariable
498 cs_data.name, delta in set_unstable()
500 cs_data.flags.remove( in set_unstable()
503 cs_data in set_unstable()
506 self.update_clocksource_data(cs_data)?; in set_unstable()
601 let mut cs_data = self.clocksource_data(); in clocksource_dequeue_watchdog() localVariable
602 cs_data in clocksource_dequeue_watchdog()
605 self.update_clocksource_data(cs_data) in clocksource_dequeue_watchdog()
812 let mut cs_data = cs.clocksource_data(); in clocksource_watchdog() localVariable
814 if cs_data in clocksource_watchdog()
843 if !cs_data in clocksource_watchdog()
848 cs_data in clocksource_watchdog()
852 cs_data.watchdog_last = CycleNum::new(wd_now_clock); in clocksource_watchdog()
853 cs_data.cs_last = cs_now_clock; in clocksource_watchdog()
854 cs.update_clocksource_data(cs_data.clone())?; in clocksource_watchdog()
859 CycleNum((wd_now_clock - cs_data.watchdog_last.data()) & wd_now_data.mask.bits), in clocksource_watchdog()
865 CycleNum(cs_now_clock.div(cs_data.cs_last).data() & cs_data.mask.bits), in clocksource_watchdog()
866 cs_data.mult, // 2343484437 in clocksource_watchdog()
867 cs_data.shift, // 23 in clocksource_watchdog()
870 cs_data.watchdog_last = CycleNum::new(wd_now_clock); in clocksource_watchdog()
871 cs_data.cs_last = cs_now_clock; in clocksource_watchdog()
872 cs.update_clocksource_data(cs_data.clone())?; in clocksource_watchdog()
885 if !cs_data in clocksource_watchdog()
888 && cs_data in clocksource_watchdog()
895 cs_data in clocksource_watchdog()
898 cs.update_clocksource_data(cs_data)?; in clocksource_watchdog()