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)
489 void __iomem *dist_base = gic_data_dist_base(gic); in gic_cpu_init() local
519 gic_cpu_config(dist_base, 32, GICD_INT_DEF_PRI); in gic_cpu_init()
553 void __iomem *dist_base; in gic_dist_save() local
560 dist_base = gic_data_dist_base(gic); in gic_dist_save()
562 if (!dist_base) in gic_dist_save()
567 readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_save()
571 readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_save()
575 readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_save()
579 readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_save()
593 void __iomem *dist_base; in gic_dist_restore() local
599 dist_base = gic_data_dist_base(gic); in gic_dist_restore()
601 if (!dist_base) in gic_dist_restore()
604 writel_relaxed(GICD_DISABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
608 dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_restore()
612 dist_base + GIC_DIST_PRI + i * 4); in gic_dist_restore()
616 dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_restore()
620 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_dist_restore()
622 dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_restore()
627 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_dist_restore()
629 dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_restore()
632 writel_relaxed(GICD_ENABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
639 void __iomem *dist_base; in gic_cpu_save() local
645 dist_base = gic_data_dist_base(gic); in gic_cpu_save()
648 if (!dist_base || !cpu_base) in gic_cpu_save()
653 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_save()
657 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_save()
661 ptr[i] = readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_save()
669 void __iomem *dist_base; in gic_cpu_restore() local
675 dist_base = gic_data_dist_base(gic); in gic_cpu_restore()
678 if (!dist_base || !cpu_base) in gic_cpu_restore()
684 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_cpu_restore()
685 writel_relaxed(ptr[i], dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_restore()
691 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_cpu_restore()
692 writel_relaxed(ptr[i], dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_restore()
697 writel_relaxed(ptr[i], dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_restore()
701 dist_base + GIC_DIST_PRI + i * 4); in gic_cpu_restore()
962 void __iomem *dist_base; in gic_migrate_target() local
968 dist_base = gic_data_dist_base(&gic_data[gic_nr]); in gic_migrate_target()
969 if (!dist_base) in gic_migrate_target()
988 val = readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_migrate_target()
993 writel_relaxed(val, dist_base + GIC_DIST_TARGET + i*4); in gic_migrate_target()
1011 val = readl_relaxed(dist_base + GIC_DIST_SGI_PENDING_SET + i); in gic_migrate_target()
1014 writel_relaxed(val, dist_base + GIC_DIST_SGI_PENDING_CLEAR + i); in gic_migrate_target()
1018 dist_base + GIC_DIST_SOFTINT); in gic_migrate_target()
1172 gic->dist_base.percpu_base = alloc_percpu(void __iomem *); in gic_init_bases()
1174 if (WARN_ON(!gic->dist_base.percpu_base || in gic_init_bases()
1184 *per_cpu_ptr(gic->dist_base.percpu_base, cpu) = in gic_init_bases()
1196 gic->dist_base.common_base = gic->raw_dist_base; in gic_init_bases()
1231 free_percpu(gic->dist_base.percpu_base); in gic_init_bases()