Home
last modified time | relevance | path

Searched full:mpidr (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/arm64/include/
H A Dcpu.h60 #define CPU_AFF0(mpidr) (u_int)(((mpidr) >> 0) & 0xff) argument
61 #define CPU_AFF1(mpidr) (u_int)(((mpidr) >> 8) & 0xff) argument
62 #define CPU_AFF2(mpidr) (u_int)(((mpidr) >> 16) & 0xff) argument
63 #define CPU_AFF3(mpidr) (u_int)(((mpidr) >> 32) & 0xff) argument
H A Dcpufunc.h112 uint64_t mpidr; in get_mpidr() local
114 mpidr = READ_SPECIALREG(mpidr_el1); in get_mpidr()
116 return (mpidr); in get_mpidr()
/freebsd/sys/arm/arm/
H A Dpmu_fdt.c88 phandle_t xref, uint32_t mpidr) in pmu_parse_affinity() argument
95 err = OF_getencprop(OF_node_from_xref(xref), "reg", &mpidr, in pmu_parse_affinity()
96 sizeof(mpidr)); in pmu_parse_affinity()
105 if (pcpu != NULL && PCPU_GET_MPIDR(pcpu) == mpidr) { in pmu_parse_affinity()
111 device_printf(dev, "Cannot find CPU with MPIDR: 0x%08X\n", mpidr); in pmu_parse_affinity()
H A Dcpuinfo.c140 cpuinfo.mpidr = cp15_mpidr_get(); in cpuinfo_init()
188 /* mpidr */ in cpuinfo_init()
189 cpuinfo.mp_ext = (cpuinfo.mpidr >> 31u) & 0x1; in cpuinfo_init()
H A Didentcpu-v6.c304 val = (cpuinfo.mpidr >> 4)& 0xF; in identify_arm_cpu()
305 if (cpuinfo.mpidr & (1 << 31U)) in identify_arm_cpu()
H A Dpmu_acpi.c88 device_printf(sc->dev, "MADT: cpu %d (mpidr %lu) irq %d " in madt_handler()
/freebsd/sys/arm64/arm64/
H A Dmp_machdep.c193 uint64_t mpidr; in init_secondary() local
202 mpidr = READ_SPECIALREG(mpidr_el1) & CPU_AFF_MASK; in init_secondary()
204 PCPU_GET_MPIDR(cpuid_to_pcpu[cpu]) != mpidr) { in init_secondary()
207 PCPU_GET_MPIDR(cpuid_to_pcpu[cpu]) == mpidr) in init_secondary()
210 panic("MPIDR for this CPU is not in pcpu table"); in init_secondary()
696 uint64_t mpidr; in cpu_mp_start() local
702 mpidr = READ_SPECIALREG(mpidr_el1) & CPU_AFF_MASK; in cpu_mp_start()
703 cpuid_to_pcpu[0]->pc_mpidr = mpidr; in cpu_mp_start()
H A Didentcpu.c135 uint64_t mpidr; member
3049 sbuf_printf(sb, " %2d", CPU_AFF3(desc->mpidr)); in print_cpu_features()
3052 sbuf_printf(sb, " %2d", CPU_AFF2(desc->mpidr)); in print_cpu_features()
3055 sbuf_printf(sb, " %2d", CPU_AFF1(desc->mpidr)); in print_cpu_features()
3059 sbuf_printf(sb, " %2d", CPU_AFF0(desc->mpidr)); in print_cpu_features()
3249 desc->mpidr = get_mpidr(); in identify_cpu()
3250 CPU_AFFINITY(cpu) = desc->mpidr & CPU_AFF_MASK; in identify_cpu()
3310 if (CPU_AFF0(desc->mpidr) != CPU_AFF0(prev_desc->mpidr)) in check_cpu_regs()
3314 if (CPU_AFF1(desc->mpidr) != CPU_AFF1(prev_desc->mpidr)) in check_cpu_regs()
3318 if (CPU_AFF2(desc->mpidr) != CPU_AFF2(prev_desc->mpidr)) in check_cpu_regs()
[all …]
/freebsd/sys/arm/include/
H A Dcpuinfo.h65 uint32_t mpidr; member
118 /* mpidr */
/freebsd/sys/arm64/vmm/io/
H A Dvgic_v3.c98 uint64_t mpidr; member
425 mpidr_to_vcpu(struct hyp *hyp, uint64_t mpidr) in mpidr_to_vcpu() argument
433 if (hypctx != NULL && (hypctx->vmpidr_el2 & GICD_AFF) == mpidr) in mpidr_to_vcpu()
483 irq->mpidr = hypctx->vmpidr_el2 & GICD_AFF; in vgic_v3_cpuinit()
955 uint64_t mpidr; in read_route() local
961 mpidr = irq->mpidr; in read_route()
964 return (mpidr); in read_route()
977 irq->mpidr = gic_reg_value_64(irq->mpidr, val, offset, size) & GICD_AFF; in write_route()
978 irq->target_vcpu = mpidr_to_vcpu(hypctx->hyp, irq->mpidr); in write_route()
980 * If the interrupt is pending we can either use the old mpidr, or in write_route()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/arm/
H A Dcpus.yaml60 required and matches the CPU MPIDR[23:0] register
64 bits [23:0] in MPIDR.
/freebsd/sys/arm64/vmm/
H A Dvmm_reset.c154 * Generate the guest MPIDR value. We only support 16 CPUs at affinity in reset_vm_el2_regs()
/freebsd/sys/contrib/alpine-hal/
H A Dal_hal_nb_regs.h481 Register (MPIDR).
486 Register (MPIDR).
/freebsd/sys/contrib/dev/acpica/common/
H A Ddmtbinfo2.c862 {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ArmMpidr), "ARM MPIDR", 0},
890 {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ArmMpidr), "ARM MPIDR", 0},
919 {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ArmMpidr), "ARM MPIDR", 0},
/freebsd/sys/contrib/edk2/Include/IndustryStandard/
H A DAcpi51.h508 UINT64 MPIDR; member
H A DAcpi60.h509 UINT64 MPIDR; member