Home
last modified time | relevance | path

Searched refs:GIC_INTERNAL (Results 1 – 25 of 25) sorted by relevance

/openbmc/qemu/hw/intc/
H A Darm_gicv3_common.c50 memmove(cs->group, (uint8_t *)cs->group + GIC_INTERNAL / 8, in gicv3_gicd_no_migration_shift_bug_post_load()
51 sizeof(cs->group) - GIC_INTERNAL / 8); in gicv3_gicd_no_migration_shift_bug_post_load()
52 memmove(cs->grpmod, (uint8_t *)cs->grpmod + GIC_INTERNAL / 8, in gicv3_gicd_no_migration_shift_bug_post_load()
53 sizeof(cs->grpmod) - GIC_INTERNAL / 8); in gicv3_gicd_no_migration_shift_bug_post_load()
54 memmove(cs->enabled, (uint8_t *)cs->enabled + GIC_INTERNAL / 8, in gicv3_gicd_no_migration_shift_bug_post_load()
55 sizeof(cs->enabled) - GIC_INTERNAL / 8); in gicv3_gicd_no_migration_shift_bug_post_load()
56 memmove(cs->pending, (uint8_t *)cs->pending + GIC_INTERNAL / 8, in gicv3_gicd_no_migration_shift_bug_post_load()
57 sizeof(cs->pending) - GIC_INTERNAL / 8); in gicv3_gicd_no_migration_shift_bug_post_load()
58 memmove(cs->active, (uint8_t *)cs->active + GIC_INTERNAL / 8, in gicv3_gicd_no_migration_shift_bug_post_load()
59 sizeof(cs->active) - GIC_INTERNAL / 8); in gicv3_gicd_no_migration_shift_bug_post_load()
[all …]
H A Darm_gicv3_dist.c86 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_ns_access()
107 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_write_bitmap_reg()
131 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_write_set_bitmap_reg()
155 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_write_clear_bitmap_reg()
179 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_read_bitmap_reg()
204 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_read_ipriorityr()
228 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_write_ipriorityr()
248 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_read_irouter()
270 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_write_irouter()
337 if (irq < GIC_INTERNAL || irq >= s->num_irq) { in gicd_writeb()
[all …]
H A Darm_gic_kvm.c57 if (irq < (num_irq - GIC_INTERNAL)) { in kvm_arm_gic_set_irq()
64 irq += GIC_INTERNAL; in kvm_arm_gic_set_irq()
68 irq -= (num_irq - GIC_INTERNAL); in kvm_arm_gic_set_irq()
69 cpu = irq / GIC_INTERNAL; in kvm_arm_gic_set_irq()
70 irq %= GIC_INTERNAL; in kvm_arm_gic_set_irq()
134 int cm = (irq < GIC_INTERNAL) ? (1 << cpu) : ALL_CPU_MASK; in translate_group()
148 int cm = (irq < GIC_INTERNAL) ? (1 << cpu) : ALL_CPU_MASK; in translate_enabled()
162 int cm = (irq < GIC_INTERNAL) ? (1 << cpu) : ALL_CPU_MASK; in translate_pending()
177 int cm = (irq < GIC_INTERNAL) ? (1 << cpu) : ALL_CPU_MASK; in translate_active()
246 while ((cpu < s->num_cpu && irq < GIC_INTERNAL) || cpu == 0) { in kvm_dist_get()
[all …]
H A Darm_gicv3.c195 for (i = 0; i < GIC_INTERNAL; i++) { in gicv3_redist_update_noirqset()
237 (cs->hppi.irq < GIC_INTERNAL || in gicv3_redist_update_noirqset()
264 assert(start >= GIC_INTERNAL); in gicv3_update_noirqset()
352 gicv3_update_noirqset(s, GIC_INTERNAL, s->num_irq - GIC_INTERNAL); in gicv3_full_update_noirqset()
383 if (irq < (s->num_irq - GIC_INTERNAL)) { in gicv3_set_irq()
385 gicv3_dist_set_irq(s, irq + GIC_INTERNAL, level); in gicv3_set_irq()
390 irq -= (s->num_irq - GIC_INTERNAL); in gicv3_set_irq()
391 cpu = irq / GIC_INTERNAL; in gicv3_set_irq()
392 irq %= GIC_INTERNAL; in gicv3_set_irq()
H A Darm_gicv3_kvm.c132 for (_irq = GIC_INTERNAL; _irq < _max; _irq += (32 / _field_width))
145 field = (uint32_t *)(bmp + GIC_INTERNAL); in kvm_dist_get_priority()
146 offset += (GIC_INTERNAL * 8) / 8; in kvm_dist_get_priority()
166 field = (uint32_t *)(bmp + GIC_INTERNAL); in kvm_dist_put_priority()
167 offset += (GIC_INTERNAL * 8) / 8; in kvm_dist_put_priority()
189 offset += (GIC_INTERNAL * 2) / 8; in kvm_dist_get_edge_trigger()
214 offset += (GIC_INTERNAL * 2) / 8; in kvm_dist_put_edge_trigger()
264 offset += (GIC_INTERNAL * 1) / 8; in kvm_dist_getbmp()
286 offset += (GIC_INTERNAL * 1) / 8; in kvm_dist_putbmp()
288 clroffset += (GIC_INTERNAL * 1) / 8; in kvm_dist_putbmp()
[all …]
H A Darm_gic.c97 (irq < GIC_INTERNAL || GIC_DIST_TARGET(irq) & cm)) { in gic_get_best_irq()
392 if (irq < (s->num_irq - GIC_INTERNAL)) { in gic_set_irq()
395 irq += GIC_INTERNAL; in gic_set_irq()
399 irq -= (s->num_irq - GIC_INTERNAL); in gic_set_irq()
400 cpu = irq / GIC_INTERNAL; in gic_set_irq()
401 irq %= GIC_INTERNAL; in gic_set_irq()
676 if (irq < GIC_INTERNAL) { in gic_dist_set_priority()
679 s->priority2[(irq) - GIC_INTERNAL] = val; in gic_dist_set_priority()
1037 mask = (irq < GIC_INTERNAL) ? cm : ALL_CPU_MASK; in gic_dist_readb()
1061 mask = (irq < GIC_INTERNAL) ? cm : ALL_CPU_MASK; in gic_dist_readb()
[all …]
H A Darm_gic_common.c113 VMSTATE_UINT8_2DARRAY(priority1, GICState, GIC_INTERNAL, GIC_NCPU),
114 VMSTATE_UINT8_ARRAY(priority2, GICState, GIC_MAXIRQ - GIC_INTERNAL),
136 int i = s->num_irq - GIC_INTERNAL; in gic_init_irqs_and_mmio()
145 i += (GIC_INTERNAL * s->num_cpu); in gic_init_irqs_and_mmio()
256 for (j = 0; j < GIC_INTERNAL; j++) { in arm_gic_common_reset_irq_state()
H A Dgic_internal.h47 #define GIC_DIST_GET_PRIORITY(irq, cpu) (((irq) < GIC_INTERNAL) ? \
49 s->priority2[(irq) - GIC_INTERNAL])
306 cm = phys_irq < GIC_INTERNAL ? 1 << rcpu : ALL_CPU_MASK; in gic_clear_active()
311 cm = irq < GIC_INTERNAL ? 1 << cpu : ALL_CPU_MASK; in gic_clear_active()
H A Dgicv3_internal.h799 if (irq < GIC_INTERNAL) { in gicv3_irq_group()
858 for (irq = GIC_INTERNAL; irq < GICV3_MAXIRQ; irq++) { in gicv3_cache_all_target_cpustates()
H A Darm_gicv3_cpuif.c1176 if (irq < GIC_INTERNAL) { in icc_activate_irq()
1438 if (irq < GIC_INTERNAL) { in icc_deactivate_irq()
/openbmc/qemu/include/hw/intc/
H A Darm_gic_common.h30 #define GIC_INTERNAL 32 macro
89 uint8_t priority1[GIC_INTERNAL][GIC_NCPU];
90 uint8_t priority2[GIC_MAXIRQ - GIC_INTERNAL];
H A Darm_gicv3_common.h37 #define GICV3_MAXSPI (GICV3_MAXIRQ - GIC_INTERNAL)
154 uint8_t gicr_ipriorityr[GIC_INTERNAL];
/openbmc/qemu/hw/arm/
H A Dbcm2838.c28 #define PPI(cpu, irq) (GIC_NUM_IRQS + (cpu) * GIC_INTERNAL + GIC_NR_SGIS + irq)
117 GIC_NUM_IRQS + GIC_INTERNAL, errp)) { in bcm2838_realize()
H A Dmps3r.c271 qdev_prop_set_uint32(gicdev, "num-irq", NUM_SPIS + GIC_INTERNAL); in create_gic()
288 int intidbase = NUM_SPIS + i * GIC_INTERNAL; in create_gic()
413 int intidbase = NUM_SPIS + i * GIC_INTERNAL; in mps3r_common_init()
H A Dallwinner-h3.c268 GIC_INTERNAL); in allwinner_h3_realize()
287 int ppibase = AW_H3_GIC_NUM_SPI + i * GIC_INTERNAL + GIC_NR_SGIS; in allwinner_h3_realize()
H A Dallwinner-r40.c342 GIC_INTERNAL); in allwinner_r40_realize()
361 int ppibase = AW_R40_GIC_NUM_SPI + i * GIC_INTERNAL + GIC_NR_SGIS; in allwinner_r40_realize()
H A Daspeed_ast27x0.c426 qdev_prop_set_uint32(gicdev, "num-irq", AST2700_MAX_IRQ + GIC_INTERNAL); in aspeed_soc_ast2700_gic_realize()
440 int intidbase = AST2700_MAX_IRQ + i * GIC_INTERNAL; in aspeed_soc_ast2700_gic_realize()
H A Dfsl-imx6.c148 FSL_IMX6_MAX_IRQ + GIC_INTERNAL, &error_abort); in fsl_imx6_realize()
H A Dfsl-imx7.c209 FSL_IMX7_MAX_IRQ + GIC_INTERNAL, &error_abort); in fsl_imx7_realize()
H A Dfsl-imx6ul.c178 FSL_IMX6UL_MAX_IRQ + GIC_INTERNAL, &error_abort); in fsl_imx6ul_realize()
H A Dsbsa-ref.c475 int intidbase = NUM_IRQS + i * GIC_INTERNAL; in create_gic()
H A Dxlnx-zynqmp.c211 return GIC_NUM_SPI_INTR + cpu_nr * GIC_INTERNAL + ppi_index; in arm_gic_ppi_index()
H A Daspeed_ast2600.c370 ROUND_UP(AST2600_MAX_IRQ + GIC_INTERNAL, 32), in aspeed_soc_ast2600_realize()
H A Dxlnx-versal.c104 int ppibase = XLNX_VERSAL_NR_IRQS + i * GIC_INTERNAL + GIC_NR_SGIS; in versal_create_apu_gic()
H A Dvirt.c866 int intidbase = NUM_IRQS + i * GIC_INTERNAL; in create_gic()