Lines Matching refs: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()
951 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
955 len += scnprintf(buf + len, size - len, "\tRport List:\n"); in lpfc_debugfs_nodelist_data()
982 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
985 len += scnprintf(buf + len, size - len, "WWPN x%llx ", in lpfc_debugfs_nodelist_data()
987 len += scnprintf(buf + len, size - len, "WWNN x%llx ", in lpfc_debugfs_nodelist_data()
992 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
995 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
998 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
1003 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nodelist_data()
1007 len += scnprintf(buf + len, size - len, "\n"); in lpfc_debugfs_nodelist_data()
1012 return len; in lpfc_debugfs_nodelist_data()
1040 int len = 0; in lpfc_debugfs_nvmestat_data() local
1044 return len; in lpfc_debugfs_nvmestat_data()
1046 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1049 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1056 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1062 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1068 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1074 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1084 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1090 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1098 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1104 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1110 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1115 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1122 len += scnprintf(buf + len, size - len, "\n"); in lpfc_debugfs_nvmestat_data()
1133 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1139 if (len >= (size - LPFC_DEBUG_OUT_LINE_SZ)) in lpfc_debugfs_nvmestat_data()
1141 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1155 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1164 return len; in lpfc_debugfs_nvmestat_data()
1168 return len; in lpfc_debugfs_nvmestat_data()
1171 return len; in lpfc_debugfs_nvmestat_data()
1173 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1176 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1196 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_nvmestat_data()
1200 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_nvmestat_data()
1204 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_nvmestat_data()
1209 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1217 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1227 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmestat_data()
1234 return len; in lpfc_debugfs_nvmestat_data()
1253 int len; in lpfc_debugfs_scsistat_data() local
1293 len = strnlen(buf, size); in lpfc_debugfs_scsistat_data()
1295 return len; in lpfc_debugfs_scsistat_data()
1395 int len = 0; in lpfc_debugfs_ioktime_data() local
1399 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1404 return len; in lpfc_debugfs_ioktime_data()
1406 len += scnprintf( in lpfc_debugfs_ioktime_data()
1407 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1410 len += scnprintf( in lpfc_debugfs_ioktime_data()
1411 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1417 len += scnprintf( in lpfc_debugfs_ioktime_data()
1418 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1421 len += scnprintf( in lpfc_debugfs_ioktime_data()
1422 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1428 len += scnprintf( in lpfc_debugfs_ioktime_data()
1429 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1432 len += scnprintf( in lpfc_debugfs_ioktime_data()
1433 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1439 len += scnprintf( in lpfc_debugfs_ioktime_data()
1440 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1443 len += scnprintf( in lpfc_debugfs_ioktime_data()
1444 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1450 len += scnprintf( in lpfc_debugfs_ioktime_data()
1451 buf + len, PAGE_SIZE - len, in lpfc_debugfs_ioktime_data()
1458 return len; in lpfc_debugfs_ioktime_data()
1462 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1468 return len; in lpfc_debugfs_ioktime_data()
1470 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1473 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1479 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1482 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1488 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1491 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1497 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1500 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1506 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1509 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1517 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1520 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1527 return len; in lpfc_debugfs_ioktime_data()
1530 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1533 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1539 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1542 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1548 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1551 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1557 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1560 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1566 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1569 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_debugfs_ioktime_data()
1575 return len; in lpfc_debugfs_ioktime_data()
1596 int len = 0; in lpfc_debugfs_nvmeio_trc_data() local
1604 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1611 return len; in lpfc_debugfs_nvmeio_trc_data()
1626 len += scnprintf(buf + len, size - len, dtp->fmt, in lpfc_debugfs_nvmeio_trc_data()
1631 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1636 if (len >= (size - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_debugfs_nvmeio_trc_data()
1637 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1655 len += scnprintf(buf + len, size - len, dtp->fmt, in lpfc_debugfs_nvmeio_trc_data()
1660 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1665 if (len >= (size - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_debugfs_nvmeio_trc_data()
1666 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1674 len += scnprintf(buf + len, size - len, in lpfc_debugfs_nvmeio_trc_data()
1677 return len; in lpfc_debugfs_nvmeio_trc_data()
1698 int i, j, len; in lpfc_debugfs_hdwqstat_data() local
1798 len = strnlen(buf, size); in lpfc_debugfs_hdwqstat_data()
1799 return len; in lpfc_debugfs_hdwqstat_data()
1963 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size); in lpfc_debugfs_disc_trc_open()
2013 debug->len = lpfc_debugfs_slow_ring_trc_data(phba, debug->buffer, size); in lpfc_debugfs_slow_ring_trc_open()
2054 debug->len = lpfc_debugfs_hbqinfo_data(phba, debug->buffer, in lpfc_debugfs_hbqinfo_open()
2096 debug->len = lpfc_debugfs_multixripools_data( in lpfc_debugfs_multixripools_open()
2141 debug->len = lpfc_debugfs_lockstat_data(phba, debug->buffer, in lpfc_debugfs_lockstat_open()
2275 debug->len = lpfc_debugfs_ras_log_data(phba, debug->buffer, size); in lpfc_debugfs_ras_log_open()
2276 if (debug->len < 0) { in lpfc_debugfs_ras_log_open()
2325 debug->len = lpfc_debugfs_dumpHBASlim_data(phba, debug->buffer, in lpfc_debugfs_dumpHBASlim_open()
2367 debug->len = lpfc_debugfs_dumpHostSlim_data(phba, debug->buffer, in lpfc_debugfs_dumpHostSlim_open()
2507 debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer, in lpfc_debugfs_nodelist_open()
2537 return fixed_size_llseek(file, off, whence, debug->len); in lpfc_debugfs_lseek()
2563 debug->len); in lpfc_debugfs_read()
2673 debug->len = lpfc_debugfs_nvmestat_data(vport, debug->buffer, in lpfc_debugfs_nvmestat_open()
2761 debug->len = lpfc_debugfs_scsistat_data(vport, debug->buffer, in lpfc_debugfs_scsistat_open()
2815 debug->len = lpfc_debugfs_ioktime_data(vport, debug->buffer, in lpfc_debugfs_ioktime_open()
2942 debug->len = lpfc_debugfs_nvmeio_trc_data(phba, debug->buffer, in lpfc_debugfs_nvmeio_trc_open()
3047 debug->len = lpfc_debugfs_hdwqstat_data(vport, debug->buffer, in lpfc_debugfs_hdwqstat_open()
3300 int offset_label, offset, len = 0, index = LPFC_PCI_CFG_RD_SIZE; in lpfc_idiag_pcicfg_read() local
3334 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3339 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3344 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3351 len = 0; in lpfc_idiag_pcicfg_read()
3354 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_pcicfg_read()
3363 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3367 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3371 len += scnprintf(pbuffer+len, in lpfc_idiag_pcicfg_read()
3372 LPFC_PCI_CFG_SIZE-len, "\n"); in lpfc_idiag_pcicfg_read()
3377 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3381 len += scnprintf(pbuffer+len, LPFC_PCI_CFG_SIZE-len, in lpfc_idiag_pcicfg_read()
3394 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_pcicfg_read()
3595 int offset_label, offset, offset_run, len = 0, index; in lpfc_idiag_baracc_read() local
3652 len += scnprintf(pbuffer+len, LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3657 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_baracc_read()
3666 len += scnprintf(pbuffer+len, LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3671 len += scnprintf(pbuffer+len, LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3676 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3677 LPFC_PCI_BAR_RD_BUF_SIZE-len, "\n"); in lpfc_idiag_baracc_read()
3683 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3684 LPFC_PCI_BAR_RD_BUF_SIZE-len, "\n"); in lpfc_idiag_baracc_read()
3690 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3691 LPFC_PCI_BAR_RD_BUF_SIZE-len, "\n"); in lpfc_idiag_baracc_read()
3694 len += scnprintf(pbuffer+len, in lpfc_idiag_baracc_read()
3695 LPFC_PCI_BAR_RD_BUF_SIZE-len, in lpfc_idiag_baracc_read()
3718 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_baracc_read()
3862 char *pbuffer, int len) in __lpfc_idiag_print_wq() argument
3865 return len; in __lpfc_idiag_print_wq()
3867 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_wq()
3869 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_wq()
3873 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_wq()
3879 len += scnprintf(pbuffer + len, in __lpfc_idiag_print_wq()
3880 LPFC_QUE_INFO_GET_BUF_SIZE - len, "\n"); in __lpfc_idiag_print_wq()
3881 return len; in __lpfc_idiag_print_wq()
3886 int *len, int max_cnt, int cq_id) in lpfc_idiag_wqs_for_cq() argument
3895 *len = __lpfc_idiag_print_wq(qp, wqtype, pbuffer, *len); in lpfc_idiag_wqs_for_cq()
3896 if (*len >= max_cnt) in lpfc_idiag_wqs_for_cq()
3904 char *pbuffer, int len) in __lpfc_idiag_print_cq() argument
3907 return len; in __lpfc_idiag_print_cq()
3909 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3911 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3916 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3923 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_cq()
3926 return len; in __lpfc_idiag_print_cq()
3931 char *rqtype, char *pbuffer, int len) in __lpfc_idiag_print_rqpair() argument
3934 return len; in __lpfc_idiag_print_rqpair()
3936 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3938 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3943 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3948 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_rqpair()
3954 return len; in __lpfc_idiag_print_rqpair()
3959 int *len, int max_cnt, int eqidx, int eq_id) in lpfc_idiag_cqs_for_eq() argument
3966 *len = __lpfc_idiag_print_cq(qp, "IO", pbuffer, *len); in lpfc_idiag_cqs_for_eq()
3971 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
3974 rc = lpfc_idiag_wqs_for_cq(phba, "IO", pbuffer, len, in lpfc_idiag_cqs_for_eq()
3982 *len = __lpfc_idiag_print_cq(qp, "NVMET CQset", pbuffer, *len); in lpfc_idiag_cqs_for_eq()
3987 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
3992 *len = __lpfc_idiag_print_rqpair(qp, in lpfc_idiag_cqs_for_eq()
3994 "NVMET MRQ", pbuffer, *len); in lpfc_idiag_cqs_for_eq()
3996 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
4005 char *pbuffer, int len) in __lpfc_idiag_print_eq() argument
4008 return len; in __lpfc_idiag_print_eq()
4010 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_eq()
4015 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_eq()
4021 len += scnprintf(pbuffer + len, LPFC_QUE_INFO_GET_BUF_SIZE - len, in __lpfc_idiag_print_eq()
4024 return len; in __lpfc_idiag_print_eq()
4052 int max_cnt, rc, x, len = 0; in lpfc_idiag_queinfo_read() local
4075 len += scnprintf(pbuffer + len, in lpfc_idiag_queinfo_read()
4076 LPFC_QUE_INFO_GET_BUF_SIZE - len, in lpfc_idiag_queinfo_read()
4085 len = __lpfc_idiag_print_eq(qp, "HBA", pbuffer, len); in lpfc_idiag_queinfo_read()
4090 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4094 rc = lpfc_idiag_cqs_for_eq(phba, pbuffer, &len, in lpfc_idiag_queinfo_read()
4105 len = __lpfc_idiag_print_cq(qp, "MBX", pbuffer, len); in lpfc_idiag_queinfo_read()
4106 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4111 len = __lpfc_idiag_print_wq(qp, "MBX", pbuffer, len); in lpfc_idiag_queinfo_read()
4112 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4117 len = __lpfc_idiag_print_cq(qp, "ELS", pbuffer, len); in lpfc_idiag_queinfo_read()
4121 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4126 len = __lpfc_idiag_print_wq(qp, "ELS", pbuffer, len); in lpfc_idiag_queinfo_read()
4127 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4131 len = __lpfc_idiag_print_rqpair(qp, phba->sli4_hba.dat_rq, in lpfc_idiag_queinfo_read()
4132 "ELS RQpair", pbuffer, len); in lpfc_idiag_queinfo_read()
4133 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4138 len = __lpfc_idiag_print_cq(qp, "NVME LS", in lpfc_idiag_queinfo_read()
4139 pbuffer, len); in lpfc_idiag_queinfo_read()
4143 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4148 len = __lpfc_idiag_print_wq(qp, "NVME LS", in lpfc_idiag_queinfo_read()
4149 pbuffer, len); in lpfc_idiag_queinfo_read()
4150 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
4157 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queinfo_read()
4160 len += scnprintf(pbuffer + len, in lpfc_idiag_queinfo_read()
4161 LPFC_QUE_INFO_GET_BUF_SIZE - len, "Truncated ...\n"); in lpfc_idiag_queinfo_read()
4164 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queinfo_read()
4207 lpfc_idiag_queacc_read_qe(char *pbuffer, int len, struct lpfc_queue *pque, in lpfc_idiag_queacc_read_qe() argument
4217 len += scnprintf(pbuffer+len, LPFC_QUE_ACC_BUF_SIZE-len, in lpfc_idiag_queacc_read_qe()
4223 len += scnprintf(pbuffer+len, LPFC_QUE_ACC_BUF_SIZE-len, in lpfc_idiag_queacc_read_qe()
4229 len += scnprintf(pbuffer+len, in lpfc_idiag_queacc_read_qe()
4230 LPFC_QUE_ACC_BUF_SIZE-len, "\n"); in lpfc_idiag_queacc_read_qe()
4232 len += scnprintf(pbuffer+len, LPFC_QUE_ACC_BUF_SIZE-len, "\n"); in lpfc_idiag_queacc_read_qe()
4234 return len; in lpfc_idiag_queacc_read_qe()
4262 int len = 0; in lpfc_idiag_queacc_read() local
4288 len = lpfc_idiag_queacc_read_qe(pbuffer, len, pque, index); in lpfc_idiag_queacc_read()
4290 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queacc_read()
4298 while (len < LPFC_QUE_ACC_SIZE - pque->entry_size) { in lpfc_idiag_queacc_read()
4299 len = lpfc_idiag_queacc_read_qe(pbuffer, len, pque, index); in lpfc_idiag_queacc_read()
4310 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_queacc_read()
4572 int len, uint32_t drbregid) in lpfc_idiag_drbacc_read_reg() argument
4580 len += scnprintf(pbuffer + len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4585 len += scnprintf(pbuffer + len, LPFC_DRB_ACC_BUF_SIZE - len, in lpfc_idiag_drbacc_read_reg()
4590 len += scnprintf(pbuffer+len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4595 len += scnprintf(pbuffer+len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4600 len += scnprintf(pbuffer+len, LPFC_DRB_ACC_BUF_SIZE-len, in lpfc_idiag_drbacc_read_reg()
4608 return len; in lpfc_idiag_drbacc_read_reg()
4636 int len = 0; in lpfc_idiag_drbacc_read() local
4657 len = lpfc_idiag_drbacc_read_reg(phba, in lpfc_idiag_drbacc_read()
4658 pbuffer, len, i); in lpfc_idiag_drbacc_read()
4660 len = lpfc_idiag_drbacc_read_reg(phba, in lpfc_idiag_drbacc_read()
4661 pbuffer, len, drb_reg_id); in lpfc_idiag_drbacc_read()
4663 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_drbacc_read()
4782 int len, uint32_t ctlregid) in lpfc_idiag_ctlacc_read_reg() argument
4790 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4796 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4802 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4808 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4814 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4820 len += scnprintf(pbuffer+len, LPFC_CTL_ACC_BUF_SIZE-len, in lpfc_idiag_ctlacc_read_reg()
4828 return len; in lpfc_idiag_ctlacc_read_reg()
4854 int len = 0; in lpfc_idiag_ctlacc_read() local
4875 len = lpfc_idiag_ctlacc_read_reg(phba, in lpfc_idiag_ctlacc_read()
4876 pbuffer, len, i); in lpfc_idiag_ctlacc_read()
4878 len = lpfc_idiag_ctlacc_read_reg(phba, in lpfc_idiag_ctlacc_read()
4879 pbuffer, len, ctl_reg_id); in lpfc_idiag_ctlacc_read()
4881 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_ctlacc_read()
5006 int len = 0; in lpfc_idiag_mbxacc_get_setup() local
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()
5019 len += scnprintf(pbuffer+len, LPFC_MBX_ACC_BUF_SIZE-len, in lpfc_idiag_mbxacc_get_setup()
5022 return len; in lpfc_idiag_mbxacc_get_setup()
5047 int len = 0; in lpfc_idiag_mbxacc_read() local
5065 len = lpfc_idiag_mbxacc_get_setup(phba, pbuffer); in lpfc_idiag_mbxacc_read()
5067 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_mbxacc_read()
5164 lpfc_idiag_extacc_avail_get(struct lpfc_hba *phba, char *pbuffer, int len) in lpfc_idiag_extacc_avail_get() argument
5168 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5171 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5175 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5178 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5182 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5185 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5189 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5192 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5196 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_avail_get()
5199 return len; in lpfc_idiag_extacc_avail_get()
5215 lpfc_idiag_extacc_alloc_get(struct lpfc_hba *phba, char *pbuffer, int len) in lpfc_idiag_extacc_alloc_get() argument
5220 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5223 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5228 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5232 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5235 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5240 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5244 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5247 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5252 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5256 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5259 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5264 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5268 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_alloc_get()
5271 return len; in lpfc_idiag_extacc_alloc_get()
5287 lpfc_idiag_extacc_drivr_get(struct lpfc_hba *phba, char *pbuffer, int len) in lpfc_idiag_extacc_drivr_get() argument
5292 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5295 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5299 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5305 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5310 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5317 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5322 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5329 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5334 len += scnprintf(pbuffer+len, LPFC_EXT_ACC_BUF_SIZE-len, in lpfc_idiag_extacc_drivr_get()
5341 return len; in lpfc_idiag_extacc_drivr_get()
5413 int len = 0; in lpfc_idiag_extacc_read() local
5430 len = lpfc_idiag_extacc_avail_get(phba, pbuffer, len); in lpfc_idiag_extacc_read()
5432 len = lpfc_idiag_extacc_alloc_get(phba, pbuffer, len); in lpfc_idiag_extacc_read()
5434 len = lpfc_idiag_extacc_drivr_get(phba, pbuffer, len); in lpfc_idiag_extacc_read()
5436 return simple_read_from_buffer(buf, nbytes, ppos, pbuffer, len); in lpfc_idiag_extacc_read()
5471 int cnt, len = 0; in lpfc_cgn_buffer_read() local
5474 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5479 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5483 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5488 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5491 if (len > (LPFC_CGN_BUF_SIZE - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_cgn_buffer_read()
5492 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5496 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5505 if (len > (LPFC_CGN_BUF_SIZE - LPFC_DEBUG_OUT_LINE_SZ)) { in lpfc_cgn_buffer_read()
5506 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5510 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5513 len += scnprintf(buffer + len, LPFC_CGN_BUF_SIZE - len, in lpfc_cgn_buffer_read()
5517 return simple_read_from_buffer(buf, nbytes, ppos, buffer, len); in lpfc_cgn_buffer_read()
5851 int len = 0; in lpfc_idiag_mbxacc_dump_bsg_mbox() local
5912 len = 0; in lpfc_idiag_mbxacc_dump_bsg_mbox()
5913 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_bsg_mbox()
5914 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_bsg_mbox()
5917 len += scnprintf(line_buf+len, LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_bsg_mbox()
5947 int len = 0; in lpfc_idiag_mbxacc_dump_issue_mbox() local
5978 len = 0; in lpfc_idiag_mbxacc_dump_issue_mbox()
5980 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
5981 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
5984 len += scnprintf(line_buf+len, LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6001 len = 0; in lpfc_idiag_mbxacc_dump_issue_mbox()
6003 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6004 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6008 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6009 LPFC_MBX_ACC_LBUF_SZ-len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6014 len += scnprintf(line_buf+len, in lpfc_idiag_mbxacc_dump_issue_mbox()
6015 LPFC_MBX_ACC_LBUF_SZ-len, " "); in lpfc_idiag_mbxacc_dump_issue_mbox()