Lines Matching refs:Rt
557 unsigned Rt;
580 Rt = ts->pressure_max / 2;
583 Rt = ts->pressure_max / 2;
585 Rt = 0;
586 dev_vdbg(&ts->spi->dev, "x/y: %d/%d, PD %d\n", x, y, Rt);
589 Rt = z2;
590 Rt -= z1;
591 Rt *= x;
592 Rt *= ts->x_plate_ohms;
593 Rt /= z1;
594 Rt = (Rt + 2047) >> 12;
596 Rt = 0;
603 if (packet->tc.ignore || Rt > ts->pressure_max) {
605 packet->tc.ignore, Rt);
617 Rt = 0;
628 if (Rt) {
642 input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt);
645 dev_vdbg(&ts->spi->dev, "%4d/%4d/%4d\n", x, y, Rt);