Lines Matching full:ipi
3 * Loongson-3 Virtual IPI interrupt support.
53 static int loongson_vipi_read(struct loongson_kvm_ipi *ipi, in loongson_vipi_read() argument
61 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_read()
98 static int loongson_vipi_write(struct loongson_kvm_ipi *ipi, in loongson_vipi_write() argument
106 struct kvm *kvm = ipi->kvm; in loongson_vipi_write()
108 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_write()
157 struct loongson_kvm_ipi *ipi; in kvm_ipi_read() local
161 ipi = ipi_device->ipi; in kvm_ipi_read()
163 spin_lock_irqsave(&ipi->lock, flags); in kvm_ipi_read()
164 loongson_vipi_read(ipi, addr, len, val); in kvm_ipi_read()
165 spin_unlock_irqrestore(&ipi->lock, flags); in kvm_ipi_read()
174 struct loongson_kvm_ipi *ipi; in kvm_ipi_write() local
178 ipi = ipi_device->ipi; in kvm_ipi_write()
180 spin_lock_irqsave(&ipi->lock, flags); in kvm_ipi_write()
181 loongson_vipi_write(ipi, addr, len, val); in kvm_ipi_write()
182 spin_unlock_irqrestore(&ipi->lock, flags); in kvm_ipi_write()
199 s = &kvm->arch.ipi; in kvm_init_loongson_ipi()
204 * Initialize IPI device in kvm_init_loongson_ipi()
213 s->dev_ipi[i].ipi = s; in kvm_init_loongson_ipi()