Lines Matching full:reg_base
35 void __iomem *reg_base;
49 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin);
56 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin);
90 bval = readb(lgpio->reg_base + lgpio->chip_data->in_offset + pin);
101 bval = readb(lgpio->reg_base + lgpio->chip_data->conf_offset + pin);
126 u = readl(lgpio->reg_base + lgpio->chip_data->inten_offset + (offset / 32) * 4);
128 writel(u, lgpio->reg_base + lgpio->chip_data->inten_offset + (offset / 32) * 4);
130 writeb(1, lgpio->reg_base + lgpio->chip_data->inten_offset + offset);
137 void __iomem *reg_base)
141 lgpio->reg_base = reg_base;
144 lgpio->reg_base + lgpio->chip_data->in_offset,
145 lgpio->reg_base + lgpio->chip_data->out_offset,
147 lgpio->reg_base + lgpio->chip_data->conf_offset,
173 void __iomem *reg_base;
183 reg_base = devm_platform_ioremap_resource(pdev, 0);
184 if (IS_ERR(reg_base))
185 return PTR_ERR(reg_base);
187 return loongson_gpio_init(dev, lgpio, reg_base);