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