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