Lines Matching refs:reg_ctrl

569 	u32 reg_ctrl = (priv->reg_ctrl_default | FLEXCAN_CTRL_ERR_MSK);  in flexcan_error_irq_enable()  local
571 priv->write(reg_ctrl, &regs->ctrl); in flexcan_error_irq_enable()
577 u32 reg_ctrl = (priv->reg_ctrl_default & ~FLEXCAN_CTRL_ERR_MSK); in flexcan_error_irq_disable() local
579 priv->write(reg_ctrl, &regs->ctrl); in flexcan_error_irq_disable()
941 u32 reg_ctrl, reg_id, reg_iflag1; in flexcan_mailbox_read() local
950 reg_ctrl = priv->read(&mb->can_ctrl); in flexcan_mailbox_read()
951 } while (reg_ctrl & FLEXCAN_MB_CODE_RX_BUSY_BIT); in flexcan_mailbox_read()
954 code = reg_ctrl & FLEXCAN_MB_CODE_MASK; in flexcan_mailbox_read()
969 reg_ctrl = priv->read(&mb->can_ctrl); in flexcan_mailbox_read()
977 if (reg_ctrl & FLEXCAN_MB_CNT_EDL) in flexcan_mailbox_read()
987 *timestamp = reg_ctrl << 16; in flexcan_mailbox_read()
990 if (reg_ctrl & FLEXCAN_MB_CNT_IDE) in flexcan_mailbox_read()
995 if (reg_ctrl & FLEXCAN_MB_CNT_EDL) { in flexcan_mailbox_read()
996 cfd->len = can_fd_dlc2len((reg_ctrl >> 16) & 0xf); in flexcan_mailbox_read()
998 if (reg_ctrl & FLEXCAN_MB_CNT_BRS) in flexcan_mailbox_read()
1001 cfd->len = can_cc_dlc2len((reg_ctrl >> 16) & 0xf); in flexcan_mailbox_read()
1003 if (reg_ctrl & FLEXCAN_MB_CNT_RTR) in flexcan_mailbox_read()
1007 if (reg_ctrl & FLEXCAN_MB_CNT_ESI) in flexcan_mailbox_read()
1076 u32 reg_ctrl = priv->read(&priv->tx_mb->can_ctrl); in flexcan_irq() local
1081 reg_ctrl << 16, NULL); in flexcan_irq()
1420 u32 reg_mcr, reg_ctrl, reg_ctrl2, reg_mecr; in flexcan_chip_start() local
1505 reg_ctrl = priv->read(&regs->ctrl); in flexcan_chip_start()
1506 reg_ctrl &= ~FLEXCAN_CTRL_TSYN; in flexcan_chip_start()
1507 reg_ctrl |= FLEXCAN_CTRL_BOFF_REC | FLEXCAN_CTRL_LBUF | in flexcan_chip_start()
1516 reg_ctrl |= FLEXCAN_CTRL_ERR_MSK; in flexcan_chip_start()
1518 reg_ctrl &= ~FLEXCAN_CTRL_ERR_MSK; in flexcan_chip_start()
1521 priv->reg_ctrl_default = reg_ctrl; in flexcan_chip_start()
1523 reg_ctrl &= ~FLEXCAN_CTRL_ERR_ALL; in flexcan_chip_start()
1524 netdev_dbg(dev, "%s: writing ctrl=0x%08x", __func__, reg_ctrl); in flexcan_chip_start()
1525 priv->write(reg_ctrl, &regs->ctrl); in flexcan_chip_start()