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
211 * the tablet always sends an out-of-proximity event.
213 * - if there was none but the invert bit was toggled: this is the
215 * - if there was this out-of-proximity event, we are entering
216 * eraser mode, and we will until the next out-of-proximity.
229 /* stylus is out of range */ in SEC()
237 * out of range event in SEC()
266 ctx->retval = ctx->rdesc_size != 328; in probe()
267 if (ctx->retval) in probe()
268 ctx->retval = -EINVAL; in probe()
271 if (ctx->rdesc[17] != 0x43) /* Secondary Tip Switch */ in probe()
272 ctx->retval = -EINVAL; in probe()
274 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe()
277 return ctx->retval = -EINVAL; in probe()
281 const char *name = hctx->hid->name; in probe()
284 if (!__builtin_memcmp(name, TEST_PREFIX, sizeof(TEST_PREFIX) - 1)) in probe()
285 name += sizeof(TEST_PREFIX) - 1; in probe()
288 ctx->retval = -EINVAL; in probe()