Lines Matching refs:dist_base
70 union gic_base dist_base; member
144 #define gic_data_dist_base(d) __get_base(&(d)->dist_base)
147 #define gic_data_dist_base(d) ((d)->dist_base.common_base)
491 void __iomem *dist_base = gic_data_dist_base(gic); in gic_cpu_init() local
521 gic_cpu_config(dist_base, 32, NULL); in gic_cpu_init()
555 void __iomem *dist_base; in gic_dist_save() local
562 dist_base = gic_data_dist_base(gic); in gic_dist_save()
564 if (!dist_base) in gic_dist_save()
569 readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_save()
573 readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_save()
577 readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_save()
581 readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_save()
595 void __iomem *dist_base; in gic_dist_restore() local
601 dist_base = gic_data_dist_base(gic); in gic_dist_restore()
603 if (!dist_base) in gic_dist_restore()
606 writel_relaxed(GICD_DISABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
610 dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_restore()
614 dist_base + GIC_DIST_PRI + i * 4); in gic_dist_restore()
618 dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_restore()
622 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_dist_restore()
624 dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_restore()
629 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_dist_restore()
631 dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_restore()
634 writel_relaxed(GICD_ENABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
641 void __iomem *dist_base; in gic_cpu_save() local
647 dist_base = gic_data_dist_base(gic); in gic_cpu_save()
650 if (!dist_base || !cpu_base) in gic_cpu_save()
655 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_save()
659 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_save()
663 ptr[i] = readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_save()
671 void __iomem *dist_base; in gic_cpu_restore() local
677 dist_base = gic_data_dist_base(gic); in gic_cpu_restore()
680 if (!dist_base || !cpu_base) in gic_cpu_restore()
686 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_cpu_restore()
687 writel_relaxed(ptr[i], dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_restore()
693 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_cpu_restore()
694 writel_relaxed(ptr[i], dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_restore()
699 writel_relaxed(ptr[i], dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_restore()
703 dist_base + GIC_DIST_PRI + i * 4); in gic_cpu_restore()
966 void __iomem *dist_base; in gic_migrate_target() local
972 dist_base = gic_data_dist_base(&gic_data[gic_nr]); in gic_migrate_target()
973 if (!dist_base) in gic_migrate_target()
992 val = readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_migrate_target()
997 writel_relaxed(val, dist_base + GIC_DIST_TARGET + i*4); in gic_migrate_target()
1015 val = readl_relaxed(dist_base + GIC_DIST_SGI_PENDING_SET + i); in gic_migrate_target()
1018 writel_relaxed(val, dist_base + GIC_DIST_SGI_PENDING_CLEAR + i); in gic_migrate_target()
1022 dist_base + GIC_DIST_SOFTINT); in gic_migrate_target()
1185 gic->dist_base.percpu_base = alloc_percpu(void __iomem *); in gic_init_bases()
1187 if (WARN_ON(!gic->dist_base.percpu_base || in gic_init_bases()
1197 *per_cpu_ptr(gic->dist_base.percpu_base, cpu) = in gic_init_bases()
1209 gic->dist_base.common_base = gic->raw_dist_base; in gic_init_bases()
1265 free_percpu(gic->dist_base.percpu_base); in gic_init_bases()
1301 void __init gic_init(void __iomem *dist_base, void __iomem *cpu_base) in gic_init() argument
1312 gic->raw_dist_base = dist_base; in gic_init()