Lines Matching refs:Rt
770 unsigned int Rt; in ads7846_report_state() local
795 Rt = ts->pressure_max / 2; in ads7846_report_state()
798 Rt = ts->pressure_max / 2; in ads7846_report_state()
800 Rt = 0; in ads7846_report_state()
801 dev_vdbg(&ts->spi->dev, "x/y: %d/%d, PD %d\n", x, y, Rt); in ads7846_report_state()
804 Rt = z2; in ads7846_report_state()
805 Rt -= z1; in ads7846_report_state()
806 Rt *= ts->x_plate_ohms; in ads7846_report_state()
807 Rt = DIV_ROUND_CLOSEST(Rt, 16); in ads7846_report_state()
808 Rt *= x; in ads7846_report_state()
809 Rt /= z1; in ads7846_report_state()
810 Rt = DIV_ROUND_CLOSEST(Rt, 256); in ads7846_report_state()
812 Rt = 0; in ads7846_report_state()
820 if (packet->tc.ignore || Rt > ts->pressure_max) { in ads7846_report_state()
822 packet->tc.ignore, Rt); in ads7846_report_state()
833 Rt = 0; in ads7846_report_state()
845 if (Rt) { in ads7846_report_state()
855 input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt); in ads7846_report_state()
858 dev_vdbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt); in ads7846_report_state()