Lines Matching refs:bec
531 struct can_berr_counter *bec) in __m_can_get_berr_counter() argument
537 bec->rxerr = (ecr & ECR_REC_MASK) >> ECR_REC_SHIFT; in __m_can_get_berr_counter()
538 bec->txerr = ecr & ECR_TEC_MASK; in __m_can_get_berr_counter()
544 struct can_berr_counter *bec) in m_can_get_berr_counter() argument
559 __m_can_get_berr_counter(dev, bec); in m_can_get_berr_counter()
574 struct can_berr_counter bec; in m_can_handle_state_change() local
603 __m_can_get_berr_counter(dev, &bec); in m_can_handle_state_change()
609 cf->data[1] = (bec.txerr > bec.rxerr) ? in m_can_handle_state_change()
612 cf->data[6] = bec.txerr; in m_can_handle_state_change()
613 cf->data[7] = bec.rxerr; in m_can_handle_state_change()
621 if (bec.txerr > 127) in m_can_handle_state_change()
623 cf->data[6] = bec.txerr; in m_can_handle_state_change()
624 cf->data[7] = bec.rxerr; in m_can_handle_state_change()