Lines Matching refs:bec
784 static void ctucan_get_rec_tec(struct ctucan_priv *priv, struct can_berr_counter *bec) in ctucan_get_rec_tec() argument
788 bec->rxerr = FIELD_GET(REG_REC_REC_VAL, err_ctrs); in ctucan_get_rec_tec()
789 bec->txerr = FIELD_GET(REG_REC_TEC_VAL, err_ctrs); in ctucan_get_rec_tec()
807 struct can_berr_counter bec; in ctucan_err_interrupt() local
811 ctucan_get_rec_tec(priv, &bec); in ctucan_err_interrupt()
817 __func__, isr, bec.rxerr, bec.txerr, in ctucan_err_interrupt()
851 cf->data[1] = (bec.rxerr > 127) ? in ctucan_err_interrupt()
854 cf->data[6] = bec.txerr; in ctucan_err_interrupt()
855 cf->data[7] = bec.rxerr; in ctucan_err_interrupt()
862 cf->data[1] |= (bec.txerr > bec.rxerr) ? in ctucan_err_interrupt()
865 cf->data[6] = bec.txerr; in ctucan_err_interrupt()
866 cf->data[7] = bec.rxerr; in ctucan_err_interrupt()
872 cf->data[6] = bec.txerr; in ctucan_err_interrupt()
873 cf->data[7] = bec.rxerr; in ctucan_err_interrupt()
1279 static int ctucan_get_berr_counter(const struct net_device *ndev, struct can_berr_counter *bec) in ctucan_get_berr_counter() argument
1291 ctucan_get_rec_tec(priv, bec); in ctucan_get_berr_counter()