Lines Matching defs:base

77 	void		*base;
98 void __iomem *base;
996 ridx = readl_relaxed(its->base + GITS_CREADR) / sizeof(struct its_cmd_block);
1039 writel_relaxed(wr, its->base + GITS_CWRITER);
1073 rd_idx = readl_relaxed(its->base + GITS_CREADR);
1132 rd_idx = readl_relaxed(its->base + GITS_CREADR); \
2034 static struct lpi_range *mk_lpi_range(u32 base, u32 span)
2040 range->base_id = base;
2047 static int alloc_lpi_range(u32 nr_lpis, u32 *base)
2056 *base = range->base_id;
2072 pr_debug("ITS: alloc %u:%u\n", *base, nr_lpis);
2088 static int free_lpi_range(u32 base, u32 nr_lpis)
2092 new = mk_lpi_range(base, nr_lpis);
2099 if (old->base_id < base)
2103 * old is the last element with ->base_id smaller than base,
2105 * ->base_id smaller than base, &old->entry ends up pointing
2144 static unsigned long *its_lpi_alloc(int nr_irqs, u32 *base, int *nr_ids)
2150 err = alloc_lpi_range(nr_irqs, base);
2171 *base = *nr_ids = 0;
2176 static void its_lpi_free(unsigned long *bitmap, u32 base, u32 nr_ids)
2178 WARN_ON(free_lpi_range(base, nr_ids));
2296 return gits_read_baser(its->base + GITS_BASER + (idx << 3));
2304 gits_write_baser(val, its->base + GITS_BASER + (idx << 3));
2317 void *base;
2333 base = (void *)page_address(page);
2334 baser_phys = virt_to_phys(base);
2342 free_pages((unsigned long)base, order);
2387 gic_flush_dcache_to_poc(base, PAGE_ORDER_TO_SIZE(order));
2396 free_pages((unsigned long)base, order);
2401 baser->base = base;
2408 (unsigned long)virt_to_phys(base),
2534 if (its->tables[i].base) {
2535 free_pages((unsigned long)its->tables[i].base,
2537 its->tables[i].base = NULL;
2681 gic_data_rdist()->vpe_l1_base = its->tables[2].base;
2719 void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2721 if (!base || cpu == smp_processor_id())
2724 val = gic_read_typer(base + GICR_TYPER);
2734 val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
2748 void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2758 if (!base)
2761 val = gicr_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
3207 if (gic_read_typer(its->base + GITS_TYPER) & GITS_TYPER_PTA) {
3287 table = baser->base;
4244 void __iomem *base;
4265 base = gic_data_rdist_cpu(cpu)->rd_base + SZ_128K;
4266 writel_relaxed(vpe->vpe_id, base + GICR_VSGIR);
4268 status = readl_relaxed(base + GICR_VSGIPENDR);
4470 int base, nr_ids, i, err = 0;
4474 bitmap = its_lpi_alloc(roundup_pow_of_two(nr_irqs), &base, &nr_ids);
4479 its_lpi_free(bitmap, base, nr_ids);
4485 its_lpi_free(bitmap, base, nr_ids);
4490 vm->db_lpi_base = base;
4498 vm->vpes[i]->vpe_db_lpi = base + i;
4575 static int its_force_quiescent(void __iomem *base)
4580 val = readl_relaxed(base + GITS_CTLR);
4591 writel_relaxed(val, base + GITS_CTLR);
4595 val = readl_relaxed(base + GITS_CTLR);
4745 u32 iidr = readl_relaxed(its->base + GITS_IIDR);
4757 void __iomem *base;
4759 base = its->base;
4760 its->ctlr_save = readl_relaxed(base + GITS_CTLR);
4761 err = its_force_quiescent(base);
4765 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4769 its->cbaser_save = gits_read_cbaser(base + GITS_CBASER);
4775 void __iomem *base;
4777 base = its->base;
4778 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4793 void __iomem *base;
4796 base = its->base;
4806 WARN_ON(readl_relaxed(base + GITS_CTLR) & GITS_CTLR_ENABLE);
4807 ret = its_force_quiescent(base);
4814 gits_write_cbaser(its->cbaser_save, base + GITS_CBASER);
4821 gits_write_cwriter(0, base + GITS_CWRITER);
4832 writel_relaxed(its->ctlr_save, base + GITS_CTLR);
4840 GITS_TYPER_HCC(gic_read_typer(base + GITS_TYPER)))
4998 its->base = its_base;
5060 gits_write_cbaser(baser, its->base + GITS_CBASER);
5061 tmp = gits_read_cbaser(its->base + GITS_CBASER);
5073 gits_write_cbaser(baser, its->base + GITS_CBASER);
5079 gits_write_cwriter(0, its->base + GITS_CWRITER);
5080 ctlr = readl_relaxed(its->base + GITS_CTLR);
5084 writel_relaxed(ctlr, its->base + GITS_CTLR);