Lines Matching refs:l2_base
38 static void __iomem *l2_base; variable
60 writel(val, l2_base + SIFIVE_L2_ECCINJECTERR); in l2_write()
85 regval = readl(l2_base + SIFIVE_L2_CONFIG); in l2_config_read()
95 regval = readl(l2_base + SIFIVE_L2_WAYENABLE); in l2_config_read()
121 return readl(l2_base + SIFIVE_L2_WAYENABLE) & 0xFF; in l2_largest_wayenabled()
156 add_h = readl(l2_base + SIFIVE_L2_DIRECCFIX_HIGH); in l2_int_handler()
157 add_l = readl(l2_base + SIFIVE_L2_DIRECCFIX_LOW); in l2_int_handler()
160 readl(l2_base + SIFIVE_L2_DIRECCFIX_COUNT); in l2_int_handler()
165 add_h = readl(l2_base + SIFIVE_L2_DIRECCFAIL_HIGH); in l2_int_handler()
166 add_l = readl(l2_base + SIFIVE_L2_DIRECCFAIL_LOW); in l2_int_handler()
168 readl(l2_base + SIFIVE_L2_DIRECCFAIL_COUNT); in l2_int_handler()
174 add_h = readl(l2_base + SIFIVE_L2_DATECCFIX_HIGH); in l2_int_handler()
175 add_l = readl(l2_base + SIFIVE_L2_DATECCFIX_LOW); in l2_int_handler()
178 readl(l2_base + SIFIVE_L2_DATECCFIX_COUNT); in l2_int_handler()
183 add_h = readl(l2_base + SIFIVE_L2_DATECCFAIL_HIGH); in l2_int_handler()
184 add_l = readl(l2_base + SIFIVE_L2_DATECCFAIL_LOW); in l2_int_handler()
187 readl(l2_base + SIFIVE_L2_DATECCFAIL_COUNT); in l2_int_handler()
208 l2_base = ioremap(res.start, resource_size(&res)); in sifive_l2_init()
209 if (!l2_base) in sifive_l2_init()