Lines Matching full:hid

3  * ISHTP client driver for HID (ISH)
9 #include <linux/hid.h>
12 #include "ishtp-hid.h"
43 dev_err(cl_data_to_dev(client_data), "[hid-ish]: BAD packet %02X\n" in report_bad_packet()
81 struct hid_device *hid = NULL; in process_recv() local
90 "[hid-ish]: error, received %u which is less than data header %u\n", in process_recv()
134 "Mem alloc failed for hid device info\n"); in process_recv()
142 "[hid-ish]: [ENUM_DEVICES]: content size %zu is bigger than payload_len %zu\n", in process_recv()
226 hid = client_data->hid_sensor_hubs[i]; in process_recv()
227 if (!hid) in process_recv()
230 hid_data = hid->driver_data; in process_recv()
242 (hid, report_type, in process_recv()
247 ishtp_hid_wakeup(hid); in process_recv()
361 * @hid: hid device instance for this request
366 * This is called from hid core .request() callback. This function doesn't wait
369 void hid_ishtp_set_feature(struct hid_device *hid, char *buf, unsigned int len, in hid_ishtp_set_feature() argument
372 struct ishtp_hid_data *hid_data = hid->driver_data; in hid_ishtp_set_feature()
378 hid_ishtp_trace(client_data, "%s hid %p\n", __func__, hid); in hid_ishtp_set_feature()
382 hid_ishtp_trace(client_data, "%s hid %p link not ready\n", in hid_ishtp_set_feature()
383 __func__, hid); in hid_ishtp_set_feature()
390 if (hid == client_data->hid_sensor_hubs[i]) { in hid_ishtp_set_feature()
402 hid_ishtp_trace(client_data, "%s hid %p send failed\n", in hid_ishtp_set_feature()
403 __func__, hid); in hid_ishtp_set_feature()
408 * @hid: hid device instance for this request
412 * This is called from hid core .request() callback. This function will send
415 void hid_ishtp_get_report(struct hid_device *hid, int report_id, in hid_ishtp_get_report() argument
418 struct ishtp_hid_data *hid_data = hid->driver_data; in hid_ishtp_get_report()
424 hid_ishtp_trace(client_data, "%s hid %p\n", __func__, hid); in hid_ishtp_get_report()
427 hid_ishtp_trace(client_data, "%s hid %p link not ready\n", in hid_ishtp_get_report()
428 __func__, hid); in hid_ishtp_get_report()
435 if (hid == client_data->hid_sensor_hubs[i]) { in hid_ishtp_get_report()
449 hid_ishtp_trace(client_data, "%s hid %p send failed\n", in hid_ishtp_get_report()
450 __func__, hid); in hid_ishtp_get_report()
484 * ishtp_enum_enum_devices() - Enumerate hid devices
487 * Helper function to send request to firmware to enumerate HID devices
521 "[hid-ish]: timed out waiting for enum_devices\n"); in ishtp_enum_enum_devices()
526 "[hid-ish]: failed to allocate HID dev structures\n"); in ishtp_enum_enum_devices()
532 "[hid-ish]: enum_devices_done OK, num_hid_devices=%d\n", in ishtp_enum_enum_devices()
539 * ishtp_get_hid_descriptor() - Get hid descriptor
543 * Helper function to send request to firmware get HID descriptor of a device
553 /* Get HID descriptor */ in ishtp_get_hid_descriptor()
569 "[hid-ish]: timed out for hid_descr_done\n"); in ishtp_get_hid_descriptor()
575 "[hid-ish]: allocation HID desc fail\n"); in ishtp_get_hid_descriptor()
588 * Helper function to send request to firmware get HID report descriptor of
616 "[hid-ish]: timed out for report descr\n"); in ishtp_get_report_descriptor()
621 "[hid-ish]: failed to alloc report descr\n"); in ishtp_get_report_descriptor()
635 * - Send request to enumerate the hid clients
636 * Get the HID descriptor for each enumearated device
638 * Register each device wik hid core by calling ishtp_hid_probe
712 "[hid-ish]: HID probe for #%u failed: %d\n", in hid_ishtp_cl_init()
717 } /* for() on all hid devices */ in hid_ishtp_cl_init()
737 * Unlink and free hid client
950 .name = "ish-hid",
977 MODULE_DESCRIPTION("ISH ISHTP HID client driver");