Lines Matching defs:report

360  * Helper code for HID report level dumping/debugging
385 struct hid_device *hdev, struct hid_report *report)
388 int raw_size = (report->size >> 3) + 1;
400 raw_data = hid_alloc_report_buf(report, GFP_ATOMIC);
406 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ",
407 report->id, raw_size);
409 raw_data[0] = report->id;
410 hid_output_report(report, raw_data);
414 switch (report->id) {
417 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
418 "REPORT_LED_STATE", report->id, raw_size-1);
425 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
426 "REPORT_BRIGHTNESS", report->id, raw_size-1);
433 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
434 "REPORT_CONTRAST", report->id, raw_size-1);
441 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
442 "REPORT_RESET", report->id, raw_size-1);
450 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
451 "REPORT_LCD_CMD", report->id, raw_size-1);
457 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
458 "REPORT_LCD_CMD", report->id, raw_size-1);
464 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
465 "REPORT_LCD_CMD", report->id, raw_size-1);
471 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
472 "REPORT_EE_READ", report->id, raw_size-1);
482 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
483 "REPORT_EE_WRITE", report->id, raw_size-1);
504 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
505 "REPORT_ERASE_MEMORY", report->id, raw_size-1);
524 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
525 "REPORT_READ_MEMORY", report->id, raw_size-1);
548 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
549 "REPORT_WRITE_MEMORY", report->id, raw_size-1);
593 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
594 "REPORT_EXIT_KEYBOARD", report->id, raw_size-1);
602 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
603 "REPORT_VERSION", report->id, raw_size-1);
607 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
608 "REPORT_DEVID", report->id, raw_size-1);
612 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
613 "REPORT_SPLASH_SIZE", report->id, raw_size-1);
617 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
618 "REPORT_HOOK_VERSION", report->id, raw_size-1);
622 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
623 "REPORT_VERSION", report->id, raw_size-1);
631 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n",
632 "<unknown>", report->id, raw_size-1);
642 struct hid_device *hdev, struct hid_report *report,
656 switch (report->id) {
658 /* 2 data bytes with affected report and error code */
659 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
660 "REPORT_ERROR_CODE", report->id, size-1);
663 snprintf(buff, BUFF_SZ, "\tError code 0x%02x (%s) in reply to report 0x%02x\n",
666 snprintf(buff, BUFF_SZ, "\tError code 0x%02x in reply to report 0x%02x\n",
672 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
673 "REPORT_KEY_STATE", report->id, size-1);
687 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
688 "REPORT_IR_DATA", report->id, size-1);
707 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
708 "REPORT_EE_DATA", report->id, size-1);
730 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
731 "REPORT_MEMORY", report->id, size-1);
772 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
773 "REPORT_VERSION", report->id, size-1);
780 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
781 "REPORT_BL_ERASE_MEMORY", report->id, size-1);
786 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
787 "REPORT_BL_READ_MEMORY", report->id, size-1);
792 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
793 "REPORT_BL_WRITE_MEMORY", report->id, size-1);
798 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
799 "REPORT_DEVID", report->id, size-1);
809 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
810 "REPORT_SPLASH_SIZE", report->id, size-1);
820 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
821 "REPORT_HOOK_VERSION", report->id, size-1);
828 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n",
829 "<unknown>", report->id, size-1);