Lines Matching +full:a +full:- +full:facing
1 /* SPDX-License-Identifier: GPL-2.0+ */
14 * The following is the user facing HID BPF API.
21 * struct hid_bpf_ctx - User accessible data for all HID programs
24 * a call to hid_bpf_get_data() in order to get a pointer to that field.
36 * Programs can also change this value by returning a positive number in the
38 * To discard the event, return a negative error code.
44 * ``hid`` and ``allocated_size`` are read-only, ``size`` and ``retval`` are read-write.
60 #define HID_BPF_FLAG_MASK (((HID_BPF_FLAG_MAX - 1) << 1) - 1)
84 * struct hid_bpf_ops - A BPF struct_ops of callbacks allowing to attach HID-BPF
85 * programs to a HID device
109 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
111 * Return: %0 on success and keep processing; a positive
112 * value to change the incoming size buffer; a negative
126 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
128 * Return: %0 on success and keep processing; a positive
129 * value to change the incoming size buffer; a negative
135 * @hid_hw_request: called whenever a hid_hw_raw_request() call is emitted
140 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
149 * ``source``: a u64 referring to a uniq but identifiable source. If %0, the
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
155 * returned with the number of bytes returned in the incoming buffer; a
163 * @hid_hw_output_report: called whenever a hid_hw_output_report() call is emitted
168 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx
170 * ``source``: a u64 referring to a uniq but identifiable source. If %0, the
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
176 * returned with the number of bytes written to the device; a negative error
188 u8 *device_data; /* allocated when a bpf program of type
198 struct srcu_struct srcu; /* protects prog_list read-only access */