Lines Matching refs:bec
660 struct can_berr_counter *bec) in __m_can_get_berr_counter() argument
666 bec->rxerr = FIELD_GET(ECR_REC_MASK, ecr); in __m_can_get_berr_counter()
667 bec->txerr = FIELD_GET(ECR_TEC_MASK, ecr); in __m_can_get_berr_counter()
687 struct can_berr_counter *bec) in m_can_get_berr_counter() argument
696 __m_can_get_berr_counter(dev, bec); in m_can_get_berr_counter()
709 struct can_berr_counter bec; in m_can_handle_state_change() local
740 __m_can_get_berr_counter(dev, &bec); in m_can_handle_state_change()
746 cf->data[1] = (bec.txerr > bec.rxerr) ? in m_can_handle_state_change()
749 cf->data[6] = bec.txerr; in m_can_handle_state_change()
750 cf->data[7] = bec.rxerr; in m_can_handle_state_change()
758 if (bec.txerr > 127) in m_can_handle_state_change()
760 cf->data[6] = bec.txerr; in m_can_handle_state_change()
761 cf->data[7] = bec.rxerr; in m_can_handle_state_change()
916 struct can_berr_counter bec; in m_can_rx_handler() local
918 __m_can_get_berr_counter(dev, &bec); in m_can_rx_handler()
919 if (bec.rxerr == 127) { in m_can_rx_handler()