Lines Matching defs:base
94 void *base;
106 void __iomem *base;
125 __iowrite32_copy(ctrl->base + tx_reg, buf, count);
146 return ctrl->rx.base + (idx * ctrl->rx.sl_sz);
173 ctrl->base + MGR_INT_CLR);
176 u32 mgr_stat = readl_relaxed(ctrl->base + MGR_STATUS);
177 u32 mgr_ie_stat = readl_relaxed(ctrl->base + MGR_IE_STAT);
178 u32 frm_stat = readl_relaxed(ctrl->base + FRM_STAT);
179 u32 frm_cfg = readl_relaxed(ctrl->base + FRM_CFG);
180 u32 frm_intr_stat = readl_relaxed(ctrl->base + FRM_INT_STAT);
181 u32 frm_ie_stat = readl_relaxed(ctrl->base + FRM_IE_STAT);
182 u32 intf_stat = readl_relaxed(ctrl->base + INTF_STAT);
183 u32 intf_intr_stat = readl_relaxed(ctrl->base + INTF_INT_STAT);
184 u32 intf_ie_stat = readl_relaxed(ctrl->base + INTF_IE_STAT);
186 writel_relaxed(MGR_INT_TX_NACKED_2, ctrl->base + MGR_INT_CLR);
214 pkt[0] = readl_relaxed(ctrl->base + MGR_RX_MSG);
236 __ioread32_copy(rx_buf + 1, ctrl->base + MGR_RX_MSG + 4,
255 writel(MGR_INT_RX_MSG_RCVD, ctrl->base +
266 u32 stat = readl_relaxed(ctrl->base + MGR_INT_STAT);
286 writel_relaxed(1, ctrl->base + FRM_WAKEUP);
321 return ctrl->tx.base + (idx * ctrl->tx.sl_sz);
430 memcpy(buf, ctrl->rx.base + (ctrl->rx.head * ctrl->rx.sl_sz),
521 ctrl->base = devm_platform_ioremap_resource_byname(pdev, "ctrl");
522 if (IS_ERR(ctrl->base))
523 return PTR_ERR(ctrl->base);
569 ctrl->tx.base = devm_kcalloc(&pdev->dev, ctrl->tx.n, ctrl->tx.sl_sz,
571 if (!ctrl->tx.base) {
576 ctrl->rx.base = devm_kcalloc(&pdev->dev,ctrl->rx.n, ctrl->rx.sl_sz,
578 if (!ctrl->rx.base) {
590 ver = readl_relaxed(ctrl->base);
594 writel(1, ctrl->base + CFG_PORT(COMP_CFG, ver));
596 ctrl->base + CFG_PORT(COMP_TRUST_CFG, ver));
600 MGR_INT_TX_MSG_SENT), ctrl->base + MGR_INT_EN);
601 writel(1, ctrl->base + MGR_CFG);
605 ctrl->base + FRM_CFG);
606 writel(MGR_CFG_ENABLE, ctrl->base + MGR_CFG);
607 writel(1, ctrl->base + INTF_CFG);
608 writel(1, ctrl->base + CFG_PORT(COMP_CFG, ver));