Lines Matching refs:reg
76 unsigned int reg; in flowctrl_cpu_suspend_enter() local
79 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_enter()
83 reg &= ~TEGRA20_FLOW_CTRL_CSR_WFE_BITMAP; in flowctrl_cpu_suspend_enter()
85 reg &= ~TEGRA20_FLOW_CTRL_CSR_WFI_BITMAP; in flowctrl_cpu_suspend_enter()
87 reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
93 reg &= ~TEGRA30_FLOW_CTRL_CSR_WFE_BITMAP; in flowctrl_cpu_suspend_enter()
95 reg &= ~TEGRA30_FLOW_CTRL_CSR_WFI_BITMAP; in flowctrl_cpu_suspend_enter()
97 reg |= TEGRA30_FLOW_CTRL_CSR_WFI_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
100 reg |= FLOW_CTRL_CSR_INTR_FLAG; /* clear intr flag */ in flowctrl_cpu_suspend_enter()
101 reg |= FLOW_CTRL_CSR_EVENT_FLAG; /* clear event flag */ in flowctrl_cpu_suspend_enter()
102 reg |= FLOW_CTRL_CSR_ENABLE; /* pwr gating */ in flowctrl_cpu_suspend_enter()
103 flowctrl_write_cpu_csr(cpuid, reg); in flowctrl_cpu_suspend_enter()
108 reg = flowctrl_read_cpu_csr(i); in flowctrl_cpu_suspend_enter()
109 reg |= FLOW_CTRL_CSR_EVENT_FLAG; in flowctrl_cpu_suspend_enter()
110 reg |= FLOW_CTRL_CSR_INTR_FLAG; in flowctrl_cpu_suspend_enter()
111 flowctrl_write_cpu_csr(i, reg); in flowctrl_cpu_suspend_enter()
117 unsigned int reg; in flowctrl_cpu_suspend_exit() local
120 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_exit()
124 reg &= ~TEGRA20_FLOW_CTRL_CSR_WFE_BITMAP; in flowctrl_cpu_suspend_exit()
126 reg &= ~TEGRA20_FLOW_CTRL_CSR_WFI_BITMAP; in flowctrl_cpu_suspend_exit()
132 reg &= ~TEGRA30_FLOW_CTRL_CSR_WFE_BITMAP; in flowctrl_cpu_suspend_exit()
134 reg &= ~TEGRA30_FLOW_CTRL_CSR_WFI_BITMAP; in flowctrl_cpu_suspend_exit()
137 reg &= ~FLOW_CTRL_CSR_ENABLE; /* clear enable */ in flowctrl_cpu_suspend_exit()
138 reg |= FLOW_CTRL_CSR_INTR_FLAG; /* clear intr */ in flowctrl_cpu_suspend_exit()
139 reg |= FLOW_CTRL_CSR_EVENT_FLAG; /* clear event */ in flowctrl_cpu_suspend_exit()
140 flowctrl_write_cpu_csr(cpuid, reg); in flowctrl_cpu_suspend_exit()