Lines Matching refs:cpu
14 #include <linux/cpu.h>
52 #define STANDBYWFI_STAT_A15_CPU_MASK(cpu) (1 << (cpu))
53 #define STANDBYWFI_STAT_A7_CPU_MASK(cpu) (1 << (3 + (cpu)))
143 * @cpu: mpidr[7:0] bitfield describing cpu affinity level
150 void ve_spc_cpu_wakeup_irq(u32 cluster, u32 cpu, bool set)
157 mask = BIT(cpu);
176 * @cpu: mpidr[7:0] bitfield describing cpu affinity level
179 void ve_spc_set_resume_addr(u32 cluster, u32 cpu, u32 addr)
187 baseaddr = info->baseaddr + A15_BX_ADDR0 + (cpu << 2);
189 baseaddr = info->baseaddr + A7_BX_ADDR0 + (cpu << 2);
215 static u32 standbywfi_cpu_mask(u32 cpu, u32 cluster)
218 STANDBYWFI_STAT_A15_CPU_MASK(cpu)
219 : STANDBYWFI_STAT_A7_CPU_MASK(cpu);
225 * @cpu: mpidr[7:0] bitfield describing CPU affinity level within cluster
234 int ve_spc_cpu_in_wfi(u32 cpu, u32 cluster)
237 u32 mask = standbywfi_cpu_mask(cpu, cluster);
546 int cpu, cluster;
558 for_each_possible_cpu(cpu) {
559 struct device *cpu_dev = get_cpu_device(cpu);
561 pr_warn("failed to get cpu%d device\n", cpu);
566 pr_warn("failed to register cpu%d clock\n", cpu);
570 pr_warn("failed to register cpu%d clock lookup\n", cpu);
579 pr_warn("failed to initialise cpu%d opp table\n", cpu);
582 pr_warn("failed to mark OPPs shared for cpu%d\n", cpu);