Lines Matching refs:rt
71 u32 rt = 0; in tsc2007_calculate_resistance() local
79 rt = tc->z2 - tc->z1; in tsc2007_calculate_resistance()
80 rt *= tc->x; in tsc2007_calculate_resistance()
81 rt *= tsc->x_plate_ohms; in tsc2007_calculate_resistance()
82 rt /= tc->z1; in tsc2007_calculate_resistance()
83 rt = (rt + 2047) >> 12; in tsc2007_calculate_resistance()
86 return rt; in tsc2007_calculate_resistance()
116 u32 rt; in tsc2007_soft_irq() local
126 rt = tsc2007_calculate_resistance(ts, &tc); in tsc2007_soft_irq()
128 if (!rt && !ts->get_pendown_state) { in tsc2007_soft_irq()
137 if (rt <= ts->max_rt) { in tsc2007_soft_irq()
140 tc.x, tc.y, rt); in tsc2007_soft_irq()
142 rt = ts->max_rt - rt; in tsc2007_soft_irq()
146 input_report_abs(input, ABS_PRESSURE, rt); in tsc2007_soft_irq()
156 dev_dbg(&ts->client->dev, "ignored pressure %d\n", rt); in tsc2007_soft_irq()