Home
last modified time | relevance | path

Searched refs:hid_id (Results 1 – 8 of 8) sorted by relevance

/linux-6.3-rc2/samples/hid/
A Dhid_surface_dial.c89 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 Dhid_mouse.c83 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 Dhid_bpf_helpers.h12 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 Dhid_bpf_helpers.h12 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 Dhid_bpf.h85 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 Dhid_bpf_dispatch.c257 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 Dhid_bpf.c444 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 Dhid-bpf.rst299 ``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