Lines Matching refs:stmpe
47 struct stmpe *stmpe; member
77 stmpe_reg_write(info->stmpe, STMPE_REG_ADC_CAPT, in stmpe_read_voltage()
83 stmpe_reg_write(info->stmpe, STMPE_REG_ADC_INT_STA, in stmpe_read_voltage()
112 stmpe_reg_write(info->stmpe, STMPE_REG_TEMP_CTRL, in stmpe_read_temp()
165 *val2 = info->stmpe->mod_12b ? 12 : 10; in stmpe_read_raw()
183 int_sta = stmpe_reg_read(info->stmpe, STMPE_REG_ADC_INT_STA); in stmpe_adc_isr()
190 stmpe_block_read(info->stmpe, in stmpe_adc_isr()
193 stmpe_reg_write(info->stmpe, STMPE_REG_ADC_INT_STA, int_sta); in stmpe_adc_isr()
196 stmpe_block_read(info->stmpe, STMPE_REG_TEMP_DATA, 2, in stmpe_adc_isr()
232 struct stmpe *stmpe = adc->stmpe; in stmpe_adc_init_hw() local
234 ret = stmpe_enable(stmpe, STMPE_BLOCK_ADC); in stmpe_adc_init_hw()
236 dev_err(stmpe->dev, "Could not enable clock for ADC\n"); in stmpe_adc_init_hw()
240 ret = stmpe811_adc_common_init(stmpe); in stmpe_adc_init_hw()
242 stmpe_disable(stmpe, STMPE_BLOCK_ADC); in stmpe_adc_init_hw()
247 stmpe_reg_write(stmpe, STMPE_REG_TEMP_TH, 0); in stmpe_adc_init_hw()
248 stmpe_reg_write(stmpe, STMPE_REG_TEMP_TH + 1, 0); in stmpe_adc_init_hw()
304 info->stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_adc_probe()
327 stmpe_reg_write(info->stmpe, STMPE_REG_ADC_INT_EN, in stmpe_adc_probe()
330 stmpe_reg_write(info->stmpe, STMPE_REG_ADC_INT_STA, in stmpe_adc_probe()