Lines Matching defs:base

79 	void		*base;
100 void __iomem *base;
1008 ridx = readl_relaxed(its->base + GITS_CREADR) / sizeof(struct its_cmd_block);
1051 writel_relaxed(wr, its->base + GITS_CWRITER);
1085 rd_idx = readl_relaxed(its->base + GITS_CREADR);
1144 rd_idx = readl_relaxed(its->base + GITS_CREADR); \
2048 static struct lpi_range *mk_lpi_range(u32 base, u32 span)
2054 range->base_id = base;
2061 static int alloc_lpi_range(u32 nr_lpis, u32 *base)
2070 *base = range->base_id;
2086 pr_debug("ITS: alloc %u:%u\n", *base, nr_lpis);
2102 static int free_lpi_range(u32 base, u32 nr_lpis)
2106 new = mk_lpi_range(base, nr_lpis);
2113 if (old->base_id < base)
2117 * old is the last element with ->base_id smaller than base,
2119 * ->base_id smaller than base, &old->entry ends up pointing
2158 static unsigned long *its_lpi_alloc(int nr_irqs, u32 *base, int *nr_ids)
2164 err = alloc_lpi_range(nr_irqs, base);
2185 *base = *nr_ids = 0;
2190 static void its_lpi_free(unsigned long *bitmap, u32 base, u32 nr_ids)
2192 WARN_ON(free_lpi_range(base, nr_ids));
2310 return gits_read_baser(its->base + GITS_BASER + (idx << 3));
2318 gits_write_baser(val, its->base + GITS_BASER + (idx << 3));
2331 void *base;
2347 base = (void *)page_address(page);
2348 baser_phys = virt_to_phys(base);
2356 free_pages((unsigned long)base, order);
2388 gic_flush_dcache_to_poc(base, PAGE_ORDER_TO_SIZE(order));
2412 free_pages((unsigned long)base, order);
2417 baser->base = base;
2424 (unsigned long)virt_to_phys(base),
2550 if (its->tables[i].base) {
2551 free_pages((unsigned long)its->tables[i].base,
2553 its->tables[i].base = NULL;
2702 gic_data_rdist()->vpe_l1_base = its->tables[2].base;
2742 void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2744 if (!base || cpu == smp_processor_id())
2747 val = gic_read_typer(base + GICR_TYPER);
2757 val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2771 void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2781 if (!base)
2784 val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
3247 if (gic_read_typer(its->base + GITS_TYPER) & GITS_TYPER_PTA) {
3327 table = baser->base;
4296 void __iomem *base;
4317 base = gic_data_rdist_cpu(cpu)->rd_base + SZ_128K;
4318 writel_relaxed(vpe->vpe_id, base + GICR_VSGIR);
4320 status = readl_relaxed(base + GICR_VSGIPENDR);
4522 int base, nr_ids, i, err = 0;
4526 bitmap = its_lpi_alloc(roundup_pow_of_two(nr_irqs), &base, &nr_ids);
4531 its_lpi_free(bitmap, base, nr_ids);
4537 its_lpi_free(bitmap, base, nr_ids);
4542 vm->db_lpi_base = base;
4550 vm->vpes[i]->vpe_db_lpi = base + i;
4568 its_lpi_free(bitmap, base, nr_ids);
4642 static int its_force_quiescent(void __iomem *base)
4647 val = readl_relaxed(base + GITS_CTLR);
4658 writel_relaxed(val, base + GITS_CTLR);
4662 val = readl_relaxed(base + GITS_CTLR);
4847 u32 iidr = readl_relaxed(its->base + GITS_IIDR);
4863 void __iomem *base;
4865 base = its->base;
4866 its->ctlr_save = readl_relaxed(base + GITS_CTLR);
4867 err = its_force_quiescent(base);
4871 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4875 its->cbaser_save = gits_read_cbaser(base + GITS_CBASER);
4881 void __iomem *base;
4883 base = its->base;
4884 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4899 void __iomem *base;
4902 base = its->base;
4912 WARN_ON(readl_relaxed(base + GITS_CTLR) & GITS_CTLR_ENABLE);
4913 ret = its_force_quiescent(base);
4920 gits_write_cbaser(its->cbaser_save, base + GITS_CBASER);
4927 gits_write_cwriter(0, base + GITS_CWRITER);
4938 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4946 GITS_TYPER_HCC(gic_read_typer(base + GITS_TYPER)))
5072 ctlr = readl_relaxed(its->base + GITS_CTLR);
5075 writel_relaxed(ctlr, its->base + GITS_CTLR);
5076 ctlr = readl_relaxed(its->base + GITS_CTLR);
5123 its->mpidr = readl_relaxed(its->base + GITS_MPIDR);
5153 gits_write_cbaser(baser, its->base + GITS_CBASER);
5154 tmp = gits_read_cbaser(its->base + GITS_CBASER);
5169 gits_write_cbaser(baser, its->base + GITS_CBASER);
5175 gits_write_cwriter(0, its->base + GITS_CWRITER);
5176 ctlr = readl_relaxed(its->base + GITS_CTLR);
5180 writel_relaxed(ctlr, its->base + GITS_CTLR);
5384 its->base = its_base;
5401 iounmap(its->base);