Lines Matching refs:PAGE_SIZE

141 	if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE)  in lpfc_cmf_info_show()
161 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
182 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
199 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
220 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
237 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
254 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
269 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
278 strlcat(buf, tmp, PAGE_SIZE); in lpfc_cmf_info_show()
281 len = strnlen(buf, PAGE_SIZE); in lpfc_cmf_info_show()
283 if (unlikely(len >= (PAGE_SIZE - 1))) { in lpfc_cmf_info_show()
287 PAGE_SIZE); in lpfc_cmf_info_show()
288 strscpy(buf + PAGE_SIZE - 1 - sizeof(LPFC_INFO_MORE_STR), in lpfc_cmf_info_show()
306 return scnprintf(buf, PAGE_SIZE, LPFC_MODULE_DESC "\n"); in lpfc_drvr_version_show()
326 return scnprintf(buf, PAGE_SIZE, "1\n"); in lpfc_enable_fip_show()
328 return scnprintf(buf, PAGE_SIZE, "0\n"); in lpfc_enable_fip_show()
353 len = scnprintf(buf, PAGE_SIZE, "NVME Disabled\n"); in lpfc_nvme_info_show()
358 len = scnprintf(buf, PAGE_SIZE, in lpfc_nvme_info_show()
371 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
381 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
384 if (strlcat(buf, "\nNVME Target: Statistics\n", PAGE_SIZE) in lpfc_nvme_info_show()
385 >= PAGE_SIZE) in lpfc_nvme_info_show()
394 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
403 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
412 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
420 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
430 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
439 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
451 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
459 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
467 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
474 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
483 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
491 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
506 strlcat(buf, tmp, PAGE_SIZE); in lpfc_nvme_info_show()
512 len = scnprintf(buf, PAGE_SIZE, in lpfc_nvme_info_show()
518 if (strlcat(buf, "\nNVME Initiator Enabled\n", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
527 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
543 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
572 if (strlcat(buf, "NVME RPORT ", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
575 if (strlcat(buf, " ", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
581 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
586 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
591 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
596 if (strlcat(buf, "INITIATOR ", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
600 if (strlcat(buf, "TARGET ", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
604 if (strlcat(buf, "DISCSRVC ", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
612 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
617 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
625 if (strlcat(buf, "\nNVME Statistics\n", PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
633 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
641 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
659 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
671 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
678 strlcat(buf, tmp, PAGE_SIZE); in lpfc_nvme_info_show()
687 len = strnlen(buf, PAGE_SIZE); in lpfc_nvme_info_show()
689 if (unlikely(len >= (PAGE_SIZE - 1))) { in lpfc_nvme_info_show()
693 PAGE_SIZE); in lpfc_nvme_info_show()
694 strscpy(buf + PAGE_SIZE - 1 - sizeof(LPFC_INFO_MORE_STR), in lpfc_nvme_info_show()
720 scnprintf(buf, PAGE_SIZE, "SCSI HDWQ Statistics\n"); in lpfc_scsi_stat_show()
735 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_scsi_stat_show()
740 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_scsi_stat_show()
745 strlcat(buf, tmp, PAGE_SIZE); in lpfc_scsi_stat_show()
748 len = strnlen(buf, PAGE_SIZE); in lpfc_scsi_stat_show()
763 return scnprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
766 return scnprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
769 return scnprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
781 return scnprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_guard_err_show()
793 return scnprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_apptag_err_show()
805 return scnprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_reftag_err_show()
823 return scnprintf(buf, PAGE_SIZE, "%s\n", lpfc_info(host)); in lpfc_info_show()
842 return scnprintf(buf, PAGE_SIZE, "%s\n", phba->SerialNumber); in lpfc_serialnum_show()
864 return scnprintf(buf, PAGE_SIZE, "%d\n", phba->temp_sensor_support); in lpfc_temp_sensor_show()
883 return scnprintf(buf, PAGE_SIZE, "%s\n", phba->ModelDesc); in lpfc_modeldesc_show()
902 return scnprintf(buf, PAGE_SIZE, "%s\n", phba->ModelName); in lpfc_modelname_show()
921 return scnprintf(buf, PAGE_SIZE, "%s\n", phba->ProgramType); in lpfc_programtype_show()
940 return scnprintf(buf, PAGE_SIZE, "%s\n", phba->Port); in lpfc_vportnum_show()
968 len = scnprintf(buf, PAGE_SIZE, "%s, sli-%d\n", in lpfc_fwrev_show()
971 len = scnprintf(buf, PAGE_SIZE, "%s, sli-%d:%d:%x\n", in lpfc_fwrev_show()
995 return scnprintf(buf, PAGE_SIZE, "%s %08x %08x\n", hdw, in lpfc_hdw_show()
1017 return scnprintf(buf, PAGE_SIZE, "%s\n", in lpfc_option_rom_version_show()
1021 return scnprintf(buf, PAGE_SIZE, "%s\n", fwrev); in lpfc_option_rom_version_show()
1052 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
1055 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
1061 len += scnprintf(buf + len, PAGE_SIZE-len, "Link Up - "); in lpfc_link_state_show()
1065 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
1075 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1079 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1084 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1089 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1095 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
1098 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
1107 PAGE_SIZE - len, in lpfc_link_state_show()
1111 PAGE_SIZE - len, in lpfc_link_state_show()
1114 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
1127 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1134 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1141 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1148 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
1176 return scnprintf(buf, PAGE_SIZE, "fc\n"); in lpfc_sli4_protocol_show()
1180 return scnprintf(buf, PAGE_SIZE, "fcoe\n"); in lpfc_sli4_protocol_show()
1182 return scnprintf(buf, PAGE_SIZE, "fc\n"); in lpfc_sli4_protocol_show()
1184 return scnprintf(buf, PAGE_SIZE, "unknown\n"); in lpfc_sli4_protocol_show()
1204 return scnprintf(buf, PAGE_SIZE, "%d\n", in lpfc_oas_supported_show()
1262 return scnprintf(buf, PAGE_SIZE, "%d\n", in lpfc_num_discovered_ports_show()
1818 return scnprintf(buf, PAGE_SIZE, "%d\n", phba->nport_event_cnt); in lpfc_nport_evt_cnt_show()
1904 len = scnprintf(buf, PAGE_SIZE - len, "SFP info NA:\n"); in lpfc_xcvr_data_show()
1910 len = scnprintf(buf, PAGE_SIZE - len, "VendorName:\t%s\n", chbuf); in lpfc_xcvr_data_show()
1911 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_xcvr_data_show()
1917 len += scnprintf(buf + len, PAGE_SIZE - len, "VendorPN:\t%s\n", chbuf); in lpfc_xcvr_data_show()
1919 len += scnprintf(buf + len, PAGE_SIZE - len, "VendorSN:\t%s\n", chbuf); in lpfc_xcvr_data_show()
1921 len += scnprintf(buf + len, PAGE_SIZE - len, "VendorRev:\t%s\n", chbuf); in lpfc_xcvr_data_show()
1923 len += scnprintf(buf + len, PAGE_SIZE - len, "DateCode:\t%s\n", chbuf); in lpfc_xcvr_data_show()
1924 len += scnprintf(buf + len, PAGE_SIZE - len, "Identifier:\t%xh\n", in lpfc_xcvr_data_show()
1926 len += scnprintf(buf + len, PAGE_SIZE - len, "ExtIdentifier:\t%xh\n", in lpfc_xcvr_data_show()
1928 len += scnprintf(buf + len, PAGE_SIZE - len, "Connector:\t%xh\n", in lpfc_xcvr_data_show()
1933 len += scnprintf(buf + len, PAGE_SIZE - len, "Wavelength:\t%d nm\n", in lpfc_xcvr_data_show()
1938 len += scnprintf(buf + len, PAGE_SIZE - len, "Speeds: \t"); in lpfc_xcvr_data_show()
1940 len += scnprintf(buf + len, PAGE_SIZE - len, "Unknown\n"); in lpfc_xcvr_data_show()
1943 len += scnprintf(buf + len, PAGE_SIZE - len, "1 "); in lpfc_xcvr_data_show()
1945 len += scnprintf(buf + len, PAGE_SIZE - len, "2 "); in lpfc_xcvr_data_show()
1947 len += scnprintf(buf + len, PAGE_SIZE - len, "4 "); in lpfc_xcvr_data_show()
1949 len += scnprintf(buf + len, PAGE_SIZE - len, "8 "); in lpfc_xcvr_data_show()
1951 len += scnprintf(buf + len, PAGE_SIZE - len, "16 "); in lpfc_xcvr_data_show()
1953 len += scnprintf(buf + len, PAGE_SIZE - len, "32 "); in lpfc_xcvr_data_show()
1955 len += scnprintf(buf + len, PAGE_SIZE - len, "64 "); in lpfc_xcvr_data_show()
1956 len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n"); in lpfc_xcvr_data_show()
1969 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_xcvr_data_show()
1971 len += scnprintf(buf + len, PAGE_SIZE - len, "Vcc:\t\tx%04x V\n", vcc); in lpfc_xcvr_data_show()
1972 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_xcvr_data_show()
1974 len += scnprintf(buf + len, PAGE_SIZE - len, "TxPower:\tx%04x mW\n", in lpfc_xcvr_data_show()
1976 len += scnprintf(buf + len, PAGE_SIZE - len, "RxPower:\tx%04x mW\n", in lpfc_xcvr_data_show()
2009 return scnprintf(buf, PAGE_SIZE, "%s\n", state); in lpfc_board_mode_show()
2237 return scnprintf(buf, PAGE_SIZE, "%d\n", cnt); in lpfc_max_rpi_show()
2238 return scnprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_max_rpi_show()
2265 return scnprintf(buf, PAGE_SIZE, "%d\n", (cnt - acnt)); in lpfc_used_rpi_show()
2266 return scnprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_used_rpi_show()
2293 return scnprintf(buf, PAGE_SIZE, "%d\n", cnt); in lpfc_max_xri_show()
2294 return scnprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_max_xri_show()
2321 return scnprintf(buf, PAGE_SIZE, "%d\n", (cnt - acnt)); in lpfc_used_xri_show()
2322 return scnprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_used_xri_show()
2349 return scnprintf(buf, PAGE_SIZE, "%d\n", cnt); in lpfc_max_vpi_show()
2350 return scnprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_max_vpi_show()
2377 return scnprintf(buf, PAGE_SIZE, "%d\n", (cnt - acnt)); in lpfc_used_vpi_show()
2378 return scnprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_used_vpi_show()
2403 return scnprintf(buf, PAGE_SIZE, "NPIV Not Supported\n"); in lpfc_npiv_info_show()
2405 return scnprintf(buf, PAGE_SIZE, "NPIV Physical\n"); in lpfc_npiv_info_show()
2406 return scnprintf(buf, PAGE_SIZE, "NPIV Virtual (VPI %d)\n", vport->vpi); in lpfc_npiv_info_show()
2428 return scnprintf(buf, PAGE_SIZE, "%#x\n", phba->cfg_poll); in lpfc_poll_show()
2539 return scnprintf(buf, PAGE_SIZE, "%d\n", max_nr_virtfn); in lpfc_sriov_hw_max_virtfn_show()
2594 return scnprintf(buf, PAGE_SIZE, "%d\n",\
2622 return scnprintf(buf, PAGE_SIZE, "%#x\n",\
2758 return scnprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_##attr);\
2783 return scnprintf(buf, PAGE_SIZE, "%#x\n", vport->cfg_##attr);\
2994 return scnprintf(buf, PAGE_SIZE, "0x%llx\n", in lpfc_oas_tgt_show()
3062 return scnprintf(buf, PAGE_SIZE, "%d\n", phba->cfg_oas_priority); in lpfc_oas_priority_show()
3125 return scnprintf(buf, PAGE_SIZE, "0x%llx\n", in lpfc_oas_vpt_show()
3196 return scnprintf(buf, PAGE_SIZE, "%d\n", phba->cfg_oas_lun_state); in lpfc_oas_lun_state_show()
3260 return scnprintf(buf, PAGE_SIZE, "%d\n", phba->cfg_oas_lun_status); in lpfc_oas_lun_status_show()
3416 len += scnprintf(buf + len, PAGE_SIZE-len, "0x%llx", oas_lun); in lpfc_oas_lun_show()
3550 return scnprintf(buf, PAGE_SIZE, "%d\n", in lpfc_pls_show()
3562 return scnprintf(buf, PAGE_SIZE, "%d\n", in lpfc_pt_show()
3582 return scnprintf(buf, PAGE_SIZE, "%d\n", phba->iocb_max); in lpfc_iocb_hw_show()
3594 return scnprintf(buf, PAGE_SIZE, "%d\n", in lpfc_txq_hw_show()
3608 return scnprintf(buf, PAGE_SIZE, "%d\n", in lpfc_txcmplq_hw_show()
3641 return scnprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_devloss_tmo); in lpfc_nodev_tmo_show()
4994 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
4999 len += scnprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
5013 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_fcp_cpu_map_show()
5019 buf + len, PAGE_SIZE - len, in lpfc_fcp_cpu_map_show()
5028 buf + len, PAGE_SIZE - len, in lpfc_fcp_cpu_map_show()
5039 buf + len, PAGE_SIZE - len, in lpfc_fcp_cpu_map_show()
5050 buf + len, PAGE_SIZE - len, in lpfc_fcp_cpu_map_show()
5066 (len >= (PAGE_SIZE - 64))) { in lpfc_fcp_cpu_map_show()
5068 PAGE_SIZE - len, "more...\n"); in lpfc_fcp_cpu_map_show()
5633 return scnprintf(buf, PAGE_SIZE, "%u\n", phba->cfg_irq_chann); in lpfc_irq_chann_show()
5763 len = scnprintf(buf, PAGE_SIZE, "SGL sz: %d total SGEs: %d\n", in lpfc_sg_seg_cnt_show()
5766 len += scnprintf(buf + len, PAGE_SIZE - len, in lpfc_sg_seg_cnt_show()