Lines Matching +full:offset +full:- +full:y

1 // SPDX-License-Identifier: GPL-2.0-only
20 * - when used on some Wacom devices (see the list of attached PIDs), this pen
22 * - to solve that, given that we know that the next event will be the same as
30 * <Tip switch 0> <X 0> <Y 0> <Pressure 0 > <Tooltype 0x0804>
31 * <Tip switch 1> <X 1> <Y 1> <Pressure 100 > <Tooltype 0x0804>
32 * <Tip switch 1> <X 2> <Y 2> <Pressure 100 > <Tooltype 0x0804>
33 * <Tip switch 1> <X 3> <Y 3> <Pressure 200 > <Tooltype 0x0804>
34 * <Tip switch 1> <X 4> <Y 4> <Pressure 200 > <Tooltype 0x0804>
35 * <Tip switch 0> <X 5> <Y 5> <Pressure 0 > <Tooltype 0x0804>
38 * <Tip switch 0> <X 0> <Y 0> <Pressure 0 > <Tooltype 0x0804>
39 * <Tip switch 1> <X 1> <Y 1> <Pressure * 50*> <Tooltype 0x0804>
40 * <Tip switch 1> <X 2> <Y 2> <Pressure 100 > <Tooltype 0x0804>
41 * <Tip switch 1> <X 3> <Y 3> <Pressure *150*> <Tooltype 0x0804>
42 * <Tip switch 1> <X 4> <Y 4> <Pressure 200 > <Tooltype 0x0804>
43 * <Tip switch 0> <X 5> <Y 5> <Pressure 0 > <Tooltype 0x0804>
79 /* HID-BPF reports a 64 bytes chunk anyway, so this ensures
94 static inline __u16 *get_u16(__u8 *data, unsigned int offset) in get_u16() argument
96 return (__u16 *)get_bits(data, offset); in get_u16()
99 static inline __u8 *get_u8(__u8 *data, unsigned int offset) in get_u8() argument
101 return (__u8 *)get_bits(data, offset); in get_u8()
107 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, PEN_REPORT_LEN /* size */); in SEC()
116 params.offsets.pressure >= PEN_REPORT_LEN - 1 || in SEC()
117 params.offsets.tool_type >= PEN_REPORT_LEN - 1) in SEC()
154 hid_ctx = hid_bpf_allocate_context(ctx->hid); in probe()
156 ctx->retval = -ENODEV; in probe()
157 return -1; /* EPERM check */ in probe()
159 pid = hid_ctx->hid->product; in probe()
161 ctx->retval = -EINVAL; in probe()
167 if (device->pid == pid && device->rdesc_len == ctx->rdesc_size) { in probe()
169 ctx->retval = 0; in probe()