Home
last modified time | relevance | path

Searched refs:hid_id (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/samples/hid/
H 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...]
H 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()
H 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;
/kernel/linux/linux-6.6/tools/testing/selftests/hid/progs/
H 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;
/kernel/linux/linux-6.6/include/linux/
H 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);
/kernel/linux/linux-6.6/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c280 * @hid_id: the system unique identifier of the HID device
290 hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, __u32 flags) in hid_bpf_attach_prog() argument
303 dev = bus_find_device(hid_bpf_ops->bus_type, NULL, &hid_id, device_match_id); in hid_bpf_attach_prog()
337 * @hid_id: the system unique identifier of the HID device
342 hid_bpf_allocate_context(unsigned int hid_id) in hid_bpf_allocate_context() argument
351 dev = bus_find_device(hid_bpf_ops->bus_type, NULL, &hid_id, device_match_id); in hid_bpf_allocate_context()
/kernel/linux/linux-6.6/tools/testing/selftests/hid/
H 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()

Completed in 6 milliseconds