Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/hid/progs/
H A Dhid_bpf_helpers.h10 #define hid_bpf_ctx hid_bpf_ctx___not_used macro
33 #undef hid_bpf_ctx
70 struct hid_bpf_ctx { struct
92 int (*hid_device_event)(struct hid_bpf_ctx *ctx, enum hid_report_type report_type, argument
94 int (*hid_rdesc_fixup)(struct hid_bpf_ctx *ctx);
95 int (*hid_hw_request)(struct hid_bpf_ctx *ctx, unsigned char reportnum,
98 int (*hid_hw_output_report)(struct hid_bpf_ctx *ctx, u64 source);
107 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
110 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __weak __ksym;
111 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __weak __ksym;
[all …]
H A Dhid.c18 int BPF_PROG(hid_first_event, struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) 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()
51 int BPF_PROG(hid_subprog_first_event, struct hid_bpf_ctx *hid_ctx, enum hid_report_type 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()
81 int BPF_PROG(hid_change_report_id, struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) in BPF_PROG()
111 struct hid_bpf_ctx *ctx; in hid_user_raw_request()
137 struct hid_bpf_ctx *ctx; in hid_user_output_report()
161 struct hid_bpf_ctx *ctx; in hid_user_input_report()
220 int BPF_PROG(hid_rdesc_fixup, struct hid_bpf_ctx *hid_ctx) in BPF_PROG()
244 int BPF_PROG(hid_test_insert1, struct hid_bpf_ctx *hid_ctx, enum hid_report_type type) in BPF_PROG()
[all …]
/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.c8 static int hid_y_event(struct hid_bpf_ctx *hctx) in hid_y_event()
53 static int hid_x_event(struct hid_bpf_ctx *hctx) in hid_x_event()
71 int BPF_PROG(hid_event, struct hid_bpf_ctx *hctx, enum hid_report_type type) in BPF_PROG()
83 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()
/linux/drivers/hid/bpf/progs/
H A Dhid_bpf_async.h48 ____##cb(struct hid_bpf_ctx *ctx); \
52 struct hid_bpf_ctx *ctx; \
76 fun(struct hid_bpf_ctx *ctx); \
85 static int HID_BPF_ASYNC_CB(____##fun##_cb)(struct hid_bpf_ctx *hctx) \
168 static int hid_bpf_async_delayed_call(struct hid_bpf_ctx *hctx, u64 milliseconds, int key, in hid_bpf_async_delayed_call()
213 static inline int hid_bpf_async_call(struct hid_bpf_ctx *ctx, int key, in hid_bpf_async_call()
H A DXPPen__ArtistPro16Gen2.bpf.c88 int BPF_PROG(hid_fix_rdesc_xppen_artistpro16gen2, struct hid_bpf_ctx *hctx) in SEC()
116 static int xppen_16_fix_eraser(struct hid_bpf_ctx *hctx) in xppen_16_fix_eraser()
238 static int xppen_16_fix_angle_offset(struct hid_bpf_ctx *hctx) in xppen_16_fix_angle_offset()
292 int BPF_PROG(xppen_artist_pro_16_device_event, struct hid_bpf_ctx *hctx) in SEC()
H A DXPPen__ACK05.bpf.c218 int BPF_PROG(ack05_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
241 static int HID_BPF_ASYNC_FUN(switch_to_raw_mode)(struct hid_bpf_ctx *hid) in switch_to_raw_mode()
265 int BPF_PROG(ack05_fix_events, struct hid_bpf_ctx *hctx) in SEC()
315 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe()
H A DHuion__Kamvas-Pro-19.bpf.c258 int BPF_PROG(hid_fix_rdesc_huion_kamvas_pro_19, struct hid_bpf_ctx *hctx) in SEC()
287 int BPF_PROG(kamvas_pro_19_fix_3rd_button, struct hid_bpf_ctx *hctx) in SEC()
344 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe()
H A DFR-TEC__Raptor-Mach-2.bpf.c137 int BPF_PROG(hid_fix_rdesc_raptor_mach_2, struct hid_bpf_ctx *hctx) in SEC()
156 int BPF_PROG(raptor_mach_2_fix_hat_switch, struct hid_bpf_ctx *hctx) in SEC()
H A DXPPen__Artist24.bpf.c93 int BPF_PROG(hid_fix_rdesc_xppen_artist24, struct hid_bpf_ctx *hctx) in SEC()
154 int BPF_PROG(xppen_24_fix_eraser, struct hid_bpf_ctx *hctx) in SEC()
H A DXPPen__DecoMini4.bpf.c153 int BPF_PROG(hid_rdesc_fixup_xppen_deco_mini_4, struct hid_bpf_ctx *hctx) in SEC()
172 int BPF_PROG(hid_device_event_xppen_deco_mini_4, struct hid_bpf_ctx *hctx) in SEC()
H A DWALTOP__Batteryless-Tablet.bpf.c231 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
244 int BPF_PROG(waltop_fix_events, struct hid_bpf_ctx *hctx) in SEC()
H A DWacom__ArtPen.bpf.c105 int BPF_PROG(artpen_pressure_interpolate, struct hid_bpf_ctx *hctx) in SEC()
149 struct hid_bpf_ctx *hid_ctx; in probe()
H A DXPPen__Deco01V3.bpf.c224 int BPF_PROG(xppen_deco01v3_rdesc_fixup, struct hid_bpf_ctx *hctx) in SEC()
254 int BPF_PROG(xppen_deco01v3_device_event, struct hid_bpf_ctx *hctx) in SEC()
H A DXPPen__Deco02.bpf.c281 int BPF_PROG(xppen_deco02_rdesc_fixup, struct hid_bpf_ctx *hctx) in SEC()
297 int BPF_PROG(xppen_deco02_device_event, struct hid_bpf_ctx *hctx) in SEC()
H A DHuion__Kamvas16Gen3.bpf.c555 int BPF_PROG(hid_fix_rdesc_huion_kamvas16_gen3, struct hid_bpf_ctx *hid_ctx) in SEC()
599 int BPF_PROG(hid_fix_event_huion_kamvas16_gen3, struct hid_bpf_ctx *hid_ctx) 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()
1284 int BPF_PROG(hid_fix_event_huion_kamvas13_gen3, struct hid_bpf_ctx *hid_ctx) in SEC()
H A DHuion__KeydialK20.bpf.c345 int BPF_PROG(k20_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
389 int BPF_PROG(k20_fix_events, struct hid_bpf_ctx *hctx) 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()
H A DHP__Elite-Presenter.bpf.c34 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
/linux/include/linux/
H A Dhid_bpf.h46 struct hid_bpf_ctx { struct
117 int (*hid_device_event)(struct hid_bpf_ctx *ctx, enum hid_report_type report_type,
132 int (*hid_rdesc_fixup)(struct hid_bpf_ctx *ctx);
158 int (*hid_hw_request)(struct hid_bpf_ctx *ctx, unsigned char reportnum,
179 int (*hid_hw_output_report)(struct hid_bpf_ctx *ctx, u64 source);
/linux/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c294 hid_bpf_get_data(struct hid_bpf_ctx *ctx, unsigned int offset, const size_t rdwr_buf_size) in hid_bpf_get_data()
313 __bpf_kfunc struct hid_bpf_ctx *
341 hid_bpf_release_context(struct hid_bpf_ctx *ctx) in hid_bpf_release_context()
356 __hid_bpf_hw_check_params(struct hid_bpf_ctx *ctx, __u8 *buf, size_t *buf__sz, in __hid_bpf_hw_check_params()
404 hid_bpf_hw_request(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz, in hid_bpf_hw_request()
466 hid_bpf_hw_output_report(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz) in hid_bpf_hw_output_report()
493 __hid_bpf_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf, in __hid_bpf_input_report()
524 hid_bpf_try_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf, in hid_bpf_try_input_report()
549 hid_bpf_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf, in hid_bpf_input_report()
H A Dhid_bpf_struct_ops.c78 WRITE_RANGE(hid_bpf_ctx, retval, false), in hid_bpf_ops_btf_struct_access()
269 static int __hid_bpf_device_event(struct hid_bpf_ctx *ctx, enum hid_report_type type, u64 source) in __hid_bpf_device_event()
274 static int __hid_bpf_rdesc_fixup(struct hid_bpf_ctx *ctx) in __hid_bpf_rdesc_fixup()
279 static int __hid_bpf_hw_request(struct hid_bpf_ctx *ctx, unsigned char reportnum, in __hid_bpf_hw_request()
286 static int __hid_bpf_hw_output_report(struct hid_bpf_ctx *ctx, u64 source) in __hid_bpf_hw_output_report()
H A Dhid_bpf_dispatch.h9 struct hid_bpf_ctx ctx;

12