Searched refs:err_hist (Results 1 – 1 of 1) sorted by relevance
714 static inline int edc_inc(struct edc *err_hist, u16 max_err, u16 timeframe) in edc_inc() argument719 if (now - err_hist->timestart > timeframe) { in edc_inc()720 err_hist->errorcount = 1; in edc_inc()721 err_hist->timestart = now; in edc_inc()722 } else if (++err_hist->errorcount > max_err) { in edc_inc()723 err_hist->errorcount = 0; in edc_inc()724 err_hist->timestart = now; in edc_inc()