Lines Matching refs:dist_base
71 union gic_base dist_base; member
145 #define gic_data_dist_base(d) __get_base(&(d)->dist_base)
148 #define gic_data_dist_base(d) ((d)->dist_base.common_base)
492 void __iomem *dist_base = gic_data_dist_base(gic); in gic_cpu_init() local
522 gic_cpu_config(dist_base, 32, NULL); in gic_cpu_init()
556 void __iomem *dist_base; in gic_dist_save() local
563 dist_base = gic_data_dist_base(gic); in gic_dist_save()
565 if (!dist_base) in gic_dist_save()
570 readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_save()
574 readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_save()
578 readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_save()
582 readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_save()
596 void __iomem *dist_base; in gic_dist_restore() local
602 dist_base = gic_data_dist_base(gic); in gic_dist_restore()
604 if (!dist_base) in gic_dist_restore()
607 writel_relaxed(GICD_DISABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
611 dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_restore()
615 dist_base + GIC_DIST_PRI + i * 4); in gic_dist_restore()
619 dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_restore()
623 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_dist_restore()
625 dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_restore()
630 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_dist_restore()
632 dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_restore()
635 writel_relaxed(GICD_ENABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
642 void __iomem *dist_base; in gic_cpu_save() local
648 dist_base = gic_data_dist_base(gic); in gic_cpu_save()
651 if (!dist_base || !cpu_base) in gic_cpu_save()
656 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_save()
660 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_save()
664 ptr[i] = readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_save()
672 void __iomem *dist_base; in gic_cpu_restore() local
678 dist_base = gic_data_dist_base(gic); in gic_cpu_restore()
681 if (!dist_base || !cpu_base) in gic_cpu_restore()
687 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_cpu_restore()
688 writel_relaxed(ptr[i], dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_restore()
694 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_cpu_restore()
695 writel_relaxed(ptr[i], dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_restore()
700 writel_relaxed(ptr[i], dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_restore()
704 dist_base + GIC_DIST_PRI + i * 4); in gic_cpu_restore()
965 void __iomem *dist_base; in gic_migrate_target() local
971 dist_base = gic_data_dist_base(&gic_data[gic_nr]); in gic_migrate_target()
972 if (!dist_base) in gic_migrate_target()
991 val = readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_migrate_target()
996 writel_relaxed(val, dist_base + GIC_DIST_TARGET + i*4); in gic_migrate_target()
1014 val = readl_relaxed(dist_base + GIC_DIST_SGI_PENDING_SET + i); in gic_migrate_target()
1017 writel_relaxed(val, dist_base + GIC_DIST_SGI_PENDING_CLEAR + i); in gic_migrate_target()
1021 dist_base + GIC_DIST_SOFTINT); in gic_migrate_target()
1184 gic->dist_base.percpu_base = alloc_percpu(void __iomem *); in gic_init_bases()
1186 if (WARN_ON(!gic->dist_base.percpu_base || in gic_init_bases()
1196 *per_cpu_ptr(gic->dist_base.percpu_base, cpu) = in gic_init_bases()
1208 gic->dist_base.common_base = gic->raw_dist_base; in gic_init_bases()
1264 free_percpu(gic->dist_base.percpu_base); in gic_init_bases()
1300 void __init gic_init(void __iomem *dist_base, void __iomem *cpu_base) in gic_init() argument
1311 gic->raw_dist_base = dist_base; in gic_init()