Lines Matching refs:buff
389 char *buff; in picolcd_debug_out_report() local
396 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_out_report()
397 if (!buff) in picolcd_debug_out_report()
402 kfree(buff); in picolcd_debug_out_report()
406 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ", in picolcd_debug_out_report()
408 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
411 dump_buff_as_hex(buff, BUFF_SZ, raw_data, raw_size); in picolcd_debug_out_report()
412 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
417 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
419 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
420 snprintf(buff, BUFF_SZ, "\tGPO state: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
421 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
425 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
427 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
428 snprintf(buff, BUFF_SZ, "\tBrightness: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
429 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
433 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
435 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
436 snprintf(buff, BUFF_SZ, "\tContrast: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
437 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
441 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
443 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
444 snprintf(buff, BUFF_SZ, "\tDuration: 0x%02x%02x (%dms)\n", in picolcd_debug_out_report()
446 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
450 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
452 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
457 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
460 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
464 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
467 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
471 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
473 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
474 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
476 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
477 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
478 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
482 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
484 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
485 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
487 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
488 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
489 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
491 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_out_report()
493 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_out_report()
494 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
495 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_out_report()
497 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_out_report()
499 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
504 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
506 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
509 snprintf(buff, BUFF_SZ, "\tAddress inside 64 byte block: 0x%02x%02x\n", in picolcd_debug_out_report()
513 snprintf(buff, BUFF_SZ, "\tAddress inside 64 byte block: 0x%02x%02x%02x\n", in picolcd_debug_out_report()
517 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_out_report()
519 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
524 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
526 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
529 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
531 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
532 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
535 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x%02x\n", in picolcd_debug_out_report()
537 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
538 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[4]); in picolcd_debug_out_report()
541 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_out_report()
543 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
548 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
550 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
553 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_out_report()
555 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
556 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_out_report()
557 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
559 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_out_report()
561 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_out_report()
562 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
563 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_out_report()
565 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_out_report()
569 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x%02x\n", in picolcd_debug_out_report()
571 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
572 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[4]); in picolcd_debug_out_report()
573 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
575 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_out_report()
577 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_out_report()
578 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
579 dump_buff_as_hex(buff, BUFF_SZ, raw_data+5, raw_data[4]); in picolcd_debug_out_report()
581 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_out_report()
585 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_out_report()
587 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
593 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
595 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
596 snprintf(buff, BUFF_SZ, "\tRestart delay: %dms (0x%02x%02x)\n", in picolcd_debug_out_report()
599 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
602 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
604 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
607 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
609 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
612 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
614 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
617 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
619 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
622 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
624 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
625 snprintf(buff, BUFF_SZ, "\tRestart delay: %dms (0x%02x%02x)\n", in picolcd_debug_out_report()
628 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
631 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
633 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
638 kfree(buff); in picolcd_debug_out_report()
645 char *buff; in picolcd_debug_raw_event() local
652 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_raw_event()
653 if (!buff) in picolcd_debug_raw_event()
659 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
661 hid_debug_event(hdev, buff); 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()
668 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
672 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
674 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
676 snprintf(buff, BUFF_SZ, "\tNo key pressed\n"); in picolcd_debug_raw_event()
678 snprintf(buff, BUFF_SZ, "\tOne key pressed: 0x%02x (%d)\n", in picolcd_debug_raw_event()
681 snprintf(buff, BUFF_SZ, "\tTwo keys pressed: 0x%02x (%d), 0x%02x (%d)\n", in picolcd_debug_raw_event()
683 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
687 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
689 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
691 snprintf(buff, BUFF_SZ, "\tUnexpectedly 0 data length\n"); in picolcd_debug_raw_event()
692 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
694 snprintf(buff, BUFF_SZ, "\tData length: %d\n\tIR Data: ", in picolcd_debug_raw_event()
696 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
697 dump_buff_as_hex(buff, BUFF_SZ, raw_data+2, raw_data[1]); in picolcd_debug_raw_event()
698 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
700 snprintf(buff, BUFF_SZ, "\tOverflowing data length: %d\n", in picolcd_debug_raw_event()
702 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
707 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
709 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
710 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_raw_event()
712 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
713 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_raw_event()
714 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
716 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_raw_event()
717 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
719 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_raw_event()
720 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
721 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_raw_event()
722 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
724 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_raw_event()
725 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
730 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
732 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
735 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x\n", in picolcd_debug_raw_event()
737 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
738 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[3]); in picolcd_debug_raw_event()
739 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
741 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_raw_event()
743 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_raw_event()
744 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
745 dump_buff_as_hex(buff, BUFF_SZ, raw_data+4, raw_data[3]); in picolcd_debug_raw_event()
747 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_raw_event()
751 snprintf(buff, BUFF_SZ, "\tData address: 0x%02x%02x%02x\n", in picolcd_debug_raw_event()
753 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
754 snprintf(buff, BUFF_SZ, "\tData length: %d\n", raw_data[4]); in picolcd_debug_raw_event()
755 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
757 snprintf(buff, BUFF_SZ, "\tNo data\n"); in picolcd_debug_raw_event()
759 snprintf(buff, BUFF_SZ, "\tData: "); in picolcd_debug_raw_event()
760 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
761 dump_buff_as_hex(buff, BUFF_SZ, raw_data+5, raw_data[4]); in picolcd_debug_raw_event()
763 snprintf(buff, BUFF_SZ, "\tData overflowed\n"); in picolcd_debug_raw_event()
767 snprintf(buff, BUFF_SZ, "\tNot supported\n"); in picolcd_debug_raw_event()
769 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
772 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
774 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
775 snprintf(buff, BUFF_SZ, "\tFirmware version: %d.%d\n", in picolcd_debug_raw_event()
777 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
780 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
782 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
786 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
788 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
792 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
794 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
798 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
800 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
801 snprintf(buff, BUFF_SZ, "\tSerial: 0x%02x%02x%02x%02x\n", in picolcd_debug_raw_event()
803 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
804 snprintf(buff, BUFF_SZ, "\tType: 0x%02x\n", in picolcd_debug_raw_event()
806 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
809 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
811 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
812 snprintf(buff, BUFF_SZ, "\tTotal splash space: %d\n", in picolcd_debug_raw_event()
814 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
815 snprintf(buff, BUFF_SZ, "\tUsed splash space: %d\n", in picolcd_debug_raw_event()
817 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
820 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
822 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
823 snprintf(buff, BUFF_SZ, "\tFirmware version: %d.%d\n", in picolcd_debug_raw_event()
825 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
828 snprintf(buff, BUFF_SZ, "report %s (%d, size=%d)\n", in picolcd_debug_raw_event()
830 hid_debug_event(hdev, buff); in picolcd_debug_raw_event()
834 kfree(buff); in picolcd_debug_raw_event()