Lines Matching refs:snprintf
68 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show()
73 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
78 return snprintf(page, PAGE_SIZE, "Target\n"); in target_stat_role_show()
83 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
118 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show()
123 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
129 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); in target_stat_tgt_num_lus_show()
136 return snprintf(page, PAGE_SIZE, "activated"); in target_stat_tgt_status_show()
138 return snprintf(page, PAGE_SIZE, "deactivated"); in target_stat_tgt_status_show()
151 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); in target_stat_tgt_non_access_lus_show()
157 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_resets_show()
198 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_lu_inst_show()
203 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_show()
209 return snprintf(page, PAGE_SIZE, "%u\n", SCSI_LU_INDEX); in target_stat_lu_indx_show()
215 return snprintf(page, PAGE_SIZE, "%llu\n", (unsigned long long)0); in target_stat_lu_lun_show()
223 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_lu_name_show()
239 return snprintf(page, PAGE_SIZE, "%s\n", str); in target_stat_lu_vend_show()
253 return snprintf(page, PAGE_SIZE, "%s\n", str); in target_stat_lu_prod_show()
267 return snprintf(page, PAGE_SIZE, "%s\n", str); in target_stat_lu_rev_show()
275 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_type_show()
284 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_status_show()
292 return snprintf(page, PAGE_SIZE, "exposed\n"); in target_stat_lu_state_bit_show()
301 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_num_cmds_show()
311 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_read_mbytes_show()
321 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_write_mbytes_show()
330 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_resets_show()
338 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_full_stat_show()
345 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_hs_num_cmds_show()
354 return snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)dev->creation_time - in target_stat_lu_creation_time_show()
445 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_port_inst_show()
459 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_port_dev_show()
473 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
487 ret = snprintf(page, PAGE_SIZE, "%s%u\n", "Device", dev->dev_index); in target_stat_port_role_show()
503 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_port_busy_count_show()
549 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_tgt_port_inst_show()
564 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_tgt_port_dev_show()
579 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_tgt_port_indx_show()
595 ret = snprintf(page, PAGE_SIZE, "%sPort#%u\n", in target_stat_tgt_port_name_show()
613 ret = snprintf(page, PAGE_SIZE, "%s%s%d\n", in target_stat_tgt_port_port_index_show()
630 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_port_in_cmds_show()
646 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_write_mbytes_show()
662 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_read_mbytes_show()
679 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_tgt_port_hs_in_cmds_show()
733 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_transport_inst_show()
750 ret = snprintf(page, PAGE_SIZE, "scsiTransport%s\n", in target_stat_transport_device_show()
768 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_transport_indx_show()
788 ret = snprintf(page, PAGE_SIZE, "%s+%s\n", in target_stat_transport_dev_name_show()
864 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_inst_show()
887 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_auth_dev_show()
909 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_auth_port_show()
929 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_auth_indx_show()
949 ret = snprintf(page, PAGE_SIZE, "%u\n", 1); in target_stat_auth_dev_or_port_show()
969 ret = snprintf(page, PAGE_SIZE, "%s\n", nacl->initiatorname); in target_stat_auth_intr_name_show()
989 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_map_indx_show()
1009 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->attach_count); in target_stat_auth_att_count_show()
1029 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_auth_num_cmds_show()
1050 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_read_mbytes_show()
1071 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_write_mbytes_show()
1092 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_hs_num_cmds_show()
1112 ret = snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)deve->creation_time - in target_stat_auth_creation_time_show()
1133 ret = snprintf(page, PAGE_SIZE, "Ready\n"); in target_stat_auth_row_status_show()
1204 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_inst_show()
1227 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_iport_dev_show()
1249 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_iport_port_show()
1272 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_indx_show()
1293 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_iport_port_auth_indx_show()
1321 ret = snprintf(page, PAGE_SIZE, "%s+i+%s\n", nacl->initiatorname, buf); in target_stat_iport_port_ident_show()