Lines Matching refs:cpuid
57 u32 flowctrl_read_cpu_csr(unsigned int cpuid) in flowctrl_read_cpu_csr() argument
59 u8 offset = flowctrl_offset_cpu_csr[cpuid]; in flowctrl_read_cpu_csr()
64 void flowctrl_write_cpu_csr(unsigned int cpuid, u32 value) in flowctrl_write_cpu_csr() argument
66 return flowctrl_update(flowctrl_offset_cpu_csr[cpuid], value); in flowctrl_write_cpu_csr()
69 void flowctrl_write_cpu_halt(unsigned int cpuid, u32 value) in flowctrl_write_cpu_halt() argument
71 return flowctrl_update(flowctrl_offset_halt_cpu[cpuid], value); in flowctrl_write_cpu_halt()
74 void flowctrl_cpu_suspend_enter(unsigned int cpuid) in flowctrl_cpu_suspend_enter() argument
79 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_enter()
87 reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
97 reg |= TEGRA30_FLOW_CTRL_CSR_WFI_CPU0 << cpuid; in flowctrl_cpu_suspend_enter()
103 flowctrl_write_cpu_csr(cpuid, reg); in flowctrl_cpu_suspend_enter()
106 if (i == cpuid) in flowctrl_cpu_suspend_enter()
115 void flowctrl_cpu_suspend_exit(unsigned int cpuid) in flowctrl_cpu_suspend_exit() argument
120 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_exit()
140 flowctrl_write_cpu_csr(cpuid, reg); in flowctrl_cpu_suspend_exit()