Home
last modified time | relevance | path

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

/drivers/net/can/c_can/
Dc_can.c687 unsigned int reg_err_counter; in __c_can_get_berr_counter() local
690 reg_err_counter = priv->read_reg(priv, C_CAN_ERR_CNT_REG); in __c_can_get_berr_counter()
691 bec->rxerr = (reg_err_counter & ERR_CNT_REC_MASK) >> in __c_can_get_berr_counter()
693 bec->txerr = reg_err_counter & ERR_CNT_TEC_MASK; in __c_can_get_berr_counter()
888 unsigned int reg_err_counter; in c_can_handle_state_change() local
925 reg_err_counter = priv->read_reg(priv, C_CAN_ERR_CNT_REG); in c_can_handle_state_change()
926 rx_err_passive = (reg_err_counter & ERR_CNT_RP_MASK) >> in c_can_handle_state_change()