• Home
  • Raw
  • Download

Lines Matching refs:lip

522 sg_decode_transportid_str(const char * lip, unsigned char * bp, int bplen,  in sg_decode_transportid_str()  argument
535 if (NULL == lip) in sg_decode_transportid_str()
536 lip = ""; in sg_decode_transportid_str()
543 "multiple of 4 [length=%d]:\n", lip, blen); in sg_decode_transportid_str()
546 lip); in sg_decode_transportid_str()
553 n += scnpr(b + n, blen - n, "%s FCP-2 World Wide Name:\n", lip); in sg_decode_transportid_str()
556 "%d]\n", lip, tpid_format); in sg_decode_transportid_str()
557 n += hex2str(bp + 8, 8, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
562 "address: 0x%x\n", lip, sg_get_unaligned_be16(bp + 2)); in sg_decode_transportid_str()
565 "%d]\n", lip, tpid_format); in sg_decode_transportid_str()
567 "corresponding target): 0x%x\n", lip, in sg_decode_transportid_str()
573 "defined):\n", lip); in sg_decode_transportid_str()
574 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip, in sg_decode_transportid_str()
576 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
580 n += scnpr(b + n, blen - n, "%s IEEE 1394 EUI-64 name:\n", lip); in sg_decode_transportid_str()
583 "%d]\n", lip, tpid_format); in sg_decode_transportid_str()
584 n += hex2str(&bp[8], 8, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
589 "identifier:\n", lip); in sg_decode_transportid_str()
592 "%d]\n", lip, tpid_format); in sg_decode_transportid_str()
593 n += hex2str(bp + 8, 16, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
597 n += scnpr(b + n, blen - n, "%s iSCSI ", lip); in sg_decode_transportid_str()
607 n += hex2str(bp, num + 4, lip, 0, blen - n, b + n); in sg_decode_transportid_str()
615 lip, ull); in sg_decode_transportid_str()
618 "%d]\n", lip, tpid_format); in sg_decode_transportid_str()
622 n += scnpr(b + n, blen - n, "%s ADT:\n", lip); in sg_decode_transportid_str()
623 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip, in sg_decode_transportid_str()
625 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
629 n += scnpr(b + n, blen - n, "%s ATAPI:\n", lip); in sg_decode_transportid_str()
630 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip, in sg_decode_transportid_str()
632 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
636 n += scnpr(b + n, blen - n, "%s UAS:\n", lip); in sg_decode_transportid_str()
637 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip, in sg_decode_transportid_str()
639 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
643 n += scnpr(b + n, blen - n, "%s SOP ", lip); in sg_decode_transportid_str()
650 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
655 n += scnpr(b + n, blen - n, "%s PCIE:\n", lip); in sg_decode_transportid_str()
656 n += scnpr(b + n, blen - n, "%s TPID format: %d\n", lip, in sg_decode_transportid_str()
658 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
662 n += scnpr(b + n, blen - n, "%s No specified protocol\n", lip); in sg_decode_transportid_str()
669 "TPID format=%d\n", lip, proto_id, tpid_format); in sg_decode_transportid_str()
670 n += hex2str(bp, normal_len, lip, 1, blen - n, b + n); in sg_decode_transportid_str()
743 sg_get_designation_descriptor_str(const char * lip, const unsigned char * ddp, in sg_get_designation_descriptor_str() argument
756 if (NULL == lip) in sg_get_designation_descriptor_str()
757 lip = ""; in sg_get_designation_descriptor_str()
760 "length of %d want 4 or more\n", lip, dd_len); in sg_get_designation_descriptor_str()
766 "bytes, but given %d bytes\n", lip, dlen, dd_len - 4); in sg_get_designation_descriptor_str()
776 n += scnpr(b + n, blen - n, "%s %s:\n", lip, cp); in sg_get_designation_descriptor_str()
777 n += scnpr(b + n, blen - n, "%s designator type: ", lip); in sg_get_designation_descriptor_str()
787 n += scnpr(b + n, blen - n, "%s transport: %s\n", lip, in sg_get_designation_descriptor_str()
801 lip, dlen, ip); in sg_get_designation_descriptor_str()
803 n += scnpr(b + n, blen - n, "%s vendor specific:\n", lip); in sg_get_designation_descriptor_str()
804 n += hex2str(ip, dlen, lip, 0, blen - n, b + n); in sg_get_designation_descriptor_str()
808 n += scnpr(b + n, blen - n, "%s vendor id: %.8s\n", lip, ip); in sg_get_designation_descriptor_str()
812 "%.*s\n", lip, dlen - 8, ip + 8); in sg_get_designation_descriptor_str()
815 lip); in sg_get_designation_descriptor_str()
826 "byte EUI, got %d >>\n", lip, dlen); in sg_get_designation_descriptor_str()
827 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
830 n += scnpr(b + n, blen - n, "%s 0x", lip); in sg_get_designation_descriptor_str()
837 "identifier\n", lip, dlen); in sg_get_designation_descriptor_str()
840 "(1) >>\n", lip); in sg_get_designation_descriptor_str()
841 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
849 PRIx64 "\n", lip, id_ext); in sg_get_designation_descriptor_str()
852 "and 16 byte ids >>\n", lip); in sg_get_designation_descriptor_str()
853 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
857 n += scnpr(b + n, blen - n, "%s IEEE Company_id: 0x%x\n", lip, in sg_get_designation_descriptor_str()
866 "Identifier: 0x%" PRIx64 "\n", lip, vsei); in sg_get_designation_descriptor_str()
869 n += scnpr(b + n, blen - n, "%s Directory ID: 0x%x\n", lip, in sg_get_designation_descriptor_str()
876 "for NAA >>\n", lip, c_set); in sg_get_designation_descriptor_str()
877 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
885 "identifier length: 0x%x >>\n", lip, dlen); in sg_get_designation_descriptor_str()
886 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
894 "identifier A: 0x%x\n", lip, d_id); in sg_get_designation_descriptor_str()
896 lip, c_id); in sg_get_designation_descriptor_str()
898 "identifier B: 0x%x\n", lip, vsi); in sg_get_designation_descriptor_str()
899 n += scnpr(b + n, blen - n, "%s [0x", lip); in sg_get_designation_descriptor_str()
904 n += scnpr(b + n, blen - n, "%s 0x", lip); in sg_get_designation_descriptor_str()
912 "identifier length: 0x%x >>\n", lip, dlen); in sg_get_designation_descriptor_str()
913 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
918 "assigned:\n", lip); in sg_get_designation_descriptor_str()
919 n += scnpr(b + n, blen - n, "%s 0x", lip); in sg_get_designation_descriptor_str()
927 "identifier length: 0x%x >>\n", lip, dlen); in sg_get_designation_descriptor_str()
928 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
940 "Company_id: 0x%x\n", lip, c_id); in sg_get_designation_descriptor_str()
942 "Identifier: 0x%" PRIx64 "\n", lip, vsei); in sg_get_designation_descriptor_str()
943 n += scnpr(b + n, blen - n, "%s [0x", lip); in sg_get_designation_descriptor_str()
948 n += scnpr(b + n, blen - n, "%s 0x", lip); in sg_get_designation_descriptor_str()
957 "identifier length: 0x%x >>\n", lip, dlen); in sg_get_designation_descriptor_str()
958 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
970 "Company_id: 0x%x\n", lip, c_id); in sg_get_designation_descriptor_str()
972 "Identifier: 0x%" PRIx64 "\n", lip, vsei); in sg_get_designation_descriptor_str()
975 "Identifier Extension: 0x%" PRIx64 "\n", lip, in sg_get_designation_descriptor_str()
977 n += scnpr(b + n, blen - n, "%s [0x", lip); in sg_get_designation_descriptor_str()
982 n += scnpr(b + n, blen - n, "%s 0x", lip); in sg_get_designation_descriptor_str()
990 ">>\n", lip, naa); in sg_get_designation_descriptor_str()
991 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
999 lip); in sg_get_designation_descriptor_str()
1005 lip, d_id); in sg_get_designation_descriptor_str()
1011 lip); in sg_get_designation_descriptor_str()
1012 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
1016 n += scnpr(b + n, blen - n, "%s Target port group: 0x%x\n", lip, in sg_get_designation_descriptor_str()
1023 lip); in sg_get_designation_descriptor_str()
1024 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
1028 n += scnpr(b + n, blen - n, "%s Logical unit group: 0x%x\n", lip, in sg_get_designation_descriptor_str()
1034 "code_set, logical unit association >>\n", lip); in sg_get_designation_descriptor_str()
1039 lip); in sg_get_designation_descriptor_str()
1040 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
1047 "use ASCII >>\n", lip); in sg_get_designation_descriptor_str()
1050 "code_set >>\n", lip); in sg_get_designation_descriptor_str()
1051 n += hex2str(ip, dlen, lip, 0, blen - n, b + n); in sg_get_designation_descriptor_str()
1055 n += scnpr(b + n, blen - n, "%s SCSI name string:\n", lip); in sg_get_designation_descriptor_str()
1060 n += scnpr(b + n, blen - n, "%s %.*s\n", lip, dlen, in sg_get_designation_descriptor_str()
1070 lip, lip); in sg_get_designation_descriptor_str()
1073 lip, 0x7f & ip[0]); in sg_get_designation_descriptor_str()
1075 "0x%x\n", lip, ip[2]); in sg_get_designation_descriptor_str()
1078 "number: 0x%x\n", lip, ip[0]); in sg_get_designation_descriptor_str()
1080 lip, ip[1]); in sg_get_designation_descriptor_str()
1082 "0x%x, function number: 0x%x]\n", lip, in sg_get_designation_descriptor_str()
1087 "port identifier\n", lip, in sg_get_designation_descriptor_str()
1088 sg_get_trans_proto_str(p_id, sizeof(e), e), lip); in sg_get_designation_descriptor_str()
1093 "code_set >>\n", lip); in sg_get_designation_descriptor_str()
1094 n += hex2str(ip, dlen, lip, 0, blen - n, b + n); in sg_get_designation_descriptor_str()
1099 "assigned UUID, 16 bytes long >>\n", lip); in sg_get_designation_descriptor_str()
1100 n += hex2str(ip, dlen, lip, 0, blen - n, b + n); in sg_get_designation_descriptor_str()
1103 n += scnpr(b + n, blen - n, "%s Locally assigned UUID: ", lip); in sg_get_designation_descriptor_str()
1111 n += scnpr(b + n, blen - n, "%s [0x", lip); in sg_get_designation_descriptor_str()
1118 n += scnpr(b + n, blen - n, "%s reserved designator=0x%x\n", lip, in sg_get_designation_descriptor_str()
1120 n += hex2str(ip, dlen, lip, 1, blen - n, b + n); in sg_get_designation_descriptor_str()
1127 decode_sks(const char * lip, const unsigned char * descp, int add_d_len, in decode_sks() argument
1133 if (NULL == lip) in decode_sks()
1134 lip = ""; in decode_sks()
1143 n += scnpr(b + n, blen - n, "%s Error in %s: byte %d", lip, in decode_sks()
1175 "%d", lip, (descp[4] & 0x20) ? "segment descriptor" : in decode_sks()
1185 n += scnpr(b + n, blen - n, "%s overflow flag is %d\n", lip, in decode_sks()
1232 int alen, const char * lip) in uds_referral_descriptor_str() argument
1241 if (NULL == lip) in uds_referral_descriptor_str()
1242 lip = ""; in uds_referral_descriptor_str()
1243 n += scnpr(b + n, blen - n, "%s Not all referrals: %d\n", lip, in uds_referral_descriptor_str()
1249 n += scnpr(b + n, blen - n, "%s Descriptor %d\n", lip, f); in uds_referral_descriptor_str()
1252 "stop\n", lip); in uds_referral_descriptor_str()
1257 lip, ull); in uds_referral_descriptor_str()
1260 lip, ull); in uds_referral_descriptor_str()
1265 lip, sg_get_unaligned_be16(tp + 2), c); in uds_referral_descriptor_str()
1283 sg_get_sense_descriptors_str(const char * lip, const unsigned char * sbp, in sg_get_sense_descriptors_str() argument
1298 if (lip) in sg_get_sense_descriptors_str()
1299 scnpr(z, sizeof(z), "%.60s ", lip); in sg_get_sense_descriptors_str()
1314 n += scnpr(b + n, blen - n, "%s Descriptor type: ", lip); in sg_get_sense_descriptors_str()
1343 n += decode_sks(lip, descp, add_d_len, sense_key, &processed, in sg_get_sense_descriptors_str()
1402 " count=0x%x ", extend, descp[3], lip, in sg_get_sense_descriptors_str()
1432 "asc,ascq=0x%x,0x%x]\n", lip, descp[2], descp[3], in sg_get_sense_descriptors_str()
1444 add_d_len, lip); in sg_get_sense_descriptors_str()
1453 n += scnpr(b + n, blen - n, "%s FSDT: %s\n", lip, in sg_get_sense_descriptors_str()
1456 n += scnpr(b + n, blen - n, "%s Sense data source: ", lip); in sg_get_sense_descriptors_str()
1479 lip, c); in sg_get_sense_descriptors_str()
1482 n += scnpr(b + n, blen - n, "%s vvvvvvvvvvvvvvvv\n", lip); in sg_get_sense_descriptors_str()
1483 sg_get_sense_str(lip, descp + 4, add_d_len - 2, false, in sg_get_sense_descriptors_str()
1486 n += scnpr(b + n, blen - n, "%s ^^^^^^^^^^^^^^^^\n", lip); in sg_get_sense_descriptors_str()
1500 "indication) set\n", lip); in sg_get_sense_descriptors_str()
1503 lip); in sg_get_sense_descriptors_str()
1504 n += decode_sks(lip, descp, add_d_len, sense_key, &processed, in sg_get_sense_descriptors_str()
1508 "0x%x\n", lip, descp[7]); in sg_get_sense_descriptors_str()
1510 n += scnpr(b + n, blen - n, "%s Information: 0x", lip); in sg_get_sense_descriptors_str()
1515 n += scnpr(b + n, blen - n, "%s Command specific: 0x", lip); in sg_get_sense_descriptors_str()
1525 n += scnpr(b + n, blen - n, "%s Usage reason: %s\n", lip, in sg_get_sense_descriptors_str()
1529 "reserved[%d]\n", lip, descp[3]); in sg_get_sense_descriptors_str()
1559 n += scnpr(b + n, blen - n, "%s ", lip); in sg_get_sense_descriptors_str()
1562 n += scnpr(b + n, blen - n, "\n%s ", lip); in sg_get_sense_descriptors_str()
1569 n += scnpr(b + n, blen - n, "%s short descriptor\n", lip); in sg_get_sense_descriptors_str()
1579 sg_get_sense_sat_pt_fixed_str(const char * lip, const unsigned char * sp, in sg_get_sense_sat_pt_fixed_str() argument
1587 if (NULL == lip) in sg_get_sense_sat_pt_fixed_str()
1588 lip = ""; in sg_get_sense_sat_pt_fixed_str()
1591 "Error ??\n", lip); in sg_get_sense_sat_pt_fixed_str()
1598 "count(7:0)=0x%x%c\n", lip, sp[3], sp[4], sp[5], sp[6], in sg_get_sense_sat_pt_fixed_str()
1601 "lba_high,mid,low(7:0)=0x%x,0x%x,0x%x%c\n", lip, (int)extend, in sg_get_sense_sat_pt_fixed_str()
1609 sg_get_sense_str(const char * lip, const unsigned char * sbp, int sb_len, in sg_get_sense_str() argument
1631 if (NULL == lip) in sg_get_sense_str()
1632 lip = ""; in sg_get_sense_str()
1634 n += scnpr(cbp, cblen, "%s >>> sense buffer empty\n", lip); in sg_get_sense_str()
1674 n += scnpr(cbp + n, cblen - n, "%s%s; Sense key: %s\n", lip, ebp, in sg_get_sense_str()
1678 lip); in sg_get_sense_str()
1680 n += scnpr(cbp + n, cblen - n, "%s%s\n", lip, in sg_get_sense_str()
1682 n += sg_get_sense_descriptors_str(lip, sbp, len, in sg_get_sense_str()
1687 n += scnpr(cbp + n, cblen - n, "%s%s\n", lip, in sg_get_sense_str()
1689 n += sg_get_sense_sat_pt_fixed_str(lip, sbp, len, in sg_get_sense_str()
1693 n += scnpr(cbp + n, cblen - n, "%s%s\n", lip, in sg_get_sense_str()
1696 if (strlen(lip) > 0) in sg_get_sense_str()
1697 r += scnpr(b + r, blen - r, "%s", lip); in sg_get_sense_str()
1723 "code: %d\n", lip, sbp[14]); in sg_get_sense_str()
1729 "Error in %s: byte %d", lip, in sg_get_sense_str()
1745 "%d.%02d%%\n", lip, pr, rem); in sg_get_sense_str()
1751 "0x%02x%02x\n", lip, sbp[16], sbp[17]); in sg_get_sense_str()
1754 r += scnpr(b + r, blen - r, "%s Segment pointer: ", lip); in sg_get_sense_str()
1767 "condition queue: ", lip); in sg_get_sense_str()
1773 "unexpected\n", lip, ssh.sense_key); in sg_get_sense_str()
1781 "too short, len=%d\n", lip, len); in sg_get_sense_str()
1785 "byte minimum)\n", lip); in sg_get_sense_str()
1790 "in hex:\n", lip); in sg_get_sense_str()
1791 n += hex2str(sbp, sb_len, lip, -1, cblen - n, cbp + n); in sg_get_sense_str()
1796 if (strlen(lip) > 0) in sg_get_sense_str()
1797 r += scnpr(b + r, blen - r, "%s", lip); in sg_get_sense_str()
1799 "to view as SCSI-1 non-extended sense:\n", lip); in sg_get_sense_str()
1804 scnpr(b + r, blen - r, "%s lba=0x%x\n", lip, in sg_get_sense_str()
1816 lip); in sg_get_sense_str()
1819 scnpr(z, sizeof(z), "%.50s ", lip); in sg_get_sense_str()