Lines Matching refs:cpu

86 	unsigned int i, cpu = read_mpidr() & MPIDR_CPU_MASK;  in tegra_fc_ccplex_pgexit_lock()  local
99 if (i == cpu) in tegra_fc_ccplex_pgexit_lock()
125 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_cpu_powerdn() local
127 VERBOSE("CPU%d powering down...\n", cpu); in tegra_fc_cpu_powerdn()
128 tegra_fc_prepare_suspend(cpu, 0); in tegra_fc_cpu_powerdn()
136 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_cluster_idle() local
141 tegra_fc_cc4_ctrl(cpu, 0); in tegra_fc_cluster_idle()
149 tegra_fc_prepare_suspend(cpu, val); in tegra_fc_cluster_idle()
157 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_cluster_powerdn() local
162 tegra_fc_cc4_ctrl(cpu, 0); in tegra_fc_cluster_powerdn()
170 tegra_fc_prepare_suspend(cpu, val); in tegra_fc_cluster_powerdn()
178 unsigned int i, cpu = read_mpidr() & MPIDR_CPU_MASK; in tegra_fc_is_ccx_allowed() local
185 if (i == cpu) in tegra_fc_is_ccx_allowed()
203 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_soc_powerdn() local
208 tegra_fc_cc4_ctrl(cpu, 0); in tegra_fc_soc_powerdn()
213 tegra_fc_prepare_suspend(cpu, val); in tegra_fc_soc_powerdn()
216 tegra_fc_halt_cpu(cpu, FLOWCTRL_WAITEVENT); in tegra_fc_soc_powerdn()
222 void tegra_fc_cpu_on(int cpu) in tegra_fc_cpu_on() argument
224 tegra_fc_cpu_csr(cpu, FLOWCTRL_CSR_ENABLE); in tegra_fc_cpu_on()
225 tegra_fc_halt_cpu(cpu, FLOWCTRL_WAITEVENT | FLOWCTRL_HALT_SCLK); in tegra_fc_cpu_on()
231 void tegra_fc_cpu_off(int cpu) in tegra_fc_cpu_off() argument
240 FLOWCTRL_CSR_ENABLE | (FLOWCTRL_WAIT_WFI_BITMAP << cpu); in tegra_fc_cpu_off()
241 tegra_fc_cpu_csr(cpu, val); in tegra_fc_cpu_off()
242 tegra_fc_halt_cpu(cpu, FLOWCTRL_WAITEVENT); in tegra_fc_cpu_off()
243 tegra_fc_cc4_ctrl(cpu, 0); in tegra_fc_cpu_off()