Searched refs:err_hist (Results 1 – 2 of 2) sorted by relevance
701 static inline int edc_inc(struct edc *err_hist, u16 max_err, u16 timeframe) in edc_inc() argument706 if (now - err_hist->timestart > timeframe) { in edc_inc()707 err_hist->errorcount = 1; in edc_inc()708 err_hist->timestart = now; in edc_inc()709 } else if (++err_hist->errorcount > max_err) { in edc_inc()710 err_hist->errorcount = 0; in edc_inc()711 err_hist->timestart = now; in edc_inc()
384 struct ufs_err_reg_hist *err_hist, in ufshcd_print_err_hist() argument391 int p = (i + err_hist->pos) % UFS_ERR_REG_HIST_LENGTH; in ufshcd_print_err_hist()393 if (err_hist->reg[p] == 0) in ufshcd_print_err_hist()396 err_hist->reg[p], ktime_to_us(err_hist->tstamp[p])); in ufshcd_print_err_hist()