Home
last modified time | relevance | path

Searched refs:mpidr (Results 1 – 25 of 53) sorted by relevance

123

/OK3568_Linux_fs/kernel/arch/arm/mach-milbeaut/
H A Dplatsmp.c25 unsigned int mpidr, cpu, cluster; in m10v_boot_secondary() local
30 mpidr = cpu_logical_map(l_cpu); in m10v_boot_secondary()
31 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in m10v_boot_secondary()
32 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in m10v_boot_secondary()
48 unsigned int mpidr, cpu, cluster; in m10v_smp_init() local
59 mpidr = read_cpuid_mpidr(); in m10v_smp_init()
60 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in m10v_smp_init()
61 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in m10v_smp_init()
78 unsigned int mpidr, cpu; in m10v_cpu_kill() local
80 mpidr = cpu_logical_map(l_cpu); in m10v_cpu_kill()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-hisi/
H A Dplatmcpm.c100 unsigned int mpidr, cpu, cluster; in hip04_boot_secondary() local
104 mpidr = cpu_logical_map(l_cpu); in hip04_boot_secondary()
105 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in hip04_boot_secondary()
106 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in hip04_boot_secondary()
155 unsigned int mpidr, cpu, cluster; in hip04_cpu_die() local
158 mpidr = cpu_logical_map(l_cpu); in hip04_cpu_die()
159 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in hip04_cpu_die()
160 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in hip04_cpu_die()
193 unsigned int mpidr, cpu, cluster; in hip04_cpu_kill() local
196 mpidr = cpu_logical_map(l_cpu); in hip04_cpu_kill()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/kernel/
H A Dtopology.c188 unsigned int mpidr; in store_cpu_topology() local
193 mpidr = read_cpuid_mpidr(); in store_cpu_topology()
196 if ((mpidr & MPIDR_SMP_BITMASK) == MPIDR_SMP_VALUE) { in store_cpu_topology()
202 if (mpidr & MPIDR_MT_BITMASK) { in store_cpu_topology()
204 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
205 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
206 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 2); in store_cpu_topology()
210 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
211 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
229 cpu_topology[cpuid].package_id, mpidr); in store_cpu_topology()
H A Dsleep.S38 .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, #0xff00 @ mask = aff1
47 and \mask, \mpidr, #0xff0000 @ mask = aff2
78 ldmia r0, {r1, r6-r8} @ r1 = mpidr mask (r6,r7,r8) = l[0,1,2] shifts
157 ldmia r2, { r3-r6 } @ r3 = mpidr mask (r4,r5,r6) = l[0,1,2] shifts
/OK3568_Linux_fs/kernel/arch/arm/common/
H A Dmcpm_entry.c241 unsigned int mpidr, cpu, cluster; in mcpm_cpu_power_down() local
245 mpidr = read_cpuid_mpidr(); in mcpm_cpu_power_down()
246 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in mcpm_cpu_power_down()
247 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in mcpm_cpu_power_down()
330 unsigned int mpidr = read_cpuid_mpidr(); in mcpm_cpu_suspend() local
331 unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in mcpm_cpu_suspend()
332 unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in mcpm_cpu_suspend()
342 unsigned int mpidr, cpu, cluster; in mcpm_cpu_powered_up() local
349 mpidr = read_cpuid_mpidr(); in mcpm_cpu_powered_up()
350 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in mcpm_cpu_powered_up()
[all …]
H A Dmcpm_platsmp.c22 unsigned int mpidr; in cpu_to_pcpu() local
24 mpidr = cpu_logical_map(cpu); in cpu_to_pcpu()
25 *pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in cpu_to_pcpu()
26 *pcluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in cpu_to_pcpu()
73 unsigned int mpidr, pcpu, pcluster; in mcpm_cpu_die() local
74 mpidr = read_cpuid_mpidr(); in mcpm_cpu_die()
75 pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in mcpm_cpu_die()
76 pcluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in mcpm_cpu_die()
H A DbL_switcher.c124 unsigned int mpidr = read_mpidr(); in bL_switchpoint() local
125 unsigned int clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 1); in bL_switchpoint()
149 unsigned int mpidr, this_cpu, that_cpu; in bL_switch_to() local
236 mpidr = read_mpidr(); in bL_switch_to()
237 pr_debug("after switch: CPU %d MPIDR %#x\n", this_cpu, mpidr); in bL_switch_to()
238 BUG_ON(mpidr != ib_mpidr); in bL_switch_to()
515 int bL_switcher_get_logical_index(u32 mpidr) in bL_switcher_get_logical_index() argument
522 mpidr &= MPIDR_HWID_BITMASK; in bL_switcher_get_logical_index()
527 if ((mpidr == cpu_logical_map(cpu)) || in bL_switcher_get_logical_index()
528 (mpidr == cpu_logical_map(pairing))) in bL_switcher_get_logical_index()
/OK3568_Linux_fs/kernel/drivers/bus/
H A Darm-cci.c117 u64 mpidr; member
132 static inline void init_cpu_port(struct cpu_port *port, u32 index, u64 mpidr) in init_cpu_port() argument
135 port->mpidr = mpidr; in init_cpu_port()
143 static inline bool cpu_port_match(struct cpu_port *port, u64 mpidr) in cpu_port_match() argument
145 return port->mpidr == (mpidr & MPIDR_HWID_BITMASK); in cpu_port_match()
265 int notrace cci_disable_port_by_cpu(u64 mpidr) in cci_disable_port_by_cpu() argument
271 if (is_valid && cpu_port_match(&cpu_port[cpu], mpidr)) { in cci_disable_port_by_cpu()
366 [offsetof_cpu_port_mpidr_lsb] "i" (offsetof(struct cpu_port, mpidr)), in cci_enable_port_for_self()
368 [offsetof_cpu_port_mpidr_lsb] "i" (offsetof(struct cpu_port, mpidr)+4), in cci_enable_port_for_self()
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dsleep.S39 .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, #0xff00 // mask = aff1
46 and \mask, \mpidr, #0xff0000 // mask = aff2
49 and \mask, \mpidr, #0xff00000000 // mask = aff3
/OK3568_Linux_fs/kernel/arch/arm/mach-sunxi/
H A Dmc_smp.c394 unsigned int mpidr, cpu, cluster; in sunxi_mc_smp_boot_secondary() local
396 mpidr = cpu_logical_map(l_cpu); in sunxi_mc_smp_boot_secondary()
397 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in sunxi_mc_smp_boot_secondary()
398 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in sunxi_mc_smp_boot_secondary()
446 unsigned int mpidr, cpu, cluster; in sunxi_mc_smp_cpu_die() local
449 mpidr = cpu_logical_map(l_cpu); in sunxi_mc_smp_cpu_die()
450 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in sunxi_mc_smp_cpu_die()
451 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in sunxi_mc_smp_cpu_die()
536 unsigned int mpidr, cpu, cluster; in sunxi_mc_smp_cpu_kill() local
541 mpidr = cpu_logical_map(l_cpu); in sunxi_mc_smp_cpu_kill()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-exynos/
H A Dplatsmp.c51 u32 mpidr = cpu_logical_map(cpu); in platform_do_lowpower() local
52 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in platform_do_lowpower()
322 u32 mpidr = cpu_logical_map(cpu); in exynos_boot_secondary() local
323 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in exynos_boot_secondary()
427 u32 mpidr = cpu_logical_map(cpu); in exynos_cpu_die() local
428 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in exynos_cpu_die()
H A Dsuspend.c267 unsigned int mpidr = read_cpuid_mpidr(); in exynos5420_cpu_suspend() local
268 unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in exynos5420_cpu_suspend()
269 unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in exynos5420_cpu_suspend()
453 unsigned int mpidr, cluster; in exynos5420_prepare_pm_resume() local
455 mpidr = read_cpuid_mpidr(); in exynos5420_prepare_pm_resume()
456 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in exynos5420_prepare_pm_resume()
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/nvhe/
H A Dpsci-relay.c78 static unsigned int find_cpu_id(u64 mpidr) in find_cpu_id() argument
83 if (mpidr & ~MPIDR_HWID_BITMASK) in find_cpu_id()
87 if (cpu_logical_map(i) == mpidr) in find_cpu_id()
109 DECLARE_REG(u64, mpidr, host_ctxt, 1); in psci_cpu_on()
125 cpu_id = find_cpu_id(mpidr); in psci_cpu_on()
140 ret = psci_call(func_id, mpidr, in psci_cpu_on()
/OK3568_Linux_fs/kernel/Documentation/virt/kvm/devices/
H A Darm-vgic-v3.rst83 values: | mpidr | offset |
93 specified by the mpidr.
104 The mpidr field is used to specify which
105 redistributor is accessed. The mpidr is ignored for the distributor.
107 The mpidr encoding is based on the affinity information in the
114 regardless of the mpidr used to access the register.
177 values: | mpidr | RES | instr |
179 The mpidr field encodes the CPU ID based on the affinity information in the
196 CPU specified by the mpidr field.
206 -EINVAL Invalid mpidr or register value supplied
[all …]
/OK3568_Linux_fs/kernel/drivers/irqchip/
H A Dirq-gic-v3.c122 #define MPIDR_RS(mpidr) (((mpidr) & 0xF0UL) >> 4) argument
612 static u64 gic_mpidr_to_affinity(unsigned long mpidr) in gic_mpidr_to_affinity() argument
616 aff = ((u64)MPIDR_AFFINITY_LEVEL(mpidr, 3) << 32 | in gic_mpidr_to_affinity()
617 MPIDR_AFFINITY_LEVEL(mpidr, 2) << 16 | in gic_mpidr_to_affinity()
618 MPIDR_AFFINITY_LEVEL(mpidr, 1) << 8 | in gic_mpidr_to_affinity()
619 MPIDR_AFFINITY_LEVEL(mpidr, 0)); in gic_mpidr_to_affinity()
863 unsigned long mpidr = cpu_logical_map(smp_processor_id()); in __gic_populate_rdist() local
871 aff = (MPIDR_AFFINITY_LEVEL(mpidr, 3) << 24 | in __gic_populate_rdist()
872 MPIDR_AFFINITY_LEVEL(mpidr, 2) << 16 | in __gic_populate_rdist()
873 MPIDR_AFFINITY_LEVEL(mpidr, 1) << 8 | in __gic_populate_rdist()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-vexpress/
H A Dtc2_pm.c204 unsigned int mpidr, cpu, cluster; in tc2_pm_init() local
244 mpidr = read_cpuid_mpidr(); in tc2_pm_init()
245 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in tc2_pm_init()
246 cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in tc2_pm_init()
/OK3568_Linux_fs/kernel/arch/arm64/kvm/vgic/
H A Dvgic-mmio-v3.c191 ret = extract_bytes(READ_ONCE(irq->mpidr), addr & 7, len); in vgic_mmio_read_irouter()
217 irq->mpidr = val & GENMASK(23, 0); in vgic_mmio_write_irouter()
218 irq->target_vcpu = kvm_mpidr_to_vcpu(vcpu->kvm, irq->mpidr); in vgic_mmio_write_irouter()
257 unsigned long mpidr = kvm_vcpu_get_mpidr_aff(vcpu); in vgic_mmio_read_v3r_typer() local
265 value = (u64)(mpidr & GENMASK(23, 0)) << 32; in vgic_mmio_read_v3r_typer()
279 unsigned long mpidr = kvm_vcpu_get_mpidr_aff(vcpu); in vgic_uaccess_read_v3r_typer() local
283 value = (u64)(mpidr & GENMASK(23, 0)) << 32; in vgic_uaccess_read_v3r_typer()
976 u64 mpidr; in vgic_v3_dispatch_sgi() local
985 mpidr = SGI_AFFINITY_LEVEL(reg, 3); in vgic_v3_dispatch_sgi()
986 mpidr |= SGI_AFFINITY_LEVEL(reg, 2); in vgic_v3_dispatch_sgi()
[all …]
/OK3568_Linux_fs/kernel/drivers/cpuidle/
H A Dcpuidle-big_little.c103 unsigned int mpidr = read_cpuid_mpidr(); in bl_powerdown_finisher() local
104 unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1); in bl_powerdown_finisher()
105 unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in bl_powerdown_finisher()
/OK3568_Linux_fs/kernel/arch/arm64/include/asm/
H A Dsmp_plat.h34 static inline int get_logical_index(u64 mpidr) in get_logical_index() argument
38 if (cpu_logical_map(cpu) == mpidr) in get_logical_index()
/OK3568_Linux_fs/kernel/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; } in bL_switcher_get_logical_index() argument
H A Dsmp_plat.h80 static inline int get_logical_index(u32 mpidr) in get_logical_index() argument
84 if (cpu_logical_map(cpu) == mpidr) in get_logical_index()
/OK3568_Linux_fs/kernel/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; } in cci_disable_port_by_cpu() argument
/OK3568_Linux_fs/u-boot/arch/arm/include/asm/
H A Dsystem.h443 unsigned int mpidr; in read_mpidr() local
445 asm volatile ("mrc p15, 0, %[mpidr], c0, c0, 5" : [mpidr] "=r" (mpidr)); in read_mpidr()
446 return mpidr; in read_mpidr()
/OK3568_Linux_fs/kernel/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,
/OK3568_Linux_fs/u-boot/drivers/cpu/
H A Drockchip_amp.c84 u64 mpidr; in parse_cpus_boot_by_linux() local
92 mpidr = fdtdec_get_uint64(fdt, cpu, "id", 0xffffffff); in parse_cpus_boot_by_linux()
93 if (mpidr == 0xffffffff) in parse_cpus_boot_by_linux()
95 g_cpus_boot_by_linux[i++] = mpidr; in parse_cpus_boot_by_linux()
96 printf("CPU[0x%llx] is required boot by Linux\n", mpidr); in parse_cpus_boot_by_linux()

123