Searched refs:hid_id (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/samples/hid/ |
A D | hid_surface_dial.c | 89 static int attach_prog(struct hid_surface_dial *skel, struct bpf_program *prog, int hid_id) in attach_prog() argument 92 .hid = hid_id, in attach_prog() 111 hid_id, err); in attach_prog() 117 static int set_haptic(struct hid_surface_dial *skel, int hid_id) in set_haptic() argument 120 .hid = hid_id, in set_haptic() 138 hid_id, err); in set_haptic() 150 int opt, hid_id, resolution = 72; in main() local 198 hid_id = get_hid_id(sysfs_path); in main() 199 if (hid_id < 0) { in main() 212 attach_prog(skel, prog, hid_id); in main() [all …]
|
A D | hid_mouse.c | 83 int opt, hid_id, attach_fd; in main() local 117 hid_id = get_hid_id(sysfs_path); in main() 119 if (hid_id < 0) { in main() 123 args.hid = hid_id; in main() 141 hid_id, err); in main()
|
A D | hid_bpf_helpers.h | 12 extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym; 13 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
|
/linux-6.3-rc2/tools/testing/selftests/hid/progs/ |
A D | hid_bpf_helpers.h | 12 extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym; 13 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
|
/linux-6.3-rc2/include/linux/ |
A D | hid_bpf.h | 85 int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, __u32 flags); 88 struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id);
|
/linux-6.3-rc2/drivers/hid/bpf/ |
A D | hid_bpf_dispatch.c | 257 hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, __u32 flags) in hid_bpf_attach_prog() argument 275 dev = bus_find_device(hid_bpf_ops->bus_type, NULL, &hid_id, device_match_id); in hid_bpf_attach_prog() 310 hid_bpf_allocate_context(unsigned int hid_id) in hid_bpf_allocate_context() argument 319 dev = bus_find_device(hid_bpf_ops->bus_type, NULL, &hid_id, device_match_id); in hid_bpf_allocate_context()
|
/linux-6.3-rc2/tools/testing/selftests/hid/ |
A D | hid_bpf.c | 444 int hid_id; in FIXTURE() local 492 self->hid_id = get_hid_id(self->dev_id); in FIXTURE_SETUP() 493 ASSERT_GT(self->hid_id, 0) in FIXTURE_SETUP() 494 TEARDOWN_LOG("Could not locate uhid device id: %d", self->hid_id); in FIXTURE_SETUP() 554 args.hid = self->hid_id; in load_programs() 757 args.hid = self->hid_id; in TEST_F()
|
/linux-6.3-rc2/Documentation/hid/ |
A D | hid-bpf.rst | 299 ``hid_bpf_attach_prog(hid_id, program_fd, flags)``. 301 ``hid_id`` is the unique system ID of the HID device (the last 4 numbers in the 313 On the other hand, the ``hid_id`` is stable for the entire life of the HID device, 361 extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym; 413 static int attach_filter(struct hid *hid_skel, int hid_id) 418 .hid = hid_id, 456 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym; 494 static int set_haptic(struct hid *hid_skel, int hid_id, __u8 haptic_value) 499 .hid = hid_id,
|
Completed in 11 milliseconds