Lines Matching +full:abs +full:- +full:range
1 // SPDX-License-Identifier: GPL-2.0-only
25 * - the second button is reported through Secondary Tip Switch instead of Secondary Barrel Switch
26 * - the third button is reported through Invert, and we need some room to report it.
45 0x81, 0x02, // Input (Data,Var,Abs) 30
49 0x81, 0x02, // Input (Data,Var,Abs) /* inserted */
51 0x09, 0x32, // Usage (In Range) 32
54 0x81, 0x02, // Input (Data,Var,Abs) 38
55 0x81, 0x03, // Input (Cnst,Var,Abs) 40
59 0x55, 0x0d, // Unit Exponent (-3) 48
66 0x81, 0x02, // Input (Data,Var,Abs) 64
72 0x81, 0x02, // Input (Data,Var,Abs) 77
75 0x15, 0xa6, // Logical Minimum (-90) 83
79 0x81, 0x02, // Input (Data,Var,Abs) 91
94 0x81, 0x02, // Input (Data,Var,Abs) 119
99 0x81, 0x02, // Input (Data,Var,Abs) 129
102 0x81, 0x03, // Input (Cnst,Var,Abs) 135
105 0x55, 0x0e, // Unit Exponent (-2) 141
111 0x81, 0x42, // Input (Data,Var,Abs,Null) 155
115 0x81, 0x42, // Input (Data,Var,Abs,Null) 165
121 0x81, 0x02, // Input (Data,Var,Abs) 178
132 0x81, 0x02, // Input (Data,Var,Abs) 199
137 0x81, 0x02, // Input (Data,Var,Abs) 209
140 0x81, 0x03, // Input (Cnst,Var,Abs) 215
143 0x55, 0x0e, // Unit Exponent (-2) 221
149 0x81, 0x42, // Input (Data,Var,Abs,Null) 235
153 0x81, 0x42, // Input (Data,Var,Abs,Null) 245
159 0x81, 0x02, // Input (Data,Var,Abs) 258
168 0x81, 0x02, // Input (Data,Var,Abs) 278
173 0x81, 0x02, // Input (Data,Var,Abs) 288
176 0x81, 0x03, // Input (Cnst,Var,Abs) 294
182 0xb1, 0x02, // Feature (Data,Var,Abs) 306
190 0xb1, 0x02, // Feature (Data,Var,Abs) 325
206 0x81, 0x02, // Input (Data,Var,Abs) 354
209 0x81, 0x01, // Input (Cnst,Arr,Abs) 360
213 0x15, 0x81, // Logical Minimum (-127) 368
220 0x81, 0x01, // Input (Cnst,Arr,Abs) 382
233 0x81, 0x22, // Input (Data,Var,Abs,NoPref) 408
245 0x81, 0x00, // Input (Data,Arr,Abs) 435
262 if (hctx->size == FW_240524_RDESC_SIZE) { in SEC()
276 * the tablet always sends an out-of-proximity event.
278 * - if there was none but the invert bit was toggled: this is the
280 * - if there was this out-of-proximity event, we are entering
281 * eraser mode, and we will until the next out-of-proximity.
294 /* stylus is out of range */ in SEC()
302 * out of range event in SEC()
332 ctx->retval = !((ctx->rdesc_size == PRE_240524_RDESC_SIZE) || in probe()
333 (ctx->rdesc_size == FW_240524_RDESC_SIZE)); in probe()
334 if (ctx->retval) in probe()
335 ctx->retval = -EINVAL; in probe()
338 if (ctx->rdesc[17] != 0x43) /* Secondary Tip Switch */ in probe()
339 ctx->retval = -EINVAL; in probe()
341 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe()
344 return ctx->retval = -EINVAL; in probe()
348 const char *name = hctx->hid->name; in probe()
351 if (!__builtin_memcmp(name, TEST_PREFIX, sizeof(TEST_PREFIX) - 1)) in probe()
352 name += sizeof(TEST_PREFIX) - 1; in probe()
355 ctx->retval = -EINVAL; in probe()