Lines Matching refs:mod_reg_val
235 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()
320 u32 mod_reg_val; in sun4i_can_start() local
344 mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR); in sun4i_can_start()
346 mod_reg_val |= SUN4I_MSEL_LOOPBACK_MODE; in sun4i_can_start()
348 mod_reg_val |= SUN4I_MSEL_LISTEN_ONLY_MODE; in sun4i_can_start()
349 writel(mod_reg_val, priv->base + SUN4I_REG_MSEL_ADDR); in sun4i_can_start()