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()
164 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_aborts_complete_show()
171 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_aborts_no_task_show()
216 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_lu_inst_show()
221 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_show()
227 return snprintf(page, PAGE_SIZE, "%u\n", SCSI_LU_INDEX); in target_stat_lu_indx_show()
233 return snprintf(page, PAGE_SIZE, "%llu\n", (unsigned long long)0); in target_stat_lu_lun_show()
241 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_lu_name_show()
257 return snprintf(page, PAGE_SIZE, "%s\n", str); in target_stat_lu_vend_show()
271 return snprintf(page, PAGE_SIZE, "%s\n", str); in target_stat_lu_prod_show()
285 return snprintf(page, PAGE_SIZE, "%s\n", str); in target_stat_lu_rev_show()
293 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_type_show()
302 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_status_show()
310 return snprintf(page, PAGE_SIZE, "exposed\n"); in target_stat_lu_state_bit_show()
319 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_num_cmds_show()
329 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_read_mbytes_show()
339 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_write_mbytes_show()
348 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_resets_show()
356 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_full_stat_show()
363 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_hs_num_cmds_show()
372 return snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)dev->creation_time - in target_stat_lu_creation_time_show()
464 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_port_inst_show()
478 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_port_dev_show()
492 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
506 ret = snprintf(page, PAGE_SIZE, "%s%u\n", "Device", dev->dev_index); in target_stat_port_role_show()
522 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_port_busy_count_show()
568 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_tgt_port_inst_show()
583 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_tgt_port_dev_show()
598 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_tgt_port_indx_show()
614 ret = snprintf(page, PAGE_SIZE, "%sPort#%u\n", in target_stat_tgt_port_name_show()
632 ret = snprintf(page, PAGE_SIZE, "%s%s%d\n", in target_stat_tgt_port_port_index_show()
649 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_port_in_cmds_show()
665 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_write_mbytes_show()
681 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_read_mbytes_show()
698 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_tgt_port_hs_in_cmds_show()
752 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_transport_inst_show()
769 ret = snprintf(page, PAGE_SIZE, "scsiTransport%s\n", in target_stat_transport_device_show()
787 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_transport_indx_show()
807 ret = snprintf(page, PAGE_SIZE, "%s+%s\n", in target_stat_transport_dev_name_show()
827 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->proto_id); in target_stat_transport_proto_id_show()
902 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_inst_show()
925 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_auth_dev_show()
947 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_auth_port_show()
967 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_auth_indx_show()
987 ret = snprintf(page, PAGE_SIZE, "%u\n", 1); in target_stat_auth_dev_or_port_show()
1007 ret = snprintf(page, PAGE_SIZE, "%s\n", nacl->initiatorname); in target_stat_auth_intr_name_show()
1027 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_map_indx_show()
1047 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->attach_count); in target_stat_auth_att_count_show()
1067 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_auth_num_cmds_show()
1088 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_read_mbytes_show()
1109 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_write_mbytes_show()
1130 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_hs_num_cmds_show()
1150 ret = snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)deve->creation_time - in target_stat_auth_creation_time_show()
1171 ret = snprintf(page, PAGE_SIZE, "Ready\n"); in target_stat_auth_row_status_show()
1242 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_inst_show()
1265 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_iport_dev_show()
1287 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_iport_port_show()
1310 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_indx_show()
1331 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_iport_port_auth_indx_show()
1359 ret = snprintf(page, PAGE_SIZE, "%s+i+%s\n", nacl->initiatorname, buf); in target_stat_iport_port_ident_show()