Lines Matching refs:data
88 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 4096 /* size */);
90 if (!data)
93 __builtin_memcpy(data, fixed_rdesc, sizeof(fixed_rdesc));
99 data[63] = 0x2e;
100 data[62] = 0x62;
101 data[73] = 0x1c;
102 data[72] = 0xfd;
111 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */);
113 if (!data)
116 if ((data[1] & 0x29) != 0x29) /* tip switch=1 invert=1 inrange=1 */
120 data[1] ^= 0x19;
181 static void compensate_coordinates_by_tilt(__u8 *data, const __u8 idx,
184 __u16 coords = data[idx+1];
187 coords += data[idx];
206 data[idx] = coords & 0xff;
207 data[idx+1] = coords >> 8;
213 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */);
215 if (!data)
243 __s8 tilt_x = (__s8) data[8];
244 __s8 tilt_y = (__s8) data[9];
247 compensate_coordinates_by_tilt(data, 2, tilt_x, &angle_offsets_horizontal_14);
248 compensate_coordinates_by_tilt(data, 4, tilt_y, &angle_offsets_vertical_14);
250 compensate_coordinates_by_tilt(data, 2, tilt_x, &angle_offsets_horizontal_16);
251 compensate_coordinates_by_tilt(data, 4, tilt_y, &angle_offsets_vertical_16);