Searched refs:Rt (Results 1 – 3 of 3) sorted by relevance
/drivers/input/touchscreen/ |
D | ads7846.c | 753 unsigned int Rt; in ads7846_report_state() local 778 Rt = ts->pressure_max / 2; in ads7846_report_state() 781 Rt = ts->pressure_max / 2; in ads7846_report_state() 783 Rt = 0; in ads7846_report_state() 784 dev_vdbg(&ts->spi->dev, "x/y: %d/%d, PD %d\n", x, y, Rt); in ads7846_report_state() 787 Rt = z2; in ads7846_report_state() 788 Rt -= z1; in ads7846_report_state() 789 Rt *= ts->x_plate_ohms; in ads7846_report_state() 790 Rt = DIV_ROUND_CLOSEST(Rt, 16); in ads7846_report_state() 791 Rt *= x; in ads7846_report_state() [all …]
|
D | ad7879.c | 135 int Rt; member 156 unsigned Rt; in ad7879_report() local 181 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7879_report() 182 Rt /= z1; in ad7879_report() 183 Rt = (Rt + 2047) >> 12; in ad7879_report() 189 if (Rt > ts->pressure_max) in ad7879_report() 203 input_report_abs(input_dev, ABS_PRESSURE, ts->Rt); in ad7879_report() 209 ts->Rt = Rt; in ad7879_report()
|
D | ad7877.c | 334 unsigned Rt; in ad7877_process_data() local 354 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7877_process_data() 355 Rt /= z1; in ad7877_process_data() 356 Rt = (Rt + 2047) >> 12; in ad7877_process_data() 362 if (Rt > ts->pressure_max) in ad7877_process_data() 370 input_report_abs(input_dev, ABS_PRESSURE, Rt); in ad7877_process_data()
|