Lines Matching refs:reg_mcr

508 	u32 reg_mcr;  in flexcan_enable_wakeup_irq()  local
510 reg_mcr = priv->read(&regs->mcr); in flexcan_enable_wakeup_irq()
513 reg_mcr |= FLEXCAN_MCR_WAK_MSK; in flexcan_enable_wakeup_irq()
515 reg_mcr &= ~FLEXCAN_MCR_WAK_MSK; in flexcan_enable_wakeup_irq()
517 priv->write(reg_mcr, &regs->mcr); in flexcan_enable_wakeup_irq()
540 u32 reg_mcr; in flexcan_enter_stop_mode() local
543 reg_mcr = priv->read(&regs->mcr); in flexcan_enter_stop_mode()
544 reg_mcr |= FLEXCAN_MCR_SLF_WAK; in flexcan_enter_stop_mode()
545 priv->write(reg_mcr, &regs->mcr); in flexcan_enter_stop_mode()
570 u32 reg_mcr; in flexcan_exit_stop_mode() local
587 reg_mcr = priv->read(&regs->mcr); in flexcan_exit_stop_mode()
588 reg_mcr &= ~FLEXCAN_MCR_SLF_WAK; in flexcan_exit_stop_mode()
589 priv->write(reg_mcr, &regs->mcr); in flexcan_exit_stop_mode()
1448 u32 reg_mcr, reg_ctrl, reg_ctrl2, reg_mecr; in flexcan_chip_start() local
1480 reg_mcr = priv->read(&regs->mcr); in flexcan_chip_start()
1481 reg_mcr &= ~FLEXCAN_MCR_MAXMB(0xff); in flexcan_chip_start()
1482 reg_mcr |= FLEXCAN_MCR_SUPV | FLEXCAN_MCR_WRN_EN | FLEXCAN_MCR_IRMQ | in flexcan_chip_start()
1492 reg_mcr &= ~FLEXCAN_MCR_FEN; in flexcan_chip_start()
1494 reg_mcr |= FLEXCAN_MCR_FEN; in flexcan_chip_start()
1509 reg_mcr &= ~FLEXCAN_MCR_SRX_DIS; in flexcan_chip_start()
1511 reg_mcr |= FLEXCAN_MCR_SRX_DIS; in flexcan_chip_start()
1515 reg_mcr |= FLEXCAN_MCR_FDEN; in flexcan_chip_start()
1517 reg_mcr &= ~FLEXCAN_MCR_FDEN; in flexcan_chip_start()
1519 netdev_dbg(dev, "%s: writing mcr=0x%08x", __func__, reg_mcr); in flexcan_chip_start()
1520 priv->write(reg_mcr, &regs->mcr); in flexcan_chip_start()