Lines Matching refs:dist_base
70 union gic_base dist_base; member
140 return data->get_base(&data->dist_base); in gic_data_dist_base()
154 #define gic_data_dist_base(d) ((d)->dist_base.common_base)
516 void __iomem *dist_base = gic_data_dist_base(gic); in gic_cpu_init() local
546 gic_cpu_config(dist_base, 32, NULL); in gic_cpu_init()
580 void __iomem *dist_base; in gic_dist_save() local
587 dist_base = gic_data_dist_base(gic); in gic_dist_save()
589 if (!dist_base) in gic_dist_save()
594 readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_save()
598 readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_save()
602 readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_save()
606 readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_save()
620 void __iomem *dist_base; in gic_dist_restore() local
626 dist_base = gic_data_dist_base(gic); in gic_dist_restore()
628 if (!dist_base) in gic_dist_restore()
631 writel_relaxed(GICD_DISABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
635 dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_restore()
639 dist_base + GIC_DIST_PRI + i * 4); in gic_dist_restore()
643 dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_restore()
647 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_dist_restore()
649 dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_restore()
654 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_dist_restore()
656 dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_restore()
659 writel_relaxed(GICD_ENABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
666 void __iomem *dist_base; in gic_cpu_save() local
672 dist_base = gic_data_dist_base(gic); in gic_cpu_save()
675 if (!dist_base || !cpu_base) in gic_cpu_save()
680 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_save()
684 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_save()
688 ptr[i] = readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_save()
696 void __iomem *dist_base; in gic_cpu_restore() local
702 dist_base = gic_data_dist_base(gic); in gic_cpu_restore()
705 if (!dist_base || !cpu_base) in gic_cpu_restore()
711 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_cpu_restore()
712 writel_relaxed(ptr[i], dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_restore()
718 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_cpu_restore()
719 writel_relaxed(ptr[i], dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_restore()
724 writel_relaxed(ptr[i], dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_restore()
728 dist_base + GIC_DIST_PRI + i * 4); in gic_cpu_restore()
886 void __iomem *dist_base; in gic_migrate_target() local
892 dist_base = gic_data_dist_base(&gic_data[gic_nr]); in gic_migrate_target()
893 if (!dist_base) in gic_migrate_target()
912 val = readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_migrate_target()
917 writel_relaxed(val, dist_base + GIC_DIST_TARGET + i*4); in gic_migrate_target()
935 val = readl_relaxed(dist_base + GIC_DIST_SGI_PENDING_SET + i); in gic_migrate_target()
938 writel_relaxed(val, dist_base + GIC_DIST_SGI_PENDING_CLEAR + i); in gic_migrate_target()
942 dist_base + GIC_DIST_SOFTINT); in gic_migrate_target()
1106 gic->dist_base.percpu_base = alloc_percpu(void __iomem *); in gic_init_bases()
1108 if (WARN_ON(!gic->dist_base.percpu_base || in gic_init_bases()
1118 *per_cpu_ptr(gic->dist_base.percpu_base, cpu) = in gic_init_bases()
1130 gic->dist_base.common_base = gic->raw_dist_base; in gic_init_bases()
1187 free_percpu(gic->dist_base.percpu_base); in gic_init_bases()
1237 void __init gic_init(void __iomem *dist_base, void __iomem *cpu_base) in gic_init() argument
1248 gic->raw_dist_base = dist_base; in gic_init()