Searched refs:hid_bpf_ctx (Results 1 – 11 of 11) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/hid/progs/ |
A D | hid.c | 21 int BPF_PROG(hid_first_event, struct hid_bpf_ctx *hid_ctx) in BPF_PROG() 36 int BPF_PROG(hid_second_event, struct hid_bpf_ctx *hid_ctx) in BPF_PROG() 49 int BPF_PROG(hid_change_report_id, struct hid_bpf_ctx *hid_ctx) in BPF_PROG() 84 struct hid_bpf_ctx *ctx; in hid_user_raw_request() 142 int BPF_PROG(hid_rdesc_fixup, struct hid_bpf_ctx *hid_ctx) in BPF_PROG() 161 int BPF_PROG(hid_test_insert1, struct hid_bpf_ctx *hid_ctx) in BPF_PROG() 178 int BPF_PROG(hid_test_insert2, struct hid_bpf_ctx *hid_ctx) in BPF_PROG() 195 int BPF_PROG(hid_test_insert3, struct hid_bpf_ctx *hid_ctx) in BPF_PROG()
|
A D | hid_bpf_helpers.h | 9 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, 13 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 14 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym; 15 extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
|
/linux-6.3-rc2/include/linux/ |
A D | hid_bpf.h | 49 struct hid_bpf_ctx { struct 77 int hid_bpf_device_event(struct hid_bpf_ctx *ctx); argument 78 int hid_bpf_rdesc_fixup(struct hid_bpf_ctx *ctx); 82 __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, unsigned int offset, const size_t __sz); 86 int hid_bpf_hw_request(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz, 88 struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id); 89 void hid_bpf_release_context(struct hid_bpf_ctx *ctx); 96 int __hid_bpf_tail_call(struct hid_bpf_ctx *ctx);
|
/linux-6.3-rc2/samples/hid/ |
A D | hid_bpf_helpers.h | 9 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, 13 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 14 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym; 15 extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
|
A D | hid_mouse.bpf.c | 9 int BPF_PROG(hid_y_event, struct hid_bpf_ctx *hctx) in BPF_PROG() 55 int BPF_PROG(hid_x_event, struct hid_bpf_ctx *hctx) in BPF_PROG() 73 int BPF_PROG(hid_rdesc_fixup, struct hid_bpf_ctx *hctx) in BPF_PROG()
|
A D | hid_surface_dial.bpf.c | 14 int BPF_PROG(hid_event, struct hid_bpf_ctx *hctx) in BPF_PROG() 49 struct hid_bpf_ctx *ctx; in set_haptic() 105 int BPF_PROG(hid_rdesc_fixup, struct hid_bpf_ctx *hctx) in BPF_PROG()
|
/linux-6.3-rc2/drivers/hid/bpf/ |
A D | hid_bpf_dispatch.c | 43 __weak noinline int hid_bpf_device_event(struct hid_bpf_ctx *ctx) in hid_bpf_device_event() 103 __weak noinline int hid_bpf_rdesc_fixup(struct hid_bpf_ctx *ctx) in hid_bpf_rdesc_fixup() 156 hid_bpf_get_data(struct hid_bpf_ctx *ctx, unsigned int offset, const size_t rdwr_buf_size) in hid_bpf_get_data() 309 noinline struct hid_bpf_ctx * 341 hid_bpf_release_context(struct hid_bpf_ctx *ctx) in hid_bpf_release_context() 365 hid_bpf_hw_request(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz, in hid_bpf_hw_request()
|
A D | hid_bpf_dispatch.h | 9 struct hid_bpf_ctx ctx;
|
A D | hid_bpf_jmp_table.c | 102 __weak noinline int __hid_bpf_tail_call(struct hid_bpf_ctx *ctx) in __hid_bpf_tail_call()
|
/linux-6.3-rc2/drivers/hid/bpf/entrypoints/ |
A D | entrypoints.bpf.c | 18 int BPF_PROG(hid_tail_call, struct hid_bpf_ctx *hctx) in BPF_PROG()
|
/linux-6.3-rc2/Documentation/hid/ |
A D | hid-bpf.rst | 190 The ``struct hid_bpf_ctx`` doesn't export the ``data`` fields directly and to access 247 HID stack will work on the modified data, with the ``size`` field of the last hid_bpf_ctx 358 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, 387 int BPF_PROG(filter_switch, struct hid_bpf_ctx *hid_ctx) 456 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 457 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym; 458 extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx, 474 struct hid_bpf_ctx *ctx;
|
Completed in 13 milliseconds