Home
last modified time | relevance | path

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

/linux/samples/hid/
H 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()
H 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()
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;
/linux/drivers/hid/bpf/
H 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()
H A Dhid_bpf_dispatch.h14 struct hid_device *hid_get_device(unsigned int hid_id);
H 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()
308 hid_bpf_allocate_context(unsigned int hid_id) in hid_bpf_allocate_context() argument
313 hdev = hid_get_device(hid_id); in hid_bpf_allocate_context()
/linux/tools/testing/selftests/hid/
H A Dhid_common.h25 int hid_id; /* HID device id in the system */ member
462 hid->hid_id = get_hid_id(hid); in setup_uhid()
463 ASSERT_GT(hid->hid_id, 0) in setup_uhid()
464 TH_LOG("Could not locate uhid device id: %d", hid->hid_id); in setup_uhid()
H A Dhid_bpf.c109 *ops_hid_id = self->hid.hid_id; in load_programs()
392 args.hid = self->hid.hid_id; in TEST_F()
438 args.hid = self->hid.hid_id; in TEST_F()
486 args.hid = self->hid.hid_id; in TEST_F()
/linux/tools/testing/selftests/hid/progs/
H A Dhid_bpf_helpers.h77 int hid_id; member
98 extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __weak __ksym;
H A Dhid.c35 .hid_id = 2,
59 .hid_id = 2,
/linux/Documentation/hid/
H 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/
H A Dhid_bpf.h96 int hid_id; member
/linux/drivers/hid/
H A Dhid-corsair-void.c638 const struct hid_device_id *hid_id) in corsair_void_probe() argument
657 drvdata->is_wired = hid_id->driver_data == CORSAIR_VOID_WIRED; in corsair_void_probe()
/linux/drivers/hid/bpf/progs/
H 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/
H A Dbase_device.py169 return self._uhid_devices[self.uhid.hid_id]