Searched refs:mpidr (Results 1 - 25 of 46) sorted by relevance

12

/linux-master/arch/arm/common/
H A Dmcpm_platsmp.c22 unsigned int mpidr; local
24 mpidr = cpu_logical_map(cpu);
25 *pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
26 *pcluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
73 unsigned int mpidr, pcpu, pcluster; local
74 mpidr = read_cpuid_mpidr();
75 pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
76 pcluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
H A Dmcpm_entry.c241 unsigned int mpidr, cpu, cluster; local
245 mpidr = read_cpuid_mpidr();
246 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
247 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
330 unsigned int mpidr = read_cpuid_mpidr(); local
331 unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
332 unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
342 unsigned int mpidr, cpu, cluster; local
349 mpidr = read_cpuid_mpidr();
350 cpu = MPIDR_AFFINITY_LEVEL(mpidr,
376 unsigned int mpidr = read_cpuid_mpidr(); local
426 unsigned int i, j, mpidr, this_cluster; local
[all...]
H A DbL_switcher.c124 unsigned int mpidr = read_mpidr(); local
125 unsigned int clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 1);
149 unsigned int mpidr, this_cpu, that_cpu; local
236 mpidr = read_mpidr();
237 pr_debug("after switch: CPU %d MPIDR %#x\n", this_cpu, mpidr);
238 BUG_ON(mpidr != ib_mpidr);
515 int bL_switcher_get_logical_index(u32 mpidr) argument
522 mpidr &= MPIDR_HWID_BITMASK;
527 if ((mpidr == cpu_logical_map(cpu)) ||
528 (mpidr
[all...]
/linux-master/arch/arm/mach-milbeaut/
H A Dplatsmp.c25 unsigned int mpidr, cpu, cluster; local
30 mpidr = cpu_logical_map(l_cpu);
31 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
32 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
48 unsigned int mpidr, cpu, cluster; local
59 mpidr = read_cpuid_mpidr();
60 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
61 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
78 unsigned int mpidr, cpu; local
80 mpidr
[all...]
/linux-master/arch/arm64/include/asm/
H A Dsmp_plat.h31 * - mpidr: MPIDR.Aff* bits to be used for the look-up
35 static inline int get_logical_index(u64 mpidr) argument
39 if (cpu_logical_map(cpu) == mpidr)
/linux-master/arch/arm/include/asm/
H A DbL_switcher.h55 int bL_switcher_get_logical_index(u32 mpidr);
71 static inline int bL_switcher_get_logical_index(u32 mpidr) { return -EUNATCH; } argument
H A Dsmp_plat.h76 * - mpidr: MPIDR[23:0] to be used for the look-up
80 static inline int get_logical_index(u32 mpidr) argument
84 if (cpu_logical_map(cpu) == mpidr)
H A Dcputype.h62 #define MPIDR_AFFINITY_LEVEL(mpidr, level) \
63 ((mpidr >> (MPIDR_LEVEL_BITS * level)) & MPIDR_LEVEL_MASK)
/linux-master/arch/arm/mach-hisi/
H A Dplatmcpm.c100 unsigned int mpidr, cpu, cluster; local
104 mpidr = cpu_logical_map(l_cpu);
105 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
106 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
155 unsigned int mpidr, cpu, cluster; local
158 mpidr = cpu_logical_map(l_cpu);
159 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
160 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
193 unsigned int mpidr, cpu, cluster; local
196 mpidr
249 unsigned int mpidr, cpu, cluster; local
[all...]
/linux-master/arch/arm/kernel/
H A Dtopology.c188 unsigned int mpidr; local
193 mpidr = read_cpuid_mpidr();
196 if ((mpidr & MPIDR_SMP_BITMASK) == MPIDR_SMP_VALUE) {
202 if (mpidr & MPIDR_MT_BITMASK) {
204 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0);
205 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1);
206 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 2);
210 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0);
211 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1);
226 pr_info("CPU%u: thread %d, cpu %d, socket %d, mpidr
[all...]
H A Dsleep.S18 * @mpidr: register containing MPIDR value
25 *compute_mpidr_hash(u32 rs0, u32 rs1, u32 rs2, u32 mpidr, u32 mask) {
27 * u32 mpidr_masked = mpidr & mask;
33 * Input registers: rs0, rs1, rs2, mpidr, mask
36 (eg: a macro instance with mpidr = r1 and dst = r1 is invalid)
38 .macro compute_mpidr_hash dst, rs0, rs1, rs2, mpidr, mask
39 and \mpidr, \mpidr, \mask @ mask out MPIDR bits
40 and \dst, \mpidr, #0xff @ mask=aff0
43 and \mask, \mpidr, #
[all...]
H A Ddevtree.c76 u32 mpidr = is_smp() ? read_cpuid_mpidr() & MPIDR_HWID_BITMASK : 0; local
122 if (hwid == mpidr) {
/linux-master/include/linux/
H A Darm-cci.h26 extern int cci_disable_port_by_cpu(u64 mpidr);
34 static inline int cci_disable_port_by_cpu(u64 mpidr) { return -ENODEV; } argument
/linux-master/arch/arm64/kernel/
H A Dsleep.S18 * @mpidr: register containing MPIDR_EL1 value
25 *compute_mpidr_hash(u32 rs0, u32 rs1, u32 rs2, u32 rs3, u64 mpidr, u64 mask) {
27 * u64 mpidr_masked = mpidr & mask;
34 * Input registers: rs0, rs1, rs2, rs3, mpidr, mask
37 (eg: a macro instance with mpidr = x1 and dst = x1 is invalid)
39 .macro compute_mpidr_hash dst, rs0, rs1, rs2, rs3, mpidr, mask
40 and \mpidr, \mpidr, \mask // mask out MPIDR bits
41 and \dst, \mpidr, #0xff // mask=aff0
43 and \mask, \mpidr, #
[all...]
/linux-master/drivers/bus/
H A Darm-cci.c117 u64 mpidr; member in struct:cpu_port
132 static inline void init_cpu_port(struct cpu_port *port, u32 index, u64 mpidr) argument
135 port->mpidr = mpidr;
143 static inline bool cpu_port_match(struct cpu_port *port, u64 mpidr) argument
145 return port->mpidr == (mpidr & MPIDR_HWID_BITMASK);
254 * @mpidr: mpidr of the CPU whose CCI port should be disabled
265 int notrace cci_disable_port_by_cpu(u64 mpidr) argument
[all...]
/linux-master/drivers/cpuidle/
H A Dcpuidle-big_little.c105 unsigned int mpidr = read_cpuid_mpidr(); local
106 unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
107 unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
/linux-master/arch/arm/mach-sunxi/
H A Dmc_smp.c393 unsigned int mpidr, cpu, cluster; local
395 mpidr = cpu_logical_map(l_cpu);
396 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
397 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
445 unsigned int mpidr, cpu, cluster; local
448 mpidr = cpu_logical_map(l_cpu);
449 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
450 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
535 unsigned int mpidr, cpu, cluster; local
540 mpidr
630 unsigned int mpidr, cpu, cluster; local
[all...]
/linux-master/arch/arm/mach-exynos/
H A Dplatsmp.c51 u32 mpidr = cpu_logical_map(cpu); local
52 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0);
320 u32 mpidr = cpu_logical_map(cpu); local
321 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0);
425 u32 mpidr = cpu_logical_map(cpu); local
426 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0);
H A Dsuspend.c268 unsigned int mpidr = read_cpuid_mpidr(); local
269 unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
270 unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
454 unsigned int mpidr, cluster; local
456 mpidr = read_cpuid_mpidr();
457 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
/linux-master/arch/arm64/kvm/hyp/nvhe/
H A Dpsci-relay.c78 static unsigned int find_cpu_id(u64 mpidr) argument
83 if (mpidr & ~MPIDR_HWID_BITMASK)
87 if (cpu_logical_map(i) == mpidr)
109 DECLARE_REG(u64, mpidr, host_ctxt, 1);
125 cpu_id = find_cpu_id(mpidr);
140 ret = psci_call(func_id, mpidr,
/linux-master/drivers/irqchip/
H A Dirq-gic-v3.c141 #define MPIDR_RS(mpidr) (((mpidr) & 0xF0UL) >> 4)
697 u64 mpidr = cpu_logical_map(cpu); local
702 mpidr = (MPIDR_AFFINITY_LEVEL(mpidr, 1) |
703 (MPIDR_AFFINITY_LEVEL(mpidr, 2) << 8));
705 aff = ((u64)MPIDR_AFFINITY_LEVEL(mpidr, 3) << 32 |
706 MPIDR_AFFINITY_LEVEL(mpidr, 2) << 16 |
707 MPIDR_AFFINITY_LEVEL(mpidr, 1) << 8 |
708 MPIDR_AFFINITY_LEVEL(mpidr,
1008 unsigned long mpidr; local
1131 u64 mpidr = gic_cpu_to_affinity(cpu); local
1310 unsigned long mpidr; local
[all...]
/linux-master/arch/arm/mach-versatile/
H A Dtc2_pm.c202 unsigned int mpidr, cpu, cluster; local
242 mpidr = read_cpuid_mpidr();
243 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
244 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
/linux-master/drivers/perf/hisilicon/
H A Dhisi_uncore_pmu.c432 u64 mpidr = read_cpuid_mpidr(); local
433 int aff3 = MPIDR_AFFINITY_LEVEL(mpidr, 3);
434 int aff2 = MPIDR_AFFINITY_LEVEL(mpidr, 2);
435 int aff1 = MPIDR_AFFINITY_LEVEL(mpidr, 1);
436 bool mt = mpidr & MPIDR_MT_BITMASK;
/linux-master/include/ras/
H A Dras_event.h178 __field(u64, mpidr)
191 __entry->mpidr = proc->mpidr;
193 __entry->mpidr = 0ULL;
206 __entry->affinity, __entry->mpidr, __entry->midr,
/linux-master/drivers/cpufreq/
H A Dtegra194-cpufreq.c107 static void tegra_get_cpu_mpidr(void *mpidr) argument
109 *((u64 *)mpidr) = read_cpuid_mpidr() & MPIDR_HWID_BITMASK;
114 u64 mpidr; local
116 smp_call_function_single(cpu, tegra_get_cpu_mpidr, &mpidr, true);
119 *cpuid = MPIDR_AFFINITY_LEVEL(mpidr, 1);
121 *clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 2);
209 u64 mpidr; local
211 smp_call_function_single(cpu, tegra_get_cpu_mpidr, &mpidr, true);
214 *cpuid = MPIDR_AFFINITY_LEVEL(mpidr, 0);
216 *clusterid = MPIDR_AFFINITY_LEVEL(mpidr,
[all...]

Completed in 245 milliseconds

12