Lines Matching refs:finger
49 struct st1232_ts_finger finger[MAX_FINGERS]; member
55 struct st1232_ts_finger *finger = ts->finger; in st1232_ts_read_data() local
79 finger[0].is_valid = buf[2] >> 7; in st1232_ts_read_data()
80 finger[1].is_valid = buf[5] >> 7; in st1232_ts_read_data()
83 if (finger[0].is_valid) { in st1232_ts_read_data()
84 finger[0].x = ((buf[2] & 0x0070) << 4) | buf[3]; in st1232_ts_read_data()
85 finger[0].y = ((buf[2] & 0x0007) << 8) | buf[4]; in st1232_ts_read_data()
86 finger[0].t = buf[8]; in st1232_ts_read_data()
89 if (finger[1].is_valid) { in st1232_ts_read_data()
90 finger[1].x = ((buf[5] & 0x0070) << 4) | buf[6]; in st1232_ts_read_data()
91 finger[1].y = ((buf[5] & 0x0007) << 8) | buf[7]; in st1232_ts_read_data()
92 finger[1].t = buf[9]; in st1232_ts_read_data()
101 struct st1232_ts_finger *finger = ts->finger; in st1232_ts_irq_handler() local
112 if (!finger[i].is_valid) in st1232_ts_irq_handler()
115 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, finger[i].t); in st1232_ts_irq_handler()
116 input_report_abs(input_dev, ABS_MT_POSITION_X, finger[i].x); in st1232_ts_irq_handler()
117 input_report_abs(input_dev, ABS_MT_POSITION_Y, finger[i].y); in st1232_ts_irq_handler()