Home
last modified time | relevance | path

Searched refs:hid_ctx (Results 1 – 6 of 6) 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, 0 /* offset */, 4 /* size */); in BPF_PROG()
[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 DHuion__Kamvas16Gen3.bpf.c555 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 DHuion__Kamvas13Gen3.bpf.c1240 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 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 */);