Lines Matching full:pressure
113 int x, int y, int pressure) in tsc200x_update_pen_state() argument
115 if (pressure) { in tsc200x_update_pen_state()
118 input_report_abs(ts->idev, ABS_PRESSURE, pressure); in tsc200x_update_pen_state()
120 input_report_key(ts->idev, BTN_TOUCH, !!pressure); in tsc200x_update_pen_state()
131 dev_dbg(ts->dev, "point(%4d,%4d), pressure (%4d)\n", x, y, in tsc200x_update_pen_state()
132 pressure); in tsc200x_update_pen_state()
139 unsigned int pressure; in tsc200x_irq_thread() local
153 /* Skip reading if the pressure components are out of range */ in tsc200x_irq_thread()
178 /* Compute touch pressure resistance using equation #1 */ in tsc200x_irq_thread()
179 pressure = tsdata.x * (tsdata.z2 - tsdata.z1) / tsdata.z1; in tsc200x_irq_thread()
180 pressure = pressure * ts->x_plate_ohm / 4096; in tsc200x_irq_thread()
181 if (unlikely(pressure > MAX_12BIT)) in tsc200x_irq_thread()
186 tsc200x_update_pen_state(ts, tsdata.x, tsdata.y, pressure); in tsc200x_irq_thread()