Lines Matching defs:base
79 void *base;
100 void __iomem *base;
943 ridx = readl_relaxed(its->base + GITS_CREADR) / sizeof(struct its_cmd_block);
987 writel_relaxed(wr, its->base + GITS_CWRITER);
1021 rd_idx = readl_relaxed(its->base + GITS_CREADR);
1086 rd_idx = readl_relaxed(its->base + GITS_CREADR);
1130 rd_idx = readl_relaxed(its->base + GITS_CREADR);
2010 static struct lpi_range *mk_lpi_range(u32 base, u32 span)
2016 range->base_id = base;
2023 static int alloc_lpi_range(u32 nr_lpis, u32 *base)
2033 *base = range->base_id;
2049 pr_debug("ITS: alloc %u:%u\n", *base, nr_lpis);
2067 static int free_lpi_range(u32 base, u32 nr_lpis)
2071 new = mk_lpi_range(base, nr_lpis);
2080 if (old->base_id < base) {
2085 * old is the last element with ->base_id smaller than base,
2087 * ->base_id smaller than base, &old->entry ends up pointing
2125 static unsigned long *its_lpi_alloc(int nr_irqs, u32 *base, int *nr_ids)
2131 err = alloc_lpi_range(nr_irqs, base);
2156 *base = *nr_ids = 0;
2162 static void its_lpi_free(unsigned long *bitmap, u32 base, u32 nr_ids)
2164 WARN_ON(free_lpi_range(base, nr_ids));
2279 return gits_read_baser(its->base + GITS_BASER + (idx << 0x3));
2286 gits_write_baser(val, its->base + GITS_BASER + (idx << 0x03));
2298 void *base;
2318 base = (void *)page_address(page);
2319 baser_phys = virt_to_phys(base);
2325 free_pages((unsigned long)base, order);
2357 gic_flush_dcache_to_poc(base, PAGE_ORDER_TO_SIZE(order));
2372 gic_flush_dcache_to_poc(base, PAGE_ORDER_TO_SIZE(order));
2381 free_pages((unsigned long)base, order);
2386 baser->base = base;
2391 (int)(PAGE_ORDER_TO_SIZE(order) / (int)tmp), its_base_type_string[type], (unsigned long)virt_to_phys(base),
2519 if (its->tables[i].base) {
2520 free_pages((unsigned long)its->tables[i].base, its->tables[i].order);
2521 its->tables[i].base = NULL;
2671 gic_data_rdist()->vpe_l1_base = its->tables[0x2].base;
2709 void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2711 if (!base || cpu == smp_processor_id()) {
2715 val = gic_read_typer(base + GICR_TYPER);
2726 val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2740 void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2751 if (!base) {
2755 val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
3212 if (gic_read_typer(its->base + GITS_TYPER) & GITS_TYPER_PTA) {
3294 table = baser->base;
4260 void __iomem *base;
4282 base = gic_data_rdist_cpu(cpu)->rd_base + SZ_128K;
4283 writel_relaxed(vpe->vpe_id, base + GICR_VSGIR);
4285 status = readl_relaxed(base + GICR_VSGIPENDR);
4480 int base, nr_ids, i, err = 0;
4484 bitmap = its_lpi_alloc(roundup_pow_of_two(nr_irqs), &base, &nr_ids);
4490 its_lpi_free(bitmap, base, nr_ids);
4496 its_lpi_free(bitmap, base, nr_ids);
4501 vm->db_lpi_base = base;
4510 vm->vpes[i]->vpe_db_lpi = base + i;
4528 its_lpi_free(bitmap, base, nr_ids);
4597 static int its_force_quiescent(void __iomem *base)
4602 val = readl_relaxed(base + GITS_CTLR);
4614 writel_relaxed(val, base + GITS_CTLR);
4618 val = readl_relaxed(base + GITS_CTLR);
4766 u32 iidr = readl_relaxed(its->base + GITS_IIDR);
4779 void __iomem *base;
4781 base = its->base;
4782 its->ctlr_save = readl_relaxed(base + GITS_CTLR);
4783 err = its_force_quiescent(base);
4786 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4790 its->cbaser_save = gits_read_cbaser(base + GITS_CBASER);
4797 void __iomem *base;
4799 base = its->base;
4800 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4816 void __iomem *base;
4819 base = its->base;
4829 WARN_ON(readl_relaxed(base + GITS_CTLR) & GITS_CTLR_ENABLE);
4830 ret = its_force_quiescent(base);
4836 gits_write_cbaser(its->cbaser_save, base + GITS_CBASER);
4843 gits_write_cwriter(0, base + GITS_CWRITER);
4855 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4862 if (its->collections[smp_processor_id()].col_id < GITS_TYPER_HCC(gic_read_typer(base + GITS_TYPER))) {
5017 its->base = its_base;
5080 gits_write_cbaser(baser, its->base + GITS_CBASER);
5081 tmp = gits_read_cbaser(its->base + GITS_CBASER);
5096 gits_write_cbaser(baser, its->base + GITS_CBASER);
5102 gits_write_cwriter(0, its->base + GITS_CWRITER);
5103 ctlr = readl_relaxed(its->base + GITS_CTLR);
5108 writel_relaxed(ctlr, its->base + GITS_CTLR);