Lines Matching refs:edc
86 struct edc { struct
98 static inline void edc_init(struct edc *edc) in edc_init() argument
100 edc->timestart = jiffies; in edc_init()
129 static inline int edc_inc(struct edc *edc, u16 max_err, u16 timeframe) in edc_inc() argument
134 if (time_after(now, edc->timestart + timeframe)) { in edc_inc()
135 edc->errorcount = 1; in edc_inc()
136 edc->timestart = now; in edc_inc()
137 } else if (++edc->errorcount > max_err) { in edc_inc()
138 edc->errorcount = 0; in edc_inc()
139 edc->timestart = now; in edc_inc()
227 struct edc urb_edc; /* Error density counter */