Lines Matching full:stmpe

15 #include <linux/mfd/stmpe.h>
17 /* These are at the same addresses in all STMPE variants */
116 * struct stmpe_keypad - STMPE keypad state container
117 * @stmpe: pointer to parent STMPE device
119 * @variant: STMPE variant
130 struct stmpe *stmpe; member
144 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_read_data() local
149 return stmpe_block_read(stmpe, STMPE_KPC_DATA_BYTE0, in stmpe_keypad_read_data()
153 ret = stmpe_reg_read(stmpe, STMPE_KPC_DATA_BYTE0 + i); in stmpe_keypad_read_data()
200 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_altfunc_init() local
201 u8 pureg = stmpe->regs[STMPE_IDX_GPPUR_LSB]; in stmpe_keypad_altfunc_init()
238 ret = stmpe_set_altfunc(stmpe, pins, STMPE_BLOCK_KEYPAD); in stmpe_keypad_altfunc_init()
251 ret = stmpe_reg_read(stmpe, pureg); in stmpe_keypad_altfunc_init()
259 ret = stmpe_reg_write(stmpe, pureg, val); in stmpe_keypad_altfunc_init()
268 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_chip_init() local
277 ret = stmpe_enable(stmpe, STMPE_BLOCK_KEYPAD); in stmpe_keypad_chip_init()
285 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols); in stmpe_keypad_chip_init()
289 ret = stmpe_reg_write(stmpe, STMPE_KPC_ROW_LSB, keypad->rows); in stmpe_keypad_chip_init()
294 ret = stmpe_set_bits(stmpe, STMPE_KPC_ROW_MSB, in stmpe_keypad_chip_init()
301 ret = stmpe_set_bits(stmpe, STMPE_KPC_CTRL_MSB, in stmpe_keypad_chip_init()
307 return stmpe_set_bits(stmpe, STMPE_KPC_CTRL_LSB, in stmpe_keypad_chip_init()
333 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_keypad_probe() local
351 keypad->stmpe = stmpe; in stmpe_keypad_probe()
352 keypad->variant = &stmpe_keypad_variants[stmpe->partnum]; in stmpe_keypad_probe()
362 input->name = "STMPE keypad"; in stmpe_keypad_probe()
389 IRQF_ONESHOT, "stmpe-keypad", keypad); in stmpe_keypad_probe()
411 stmpe_disable(keypad->stmpe, STMPE_BLOCK_KEYPAD); in stmpe_keypad_remove()
417 .driver.name = "stmpe-keypad",