Home
last modified time | relevance | path

Searched refs:hid_bpf_ctx (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/include/linux/
H A Dhid_bpf.h49 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);
/openbmc/linux/tools/testing/selftests/hid/progs/
H A Dhid.c21 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()
H A Dhid_bpf_helpers.h9 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,
/openbmc/linux/samples/hid/
H A Dhid_bpf_helpers.h9 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,
H A Dhid_mouse.bpf.c9 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()
H A Dhid_surface_dial.bpf.c14 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()
/openbmc/linux/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c43 __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()
341 noinline struct hid_bpf_ctx *
375 hid_bpf_release_context(struct hid_bpf_ctx *ctx) in hid_bpf_release_context()
401 hid_bpf_hw_request(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz, in hid_bpf_hw_request()
H A Dhid_bpf_dispatch.h9 struct hid_bpf_ctx ctx;
H A Dhid_bpf_jmp_table.c102 __weak noinline int __hid_bpf_tail_call(struct hid_bpf_ctx *ctx) in __hid_bpf_tail_call()
/openbmc/linux/drivers/hid/bpf/entrypoints/
H A Dentrypoints.bpf.c18 int BPF_PROG(hid_tail_call, struct hid_bpf_ctx *hctx) in BPF_PROG()
/openbmc/linux/Documentation/hid/
H A Dhid-bpf.rst190 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;
H A Dhidintro.rst469 int BPF_PROG(hid_rdesc_fixup, struct hid_bpf_ctx *hctx)