Lines Matching refs:cpu_base

72 	union gic_base cpu_base;  member
146 #define gic_data_cpu_base(d) __get_base(&(d)->cpu_base)
149 #define gic_data_cpu_base(d) ((d)->cpu_base.common_base)
341 void __iomem *cpu_base = gic_data_cpu_base(gic); in gic_handle_irq() local
344 irqstat = readl_relaxed(cpu_base + GIC_CPU_INTACK); in gic_handle_irq()
351 writel_relaxed(irqstat, cpu_base + GIC_CPU_EOI); in gic_handle_irq()
445 void __iomem *cpu_base = gic_data_cpu_base(gic); in gic_cpu_if_up() local
453 if (gic_check_gicv2(cpu_base)) in gic_cpu_if_up()
455 writel_relaxed(0, cpu_base + GIC_CPU_ACTIVEPRIO + i * 4); in gic_cpu_if_up()
460 bypass = readl(cpu_base + GIC_CPU_CTRL); in gic_cpu_if_up()
463 writel_relaxed(bypass | mode | GICC_ENABLE, cpu_base + GIC_CPU_CTRL); in gic_cpu_if_up()
532 void __iomem *cpu_base; in gic_cpu_if_down() local
538 cpu_base = gic_data_cpu_base(&gic_data[gic_nr]); in gic_cpu_if_down()
539 val = readl(cpu_base + GIC_CPU_CTRL); in gic_cpu_if_down()
541 writel_relaxed(val, cpu_base + GIC_CPU_CTRL); in gic_cpu_if_down()
643 void __iomem *cpu_base; in gic_cpu_save() local
649 cpu_base = gic_data_cpu_base(gic); in gic_cpu_save()
651 if (!dist_base || !cpu_base) in gic_cpu_save()
673 void __iomem *cpu_base; in gic_cpu_restore() local
679 cpu_base = gic_data_cpu_base(gic); in gic_cpu_restore()
681 if (!dist_base || !cpu_base) in gic_cpu_restore()
706 writel_relaxed(GICC_INT_PRI_THRESHOLD, cpu_base + GIC_CPU_PRIMASK); in gic_cpu_restore()
1176 gic->cpu_base.percpu_base = alloc_percpu(void __iomem *); in gic_init_bases()
1178 !gic->cpu_base.percpu_base)) { in gic_init_bases()
1189 *per_cpu_ptr(gic->cpu_base.percpu_base, cpu) = in gic_init_bases()
1200 gic->cpu_base.common_base = gic->raw_cpu_base; in gic_init_bases()
1235 free_percpu(gic->cpu_base.percpu_base); in gic_init_bases()