Lines Matching refs:mod_reg_val
250 u32 mod_reg_val = 0; in set_normal_mode() local
253 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in set_normal_mode()
254 mod_reg_val &= ~SUN4I_MSEL_RESET_MODE; in set_normal_mode()
255 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in set_normal_mode()
256 } while (retry-- && (mod_reg_val & SUN4I_MSEL_RESET_MODE)); in set_normal_mode()
271 u32 mod_reg_val = 0; in set_reset_mode() local
274 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in set_reset_mode()
275 mod_reg_val |= SUN4I_MSEL_RESET_MODE; in set_reset_mode()
276 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in set_reset_mode()
277 } while (retry-- && !(mod_reg_val & SUN4I_MSEL_RESET_MODE)); in set_reset_mode()
335 u32 mod_reg_val; in sun4i_can_start() local
359 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in sun4i_can_start()
361 mod_reg_val |= SUN4I_MSEL_LOOPBACK_MODE; in sun4i_can_start()
363 mod_reg_val |= SUN4I_MSEL_LISTEN_ONLY_MODE; in sun4i_can_start()
364 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in sun4i_can_start()