Lines Matching refs:cccr
322 u32 cccr = m_can_read(priv, M_CAN_CCCR); in m_can_config_endisable() local
328 m_can_write(priv, M_CAN_CCCR, cccr | CCCR_INIT); in m_can_config_endisable()
331 m_can_write(priv, M_CAN_CCCR, cccr | CCCR_INIT | CCCR_CCE); in m_can_config_endisable()
333 m_can_write(priv, M_CAN_CCCR, cccr & ~(CCCR_INIT | CCCR_CCE)); in m_can_config_endisable()
845 u32 cccr, test; in m_can_chip_config() local
874 cccr = m_can_read(priv, M_CAN_CCCR); in m_can_chip_config()
875 cccr &= ~(CCCR_TEST | CCCR_MON | (CCCR_CMR_MASK << CCCR_CMR_SHIFT) | in m_can_chip_config()
881 cccr |= CCCR_MON; in m_can_chip_config()
884 cccr |= CCCR_TEST; in m_can_chip_config()
889 cccr |= CCCR_CME_CANFD_BRS << CCCR_CME_SHIFT; in m_can_chip_config()
891 m_can_write(priv, M_CAN_CCCR, cccr); in m_can_chip_config()
1050 u32 id, cccr; in m_can_start_xmit() local
1079 cccr = m_can_read(priv, M_CAN_CCCR); in m_can_start_xmit()
1080 cccr &= ~(CCCR_CMR_MASK << CCCR_CMR_SHIFT); in m_can_start_xmit()
1083 cccr |= CCCR_CMR_CANFD_BRS << CCCR_CMR_SHIFT; in m_can_start_xmit()
1085 cccr |= CCCR_CMR_CANFD << CCCR_CMR_SHIFT; in m_can_start_xmit()
1087 cccr |= CCCR_CMR_CAN << CCCR_CMR_SHIFT; in m_can_start_xmit()
1089 m_can_write(priv, M_CAN_CCCR, cccr); in m_can_start_xmit()