Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/can/
Dsun4i_can.c235 u32 mod_reg_val = 0; in set_normal_mode() local
238 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in set_normal_mode()
239 mod_reg_val &= ~SUN4I_MSEL_RESET_MODE; in set_normal_mode()
240 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in set_normal_mode()
241 } while (retry-- && (mod_reg_val & SUN4I_MSEL_RESET_MODE)); in set_normal_mode()
256 u32 mod_reg_val = 0; in set_reset_mode() local
259 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in set_reset_mode()
260 mod_reg_val |= SUN4I_MSEL_RESET_MODE; in set_reset_mode()
261 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in set_reset_mode()
262 } while (retry-- && !(mod_reg_val & SUN4I_MSEL_RESET_MODE)); in set_reset_mode()
[all …]
/Linux-v4.19/drivers/net/can/sja1000/
Dsja1000.c144 u8 mod_reg_val = 0x00; in set_normal_mode() local
162 mod_reg_val |= MOD_LOM; in set_normal_mode()
164 mod_reg_val |= MOD_STM; in set_normal_mode()
165 priv->write_reg(priv, SJA1000_MOD, mod_reg_val); in set_normal_mode()