Lines Matching refs:l2_base
34 static void __iomem *l2_base; variable
55 writel(val, l2_base + SIFIVE_L2_ECCINJECTERR); in l2_write()
80 regval = readl(l2_base + SIFIVE_L2_CONFIG); in l2_config_read()
90 regval = readl(l2_base + SIFIVE_L2_WAYENABLE); in l2_config_read()
115 return readl(l2_base + SIFIVE_L2_WAYENABLE) & 0xFF; in l2_largest_wayenabled()
150 add_h = readl(l2_base + SIFIVE_L2_DIRECCFIX_HIGH); in l2_int_handler()
151 add_l = readl(l2_base + SIFIVE_L2_DIRECCFIX_LOW); in l2_int_handler()
154 readl(l2_base + SIFIVE_L2_DIRECCFIX_COUNT); in l2_int_handler()
159 add_h = readl(l2_base + SIFIVE_L2_DATECCFIX_HIGH); in l2_int_handler()
160 add_l = readl(l2_base + SIFIVE_L2_DATECCFIX_LOW); in l2_int_handler()
163 readl(l2_base + SIFIVE_L2_DATECCFIX_COUNT); in l2_int_handler()
168 add_h = readl(l2_base + SIFIVE_L2_DATECCFAIL_HIGH); in l2_int_handler()
169 add_l = readl(l2_base + SIFIVE_L2_DATECCFAIL_LOW); in l2_int_handler()
172 readl(l2_base + SIFIVE_L2_DATECCFAIL_COUNT); in l2_int_handler()
193 l2_base = ioremap(res.start, resource_size(&res)); in sifive_l2_init()
194 if (!l2_base) in sifive_l2_init()