Searched refs:hid_ctx (Results 1 – 2 of 2) 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/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 */);
|