Lines Matching refs:reg
17 u32 reg = __raw_readl(PM_CLK_GATE_REG); in cns3xxx_pwr_clk_en() local
19 reg |= (block & PM_CLK_GATE_REG_MASK); in cns3xxx_pwr_clk_en()
20 __raw_writel(reg, PM_CLK_GATE_REG); in cns3xxx_pwr_clk_en()
26 u32 reg = __raw_readl(PM_CLK_GATE_REG); in cns3xxx_pwr_clk_dis() local
28 reg &= ~(block & PM_CLK_GATE_REG_MASK); in cns3xxx_pwr_clk_dis()
29 __raw_writel(reg, PM_CLK_GATE_REG); in cns3xxx_pwr_clk_dis()
35 u32 reg = __raw_readl(PM_PLL_HM_PD_CTRL_REG); in cns3xxx_pwr_power_up() local
37 reg &= ~(block & CNS3XXX_PWR_PLL_ALL); in cns3xxx_pwr_power_up()
38 __raw_writel(reg, PM_PLL_HM_PD_CTRL_REG); in cns3xxx_pwr_power_up()
47 u32 reg = __raw_readl(PM_PLL_HM_PD_CTRL_REG); in cns3xxx_pwr_power_down() local
50 reg |= (block & CNS3XXX_PWR_PLL_ALL); in cns3xxx_pwr_power_down()
51 __raw_writel(reg, PM_PLL_HM_PD_CTRL_REG); in cns3xxx_pwr_power_down()
57 u32 reg = __raw_readl(PM_SOFT_RST_REG); in cns3xxx_pwr_soft_rst_force() local
64 reg &= ~(block & PM_SOFT_RST_REG_MASK); in cns3xxx_pwr_soft_rst_force()
66 reg &= ~(block & PM_SOFT_RST_REG_MASK); in cns3xxx_pwr_soft_rst_force()
67 __raw_writel(reg, PM_SOFT_RST_REG); in cns3xxx_pwr_soft_rst_force()
68 reg |= (block & PM_SOFT_RST_REG_MASK); in cns3xxx_pwr_soft_rst_force()
71 __raw_writel(reg, PM_SOFT_RST_REG); in cns3xxx_pwr_soft_rst_force()
105 u32 reg = __raw_readl(PM_CLK_CTRL_REG); in cns3xxx_cpu_clock() local
110 cpu_sel = (reg >> PM_CLK_CTRL_REG_OFFSET_PLL_CPU_SEL) & 0xf; in cns3xxx_cpu_clock()
111 div_sel = (reg >> PM_CLK_CTRL_REG_OFFSET_CPU_CLK_DIV) & 0x3; in cns3xxx_cpu_clock()