Lines Matching refs:snprintf
52 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show()
57 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
62 return snprintf(page, PAGE_SIZE, "Target\n"); in target_stat_role_show()
67 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
102 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show()
107 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
113 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); in target_stat_tgt_num_lus_show()
120 return snprintf(page, PAGE_SIZE, "activated\n"); in target_stat_tgt_status_show()
122 return snprintf(page, PAGE_SIZE, "deactivated\n"); in target_stat_tgt_status_show()
135 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); in target_stat_tgt_non_access_lus_show()
141 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_resets_show()
148 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_aborts_complete_show()
155 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_aborts_no_task_show()
200 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_lu_inst_show()
205 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_show()
211 return snprintf(page, PAGE_SIZE, "%u\n", SCSI_LU_INDEX); in target_stat_lu_indx_show()
217 return snprintf(page, PAGE_SIZE, "%llu\n", (unsigned long long)0); in target_stat_lu_lun_show()
225 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_lu_name_show()
234 return snprintf(page, PAGE_SIZE, "%-" __stringify(INQUIRY_VENDOR_LEN) in target_stat_lu_vend_show()
242 return snprintf(page, PAGE_SIZE, "%-" __stringify(INQUIRY_MODEL_LEN) in target_stat_lu_prod_show()
250 return snprintf(page, PAGE_SIZE, "%-" __stringify(INQUIRY_REVISION_LEN) in target_stat_lu_rev_show()
259 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_type_show()
268 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_status_show()
276 return snprintf(page, PAGE_SIZE, "exposed\n"); in target_stat_lu_state_bit_show()
293 return snprintf(page, PAGE_SIZE, "%u\n", cmds); in target_stat_lu_num_cmds_show()
310 return snprintf(page, PAGE_SIZE, "%u\n", bytes >> 20); in target_stat_lu_read_mbytes_show()
327 return snprintf(page, PAGE_SIZE, "%u\n", bytes >> 20); in target_stat_lu_write_mbytes_show()
335 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_resets_show()
343 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_full_stat_show()
350 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_hs_num_cmds_show()
359 return snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)dev->creation_time - in target_stat_lu_creation_time_show()
451 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_port_inst_show()
465 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_port_dev_show()
479 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_port_indx_show()
493 ret = snprintf(page, PAGE_SIZE, "%s%u\n", "Device", dev->dev_index); in target_stat_port_role_show()
509 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_port_busy_count_show()
555 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_tgt_port_inst_show()
570 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_tgt_port_dev_show()
585 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_tgt_port_indx_show()
601 ret = snprintf(page, PAGE_SIZE, "%sPort#%u\n", in target_stat_tgt_port_name_show()
619 ret = snprintf(page, PAGE_SIZE, "%s%s%d\n", in target_stat_tgt_port_port_index_show()
636 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_port_in_cmds_show()
652 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_write_mbytes_show()
668 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_read_mbytes_show()
685 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_tgt_port_hs_in_cmds_show()
739 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_transport_inst_show()
756 ret = snprintf(page, PAGE_SIZE, "scsiTransport%s\n", in target_stat_transport_device_show()
774 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_transport_indx_show()
794 ret = snprintf(page, PAGE_SIZE, "%s+%s\n", in target_stat_transport_dev_name_show()
814 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->proto_id); in target_stat_transport_proto_id_show()
889 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_inst_show()
911 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->se_lun->lun_index); in target_stat_auth_dev_show()
933 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_auth_port_show()
953 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_auth_indx_show()
973 ret = snprintf(page, PAGE_SIZE, "%u\n", 1); in target_stat_auth_dev_or_port_show()
993 ret = snprintf(page, PAGE_SIZE, "%s\n", nacl->initiatorname); in target_stat_auth_intr_name_show()
1013 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_map_indx_show()
1033 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->attach_count); in target_stat_auth_att_count_show()
1062 ret = snprintf(page, PAGE_SIZE, "%u\n", cmds); in target_stat_auth_num_cmds_show()
1091 ret = snprintf(page, PAGE_SIZE, "%u\n", bytes >> 20); in target_stat_auth_read_mbytes_show()
1120 ret = snprintf(page, PAGE_SIZE, "%u\n", bytes >> 20); in target_stat_auth_write_mbytes_show()
1140 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_hs_num_cmds_show()
1160 ret = snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)deve->creation_time - in target_stat_auth_creation_time_show()
1181 ret = snprintf(page, PAGE_SIZE, "Ready\n"); in target_stat_auth_row_status_show()
1252 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_inst_show()
1274 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->se_lun->lun_index); in target_stat_iport_dev_show()
1296 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_iport_port_show()
1319 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_indx_show()
1340 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_iport_port_auth_indx_show()
1368 ret = snprintf(page, PAGE_SIZE, "%s+i+%s\n", nacl->initiatorname, buf); in target_stat_iport_port_ident_show()