Lines Matching refs:rdesc
366 static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_consumer_control_fixup() argument
376 rdesc[offset] == 0x05 && rdesc[offset + 1] == 0x0c && in kye_consumer_control_fixup()
378 rdesc[offset + 2] == 0x09 && rdesc[offset + 3] == 0x01 && in kye_consumer_control_fixup()
380 rdesc[offset + 10] == 0x2a && rdesc[offset + 12] > 0x2f) { in kye_consumer_control_fixup()
382 rdesc[offset + 12] = 0x2f; in kye_consumer_control_fixup()
384 return rdesc; in kye_consumer_control_fixup()
406 static __u8 *kye_tablet_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) in kye_tablet_fixup() argument
409 __u8 *newdesc = rdesc; in kye_tablet_fixup()
414 return rdesc; in kye_tablet_fixup()
424 return rdesc; in kye_tablet_fixup()
440 if (newdesc + sizeof(kye_tablet_mouse_rdesc) > rdesc + *rsize) in kye_tablet_fixup()
457 if (newdesc + info->control_rsize > rdesc + *rsize) in kye_tablet_fixup()
465 *rsize = newdesc - rdesc; in kye_tablet_fixup()
466 return rdesc; in kye_tablet_fixup()
469 static const __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_report_fixup() argument
482 rdesc[61] == 0x05 && rdesc[62] == 0x08 && in kye_report_fixup()
483 rdesc[63] == 0x19 && rdesc[64] == 0x08 && in kye_report_fixup()
484 rdesc[65] == 0x29 && rdesc[66] == 0x0f && in kye_report_fixup()
485 rdesc[71] == 0x75 && rdesc[72] == 0x08 && in kye_report_fixup()
486 rdesc[73] == 0x95 && rdesc[74] == 0x01) { in kye_report_fixup()
490 rdesc[62] = 0x09; in kye_report_fixup()
491 rdesc[64] = 0x04; in kye_report_fixup()
492 rdesc[66] = 0x07; in kye_report_fixup()
493 rdesc[72] = 0x01; in kye_report_fixup()
494 rdesc[74] = 0x08; in kye_report_fixup()
498 rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 104, in kye_report_fixup()
502 rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 104, in kye_report_fixup()
506 rdesc = kye_consumer_control_fixup(hdev, rdesc, rsize, 83, in kye_report_fixup()
522 rdesc = kye_tablet_fixup(hdev, rdesc, rsize); in kye_report_fixup()
525 return rdesc; in kye_report_fixup()