Lines Matching full:stmpe
14 #include <linux/mfd/stmpe.h>
16 /* These are at the same addresses in all STMPE variants */
115 * struct stmpe_keypad - STMPE keypad state container
116 * @stmpe: pointer to parent STMPE device
118 * @variant: STMPE variant
129 struct stmpe *stmpe; member
143 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_read_data() local
148 return stmpe_block_read(stmpe, STMPE_KPC_DATA_BYTE0, in stmpe_keypad_read_data()
152 ret = stmpe_reg_read(stmpe, STMPE_KPC_DATA_BYTE0 + i); in stmpe_keypad_read_data()
199 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_altfunc_init() local
200 u8 pureg = stmpe->regs[STMPE_IDX_GPPUR_LSB]; in stmpe_keypad_altfunc_init()
237 ret = stmpe_set_altfunc(stmpe, pins, STMPE_BLOCK_KEYPAD); in stmpe_keypad_altfunc_init()
250 ret = stmpe_reg_read(stmpe, pureg); in stmpe_keypad_altfunc_init()
258 ret = stmpe_reg_write(stmpe, pureg, val); in stmpe_keypad_altfunc_init()
267 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_chip_init() local
276 ret = stmpe_enable(stmpe, STMPE_BLOCK_KEYPAD); in stmpe_keypad_chip_init()
284 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols); in stmpe_keypad_chip_init()
288 ret = stmpe_reg_write(stmpe, STMPE_KPC_ROW_LSB, keypad->rows); in stmpe_keypad_chip_init()
293 ret = stmpe_set_bits(stmpe, STMPE_KPC_ROW_MSB, in stmpe_keypad_chip_init()
300 ret = stmpe_set_bits(stmpe, STMPE_KPC_CTRL_MSB, in stmpe_keypad_chip_init()
306 return stmpe_set_bits(stmpe, STMPE_KPC_CTRL_LSB, in stmpe_keypad_chip_init()
332 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_keypad_probe() local
350 keypad->stmpe = stmpe; in stmpe_keypad_probe()
351 keypad->variant = &stmpe_keypad_variants[stmpe->partnum]; in stmpe_keypad_probe()
361 input->name = "STMPE keypad"; in stmpe_keypad_probe()
388 IRQF_ONESHOT, "stmpe-keypad", keypad); in stmpe_keypad_probe()
410 stmpe_disable(keypad->stmpe, STMPE_BLOCK_KEYPAD); in stmpe_keypad_remove()
416 .driver.name = "stmpe-keypad",