Home
last modified time | relevance | path

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

/linux/samples/hid/
A Dhid_surface_dial.c88 static int set_haptic(struct hid_surface_dial *skel, int hid_id) in set_haptic() argument
91 .hid = hid_id, in set_haptic()
109 hid_id, err); in set_haptic()
121 int err, opt, hid_id, resolution = 72; in main() local
169 hid_id = get_hid_id(sysfs_path); in main()
170 if (hid_id < 0) { in main()
175 skel->struct_ops.surface_dial->hid_id = hid_id; in main()
195 set_haptic(skel, hid_id); in main()
A Dhid_mouse.c82 int opt, hid_id; in main() local
109 hid_id = get_hid_id(sysfs_path); in main()
111 if (hid_id < 0) { in main()
115 skel->struct_ops.mouse_invert->hid_id = hid_id; 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/tools/testing/selftests/hid/
A Dhidraw.c15 int hid_id; in FIXTURE() local
51 self->hid_id = get_hid_id(self->dev_id); in FIXTURE_SETUP()
52 ASSERT_GT(self->hid_id, 0) in FIXTURE_SETUP()
53 TEARDOWN_LOG("Could not locate uhid device id: %d", self->hid_id); in FIXTURE_SETUP()
A Dhid_bpf.c27 int hid_id; in FIXTURE() local
80 self->hid_id = get_hid_id(self->dev_id); in FIXTURE_SETUP()
81 ASSERT_GT(self->hid_id, 0) in FIXTURE_SETUP()
82 TEARDOWN_LOG("Could not locate uhid device id: %d", self->hid_id); in FIXTURE_SETUP()
132 *ops_hid_id = self->hid_id; in load_programs()
415 args.hid = self->hid_id; in TEST_F()
461 args.hid = self->hid_id; in TEST_F()
509 args.hid = self->hid_id; in TEST_F()
/linux/drivers/hid/bpf/
A Dhid_bpf_struct_ops.c163 case offsetof(struct hid_bpf_ops, hid_id): in hid_bpf_ops_init_member()
169 khid_bpf_ops->hid_id = uhid_bpf_ops->hid_id; in hid_bpf_ops_init_member()
190 hdev = hid_get_device(ops->hid_id); in hid_bpf_reg()
A Dhid_bpf_dispatch.h14 struct hid_device *hid_get_device(unsigned int hid_id);
A Dhid_bpf_dispatch.c197 struct hid_device *hid_get_device(unsigned int hid_id) in hid_get_device() argument
204 dev = bus_find_device(hid_ops->bus_type, NULL, &hid_id, device_match_id); in hid_get_device()
305 hid_bpf_allocate_context(unsigned int hid_id) in hid_bpf_allocate_context() argument
310 hdev = hid_get_device(hid_id); in hid_bpf_allocate_context()
/linux/tools/testing/selftests/hid/progs/
A Dhid_bpf_helpers.h74 int hid_id; member
95 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
A Dhid.c35 .hid_id = 2,
59 .hid_id = 2,
/linux/Documentation/hid/
A Dhid-bpf.rst323 must set ``hid_id`` in the struct_ops map before loading the program in the kernel.
325 ``hid_id`` is the unique system ID of the HID device (the last 4 numbers in the
335 On the other hand, the ``hid_id`` is stable for the entire life of the HID device,
421 To attach ``haptic_tablet``, userspace needs to set ``hid_id`` first::
423 static int attach_filter(struct hid *hid_skel, int hid_id)
427 hid_skel->struct_ops.haptic_tablet->hid_id = hid_id;
461 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
499 static int set_haptic(struct hid *hid_skel, int hid_id, __u8 haptic_value)
504 .hid = hid_id,
/linux/include/linux/
A Dhid_bpf.h96 int hid_id; member
/linux/drivers/hid/bpf/progs/
A Dhid_bpf_helpers.h15 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
/linux/tools/testing/selftests/hid/tests/
A Dbase_device.py169 return self._uhid_devices[self.uhid.hid_id]

Completed in 33 milliseconds