Home
last modified time | relevance | path

Searched refs:C_CAN_CTRL_REG (Results 1 – 2 of 2) sorted by relevance

/drivers/net/can/c_can/
Dc_can.c235 u32 ctrl = priv->read_reg(priv, C_CAN_CTRL_REG) & ~CONTROL_IRQMSK; in c_can_irq_control()
240 priv->write_reg(priv, C_CAN_CTRL_REG, ctrl); in c_can_irq_control()
482 while (init != (priv->read_reg(priv, C_CAN_CTRL_REG) & CONTROL_INIT)) { in c_can_wait_for_ctrl_init()
516 ctrl_save = priv->read_reg(priv, C_CAN_CTRL_REG); in c_can_set_bittiming()
518 priv->write_reg(priv, C_CAN_CTRL_REG, CONTROL_CCE | CONTROL_INIT); in c_can_set_bittiming()
525 priv->write_reg(priv, C_CAN_CTRL_REG, ctrl_save); in c_can_set_bittiming()
563 priv->write_reg(priv, C_CAN_CTRL_REG, CONTROL_SWR | CONTROL_INIT); in c_can_software_reset()
564 while (priv->read_reg(priv, C_CAN_CTRL_REG) & CONTROL_SWR) { in c_can_software_reset()
591 priv->write_reg(priv, C_CAN_CTRL_REG, CONTROL_ENABLE_AR); in c_can_chip_config()
596 priv->write_reg(priv, C_CAN_CTRL_REG, CONTROL_TEST); in c_can_chip_config()
[all …]
Dc_can.h43 C_CAN_CTRL_REG = 0, enumerator
85 [C_CAN_CTRL_REG] = 0x00,
125 [C_CAN_CTRL_REG] = 0x00,