Home
last modified time | relevance | path

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

/linux-2.6.39/include/linux/
Duwb.h714 static inline int edc_inc(struct edc *err_hist, u16 max_err, u16 timeframe) in edc_inc() argument
719 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()