Lines Matching refs:bec
823 struct can_berr_counter *bec) in __mcp251xfd_get_berr_counter() argument
834 bec->txerr = 256; in __mcp251xfd_get_berr_counter()
836 bec->txerr = FIELD_GET(MCP251XFD_REG_TREC_TEC_MASK, trec); in __mcp251xfd_get_berr_counter()
837 bec->rxerr = FIELD_GET(MCP251XFD_REG_TREC_REC_MASK, trec); in __mcp251xfd_get_berr_counter()
843 struct can_berr_counter *bec) in mcp251xfd_get_berr_counter() argument
855 *bec = priv->bec; in mcp251xfd_get_berr_counter()
859 return __mcp251xfd_get_berr_counter(ndev, bec); in mcp251xfd_get_berr_counter()
1085 err = __mcp251xfd_get_berr_counter(priv->ndev, &priv->bec); in mcp251xfd_handle_cerrif()
1097 struct can_berr_counter bec; in mcp251xfd_handle_cerrif() local
1099 err = mcp251xfd_get_berr_counter(priv->ndev, &bec); in mcp251xfd_handle_cerrif()
1103 cf->data[6] = bec.txerr; in mcp251xfd_handle_cerrif()
1104 cf->data[7] = bec.rxerr; in mcp251xfd_handle_cerrif()