Lines Matching refs:BUFF_SZ

400 #define BUFF_SZ 256  in picolcd_debug_out_report()  macro
406 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_out_report()
416 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ", in picolcd_debug_out_report()
421 dump_buff_as_hex(buff, BUFF_SZ, raw_data, raw_size); in picolcd_debug_out_report()
427 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
430 snprintf(buff, BUFF_SZ, "\tGPO state: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
435 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
438 snprintf(buff, BUFF_SZ, "\tBrightness: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
443 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
446 snprintf(buff, BUFF_SZ, "\tContrast: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
451 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
454 snprintf(buff, BUFF_SZ, "\tDuration: 0x%02x%02x (%dms)\n", in picolcd_debug_out_report()
460 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
467 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
474 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
481 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
484 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
487 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
492 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
495 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
498 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
501 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_out_report()
503 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_out_report()
505 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_out_report()
507 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_out_report()
514 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
519 snprintf(buff, BUFF_SZ, "\tAddress inside 64 byte block: 0x%02x%02x\n", in picolcd_debug_out_report()
523 snprintf(buff, BUFF_SZ, "\tAddress inside 64 byte block: 0x%02x%02x%02x\n", in picolcd_debug_out_report()
527 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_out_report()
534 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
539 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
542 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
545 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x%02x\n", in picolcd_debug_out_report()
548 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[4]); in picolcd_debug_out_report()
551 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_out_report()
558 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
563 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
566 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
569 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_out_report()
571 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_out_report()
573 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_out_report()
575 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_out_report()
579 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x%02x\n", in picolcd_debug_out_report()
582 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[4]); in picolcd_debug_out_report()
585 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_out_report()
587 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_out_report()
589 dump_buff_as_hex(buff, BUFF_SZ, raw_data+5, raw_data[4]); in picolcd_debug_out_report()
591 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_out_report()
595 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_out_report()
603 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
606 snprintf(buff, BUFF_SZ, "\tRestart delay: %dms (0x%02x%02x)\n", in picolcd_debug_out_report()
612 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
617 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
622 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
627 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
632 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
635 snprintf(buff, BUFF_SZ, "\tRestart delay: %dms (0x%02x%02x)\n", in picolcd_debug_out_report()
641 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
657 #define BUFF_SZ 256 in picolcd_debug_raw_event() macro
662 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_raw_event()
669 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
673 snprintf(buff, BUFF_SZ, "\tError code 0x%02x (%s) in reply to report 0x%02x\n", in picolcd_debug_raw_event()
676 snprintf(buff, BUFF_SZ, "\tError code 0x%02x in reply to report 0x%02x\n", in picolcd_debug_raw_event()
682 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
686 snprintf(buff, BUFF_SZ, "\tNo key pressed\n"); in picolcd_debug_raw_event()
688 snprintf(buff, BUFF_SZ, "\tOne key pressed: 0x%02x (%d)\n", in picolcd_debug_raw_event()
691 snprintf(buff, BUFF_SZ, "\tTwo keys pressed: 0x%02x (%d), 0x%02x (%d)\n", in picolcd_debug_raw_event()
697 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
701 snprintf(buff, BUFF_SZ, "\tUnexpectedly 0 data length\n"); in picolcd_debug_raw_event()
704 snprintf(buff, BUFF_SZ, "\tData length: %d\n\tIR Data: ", in picolcd_debug_raw_event()
707 dump_buff_as_hex(buff, BUFF_SZ, raw_data+2, raw_data[1]); in picolcd_debug_raw_event()
710 snprintf(buff, BUFF_SZ, "\tOverflowing data length: %d\n", in picolcd_debug_raw_event()
717 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
720 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_raw_event()
723 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_raw_event()
726 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_raw_event()
729 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_raw_event()
731 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_raw_event()
734 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_raw_event()
740 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
745 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_raw_event()
748 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_raw_event()
751 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_raw_event()
753 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_raw_event()
755 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_raw_event()
757 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_raw_event()
761 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x%02x\n", in picolcd_debug_raw_event()
764 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[4]); in picolcd_debug_raw_event()
767 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_raw_event()
769 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_raw_event()
771 dump_buff_as_hex(buff, BUFF_SZ, raw_data+5, raw_data[4]); in picolcd_debug_raw_event()
773 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_raw_event()
777 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_raw_event()
782 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
785 snprintf(buff, BUFF_SZ, "\tFirmware version: %d.%d\n", in picolcd_debug_raw_event()
790 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
796 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
802 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
808 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
811 snprintf(buff, BUFF_SZ, "\tSerial: 0x%02x%02x%02x%02x\n", in picolcd_debug_raw_event()
814 snprintf(buff, BUFF_SZ, "\tType: 0x%02x\n", in picolcd_debug_raw_event()
819 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
822 snprintf(buff, BUFF_SZ, "\tTotal splash space: %d\n", in picolcd_debug_raw_event()
825 snprintf(buff, BUFF_SZ, "\tUsed splash space: %d\n", in picolcd_debug_raw_event()
830 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
833 snprintf(buff, BUFF_SZ, "\tFirmware version: %d.%d\n", in picolcd_debug_raw_event()
838 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()