Home
last modified time | relevance | path

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

/Linux-v4.19/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()
/Linux-v4.19/drivers/scsi/ufs/
Dufshcd.c395 struct ufs_uic_err_reg_hist *err_hist, char *err_name) in ufshcd_print_uic_err_hist() argument
400 int p = (i + err_hist->pos - 1) % UIC_ERR_REG_HIST_LENGTH; in ufshcd_print_uic_err_hist()
402 if (err_hist->reg[p] == 0) in ufshcd_print_uic_err_hist()
405 err_hist->reg[p], ktime_to_us(err_hist->tstamp[p])); in ufshcd_print_uic_err_hist()