Lines Matching refs:stmpe
15 #include <linux/mfd/stmpe.h>
28 struct stmpe *stmpe;
47 struct stmpe *stmpe = stmpe_gpio->stmpe;
48 u8 reg = stmpe->regs[STMPE_IDX_GPMR_LSB] - (offset / 8);
52 ret = stmpe_reg_read(stmpe, reg);
62 struct stmpe *stmpe = stmpe_gpio->stmpe;
64 u8 reg = stmpe->regs[which] - (offset / 8);
67 stmpe_reg_write(stmpe, reg, mask);
74 struct stmpe *stmpe = stmpe_gpio->stmpe;
75 u8 reg = stmpe->regs[STMPE_IDX_GPDR_LSB] - (offset / 8);
80 return stmpe_set_bits(stmpe, reg, mask, mask);
87 struct stmpe *stmpe = stmpe_gpio->stmpe;
88 u8 reg = stmpe->regs[STMPE_IDX_GPDR_LSB] - (offset / 8);
91 return stmpe_set_bits(stmpe, reg, mask, 0);
104 struct stmpe *stmpe = stmpe_gpio->stmpe;
106 return stmpe_set_altfunc(stmpe, 1 << offset, STMPE_BLOCK_GPIO);
110 .label = "stmpe",
154 struct stmpe *stmpe = stmpe_gpio->stmpe;
155 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8);
172 stmpe_reg_write(stmpe, stmpe->regs[regmap[i]] - j, new);
200 .name = "stmpe-gpio",
211 struct stmpe *stmpe = stmpe_gpio->stmpe;
212 u8 statmsbreg = stmpe->regs[STMPE_IDX_ISGPIOR_MSB];
213 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8);
218 ret = stmpe_block_read(stmpe, statmsbreg, num_banks, status);
239 stmpe_reg_write(stmpe, statmsbreg + i, status[i]);
240 stmpe_reg_write(stmpe, stmpe->regs[STMPE_IDX_GPEDR_MSB] + i,
283 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent);
289 pdata = stmpe->pdata->gpio;
304 stmpe_gpio->stmpe = stmpe;
307 stmpe_gpio->chip.ngpio = stmpe->num_gpios;
311 stmpe_gpio->irq_base = stmpe->irq_base + STMPE_INT_GPIO(0);
313 ret = stmpe_enable(stmpe, STMPE_BLOCK_GPIO);
322 "stmpe-gpio", stmpe_gpio);
335 pdata->setup(stmpe, stmpe_gpio->chip.base);
353 struct stmpe *stmpe = stmpe_gpio->stmpe;
354 struct stmpe_gpio_platform_data *pdata = stmpe->pdata->gpio;
359 pdata->remove(stmpe, stmpe_gpio->chip.base);
368 stmpe_disable(stmpe, STMPE_BLOCK_GPIO);
379 .driver.name = "stmpe-gpio",