Lines Matching defs:base

341 	enum mem_type (*get_mtype)(const void __iomem *base);
342 enum dev_type (*get_dtype)(const void __iomem *base);
343 bool (*get_ecc_state)(void __iomem *base);
357 void __iomem *base;
359 base = priv->baseaddr;
362 regval = readl(base + STAT_OFST);
369 regval = readl(base + CE_LOG_OFST);
374 regval = readl(base + CE_ADDR_OFST);
378 p->ceinfo.data = readl(base + CE_DATA_31_0_OFST);
384 regval = readl(base + UE_LOG_OFST);
388 regval = readl(base + UE_ADDR_OFST);
392 p->ueinfo.data = readl(base + UE_DATA_31_0_OFST);
396 writel(clearval, base + ECC_CTRL_OFST);
397 writel(0x0, base + ECC_CTRL_OFST);
412 void __iomem *base;
414 base = priv->baseaddr;
417 regval = readl(base + ECC_ERRCNT_OFST);
423 regval = readl(base + ECC_STAT_OFST);
429 regval = readl(base + ECC_CEADDR0_OFST);
431 regval = readl(base + ECC_CEADDR1_OFST);
437 p->ceinfo.data = readl(base + ECC_CSYND0_OFST);
439 readl(base + ECC_CSYND0_OFST), readl(base + ECC_CSYND1_OFST),
440 readl(base + ECC_CSYND2_OFST));
445 regval = readl(base + ECC_UEADDR0_OFST);
447 regval = readl(base + ECC_UEADDR1_OFST);
453 p->ueinfo.data = readl(base + ECC_UESYND0_OFST);
457 writel(clearval, base + ECC_CLR_OFST);
458 writel(0x0, base + ECC_CLR_OFST);
614 * @base: DDR memory controller base address.
621 static enum dev_type zynq_get_dtype(const void __iomem *base)
626 width = readl(base + CTRL_OFST);
645 * @base: DDR memory controller base address.
652 static enum dev_type zynqmp_get_dtype(const void __iomem *base)
657 width = readl(base + CTRL_OFST);
678 * @base: DDR memory controller base address.
684 static bool zynq_get_ecc_state(void __iomem *base)
689 dt = zynq_get_dtype(base);
693 ecctype = readl(base + SCRUB_OFST) & SCRUB_MODE_MASK;
702 * @base: DDR memory controller base address.
708 static bool zynqmp_get_ecc_state(void __iomem *base)
713 dt = zynqmp_get_dtype(base);
717 ecctype = readl(base + ECC_CFG0_OFST) & SCRUB_MODE_MASK;
741 * @base: Synopsys ECC status structure.
748 static enum mem_type zynq_get_mtype(const void __iomem *base)
753 memtype = readl(base + T_ZQ_OFST);
765 * @base: Synopsys ECC status structure.
772 static enum mem_type zynqmp_get_mtype(const void __iomem *base)
777 memtype = readl(base + CTRL_OFST);