Home
last modified time | relevance | path

Searched refs:err_hist (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/include/linux/
Duwb.h715 static inline int edc_inc(struct edc *err_hist, u16 max_err, u16 timeframe) in edc_inc() argument
720 if (now - err_hist->timestart > timeframe) { in edc_inc()
721 err_hist->errorcount = 1; in edc_inc()
722 err_hist->timestart = now; in edc_inc()
723 } else if (++err_hist->errorcount > max_err) { in edc_inc()
724 err_hist->errorcount = 0; in edc_inc()
725 err_hist->timestart = now; in edc_inc()