Lines Matching refs:walker

120 	char *walker;  in wdc_append_serial_name()  local
127 walker = sn + NVME_SERIAL_NUMBER_LENGTH - 1; in wdc_append_serial_name()
128 while (walker > sn && *walker == ' ') in wdc_append_serial_name()
129 walker--; in wdc_append_serial_name()
130 *++walker = '\0'; in wdc_append_serial_name()
540 uint8_t *walker = buf; in print_hgst_info_self_test() local
546 code = le16dec(walker); in print_hgst_info_self_test()
547 walker += 2; in print_hgst_info_self_test()
548 walker++; /* Ignore fixed flags */ in print_hgst_info_self_test()
549 if (*walker == 0) /* Last entry is zero length */ in print_hgst_info_self_test()
551 if (*walker++ != 0x10) { in print_hgst_info_self_test()
556 printf(" %-28s: %#x\n", "Self-Test Results", *walker & 0xf); in print_hgst_info_self_test()
557 printf(" %-28s: %#x\n", "Self-Test Code", (*walker >> 5) & 0x7); in print_hgst_info_self_test()
558 walker++; in print_hgst_info_self_test()
559 printf(" %-28s: %#x\n", "Self-Test Number", *walker++); in print_hgst_info_self_test()
560 hrs = le16dec(walker); in print_hgst_info_self_test()
561 walker += 2; in print_hgst_info_self_test()
562 lba = le32dec(walker); in print_hgst_info_self_test()
563 walker += 4; in print_hgst_info_self_test()
566 printf(" %-28s: %#x\n", "Sense Key", *walker++ & 0xf); in print_hgst_info_self_test()
567 printf(" %-28s: %#x\n", "Additional Sense Code", *walker++); in print_hgst_info_self_test()
568 printf(" %-28s: %#x\n", "Additional Sense Qualifier", *walker++); in print_hgst_info_self_test()
569 printf(" %-28s: %#x\n", "Vendor Specific Detail", *walker++); in print_hgst_info_self_test()
576 uint8_t *walker = buf; in print_hgst_info_background_scan() local
583 code = le16dec(walker); in print_hgst_info_background_scan()
584 walker += 2; in print_hgst_info_background_scan()
585 walker++; /* Ignore fixed flags */ in print_hgst_info_background_scan()
586 if (*walker++ != 0x10) { in print_hgst_info_background_scan()
594 pom = le32dec(walker); in print_hgst_info_background_scan()
595 walker += 4; in print_hgst_info_background_scan()
596 walker++; /* Reserved */ in print_hgst_info_background_scan()
597 status = *walker++; in print_hgst_info_background_scan()
598 nscan = le16dec(walker); in print_hgst_info_background_scan()
599 walker += 2; in print_hgst_info_background_scan()
600 progress = le16dec(walker); in print_hgst_info_background_scan()
601 walker += 2; in print_hgst_info_background_scan()
602 walker += 6; /* Reserved */ in print_hgst_info_background_scan()
609 if (walker - (uint8_t *)buf != 20) { in print_hgst_info_background_scan()
616 code = le16dec(walker); in print_hgst_info_background_scan()
617 walker += 2; in print_hgst_info_background_scan()
618 walker++; in print_hgst_info_background_scan()
619 if (*walker++ != 0x14) { in print_hgst_info_background_scan()
623 pom = le32dec(walker); in print_hgst_info_background_scan()
624 walker += 4; in print_hgst_info_background_scan()
629 if (walker[0] == 0x41 && in print_hgst_info_background_scan()
630 walker[1] == 0x0b && in print_hgst_info_background_scan()
631 walker[2] == 0x01 && in print_hgst_info_background_scan()
632 walker[3] == 0x00 && in print_hgst_info_background_scan()
633 walker[4] == 0x00 && in print_hgst_info_background_scan()
634 walker[5] == 0x00 && in print_hgst_info_background_scan()
635 walker[6] == 0x00 && in print_hgst_info_background_scan()
636 walker[7] == 0x00) { in print_hgst_info_background_scan()
637 walker += 8; in print_hgst_info_background_scan()
638 walker += 4; /* Skip reserved */ in print_hgst_info_background_scan()
639 nand = le32dec(walker); in print_hgst_info_background_scan()
640 walker += 4; in print_hgst_info_background_scan()
645 walker += 16; in print_hgst_info_background_scan()
683 uint8_t *walker = buf; in print_hgst_info_temp_history() local
687 printf(" %-30s: %d C\n", "Current Temperature", *walker++); in print_hgst_info_temp_history()
688 printf(" %-30s: %d C\n", "Reference Temperature", *walker++); in print_hgst_info_temp_history()
689 printf(" %-30s: %d C\n", "Maximum Temperature", *walker++); in print_hgst_info_temp_history()
690 printf(" %-30s: %d C\n", "Minimum Temperature", *walker++); in print_hgst_info_temp_history()
691 min = le32dec(walker); in print_hgst_info_temp_history()
692 walker += 4; in print_hgst_info_temp_history()
694 min = le32dec(walker); in print_hgst_info_temp_history()
695 walker += 4; in print_hgst_info_temp_history()
697 min = le32dec(walker); in print_hgst_info_temp_history()
698 walker += 4; in print_hgst_info_temp_history()
705 uint8_t *walker = buf; in print_hgst_info_ssd_perf() local
709 val = le64dec(walker); in print_hgst_info_ssd_perf()
710 walker += 8; in print_hgst_info_ssd_perf()
712 val = le64dec(walker); in print_hgst_info_ssd_perf()
713 walker += 8; in print_hgst_info_ssd_perf()
715 val = le64dec(walker); in print_hgst_info_ssd_perf()
716 walker += 8; in print_hgst_info_ssd_perf()
718 val = le64dec(walker); in print_hgst_info_ssd_perf()
719 walker += 8; in print_hgst_info_ssd_perf()
721 val = le64dec(walker); in print_hgst_info_ssd_perf()
722 walker += 8; in print_hgst_info_ssd_perf()
724 val = le64dec(walker); in print_hgst_info_ssd_perf()
725 walker += 8; in print_hgst_info_ssd_perf()
727 val = le64dec(walker); in print_hgst_info_ssd_perf()
728 walker += 8; in print_hgst_info_ssd_perf()
730 val = le64dec(walker); in print_hgst_info_ssd_perf()
731 walker += 8; in print_hgst_info_ssd_perf()
733 val = le64dec(walker); in print_hgst_info_ssd_perf()
734 walker += 8; in print_hgst_info_ssd_perf()
736 val = le64dec(walker); in print_hgst_info_ssd_perf()
737 walker += 8; in print_hgst_info_ssd_perf()
739 val = le64dec(walker); in print_hgst_info_ssd_perf()
740 walker += 8; in print_hgst_info_ssd_perf()
742 val = le64dec(walker); in print_hgst_info_ssd_perf()
743 walker += 8; in print_hgst_info_ssd_perf()
745 val = le64dec(walker); in print_hgst_info_ssd_perf()
746 walker += 8; in print_hgst_info_ssd_perf()
748 val = le64dec(walker); in print_hgst_info_ssd_perf()
749 walker += 8; in print_hgst_info_ssd_perf()
751 val = le64dec(walker); in print_hgst_info_ssd_perf()
752 walker += 8; in print_hgst_info_ssd_perf()
759 uint8_t *walker = buf; in print_hgst_info_firmware_load() local
762 printf(" %-30s: %d\n", "Firmware Downloads", le32dec(walker)); in print_hgst_info_firmware_load()
782 uint8_t *walker, *end, *subpage; in print_hgst_info_log() local
789 walker = buf; in print_hgst_info_log()
790 walker += 2; /* Page count */ in print_hgst_info_log()
791 len = le16dec(walker); in print_hgst_info_log()
792 walker += 2; in print_hgst_info_log()
793 end = walker + len; /* Length is exclusive of this header */ in print_hgst_info_log()
795 while (walker < end) { in print_hgst_info_log()
796 subpage = walker + 4; in print_hgst_info_log()
797 subtype = *walker++ & 0x3f; /* subtype */ in print_hgst_info_log()
798 res = *walker++; /* Reserved */ in print_hgst_info_log()
799 len = le16dec(walker); in print_hgst_info_log()
800 walker += len + 2; /* Length, not incl header */ in print_hgst_info_log()
801 if (walker > end) { in print_hgst_info_log()