Lines Matching refs:snprintf
106 return snprintf(buf, PAGE_SIZE, LPFC_MODULE_DESC "\n"); in lpfc_drvr_version_show()
126 return snprintf(buf, PAGE_SIZE, "1\n"); in lpfc_enable_fip_show()
128 return snprintf(buf, PAGE_SIZE, "0\n"); in lpfc_enable_fip_show()
141 return snprintf(buf, PAGE_SIZE, "BlockGuard Enabled\n"); in lpfc_bg_info_show()
143 return snprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
146 return snprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
158 return snprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_guard_err_show()
170 return snprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_apptag_err_show()
182 return snprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_reftag_err_show()
200 return snprintf(buf, PAGE_SIZE, "%s\n",lpfc_info(host)); in lpfc_info_show()
219 return snprintf(buf, PAGE_SIZE, "%s\n",phba->SerialNumber); in lpfc_serialnum_show()
241 return snprintf(buf, PAGE_SIZE, "%d\n",phba->temp_sensor_support); in lpfc_temp_sensor_show()
260 return snprintf(buf, PAGE_SIZE, "%s\n",phba->ModelDesc); in lpfc_modeldesc_show()
279 return snprintf(buf, PAGE_SIZE, "%s\n",phba->ModelName); in lpfc_modelname_show()
298 return snprintf(buf, PAGE_SIZE, "%s\n",phba->ProgramType); in lpfc_programtype_show()
316 return snprintf(buf, PAGE_SIZE, "%d\n", in lpfc_mlomgmt_show()
336 return snprintf(buf, PAGE_SIZE, "%s\n",phba->Port); in lpfc_vportnum_show()
364 len = snprintf(buf, PAGE_SIZE, "%s, sli-%d\n", in lpfc_fwrev_show()
367 len = snprintf(buf, PAGE_SIZE, "%s, sli-%d:%d:%x\n", in lpfc_fwrev_show()
391 return snprintf(buf, PAGE_SIZE, "%s\n", hdw); in lpfc_hdw_show()
412 return snprintf(buf, PAGE_SIZE, "%s\n", phba->OptionROMVersion); in lpfc_option_rom_version_show()
415 return snprintf(buf, PAGE_SIZE, "%s\n", fwrev); in lpfc_option_rom_version_show()
446 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
449 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
455 len += snprintf(buf + len, PAGE_SIZE-len, "Link Up - "); in lpfc_link_state_show()
459 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
469 len += snprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
473 len += snprintf(buf + len, PAGE_SIZE - len, "Ready\n"); in lpfc_link_state_show()
477 len += snprintf(buf + len, PAGE_SIZE - len, "Failed\n"); in lpfc_link_state_show()
481 len += snprintf(buf + len, PAGE_SIZE - len, in lpfc_link_state_show()
486 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
490 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
493 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
497 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
500 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_link_state_show()
525 return snprintf(buf, PAGE_SIZE, "fc\n"); in lpfc_sli4_protocol_show()
529 return snprintf(buf, PAGE_SIZE, "fcoe\n"); in lpfc_sli4_protocol_show()
531 return snprintf(buf, PAGE_SIZE, "fc\n"); in lpfc_sli4_protocol_show()
533 return snprintf(buf, PAGE_SIZE, "unknown\n"); in lpfc_sli4_protocol_show()
553 return snprintf(buf, PAGE_SIZE, "%d\n", in lpfc_oas_supported_show()
611 return snprintf(buf, PAGE_SIZE, "%d\n", in lpfc_num_discovered_ports_show()
1018 return snprintf(buf, PAGE_SIZE, "%d\n", phba->nport_event_cnt); in lpfc_nport_evt_cnt_show()
1047 return snprintf(buf, PAGE_SIZE, "%s\n", state); in lpfc_board_mode_show()
1258 return snprintf(buf, PAGE_SIZE, "%d\n", cnt); in lpfc_max_rpi_show()
1259 return snprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_max_rpi_show()
1286 return snprintf(buf, PAGE_SIZE, "%d\n", (cnt - acnt)); in lpfc_used_rpi_show()
1287 return snprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_used_rpi_show()
1314 return snprintf(buf, PAGE_SIZE, "%d\n", cnt); in lpfc_max_xri_show()
1315 return snprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_max_xri_show()
1342 return snprintf(buf, PAGE_SIZE, "%d\n", (cnt - acnt)); in lpfc_used_xri_show()
1343 return snprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_used_xri_show()
1370 return snprintf(buf, PAGE_SIZE, "%d\n", cnt); in lpfc_max_vpi_show()
1371 return snprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_max_vpi_show()
1398 return snprintf(buf, PAGE_SIZE, "%d\n", (cnt - acnt)); in lpfc_used_vpi_show()
1399 return snprintf(buf, PAGE_SIZE, "Unknown\n"); in lpfc_used_vpi_show()
1424 return snprintf(buf, PAGE_SIZE, "NPIV Not Supported\n"); in lpfc_npiv_info_show()
1426 return snprintf(buf, PAGE_SIZE, "NPIV Physical\n"); in lpfc_npiv_info_show()
1427 return snprintf(buf, PAGE_SIZE, "NPIV Virtual (VPI %d)\n", vport->vpi); in lpfc_npiv_info_show()
1449 return snprintf(buf, PAGE_SIZE, "%#x\n", phba->cfg_poll); in lpfc_poll_show()
1553 return snprintf(buf, PAGE_SIZE, "%d\n", phba->fips_level); in lpfc_fips_level_show()
1572 return snprintf(buf, PAGE_SIZE, "%d\n", phba->fips_spec_rev); in lpfc_fips_rev_show()
1591 return snprintf(buf, PAGE_SIZE, "%s - %sOperational\n", in lpfc_dss_show()
1620 return snprintf(buf, PAGE_SIZE, "%d\n", max_nr_virtfn); in lpfc_sriov_hw_max_virtfn_show()
1645 return snprintf(buf, PAGE_SIZE, "%d\n",\
1673 return snprintf(buf, PAGE_SIZE, "%#x\n",\
1809 return snprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_##attr);\
1834 return snprintf(buf, PAGE_SIZE, "%#x\n", vport->cfg_##attr);\
2187 return snprintf(buf, PAGE_SIZE, "0x%llx\n", in lpfc_soft_wwpn_show()
2285 return snprintf(buf, PAGE_SIZE, "0x%llx\n", in lpfc_soft_wwnn_show()
2352 return snprintf(buf, PAGE_SIZE, "0x%llx\n", in lpfc_oas_tgt_show()
2420 return snprintf(buf, PAGE_SIZE, "0x%llx\n", in lpfc_oas_vpt_show()
2489 return snprintf(buf, PAGE_SIZE, "%d\n", phba->cfg_oas_lun_state); in lpfc_oas_lun_state_show()
2554 return snprintf(buf, PAGE_SIZE, "%d\n", phba->cfg_oas_lun_status); in lpfc_oas_lun_status_show()
2702 len += snprintf(buf + len, PAGE_SIZE-len, "0x%llx", oas_lun); in lpfc_oas_lun_show()
2829 return snprintf(buf, PAGE_SIZE, "%d\n", phba->iocb_max); in lpfc_iocb_hw_show()
2840 return snprintf(buf, PAGE_SIZE, "%d\n", in lpfc_txq_hw_show()
2853 return snprintf(buf, PAGE_SIZE, "%d\n", in lpfc_txcmplq_hw_show()
2895 return snprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_devloss_tmo); in lpfc_nodev_tmo_show()
4317 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
4322 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
4329 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
4342 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
4349 len += snprintf(buf + len, PAGE_SIZE-len, in lpfc_fcp_cpu_map_show()
4362 len += snprintf(buf + len, PAGE_SIZE-len, "more...\n"); in lpfc_fcp_cpu_map_show()
5638 return snprintf(buf, sz, format_string, \