Home
last modified time | relevance | path

Searched refs:rdreg (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/arch/arm64/kvm/vgic/
Dvgic-mmio-v3.c296 struct vgic_redist_region *iter, *rdreg = vgic_cpu->rdreg; in vgic_mmio_vcpu_rdist_is_last() local
298 if (!rdreg) in vgic_mmio_vcpu_rdist_is_last()
301 if (vgic_cpu->rdreg_index < rdreg->free_index - 1) { in vgic_mmio_vcpu_rdist_is_last()
303 } else if (rdreg->count && vgic_cpu->rdreg_index == (rdreg->count - 1)) { in vgic_mmio_vcpu_rdist_is_last()
305 gpa_t end = rdreg->base + rdreg->count * KVM_VGIC_V3_REDIST_SIZE; in vgic_mmio_vcpu_rdist_is_last()
777 struct vgic_redist_region *rdreg; in vgic_register_redist_iodev() local
793 rdreg = vgic_v3_rdist_free_slot(&vgic->rd_regions); in vgic_register_redist_iodev()
794 if (!rdreg) in vgic_register_redist_iodev()
802 vgic_cpu->rdreg = rdreg; in vgic_register_redist_iodev()
803 vgic_cpu->rdreg_index = rdreg->free_index; in vgic_register_redist_iodev()
[all …]
Dvgic-v3.c463 struct vgic_redist_region *rdreg; in vgic_v3_rdist_overlap() local
465 list_for_each_entry(rdreg, &d->rd_regions, list) { in vgic_v3_rdist_overlap()
466 if ((base + size > rdreg->base) && in vgic_v3_rdist_overlap()
467 (base < rdreg->base + vgic_v3_rd_region_size(kvm, rdreg))) in vgic_v3_rdist_overlap()
480 struct vgic_redist_region *rdreg; in vgic_v3_check_base() local
486 list_for_each_entry(rdreg, &d->rd_regions, list) { in vgic_v3_check_base()
487 size_t sz = vgic_v3_rd_region_size(kvm, rdreg); in vgic_v3_check_base()
490 rdreg->base, SZ_64K, sz)) in vgic_v3_check_base()
515 struct vgic_redist_region *rdreg; in vgic_v3_rdist_free_slot() local
517 list_for_each_entry(rdreg, rd_regions, list) { in vgic_v3_rdist_free_slot()
[all …]
Dvgic-kvm-device.c130 struct vgic_redist_region *rdreg; in kvm_vgic_addr() local
139 rdreg = list_first_entry_or_null(&vgic->rd_regions, in kvm_vgic_addr()
141 if (!rdreg) in kvm_vgic_addr()
144 addr_ptr = &rdreg->base; in kvm_vgic_addr()
149 struct vgic_redist_region *rdreg; in kvm_vgic_addr() local
171 rdreg = vgic_v3_rdist_region_from_index(kvm, index); in kvm_vgic_addr()
172 if (!rdreg) { in kvm_vgic_addr()
178 addr |= rdreg->base; in kvm_vgic_addr()
179 addr |= (u64)rdreg->count << KVM_VGIC_V3_RDIST_COUNT_SHIFT; in kvm_vgic_addr()
Dvgic.h303 vgic_v3_rd_region_size(struct kvm *kvm, struct vgic_redist_region *rdreg) in vgic_v3_rd_region_size() argument
305 if (!rdreg->count) in vgic_v3_rd_region_size()
308 return rdreg->count * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
313 void vgic_v3_free_redist_region(struct vgic_redist_region *rdreg);
Dvgic-init.c346 struct vgic_redist_region *rdreg, *next; in kvm_vgic_dist_destroy() local
357 list_for_each_entry_safe(rdreg, next, &dist->rd_regions, list) in kvm_vgic_dist_destroy()
358 vgic_v3_free_redist_region(rdreg); in kvm_vgic_dist_destroy()
/linux-6.6.21/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c117 u16 rdreg; in gpio_mdio_read() local
132 rdreg = 0; in gpio_mdio_read()
140 rdreg <<= 1; in gpio_mdio_read()
141 rdreg |= mdio_read(bus); in gpio_mdio_read()
149 ret = rdreg; in gpio_mdio_read()
/linux-6.6.21/drivers/spi/
Dspi-cadence-quadspi.c364 u32 rdreg = 0; in cqspi_calc_rdreg() local
366 rdreg |= CQSPI_OP_WIDTH(op->cmd) << CQSPI_REG_RD_INSTR_TYPE_INSTR_LSB; in cqspi_calc_rdreg()
367 rdreg |= CQSPI_OP_WIDTH(op->addr) << CQSPI_REG_RD_INSTR_TYPE_ADDR_LSB; in cqspi_calc_rdreg()
368 rdreg |= CQSPI_OP_WIDTH(op->data) << CQSPI_REG_RD_INSTR_TYPE_DATA_LSB; in cqspi_calc_rdreg()
370 return rdreg; in cqspi_calc_rdreg()
507 unsigned int rdreg; in cqspi_command_read() local
531 rdreg = cqspi_calc_rdreg(op); in cqspi_command_read()
532 writel(rdreg, reg_base + CQSPI_REG_RD_INSTR); in cqspi_command_read()
/linux-6.6.21/include/kvm/
Darm_vgic.h349 struct vgic_redist_region *rdreg; member