Searched refs:hid_ctx (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/hid/progs/ |
| H A D | hid.c | 18 int BPF_PROG(hid_first_event, struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) in BPF_PROG() argument 20 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */); in BPF_PROG() 29 return hid_ctx->size; in BPF_PROG() 38 int __hid_subprog_first_event(struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) in __hid_subprog_first_event() argument 40 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 3 /* size */); in __hid_subprog_first_event() 47 return hid_ctx->size; in __hid_subprog_first_event() 51 int BPF_PROG(hid_subprog_first_event, struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) in BPF_PROG() argument 53 return __hid_subprog_first_event(hid_ctx, type); in BPF_PROG() 63 int BPF_PROG(hid_second_event, struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) in BPF_PROG() argument 65 __u8 *rw_data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 4 /* size */); in BPF_PROG() [all …]
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | Wacom__ArtPen.bpf.c | 149 struct hid_bpf_ctx *hid_ctx; in probe() local 154 hid_ctx = hid_bpf_allocate_context(ctx->hid); in probe() 155 if (!hid_ctx) { in probe() 159 pid = hid_ctx->hid->product; in probe() 173 hid_bpf_release_context(hid_ctx); in probe()
|
| H A D | Huion__Kamvas16Gen3.bpf.c | 555 int BPF_PROG(hid_fix_rdesc_huion_kamvas16_gen3, struct hid_bpf_ctx *hid_ctx) in SEC() 557 __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC() 558 __s32 rdesc_size = hid_ctx->size; in SEC() 599 int BPF_PROG(hid_fix_event_huion_kamvas16_gen3, struct hid_bpf_ctx *hid_ctx) in SEC() 601 __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, VENDOR_REPORT_LENGTH /* size */); in SEC() 607 if (hid_ctx->size != VENDOR_REPORT_LENGTH) in SEC()
|
| H A D | Huion__Kamvas13Gen3.bpf.c | 1240 int BPF_PROG(hid_fix_rdesc_huion_kamvas13_gen3, struct hid_bpf_ctx *hid_ctx) in SEC() 1242 __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC() 1243 __s32 rdesc_size = hid_ctx->size; in SEC() 1284 int BPF_PROG(hid_fix_event_huion_kamvas13_gen3, struct hid_bpf_ctx *hid_ctx) in SEC() 1286 __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, VENDOR_REPORT_LENGTH /* size */); in SEC() 1292 if (hid_ctx->size != VENDOR_REPORT_LENGTH) in SEC()
|
| H A D | TUXEDO__Sirius-16-Gen1-and-Gen2.bpf.c | 15 int BPF_PROG(ignore_key_fix_event, struct hid_bpf_ctx *hid_ctx) in SEC() 22 if (hid_ctx->size < expected_length) in SEC() 25 data = hid_bpf_get_data(hid_ctx, 0, expected_length); in SEC()
|
| /linux/Documentation/hid/ |
| H A D | hid-bpf.rst | 392 int BPF_PROG(filter_switch, struct hid_bpf_ctx *hid_ctx) 394 __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 192 /* size */);
|