Lines Matching defs:base
52 void __iomem *base = context;
56 writeq((reg >> 2) | INDIRECT_RD, base + INDIRECT_ADDR);
59 while ((readq(base + INDIRECT_ADDR) & INDIRECT_RD) &&
68 v = readq(base + INDIRECT_RD_DATA);
78 void __iomem *base = context;
81 writeq(val, base + INDIRECT_WR_DATA);
82 writeq((reg >> 2) | INDIRECT_WR, base + INDIRECT_ADDR);
85 while ((readq(base + INDIRECT_ADDR) & INDIRECT_WR) &&
107 static void config_spi_host(void __iomem *base, struct spi_controller *host)
111 v = readq(base + SPI_CORE_PARAMETER);
130 void __iomem *base;
143 base = devm_ioremap_resource(dev, &dfl_dev->mmio_res);
145 if (IS_ERR(base))
146 return PTR_ERR(base);
148 config_spi_host(base, host);
153 hw->regmap = devm_regmap_init(dev, NULL, base, &indirect_regbus_cfg);