Lines Matching refs:base
126 * @base: Pointer to the base address of the OCM
133 static void get_error_info(void __iomem *base, struct ecc_status *p, int mask)
137 p->ceinfo.fault_lo = readl(base + CE_FFD0_OFST);
138 p->ceinfo.fault_hi = readl(base + CE_FFD1_OFST);
139 p->ceinfo.addr = (OCM_BASEVAL | readl(base + CE_FFA_OFST));
140 writel(ECC_CTRL_CLR_CE_ERR, base + OCM_ISR_OFST);
143 p->ueinfo.fault_lo = readl(base + UE_FFD0_OFST);
144 p->ueinfo.fault_hi = readl(base + UE_FFD1_OFST);
145 p->ueinfo.addr = (OCM_BASEVAL | readl(base + UE_FFA_OFST));
146 writel(ECC_CTRL_CLR_UE_ERR, base + OCM_ISR_OFST);
211 * @base: Pointer to the OCM base address
217 static bool get_eccstate(void __iomem *base)
219 return readl(base + ECC_CTRL_OFST) & OCM_ECC_ENABLE_MASK;