Lines Matching refs:Rt
837 unsigned int Rt; in ads7846_report_state() local
855 Rt = ts->pressure_max / 2; in ads7846_report_state()
858 Rt = ts->pressure_max / 2; in ads7846_report_state()
860 Rt = 0; in ads7846_report_state()
861 dev_vdbg(&ts->spi->dev, "x/y: %d/%d, PD %d\n", x, y, Rt); in ads7846_report_state()
864 Rt = z2; in ads7846_report_state()
865 Rt -= z1; in ads7846_report_state()
866 Rt *= ts->x_plate_ohms; in ads7846_report_state()
867 Rt = DIV_ROUND_CLOSEST(Rt, 16); in ads7846_report_state()
868 Rt *= x; in ads7846_report_state()
869 Rt /= z1; in ads7846_report_state()
870 Rt = DIV_ROUND_CLOSEST(Rt, 256); in ads7846_report_state()
872 Rt = 0; in ads7846_report_state()
880 if (packet->ignore || Rt > ts->pressure_max) { in ads7846_report_state()
882 packet->ignore, Rt); in ads7846_report_state()
893 Rt = 0; in ads7846_report_state()
905 if (Rt) { in ads7846_report_state()
915 input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt); in ads7846_report_state()
918 dev_vdbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt); in ads7846_report_state()