Searched refs:Rt (Results 1 – 4 of 4) sorted by relevance
| /drivers/input/touchscreen/ |
| A D | resistive-adc-touch.c | 72 unsigned int Rt; in grts_cb() local 75 Rt = z2; in grts_cb() 76 Rt -= z1; in grts_cb() 77 Rt *= st->x_plate_ohms; in grts_cb() 78 Rt = DIV_ROUND_CLOSEST(Rt, 16); in grts_cb() 79 Rt *= x; in grts_cb() 80 Rt /= z1; in grts_cb() 81 Rt = DIV_ROUND_CLOSEST(Rt, 256); in grts_cb() 87 if (Rt < GRTS_DEFAULT_PRESSURE_MAX) in grts_cb() 88 press = GRTS_DEFAULT_PRESSURE_MAX - Rt; in grts_cb()
|
| A D | ad7879.c | 132 int Rt; member 168 unsigned Rt; in ad7879_report() local 193 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7879_report() 194 Rt /= z1; in ad7879_report() 195 Rt = (Rt + 2047) >> 12; in ad7879_report() 201 if (Rt > input_abs_get_max(input_dev, ABS_PRESSURE)) in ad7879_report() 215 input_report_abs(input_dev, ABS_PRESSURE, ts->Rt); in ad7879_report() 221 ts->Rt = Rt; in ad7879_report()
|
| A D | ads7846.c | 853 unsigned int Rt; in ads7846_report_state() local 874 Rt = z2; in ads7846_report_state() 875 Rt -= z1; in ads7846_report_state() 877 Rt = DIV_ROUND_CLOSEST(Rt, 16); in ads7846_report_state() 878 Rt *= x; in ads7846_report_state() 879 Rt /= z1; in ads7846_report_state() 880 Rt = DIV_ROUND_CLOSEST(Rt, 256); in ads7846_report_state() 882 Rt = 0; in ads7846_report_state() 892 packet->ignore, Rt); in ads7846_report_state() 903 Rt = 0; in ads7846_report_state() [all …]
|
| A D | ad7877.c | 322 unsigned Rt; in ad7877_process_data() local 342 Rt = (z2 - z1) * x * ts->x_plate_ohms; in ad7877_process_data() 343 Rt /= z1; in ad7877_process_data() 344 Rt = (Rt + 2047) >> 12; in ad7877_process_data() 350 if (Rt > ts->pressure_max) in ad7877_process_data() 358 input_report_abs(input_dev, ABS_PRESSURE, Rt); in ad7877_process_data()
|
Completed in 16 milliseconds