Lines Matching refs:Rt
853 unsigned int Rt; in ads7846_report_state() local
871 Rt = ts->pressure_max / 2; in ads7846_report_state()
874 Rt = z2; in ads7846_report_state()
875 Rt -= z1; in ads7846_report_state()
876 Rt *= ts->x_plate_ohms; 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()
890 if (packet->ignore || Rt > ts->pressure_max) { in ads7846_report_state()
892 packet->ignore, Rt); in ads7846_report_state()
903 Rt = 0; in ads7846_report_state()
915 if (Rt) { in ads7846_report_state()
925 input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt); in ads7846_report_state()
928 dev_vdbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt); in ads7846_report_state()