Lines Matching refs:irqmp
122 IRQMP *irqmp = GRLIB_IRQMP(dev); in grlib_irqmp_ack() local
126 state = irqmp->state; in grlib_irqmp_ack()
139 IRQMP *irqmp = GRLIB_IRQMP(opaque); in grlib_irqmp_set_irq() local
143 s = irqmp->state; in grlib_irqmp_set_irq()
166 IRQMP *irqmp = opaque; in grlib_irqmp_read() local
169 assert(irqmp != NULL); in grlib_irqmp_read()
170 state = irqmp->state; in grlib_irqmp_read()
232 IRQMP *irqmp = opaque; in grlib_irqmp_write() local
236 assert(irqmp != NULL); in grlib_irqmp_write()
237 state = irqmp->state; in grlib_irqmp_write()
258 grlib_irqmp_check_irqs(irqmp->state); in grlib_irqmp_write()
263 for (i = 0; i < irqmp->ncpus; i++) { in grlib_irqmp_write()
275 for (i = 0; i < irqmp->ncpus; i++) { in grlib_irqmp_write()
277 qemu_set_irq(irqmp->start_signal[i], 1); in grlib_irqmp_write()
299 grlib_irqmp_check_irqs(irqmp->state); in grlib_irqmp_write()
313 grlib_irqmp_check_irqs(irqmp->state); in grlib_irqmp_write()
342 IRQMP *irqmp = GRLIB_IRQMP(d); in grlib_irqmp_reset() local
343 assert(irqmp->state != NULL); in grlib_irqmp_reset()
345 memset(irqmp->state, 0, sizeof *irqmp->state); in grlib_irqmp_reset()
346 irqmp->state->parent = irqmp; in grlib_irqmp_reset()
347 irqmp->state->mpstatus = ((irqmp->ncpus - 1) << MP_STATUS_NCPU_SHIFT) | in grlib_irqmp_reset()
348 ((1 << irqmp->ncpus) - 2); in grlib_irqmp_reset()
353 IRQMP *irqmp = GRLIB_IRQMP(dev); in grlib_irqmp_realize() local
355 if ((!irqmp->ncpus) || (irqmp->ncpus > IRQMP_MAX_CPU)) { in grlib_irqmp_realize()
357 "%u, must be 0 < ncpus =< %u.", irqmp->ncpus, in grlib_irqmp_realize()
368 qdev_init_gpio_out_named(dev, irqmp->start_signal, "grlib-start-cpu", in grlib_irqmp_realize()
370 qdev_init_gpio_out_named(dev, irqmp->irq, "grlib-irq", irqmp->ncpus); in grlib_irqmp_realize()
371 memory_region_init_io(&irqmp->iomem, OBJECT(dev), &grlib_irqmp_ops, irqmp, in grlib_irqmp_realize()
374 irqmp->state = g_malloc0(sizeof *irqmp->state); in grlib_irqmp_realize()
376 sysbus_init_mmio(SYS_BUS_DEVICE(dev), &irqmp->iomem); in grlib_irqmp_realize()