Lines Matching defs:buf
44 static void eeti_ts_report_event(struct eeti_ts *eeti, u8 *buf)
49 res = REPORT_RES_BITS(buf[0] & (REPORT_BIT_AD0 | REPORT_BIT_AD1));
51 x = get_unaligned_be16(&buf[1]);
52 y = get_unaligned_be16(&buf[3]);
58 if (buf[0] & REPORT_BIT_HAS_PRESSURE)
59 input_report_abs(eeti->input, ABS_PRESSURE, buf[5]);
62 input_report_key(eeti->input, BTN_TOUCH, buf[0] & REPORT_BIT_PRESSED);
69 char buf[6];
71 len = i2c_master_recv(eeti->client, buf, sizeof(buf));
72 if (len != sizeof(buf)) {
81 if (buf[0] & 0x80)
82 eeti_ts_report_event(eeti, buf);