Lines Matching refs:et
64 static int round_freq(struct eventtimer *et, int freq);
298 timercb(struct eventtimer *et, void *arg)
312 if (et->et_flags & ET_FLAGS_PERCPU) {
332 if ((et->et_flags & ET_FLAGS_PERCPU) == 0) {
334 if ((et->et_flags & ET_FLAGS_PERCPU) == 0 && smp_started) {
565 round_freq(struct eventtimer *et, int freq)
569 if (et->et_frequency != 0) {
570 div = lmax((et->et_frequency + freq / 2) / freq, 1);
571 if (et->et_flags & ET_FLAGS_POW2DIV)
573 freq = (et->et_frequency + div / 2) / div;
575 if (et->et_min_period > SBT_1S)
577 et->et_name);
578 else if (et->et_min_period != 0)
579 freq = min(freq, SBT2FREQ(et->et_min_period));
580 if (et->et_max_period < SBT_1S && et->et_max_period != 0)
581 freq = max(freq, SBT2FREQ(et->et_max_period));
812 * Change the frequency of the given timer. This changes et->et_frequency and
813 * if et is the active timer it reconfigures the timer on all CPUs. This is
817 cpu_et_frequency(struct eventtimer *et, uint64_t newfreq)
821 if (et == timer) {
823 et->et_frequency = newfreq;
826 et->et_frequency = newfreq;
887 struct eventtimer *et;
891 et = timer;
892 snprintf(buf, sizeof(buf), "%s", et->et_name);
896 et = timer;
898 strcasecmp(buf, et->et_name) == 0) {
902 et = et_find(buf, 0, 0);
903 if (et == NULL) {
909 if (et->et_flags & ET_FLAGS_C3STOP)
914 timer = et;