Lines Matching refs:mpidr
217 static u32 compress_mpidr(unsigned long mpidr) in compress_mpidr() argument
221 ret = MPIDR_AFFINITY_LEVEL(mpidr, 0); in compress_mpidr()
222 ret |= MPIDR_AFFINITY_LEVEL(mpidr, 1) << 8; in compress_mpidr()
223 ret |= MPIDR_AFFINITY_LEVEL(mpidr, 2) << 16; in compress_mpidr()
224 ret |= MPIDR_AFFINITY_LEVEL(mpidr, 3) << 24; in compress_mpidr()
231 unsigned long mpidr; in uncompress_mpidr() local
233 mpidr = ((value >> 0) & 0xFF) << MPIDR_LEVEL_SHIFT(0); in uncompress_mpidr()
234 mpidr |= ((value >> 8) & 0xFF) << MPIDR_LEVEL_SHIFT(1); in uncompress_mpidr()
235 mpidr |= ((value >> 16) & 0xFF) << MPIDR_LEVEL_SHIFT(2); in uncompress_mpidr()
236 mpidr |= (u64)((value >> 24) & 0xFF) << MPIDR_LEVEL_SHIFT(3); in uncompress_mpidr()
238 return mpidr; in uncompress_mpidr()
259 unsigned long *bmap, mpidr; in handle_mmio_route_reg() local
275 mpidr = uncompress_mpidr(dist->irq_spi_mpidr[spi]); in handle_mmio_route_reg()
276 reg = mpidr; in handle_mmio_route_reg()
288 vcpu = kvm_mpidr_to_vcpu(kvm, mpidr); in handle_mmio_route_reg()
520 u64 mpidr; in handle_mmio_typer_redist() local
526 mpidr = kvm_vcpu_get_mpidr_aff(redist_vcpu); in handle_mmio_typer_redist()
527 reg = compress_mpidr(mpidr); in handle_mmio_typer_redist()
800 u32 mpidr; in vgic_v3_init_model() local
811 mpidr = compress_mpidr(kvm_vcpu_get_mpidr_aff(kvm_get_vcpu(kvm, 0))); in vgic_v3_init_model()
814 dist->irq_spi_mpidr[i - VGIC_NR_PRIVATE_IRQS] = mpidr; in vgic_v3_init_model()
891 u64 mpidr; in vgic_v3_dispatch_sgi() local
900 mpidr = SGI_AFFINITY_LEVEL(reg, 3); in vgic_v3_dispatch_sgi()
901 mpidr |= SGI_AFFINITY_LEVEL(reg, 2); in vgic_v3_dispatch_sgi()
902 mpidr |= SGI_AFFINITY_LEVEL(reg, 1); in vgic_v3_dispatch_sgi()
929 level0 = match_mpidr(mpidr, target_cpus, c_vcpu); in vgic_v3_dispatch_sgi()