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)
515 void __iomem *dist_base = gic_data_dist_base(gic); in gic_cpu_init() local
545 gic_cpu_config(dist_base, 32, NULL); in gic_cpu_init()
579 void __iomem *dist_base; in gic_dist_save() local
586 dist_base = gic_data_dist_base(gic); in gic_dist_save()
588 if (!dist_base) in gic_dist_save()
593 readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_save()
597 readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_save()
601 readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_save()
605 readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_save()
619 void __iomem *dist_base; in gic_dist_restore() local
625 dist_base = gic_data_dist_base(gic); in gic_dist_restore()
627 if (!dist_base) in gic_dist_restore()
630 writel_relaxed(GICD_DISABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
634 dist_base + GIC_DIST_CONFIG + i * 4); in gic_dist_restore()
638 dist_base + GIC_DIST_PRI + i * 4); in gic_dist_restore()
642 dist_base + GIC_DIST_TARGET + i * 4); in gic_dist_restore()
646 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_dist_restore()
648 dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_dist_restore()
653 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_dist_restore()
655 dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_dist_restore()
659 writel_relaxed(3, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
661 writel_relaxed(GICD_ENABLE, dist_base + GIC_DIST_CTRL); in gic_dist_restore()
669 void __iomem *dist_base; in gic_cpu_save() local
675 dist_base = gic_data_dist_base(gic); in gic_cpu_save()
678 if (!dist_base || !cpu_base) in gic_cpu_save()
683 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_save()
687 ptr[i] = readl_relaxed(dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_save()
691 ptr[i] = readl_relaxed(dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_save()
699 void __iomem *dist_base; in gic_cpu_restore() local
705 dist_base = gic_data_dist_base(gic); in gic_cpu_restore()
708 if (!dist_base || !cpu_base) in gic_cpu_restore()
714 dist_base + GIC_DIST_ENABLE_CLEAR + i * 4); in gic_cpu_restore()
715 writel_relaxed(ptr[i], dist_base + GIC_DIST_ENABLE_SET + i * 4); in gic_cpu_restore()
721 dist_base + GIC_DIST_ACTIVE_CLEAR + i * 4); in gic_cpu_restore()
722 writel_relaxed(ptr[i], dist_base + GIC_DIST_ACTIVE_SET + i * 4); in gic_cpu_restore()
727 writel_relaxed(ptr[i], dist_base + GIC_DIST_CONFIG + i * 4); in gic_cpu_restore()
731 dist_base + GIC_DIST_PRI + i * 4); in gic_cpu_restore()
988 void __iomem *dist_base; in gic_migrate_target() local
994 dist_base = gic_data_dist_base(&gic_data[gic_nr]); in gic_migrate_target()
995 if (!dist_base) in gic_migrate_target()
1014 val = readl_relaxed(dist_base + GIC_DIST_TARGET + i * 4); in gic_migrate_target()
1019 writel_relaxed(val, dist_base + GIC_DIST_TARGET + i*4); in gic_migrate_target()
1037 val = readl_relaxed(dist_base + GIC_DIST_SGI_PENDING_SET + i); in gic_migrate_target()
1040 writel_relaxed(val, dist_base + GIC_DIST_SGI_PENDING_CLEAR + i); in gic_migrate_target()
1044 dist_base + GIC_DIST_SOFTINT); in gic_migrate_target()
1227 gic->dist_base.percpu_base = alloc_percpu(void __iomem *); in gic_init_bases()
1229 if (WARN_ON(!gic->dist_base.percpu_base || in gic_init_bases()
1239 *per_cpu_ptr(gic->dist_base.percpu_base, cpu) = in gic_init_bases()
1251 gic->dist_base.common_base = gic->raw_dist_base; in gic_init_bases()
1307 free_percpu(gic->dist_base.percpu_base); in gic_init_bases()
1354 void __init gic_init(void __iomem *dist_base, void __iomem *cpu_base) in gic_init() argument
1365 gic->raw_dist_base = dist_base; in gic_init()