Lines Matching defs:hdev

54  * @hdev:	The HID device of the tablet interface to retrieve the string
64 static int uclogic_params_get_str_desc(__u8 **pbuf, struct hid_device *hdev,
72 if (hdev == NULL) {
77 udev = hid_to_usb_dev(hdev);
91 hid_dbg(hdev, "string descriptor #%hhu not found\n", idx);
94 hid_err(hdev,
133 * @hdev: The HID device of the tablet interface to initialize and get
141 struct hid_device *hdev)
155 if (pen == NULL || pfound == NULL || hdev == NULL) {
166 rc = uclogic_params_get_str_desc(&buf, hdev, 100, len);
168 hid_dbg(hdev,
172 hid_err(hdev, "failed retrieving pen parameters: %d\n", rc);
175 hid_dbg(hdev,
261 * @hdev: The HID device of the tablet interface to initialize and get
269 struct hid_device *hdev)
283 if (pen == NULL || pfound == NULL || hdev == NULL) {
294 rc = uclogic_params_get_str_desc(&buf, hdev, 200, len);
296 hid_dbg(hdev,
300 hid_err(hdev, "failed retrieving pen parameters: %d\n", rc);
303 hid_dbg(hdev,
319 hid_dbg(hdev,
441 * @hdev: The HID device of the tablet interface to initialize and get
450 struct hid_device *hdev)
459 if (frame == NULL || pfound == NULL || hdev == NULL) {
464 usb_dev = hid_to_usb_dev(hdev);
477 hid_dbg(hdev,
482 hid_dbg(hdev,
486 hid_dbg(hdev, "generic buttons enabled\n");
621 * @hdev: The HID device of the tablet interface create the
634 struct hid_device *hdev,
644 if (params == NULL || hdev == NULL ||
651 if (hdev->dev_rsize == orig_desc_size) {
652 hid_dbg(hdev,
661 hid_dbg(hdev,
663 hdev->dev_rsize, orig_desc_size);
702 * @hdev: The HID device of the tablet interface to initialize and get
709 struct hid_device *hdev)
723 if (params == NULL || hdev == NULL) {
728 udev = hid_to_usb_dev(hdev);
729 iface = to_usb_interface(hdev->dev.parent);
749 hid_err(hdev,
756 hid_dbg(hdev,
760 rc = uclogic_params_pen_init_v2(&p.pen, &found, hdev);
762 hid_err(hdev,
766 hid_dbg(hdev, "pen v2 parameters found\n");
774 hid_err(hdev,
783 hid_dbg(hdev, "pen v2 parameters not found\n");
787 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev);
789 hid_err(hdev,
793 hid_dbg(hdev, "pen v1 parameters found\n");
797 &found, hdev);
799 hid_err(hdev, "v1 buttonpad probing failed: %d\n", rc);
802 hid_dbg(hdev, "buttonpad v1 parameters%s found\n",
810 hid_dbg(hdev, "pen v1 parameters not found\n");
832 * @hdev: The HID device of the tablet interface to initialize and get
840 struct hid_device *hdev)
852 if (params == NULL || hdev == NULL || !hid_is_usb(hdev)) {
857 udev = hid_to_usb_dev(hdev);
859 iface = to_usb_interface(hdev->dev.parent);
868 &p, hdev, \
895 switch (VID_PID(hdev->vendor, hdev->product)) {
910 if (hdev->dev_rsize == UCLOGIC_RDESC_WP5540U_V2_ORIG_SIZE) {
914 &found, hdev);
916 hid_err(hdev,
922 hid_warn(hdev,
1006 rc = uclogic_params_huion_init(&p, hdev);
1023 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev);
1025 hid_err(hdev, "pen probing failed: %d\n", rc);
1029 hid_warn(hdev, "pen parameters not found");
1042 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev);
1044 hid_err(hdev, "pen probing failed: %d\n", rc);
1068 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev);
1070 hid_err(hdev, "pen probing failed: %d\n", rc);
1079 hid_err(hdev,
1089 hid_warn(hdev, "pen parameters not found");
1102 rc = uclogic_params_pen_init_v1(&p.pen, &found, hdev);
1104 hid_err(hdev, "pen probing failed: %d\n", rc);
1113 hid_err(hdev,
1119 hid_warn(hdev, "pen parameters not found");