Lines Matching full:hid
9 #include <uapi/linux/hid.h>
14 * The following is the user facing HID BPF API.
21 * struct hid_bpf_ctx - User accessible data for all HID programs
26 * @hid: the &struct hid_device representing the device itself
30 * by the HID program.
44 * ``hid`` and ``allocated_size`` are read-only, ``size`` and ``retval`` are read-write.
47 struct hid_device *hid; member
56 * Below is HID internal
74 int (*hid_input_report)(struct hid_device *hid, enum hid_report_type type,
84 * struct hid_bpf_ops - A BPF struct_ops of callbacks allowing to attach HID-BPF
85 * programs to a HID device
86 * @hid_id: the HID uniq ID to attach to. This is writeable before ``load()``, and
109 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
122 * of the HID device
126 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
136 * on the HID device
140 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
153 * Return: %0 to keep processing the request by hid-core; any other value
154 * stops hid-core from processing that event. A positive value should be
164 * on the HID device
168 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
174 * Return: %0 to keep processing the request by hid-core; any other value
175 * stops hid-core from processing that event. A positive value should be
190 * to this HID device
202 u8 *dispatch_hid_bpf_device_event(struct hid_device *hid, enum hid_report_type type, u8 *data,
213 void hid_bpf_destroy_device(struct hid_device *hid);
214 int hid_bpf_device_init(struct hid_device *hid);
217 static inline u8 *dispatch_hid_bpf_device_event(struct hid_device *hid, enum hid_report_type type, in dispatch_hid_bpf_device_event() argument
229 static inline void hid_bpf_destroy_device(struct hid_device *hid) {} in hid_bpf_destroy_device() argument
230 static inline int hid_bpf_device_init(struct hid_device *hid) { return 0; } in hid_bpf_device_init() argument