/linux-6.12.1/tools/testing/selftests/hid/progs/ |
D | hid_bpf_helpers.h | 9 #define hid_bpf_ctx hid_bpf_ctx___not_used macro 27 #undef hid_bpf_ctx 55 struct hid_bpf_ctx { struct 77 int (*hid_device_event)(struct hid_bpf_ctx *ctx, enum hid_report_type report_type, argument 79 int (*hid_rdesc_fixup)(struct hid_bpf_ctx *ctx); 80 int (*hid_hw_request)(struct hid_bpf_ctx *ctx, unsigned char reportnum, 83 int (*hid_hw_output_report)(struct hid_bpf_ctx *ctx, u64 source); 92 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, 95 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 96 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym; [all …]
|
D | hid.c | 18 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-6.12.1/samples/hid/ |
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,
|
D | hid_mouse.bpf.c | 8 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()
|
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.12.1/include/linux/ |
D | hid_bpf.h | 46 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-6.12.1/drivers/hid/bpf/progs/ |
D | XPPen__ArtistPro16Gen2.bpf.c | 86 int BPF_PROG(hid_fix_rdesc_xppen_artistpro16gen2, struct hid_bpf_ctx *hctx) in SEC() 108 static int xppen_16_fix_eraser(struct hid_bpf_ctx *hctx) in xppen_16_fix_eraser() 209 static int xppen_16_fix_angle_offset(struct hid_bpf_ctx *hctx) in xppen_16_fix_angle_offset() 256 int BPF_PROG(xppen_artist_pro_16_device_event, struct hid_bpf_ctx *hctx) in SEC()
|
D | Huion__Kamvas-Pro-19.bpf.c | 195 int BPF_PROG(hid_fix_rdesc_huion_kamvas_pro_19, struct hid_bpf_ctx *hctx) in SEC() 219 int BPF_PROG(kamvas_pro_19_fix_3rd_button, struct hid_bpf_ctx *hctx) in SEC() 274 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe()
|
D | FR-TEC__Raptor-Mach-2.bpf.c | 137 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()
|
D | hid_bpf_helpers.h | 12 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, 15 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 16 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym; 17 extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
|
D | XPPen__Artist24.bpf.c | 93 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()
|
D | XPPen__DecoMini4.bpf.c | 153 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()
|
D | Wacom__ArtPen.bpf.c | 105 int BPF_PROG(artpen_pressure_interpolate, struct hid_bpf_ctx *hctx) in SEC() 149 struct hid_bpf_ctx *hid_ctx; in probe()
|
D | HP__Elite-Presenter.bpf.c | 34 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
|
D | Thrustmaster__TCA-Yoke-Boeing.bpf.c | 100 int BPF_PROG(hid_fix_rdesc_tca_yoke, struct hid_bpf_ctx *hctx) in SEC()
|
D | IOGEAR__Kaliber-MMOmentum.bpf.c | 25 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
|
D | Microsoft__Xbox-Elite-2.bpf.c | 96 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
|
D | Huion__Inspiroy-2-S.bpf.c | 359 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC() 405 int BPF_PROG(inspiroy_2_fix_events, struct hid_bpf_ctx *hctx) in SEC()
|
D | Huion__Dial-2.bpf.c | 420 int BPF_PROG(dial_2_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC() 466 int BPF_PROG(dial_2_fix_events, struct hid_bpf_ctx *hctx) in SEC()
|
/linux-6.12.1/drivers/hid/bpf/ |
D | hid_bpf_dispatch.c | 282 hid_bpf_get_data(struct hid_bpf_ctx *ctx, unsigned int offset, const size_t rdwr_buf_size) in hid_bpf_get_data() 304 __bpf_kfunc struct hid_bpf_ctx * 332 hid_bpf_release_context(struct hid_bpf_ctx *ctx) in hid_bpf_release_context() 347 __hid_bpf_hw_check_params(struct hid_bpf_ctx *ctx, __u8 *buf, size_t *buf__sz, in __hid_bpf_hw_check_params() 398 hid_bpf_hw_request(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz, in hid_bpf_hw_request() 461 hid_bpf_hw_output_report(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz) in hid_bpf_hw_output_report() 491 __hid_bpf_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf, in __hid_bpf_input_report() 522 hid_bpf_try_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf, in hid_bpf_try_input_report() 547 hid_bpf_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf, in hid_bpf_input_report()
|
D | hid_bpf_struct_ops.c | 78 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()
|
D | hid_bpf_dispatch.h | 9 struct hid_bpf_ctx ctx;
|
/linux-6.12.1/Documentation/hid/ |
D | hid-bpf.rst | 193 :identifiers: hid_bpf_ctx 213 The ``struct hid_bpf_ctx`` doesn't export the ``data`` fields directly and to access 271 HID stack will work on the modified data, with the ``size`` field of the last hid_bpf_ctx 380 extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx, 392 int BPF_PROG(filter_switch, struct hid_bpf_ctx *hid_ctx) 461 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 462 extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym; 463 extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx, 479 struct hid_bpf_ctx *ctx;
|
D | hidintro.rst | 469 int BPF_PROG(hid_rdesc_fixup, struct hid_bpf_ctx *hctx)
|