Lines Matching defs:data
30 * Per-Stinger data.
36 unsigned char data[STINGER_MAX_LENGTH];
42 * Stinger. It updates the data accordingly.
48 unsigned char *data = stinger->data;
52 input_report_key(dev, BTN_A, ((data[0] & 0x20) >> 5));
53 input_report_key(dev, BTN_B, ((data[0] & 0x10) >> 4));
54 input_report_key(dev, BTN_C, ((data[0] & 0x08) >> 3));
55 input_report_key(dev, BTN_X, ((data[0] & 0x04) >> 2));
56 input_report_key(dev, BTN_Y, ((data[3] & 0x20) >> 5));
57 input_report_key(dev, BTN_Z, ((data[3] & 0x10) >> 4));
58 input_report_key(dev, BTN_TL, ((data[3] & 0x08) >> 3));
59 input_report_key(dev, BTN_TR, ((data[3] & 0x04) >> 2));
60 input_report_key(dev, BTN_SELECT, ((data[3] & 0x02) >> 1));
61 input_report_key(dev, BTN_START, (data[3] & 0x01));
63 input_report_abs(dev, ABS_X, (data[1] & 0x3F) - ((data[0] & 0x01) << 6));
64 input_report_abs(dev, ABS_Y, ((data[0] & 0x02) << 5) - (data[2] & 0x3F));
78 unsigned char data, unsigned int flags)
85 stinger->data[stinger->idx++] = data;