Lines Matching full:ipi
3 * Loongson-3 Virtual IPI interrupt support.
51 static int loongson_vipi_read(struct loongson_kvm_ipi *ipi, in loongson_vipi_read() argument
59 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_read()
96 static int loongson_vipi_write(struct loongson_kvm_ipi *ipi, in loongson_vipi_write() argument
104 struct kvm *kvm = ipi->kvm; in loongson_vipi_write()
106 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_write()
155 struct loongson_kvm_ipi *ipi; in kvm_ipi_read() local
159 ipi = ipi_device->ipi; in kvm_ipi_read()
161 spin_lock_irqsave(&ipi->lock, flags); in kvm_ipi_read()
162 loongson_vipi_read(ipi, addr, len, val); in kvm_ipi_read()
163 spin_unlock_irqrestore(&ipi->lock, flags); in kvm_ipi_read()
172 struct loongson_kvm_ipi *ipi; in kvm_ipi_write() local
176 ipi = ipi_device->ipi; in kvm_ipi_write()
178 spin_lock_irqsave(&ipi->lock, flags); in kvm_ipi_write()
179 loongson_vipi_write(ipi, addr, len, val); in kvm_ipi_write()
180 spin_unlock_irqrestore(&ipi->lock, flags); in kvm_ipi_write()
197 s = &kvm->arch.ipi; in kvm_init_loongson_ipi()
202 * Initialize IPI device in kvm_init_loongson_ipi()
211 s->dev_ipi[i].ipi = s; in kvm_init_loongson_ipi()