Lines Matching refs:frame
1340 unsigned char *frame = &data[i*pen_frame_len + 1];
1341 bool valid = frame[0] & 0x80;
1355 unsigned char *frame = &data[i*pen_frame_len + 1];
1356 bool valid = frame[0] & 0x80;
1357 bool prox = frame[0] & 0x40;
1358 bool range = frame[0] & 0x20;
1359 bool invert = frame[0] & 0x10;
1389 input_report_abs(pen_input, ABS_X, get_unaligned_le16(&frame[1]));
1390 input_report_abs(pen_input, ABS_Y, get_unaligned_le16(&frame[3]));
1396 (int16_t)get_unaligned_le16(&frame[9]);
1403 (char)frame[7]);
1405 (char)frame[8]);
1408 get_unaligned_le16(&frame[11]));
1413 input_report_abs(pen_input, ABS_PRESSURE, get_unaligned_le16(&frame[5]));
1417 range ? frame[13] : wacom->features.distance_max);
1420 range ? frame[7] : wacom->features.distance_max);
1423 input_report_key(pen_input, BTN_TOUCH, frame[0] & 0x09);
1424 input_report_key(pen_input, BTN_STYLUS, frame[0] & 0x02);
1425 input_report_key(pen_input, BTN_STYLUS2, frame[0] & 0x04);
1454 unsigned char *frame = &data[i*finger_frame_len + 109];
1455 int current_num_contacts = frame[0] & 0x7F;
1458 if (!(frame[0] & 0x80))
1471 unsigned char *touch = &frame[j*finger_touch_len + 1];