Lines Matching defs:stmpe
15 #include <linux/mfd/stmpe.h>
104 struct stmpe *stmpe;
118 struct stmpe *stmpe = keypad->stmpe;
123 return stmpe_block_read(stmpe, STMPE_KPC_DATA_BYTE0,
127 ret = stmpe_reg_read(stmpe, STMPE_KPC_DATA_BYTE0 + i);
174 struct stmpe *stmpe = keypad->stmpe;
207 return stmpe_set_altfunc(stmpe, pins, STMPE_BLOCK_KEYPAD);
214 struct stmpe *stmpe = keypad->stmpe;
223 ret = stmpe_enable(stmpe, STMPE_BLOCK_KEYPAD);
231 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols);
235 ret = stmpe_reg_write(stmpe, STMPE_KPC_ROW_LSB, keypad->rows);
240 ret = stmpe_set_bits(stmpe, STMPE_KPC_ROW_MSB,
247 ret = stmpe_set_bits(stmpe, STMPE_KPC_CTRL_MSB,
253 return stmpe_set_bits(stmpe, STMPE_KPC_CTRL_LSB,
262 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent);
270 plat = stmpe->pdata->keypad;
312 keypad->stmpe = stmpe;
315 keypad->variant = &stmpe_keypad_variants[stmpe->partnum];
329 "stmpe-keypad", keypad);
352 struct stmpe *stmpe = keypad->stmpe;
355 stmpe_disable(stmpe, STMPE_BLOCK_KEYPAD);
366 .driver.name = "stmpe-keypad",