Lines Matching full:len
148 int i, index, len, enable; in lpfc_debugfs_disc_trc_data() local
160 len = 0; in lpfc_debugfs_disc_trc_data()
171 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
182 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
189 return len; in lpfc_debugfs_disc_trc_data()
214 int i, index, len, enable; in lpfc_debugfs_slow_ring_trc_data() local
226 len = 0; in lpfc_debugfs_slow_ring_trc_data()
237 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
248 len += scnprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
255 return len; in lpfc_debugfs_slow_ring_trc_data()
282 int len = 0; in lpfc_debugfs_hbqinfo_data() local
308 len += scnprintf(buf+len, size-len, "HBQ %d Info\n", i); in lpfc_debugfs_hbqinfo_data()
316 len += scnprintf(buf+len, size-len, in lpfc_debugfs_hbqinfo_data()
323 len += scnprintf(buf+len, size-len, in lpfc_debugfs_hbqinfo_data()
330 len += scnprintf(buf+len, size-len, in lpfc_debugfs_hbqinfo_data()
342 len += scnprintf(buf + len, size - len, in lpfc_debugfs_hbqinfo_data()
350 len += scnprintf(buf + len, size - len, in lpfc_debugfs_hbqinfo_data()
361 len += scnprintf(buf+len, size-len, in lpfc_debugfs_hbqinfo_data()
370 len += scnprintf(buf+len, size-len, "No DMAinfo?\n"); in lpfc_debugfs_hbqinfo_data()
374 if (len > LPFC_HBQINFO_SIZE - 54) in lpfc_debugfs_hbqinfo_data()
378 return len; in lpfc_debugfs_hbqinfo_data()
407 int len = 0; in lpfc_debugfs_commonxripools_data() local
412 if (len > (LPFC_DUMP_MULTIXRIPOOL_SIZE - 80)) in lpfc_debugfs_commonxripools_data()
416 len += scnprintf(buf + len, size - len, "HdwQ %d Info ", i); in lpfc_debugfs_commonxripools_data()
422 len += scnprintf(buf + len, size - len, in lpfc_debugfs_commonxripools_data()
437 return len; in lpfc_debugfs_commonxripools_data()
597 int len = 0; in lpfc_debugfs_lockstat_data() local
607 if (len > (LPFC_HDWQINFO_SIZE - 100)) in lpfc_debugfs_lockstat_data()
611 len += scnprintf(buf + len, size - len, "HdwQ %03d Lock ", i); in lpfc_debugfs_lockstat_data()
613 len += scnprintf(buf + len, size - len, in lpfc_debugfs_lockstat_data()
625 len += scnprintf(buf + len, size - len, in lpfc_debugfs_lockstat_data()
638 return len; in lpfc_debugfs_lockstat_data()
665 int len = 0; in lpfc_debugfs_dumpHBASlim_data() local
677 len += scnprintf(buf+len, size-len, "HBA SLIM\n"); in lpfc_debugfs_dumpHBASlim_data()
691 len += scnprintf(buf+len, size-len, in lpfc_debugfs_dumpHBASlim_data()
703 return len; in lpfc_debugfs_dumpHBASlim_data()
724 int len = 0; in lpfc_debugfs_dumpHostSlim_data() local
735 len += scnprintf(buf+len, size-len, "SLIM Mailbox\n"); in lpfc_debugfs_dumpHostSlim_data()
739 len += scnprintf(buf+len, size-len, in lpfc_debugfs_dumpHostSlim_data()
748 len += scnprintf(buf+len, size-len, "SLIM PCB\n"); in lpfc_debugfs_dumpHostSlim_data()
752 len += scnprintf(buf+len, size-len, in lpfc_debugfs_dumpHostSlim_data()
765 len += scnprintf(buf+len, size-len, in lpfc_debugfs_dumpHostSlim_data()
782 len += scnprintf(buf+len, size-len, "HA:%08x CA:%08x HS:%08x " in lpfc_debugfs_dumpHostSlim_data()
786 return len; in lpfc_debugfs_dumpHostSlim_data()
807 int len = 0; in lpfc_debugfs_nodelist_data() local
820 len += scnprintf(buf+len, size-len, "\nFCP Nodelist Entries ...\n"); in lpfc_debugfs_nodelist_data()
825 len += scnprintf(buf+len, size-len, in lpfc_debugfs_nodelist_data()
863 len += scnprintf(buf+len, size-len, "%s DID:x%06x ", in lpfc_debugfs_nodelist_data()
865 len += scnprintf(buf+len, size-len, in lpfc_debugfs_nodelist_data()
868 len += scnprintf(buf+len, size-len, in lpfc_debugfs_nodelist_data()
871 len += scnprintf(buf+len, size-len, "RPI:x%04x ", in lpfc_debugfs_nodelist_data()
873 len += scnprintf(buf+len, size-len, "flag:x%08x ", in lpfc_debugfs_nodelist_data()
876 len += scnprintf(buf+len, size-len, "UNKNOWN_TYPE "); in lpfc_debugfs_nodelist_data()
878 len += scnprintf(buf+len, size-len, "FC_NODE "); in lpfc_debugfs_nodelist_data()
880 len += scnprintf(buf+len, size-len, "FABRIC "); in lpfc_debugfs_nodelist_data()
884 len += scnprintf(buf+len, size-len, "FCP_TGT sid:%d ", in lpfc_debugfs_nodelist_data()
887 len += scnprintf(buf+len, size-len, "FCP_INITIATOR "); in lpfc_debugfs_nodelist_data()
889 len += scnprintf(buf + len, in lpfc_debugfs_nodelist_data()
890 size - len, "NVME_TGT sid:%d ", in lpfc_debugfs_nodelist_data()
893 len += scnprintf(buf + len, in lpfc_debugfs_nodelist_data()
894 size - len, "NVME_INITIATOR "); in lpfc_debugfs_nodelist_data()
895 len += scnprintf(buf+len, size-len, "refcnt:%d", in lpfc_debugfs_nodelist_data()
899 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
904 len += scnprintf(buf+len, size-len, " xpt:x%x", in lpfc_debugfs_nodelist_data()
907 len += scnprintf(buf+len, size-len, " defer:%x", in lpfc_debugfs_nodelist_data()
909 len += scnprintf(buf+len, size-len, "\n"); in lpfc_debugfs_nodelist_data()
913 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
917 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
925 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
930 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
936 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
949 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
953 len += scnprintf(buf + len, size - len, "\tRport List:\n"); in lpfc_debugfs_nodelist_data()
981 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
984 len += scnprintf(buf + len, size - len, "WWPN x%llx ", in lpfc_debugfs_nodelist_data()
986 len += scnprintf(buf + len, size - len, "WWNN x%llx ", in lpfc_debugfs_nodelist_data()
991 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
994 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
997 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
1002 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
1006 len += scnprintf(buf + len, size - len, "\n"); in lpfc_debugfs_nodelist_data()
1010 return len; in lpfc_debugfs_nodelist_data()
1038 int len = 0; in lpfc_debugfs_nvmestat_data() local
1042 return len; in lpfc_debugfs_nvmestat_data()
1044 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1047 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1054 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1060 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1066 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1072 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1082 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1088 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1096 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1102 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1108 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1113 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1120 len += scnprintf(buf + len, size - len, "\n"); in lpfc_debugfs_nvmestat_data()
1131 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1137 if (len >= (size - LPFC_DEBUG_OUT_LINE_SZ)) in lpfc_debugfs_nvmestat_data()
1139 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1153 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1162 return len; in lpfc_debugfs_nvmestat_data()
1166 return len; in lpfc_debugfs_nvmestat_data()
1169 return len; in lpfc_debugfs_nvmestat_data()
1171 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1174 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1194 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_nvmestat_data()
1198 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_nvmestat_data()
1202 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_nvmestat_data()
1207 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1215 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1225 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1232 return len; in lpfc_debugfs_nvmestat_data()
1251 int len; in lpfc_debugfs_scsistat_data() local
1291 len = strnlen(buf, size); in lpfc_debugfs_scsistat_data()
1293 return len; in lpfc_debugfs_scsistat_data()
1393 int len = 0; in lpfc_debugfs_ioktime_data() local
1397 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1402 return len; in lpfc_debugfs_ioktime_data()
1404 len += scnprintf( in lpfc_debugfs_ioktime_data()
1405 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1408 len += scnprintf( in lpfc_debugfs_ioktime_data()
1409 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1415 len += scnprintf( in lpfc_debugfs_ioktime_data()
1416 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1419 len += scnprintf( in lpfc_debugfs_ioktime_data()
1420 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1426 len += scnprintf( in lpfc_debugfs_ioktime_data()
1427 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1430 len += scnprintf( in lpfc_debugfs_ioktime_data()
1431 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1437 len += scnprintf( in lpfc_debugfs_ioktime_data()
1438 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1441 len += scnprintf( in lpfc_debugfs_ioktime_data()
1442 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1448 len += scnprintf( in lpfc_debugfs_ioktime_data()
1449 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1456 return len; in lpfc_debugfs_ioktime_data()
1460 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1466 return len; in lpfc_debugfs_ioktime_data()
1468 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1471 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1477 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1480 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1486 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1489 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1495 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1498 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1504 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1507 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1515 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1518 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1525 return len; in lpfc_debugfs_ioktime_data()
1528 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1531 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1537 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1540 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1546 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1549 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1555 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1558 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1564 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1567 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1573 return len; in lpfc_debugfs_ioktime_data()
1594 int len = 0; in lpfc_debugfs_nvmeio_trc_data() local
1602 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1609 return len; in lpfc_debugfs_nvmeio_trc_data()
1624 len += scnprintf(buf + len, size - len, dtp->fmt, in lpfc_debugfs_nvmeio_trc_data()
1629 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1634 if (len >= (size - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_debugfs_nvmeio_trc_data()
1635 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1653 len += scnprintf(buf + len, size - len, dtp->fmt, in lpfc_debugfs_nvmeio_trc_data()
1658 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1663 if (len >= (size - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_debugfs_nvmeio_trc_data()
1664 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1672 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1675 return len; in lpfc_debugfs_nvmeio_trc_data()
1696 int i, j, len; in lpfc_debugfs_hdwqstat_data() local
1796 len = strnlen(buf, size); in lpfc_debugfs_hdwqstat_data()
1797 return len; in lpfc_debugfs_hdwqstat_data()
1961 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size); in lpfc_debugfs_disc_trc_open()
2011 debug->len = lpfc_debugfs_slow_ring_trc_data(phba, debug->buffer, size); in lpfc_debugfs_slow_ring_trc_open()
2052 debug->len = lpfc_debugfs_hbqinfo_data(phba, debug->buffer, in lpfc_debugfs_hbqinfo_open()
2094 debug->len = lpfc_debugfs_multixripools_data( in lpfc_debugfs_multixripools_open()
2139 debug->len = lpfc_debugfs_lockstat_data(phba, debug->buffer, in lpfc_debugfs_lockstat_open()
2273 debug->len = lpfc_debugfs_ras_log_data(phba, debug->buffer, size); in lpfc_debugfs_ras_log_open()
2274 if (debug->len < 0) { in lpfc_debugfs_ras_log_open()
2323 debug->len = lpfc_debugfs_dumpHBASlim_data(phba, debug->buffer, in lpfc_debugfs_dumpHBASlim_open()
2365 debug->len = lpfc_debugfs_dumpHostSlim_data(phba, debug->buffer, in lpfc_debugfs_dumpHostSlim_open()
2505 debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer, in lpfc_debugfs_nodelist_open()
2535 return fixed_size_llseek(file, off, whence, debug->len); in lpfc_debugfs_lseek()
2561 debug->len); in lpfc_debugfs_read()
2671 debug->len = lpfc_debugfs_nvmestat_data(vport, debug->buffer, in lpfc_debugfs_nvmestat_open()
2759 debug->len = lpfc_debugfs_scsistat_data(vport, debug->buffer, in lpfc_debugfs_scsistat_open()
2813 debug->len = lpfc_debugfs_ioktime_data(vport, debug->buffer, in lpfc_debugfs_ioktime_open()
2940 debug->len = lpfc_debugfs_nvmeio_trc_data(phba, debug->buffer, in lpfc_debugfs_nvmeio_trc_open()
3045 debug->len = lpfc_debugfs_hdwqstat_data(vport, debug->buffer, in lpfc_debugfs_hdwqstat_open()
3298 int offset_label, offset, len = 0, index = LPFC_PCI_CFG_RD_SIZE; in lpfc_idiag_pcicfg_read() local
3332 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3337 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3342 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3349 len = 0; in lpfc_idiag_pcicfg_read()
3352 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_pcicfg_read()
3361 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3365 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3369 len += scnprintf(pbuffer+len, in lpfc_idiag_pcicfg_read()
3370 LPFC_PCI_CFG_SIZE-len, "\n"); in lpfc_idiag_pcicfg_read()
3375 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3379 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3392 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_pcicfg_read()
3593 int offset_label, offset, offset_run, len = 0, index; in lpfc_idiag_baracc_read() local
3650 len += scnprintf(pbuffer+len, LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3655 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_baracc_read()
3664 len += scnprintf(pbuffer+len, LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3669 len += scnprintf(pbuffer+len, LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3674 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3675 LPFC_PCI_BAR_RD_BUF_SIZE-len, "\n"); in lpfc_idiag_baracc_read()
3681 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3682 LPFC_PCI_BAR_RD_BUF_SIZE-len, "\n"); in lpfc_idiag_baracc_read()
3688 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3689 LPFC_PCI_BAR_RD_BUF_SIZE-len, "\n"); in lpfc_idiag_baracc_read()
3692 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3693 LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3716 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_baracc_read()
3860 char *pbuffer, int len) in __lpfc_idiag_print_wq() argument
3863 return len; in __lpfc_idiag_print_wq()
3865 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_wq()
3867 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_wq()
3871 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_wq()
3877 len += scnprintf(pbuffer + len, in __lpfc_idiag_print_wq()
3878 LPFC_QUE_INFO_GET_BUF_SIZE - len, "\n"); in __lpfc_idiag_print_wq()
3879 return len; in __lpfc_idiag_print_wq()
3884 int *len, int max_cnt, int cq_id) in lpfc_idiag_wqs_for_cq() argument
3893 *len = __lpfc_idiag_print_wq(qp, wqtype, pbuffer, *len); in lpfc_idiag_wqs_for_cq()
3894 if (*len >= max_cnt) in lpfc_idiag_wqs_for_cq()
3902 char *pbuffer, int len) in __lpfc_idiag_print_cq() argument
3905 return len; in __lpfc_idiag_print_cq()
3907 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3909 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3914 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3921 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3924 return len; in __lpfc_idiag_print_cq()
3929 char *rqtype, char *pbuffer, int len) in __lpfc_idiag_print_rqpair() argument
3932 return len; in __lpfc_idiag_print_rqpair()
3934 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3936 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3941 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3946 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3952 return len; in __lpfc_idiag_print_rqpair()
3957 int *len, int max_cnt, int eqidx, int eq_id) in lpfc_idiag_cqs_for_eq() argument
3964 *len = __lpfc_idiag_print_cq(qp, "IO", pbuffer, *len); in lpfc_idiag_cqs_for_eq()
3969 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
3972 rc = lpfc_idiag_wqs_for_cq(phba, "IO", pbuffer, len, in lpfc_idiag_cqs_for_eq()
3980 *len = __lpfc_idiag_print_cq(qp, "NVMET CQset", pbuffer, *len); in lpfc_idiag_cqs_for_eq()
3985 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
3990 *len = __lpfc_idiag_print_rqpair(qp, in lpfc_idiag_cqs_for_eq()
3992 "NVMET MRQ", pbuffer, *len); in lpfc_idiag_cqs_for_eq()
3994 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
4003 char *pbuffer, int len) in __lpfc_idiag_print_eq() argument
4006 return len; in __lpfc_idiag_print_eq()
4008 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_eq()
4013 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_eq()
4019 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_eq()
4022 return len; in __lpfc_idiag_print_eq()
4050 int max_cnt, rc, x, len = 0; in lpfc_idiag_queinfo_read() local
4073 len += scnprintf(pbuffer + len, in lpfc_idiag_queinfo_read()
4074 LPFC_QUE_INFO_GET_BUF_SIZE - len, in lpfc_idiag_queinfo_read()
4083 len = __lpfc_idiag_print_eq(qp, "HBA", pbuffer, len); in lpfc_idiag_queinfo_read()
4088 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4092 rc = lpfc_idiag_cqs_for_eq(phba, pbuffer, &len, in lpfc_idiag_queinfo_read()
4103 len = __lpfc_idiag_print_cq(qp, "MBX", pbuffer, len); in lpfc_idiag_queinfo_read()
4104 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4109 len = __lpfc_idiag_print_wq(qp, "MBX", pbuffer, len); in lpfc_idiag_queinfo_read()
4110 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4115 len = __lpfc_idiag_print_cq(qp, "ELS", pbuffer, len); in lpfc_idiag_queinfo_read()
4119 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4124 len = __lpfc_idiag_print_wq(qp, "ELS", pbuffer, len); in lpfc_idiag_queinfo_read()
4125 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4129 len = __lpfc_idiag_print_rqpair(qp, phba->sli4_hba.dat_rq, in lpfc_idiag_queinfo_read()
4130 "ELS RQpair", pbuffer, len); in lpfc_idiag_queinfo_read()
4131 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4136 len = __lpfc_idiag_print_cq(qp, "NVME LS", in lpfc_idiag_queinfo_read()
4137 pbuffer, len); in lpfc_idiag_queinfo_read()
4141 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4146 len = __lpfc_idiag_print_wq(qp, "NVME LS", in lpfc_idiag_queinfo_read()
4147 pbuffer, len); in lpfc_idiag_queinfo_read()
4148 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4155 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queinfo_read()
4158 len += scnprintf(pbuffer + len, in lpfc_idiag_queinfo_read()
4159 LPFC_QUE_INFO_GET_BUF_SIZE - len, "Truncated ...\n"); in lpfc_idiag_queinfo_read()
4162 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queinfo_read()
4192 * @len: Length of the buffer.
4205 lpfc_idiag_queacc_read_qe(char *pbuffer, int len, struct lpfc_queue *pque, in lpfc_idiag_queacc_read_qe() argument
4215 len += scnprintf(pbuffer+len, LPFC_QUE_ACC_BUF_SIZE-len, in lpfc_idiag_queacc_read_qe()
4221 len += scnprintf(pbuffer+len, LPFC_QUE_ACC_BUF_SIZE-len, in lpfc_idiag_queacc_read_qe()
4227 len += scnprintf(pbuffer+len, in lpfc_idiag_queacc_read_qe()
4228 LPFC_QUE_ACC_BUF_SIZE-len, "\n"); in lpfc_idiag_queacc_read_qe()
4230 len += scnprintf(pbuffer+len, LPFC_QUE_ACC_BUF_SIZE-len, "\n"); in lpfc_idiag_queacc_read_qe()
4232 return len; in lpfc_idiag_queacc_read_qe()
4260 int len = 0; in lpfc_idiag_queacc_read() local
4286 len = lpfc_idiag_queacc_read_qe(pbuffer, len, pque, index); in lpfc_idiag_queacc_read()
4288 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queacc_read()
4296 while (len < LPFC_QUE_ACC_SIZE - pque->entry_size) { in lpfc_idiag_queacc_read()
4297 len = lpfc_idiag_queacc_read_qe(pbuffer, len, pque, index); in lpfc_idiag_queacc_read()
4308 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queacc_read()
4558 * @len: The length of bytes to copied.
4570 int len, uint32_t drbregid) in lpfc_idiag_drbacc_read_reg() argument
4578 len += scnprintf(pbuffer + len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4583 len += scnprintf(pbuffer + len, LPFC_DRB_ACC_BUF_SIZE - len, in lpfc_idiag_drbacc_read_reg()
4588 len += scnprintf(pbuffer+len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4593 len += scnprintf(pbuffer+len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4598 len += scnprintf(pbuffer+len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4606 return len; in lpfc_idiag_drbacc_read_reg()
4634 int len = 0; in lpfc_idiag_drbacc_read() local
4655 len = lpfc_idiag_drbacc_read_reg(phba, in lpfc_idiag_drbacc_read()
4656 pbuffer, len, i); in lpfc_idiag_drbacc_read()
4658 len = lpfc_idiag_drbacc_read_reg(phba, in lpfc_idiag_drbacc_read()
4659 pbuffer, len, drb_reg_id); in lpfc_idiag_drbacc_read()
4661 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_drbacc_read()
4768 * @len: The length of bytes to copied.
4780 int len, uint32_t ctlregid) in lpfc_idiag_ctlacc_read_reg() argument
4788 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4794 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4800 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4806 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4812 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4818 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4826 return len; in lpfc_idiag_ctlacc_read_reg()
4852 int len = 0; in lpfc_idiag_ctlacc_read() local
4873 len = lpfc_idiag_ctlacc_read_reg(phba, in lpfc_idiag_ctlacc_read()
4874 pbuffer, len, i); in lpfc_idiag_ctlacc_read()
4876 len = lpfc_idiag_ctlacc_read_reg(phba, in lpfc_idiag_ctlacc_read()
4877 pbuffer, len, ctl_reg_id); in lpfc_idiag_ctlacc_read()
4879 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_ctlacc_read()
5004 int len = 0; in lpfc_idiag_mbxacc_get_setup() local
5011 len += scnprintf(pbuffer+len, LPFC_MBX_ACC_BUF_SIZE-len, in lpfc_idiag_mbxacc_get_setup()
5013 len += scnprintf(pbuffer+len, LPFC_MBX_ACC_BUF_SIZE-len, in lpfc_idiag_mbxacc_get_setup()
5015 len += scnprintf(pbuffer+len, LPFC_MBX_ACC_BUF_SIZE-len, in lpfc_idiag_mbxacc_get_setup()
5017 len += scnprintf(pbuffer+len, LPFC_MBX_ACC_BUF_SIZE-len, in lpfc_idiag_mbxacc_get_setup()
5020 return len; in lpfc_idiag_mbxacc_get_setup()
5045 int len = 0; in lpfc_idiag_mbxacc_read() local
5063 len = lpfc_idiag_mbxacc_get_setup(phba, pbuffer); in lpfc_idiag_mbxacc_read()
5065 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_mbxacc_read()
5153 * @len: length into the internal buffer data has been copied.
5162 lpfc_idiag_extacc_avail_get(struct lpfc_hba *phba, char *pbuffer, int len) in lpfc_idiag_extacc_avail_get() argument
5166 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5169 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5173 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5176 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5180 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5183 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5187 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5190 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5194 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5197 return len; in lpfc_idiag_extacc_avail_get()
5204 * @len: length into the internal buffer data has been copied.
5213 lpfc_idiag_extacc_alloc_get(struct lpfc_hba *phba, char *pbuffer, int len) in lpfc_idiag_extacc_alloc_get() argument
5218 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5221 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5226 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5230 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5233 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5238 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5242 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5245 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5250 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5254 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5257 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5262 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5266 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5269 return len; in lpfc_idiag_extacc_alloc_get()
5276 * @len: length into the internal buffer data has been copied.
5285 lpfc_idiag_extacc_drivr_get(struct lpfc_hba *phba, char *pbuffer, int len) in lpfc_idiag_extacc_drivr_get() argument
5290 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5293 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5297 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5303 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5308 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5315 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5320 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5327 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5332 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5339 return len; in lpfc_idiag_extacc_drivr_get()
5411 int len = 0; in lpfc_idiag_extacc_read() local
5428 len = lpfc_idiag_extacc_avail_get(phba, pbuffer, len); in lpfc_idiag_extacc_read()
5430 len = lpfc_idiag_extacc_alloc_get(phba, pbuffer, len); in lpfc_idiag_extacc_read()
5432 len = lpfc_idiag_extacc_drivr_get(phba, pbuffer, len); in lpfc_idiag_extacc_read()
5434 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_extacc_read()
5469 int cnt, len = 0; in lpfc_cgn_buffer_read() local
5472 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5477 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5481 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5486 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5489 if (len > (LPFC_CGN_BUF_SIZE - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_cgn_buffer_read()
5490 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5494 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5503 if (len > (LPFC_CGN_BUF_SIZE - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_cgn_buffer_read()
5504 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5508 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5511 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5515 return simple_read_from_buffer(buf, nbytes, ppos, buffer, len); in lpfc_cgn_buffer_read()
5849 int len = 0; in lpfc_idiag_mbxacc_dump_bsg_mbox() local
5910 len = 0; in lpfc_idiag_mbxacc_dump_bsg_mbox()
5911 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_bsg_mbox()
5912 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_bsg_mbox()
5915 len += scnprintf(line_buf+len, LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_bsg_mbox()
5945 int len = 0; in lpfc_idiag_mbxacc_dump_issue_mbox() local
5976 len = 0; in lpfc_idiag_mbxacc_dump_issue_mbox()
5978 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
5979 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
5982 len += scnprintf(line_buf+len, LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
5999 len = 0; in lpfc_idiag_mbxacc_dump_issue_mbox()
6001 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6002 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6006 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6007 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6012 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6013 LPFC_MBX_ACC_LBUF_SZ-len, " "); in lpfc_idiag_mbxacc_dump_issue_mbox()