Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/hid/progs/
H A 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, in BPF_PROG()
81 BPF_PROG(hid_change_report_id,struct hid_bpf_ctx * hid_ctx,enum hid_report_type type) BPF_PROG() argument
220 BPF_PROG(hid_rdesc_fixup,struct hid_bpf_ctx * hid_ctx) BPF_PROG() argument
244 BPF_PROG(hid_test_insert1,struct hid_bpf_ctx * hid_ctx,enum hid_report_type type) BPF_PROG() argument
267 BPF_PROG(hid_test_insert2,struct hid_bpf_ctx * hid_ctx,enum hid_report_type type) BPF_PROG() argument
289 BPF_PROG(hid_test_insert3,struct hid_bpf_ctx * hid_ctx,enum hid_report_type type) BPF_PROG() argument
461 struct hid_bpf_ctx *hid_ctx; wq_cb_sleepable() local
500 BPF_PROG(hid_test_multiply_events_wq,struct hid_bpf_ctx * hid_ctx,enum hid_report_type type) BPF_PROG() argument
527 BPF_PROG(hid_test_multiply_events,struct hid_bpf_ctx * hid_ctx,enum hid_report_type type) BPF_PROG() argument
[all...]
/linux/drivers/hid/bpf/progs/
H A 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()
H A DTUXEDO__Sirius-16-Gen1-and-Gen2.bpf.c15 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 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 */);