Home
last modified time | relevance | path

Searched refs:hid_ctx (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/tools/testing/selftests/hid/progs/
Dhid.c18 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-6.12.1/drivers/hid/bpf/progs/
DWacom__ArtPen.bpf.c149 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()
/linux-6.12.1/Documentation/hid/
Dhid-bpf.rst392 int BPF_PROG(filter_switch, struct hid_bpf_ctx *hid_ctx)
394 __u8 *data = hid_bpf_get_data(hid_ctx, 0 /* offset */, 192 /* size */);