Lines Matching refs:Rt
827 unsigned int Rt; in ads7846_report_state() local
845 Rt = ts->pressure_max / 2; in ads7846_report_state()
848 Rt = z2; in ads7846_report_state()
849 Rt -= z1; in ads7846_report_state()
850 Rt *= ts->x_plate_ohms; in ads7846_report_state()
851 Rt = DIV_ROUND_CLOSEST(Rt, 16); in ads7846_report_state()
852 Rt *= x; in ads7846_report_state()
853 Rt /= z1; in ads7846_report_state()
854 Rt = DIV_ROUND_CLOSEST(Rt, 256); in ads7846_report_state()
856 Rt = 0; in ads7846_report_state()
864 if (packet->ignore || Rt > ts->pressure_max) { in ads7846_report_state()
866 packet->ignore, Rt); in ads7846_report_state()
877 Rt = 0; in ads7846_report_state()
889 if (Rt) { in ads7846_report_state()
899 input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt); in ads7846_report_state()
902 dev_vdbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt); in ads7846_report_state()