Lines Matching refs:stmpe

73 	struct stmpe *stmpe;  member
85 static int __stmpe_reset_fifo(struct stmpe *stmpe) in __stmpe_reset_fifo() argument
89 ret = stmpe_set_bits(stmpe, STMPE_REG_FIFO_STA, in __stmpe_reset_fifo()
94 return stmpe_set_bits(stmpe, STMPE_REG_FIFO_STA, in __stmpe_reset_fifo()
106 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work()
117 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work()
122 __stmpe_reset_fifo(ts->stmpe); in stmpe_work()
147 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_handler()
150 stmpe_block_read(ts->stmpe, STMPE_REG_TSC_DATA_XYZ, 4, data_set); in stmpe_ts_handler()
162 __stmpe_reset_fifo(ts->stmpe); in stmpe_ts_handler()
165 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_handler()
178 struct stmpe *stmpe = ts->stmpe; in stmpe_init_hw() local
181 ret = stmpe_enable(stmpe, STMPE_BLOCK_TOUCHSCREEN | STMPE_BLOCK_ADC); in stmpe_init_hw()
187 ret = stmpe811_adc_common_init(stmpe); in stmpe_init_hw()
189 stmpe_disable(stmpe, STMPE_BLOCK_TOUCHSCREEN | STMPE_BLOCK_ADC); in stmpe_init_hw()
199 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_CFG, tsc_cfg_mask, tsc_cfg); in stmpe_init_hw()
205 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_FRACTION_Z, in stmpe_init_hw()
212 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_I_DRIVE, in stmpe_init_hw()
220 ret = stmpe_reg_write(stmpe, STMPE_REG_FIFO_TH, 1); in stmpe_init_hw()
226 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_CTRL, in stmpe_init_hw()
241 ret = __stmpe_reset_fifo(ts->stmpe); in stmpe_ts_open()
245 return stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_open()
255 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_close()
267 ts->stmpe->sample_time = val; in stmpe_ts_get_platform_info()
269 ts->stmpe->mod_12b = val; in stmpe_ts_get_platform_info()
271 ts->stmpe->ref_sel = val; in stmpe_ts_get_platform_info()
273 ts->stmpe->adc_freq = val; in stmpe_ts_get_platform_info()
289 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_input_probe() local
308 ts->stmpe = stmpe; in stmpe_input_probe()
357 stmpe_disable(ts->stmpe, STMPE_BLOCK_TOUCHSCREEN); in stmpe_ts_remove()