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()
285 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_num_cmds_show()
295 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_read_mbytes_show()
305 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_write_mbytes_show()
314 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_resets_show()
322 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_full_stat_show()
329 return snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_lu_hs_num_cmds_show()
338 return snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)dev->creation_time - in target_stat_lu_creation_time_show()
430 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_port_inst_show()
444 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_port_dev_show()
458 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_port_indx_show()
472 ret = snprintf(page, PAGE_SIZE, "%s%u\n", "Device", dev->dev_index); in target_stat_port_role_show()
488 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_port_busy_count_show()
534 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_tgt_port_inst_show()
549 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index); in target_stat_tgt_port_dev_show()
564 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_tgt_port_indx_show()
580 ret = snprintf(page, PAGE_SIZE, "%sPort#%u\n", in target_stat_tgt_port_name_show()
598 ret = snprintf(page, PAGE_SIZE, "%s%s%d\n", in target_stat_tgt_port_port_index_show()
615 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_port_in_cmds_show()
631 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_write_mbytes_show()
647 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_tgt_port_read_mbytes_show()
664 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_tgt_port_hs_in_cmds_show()
718 ret = snprintf(page, PAGE_SIZE, "%u\n", dev->hba_index); in target_stat_transport_inst_show()
735 ret = snprintf(page, PAGE_SIZE, "scsiTransport%s\n", in target_stat_transport_device_show()
753 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_transport_indx_show()
773 ret = snprintf(page, PAGE_SIZE, "%s+%s\n", in target_stat_transport_dev_name_show()
793 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->proto_id); in target_stat_transport_proto_id_show()
868 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_inst_show()
890 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->se_lun->lun_index); in target_stat_auth_dev_show()
912 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_auth_port_show()
932 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_auth_indx_show()
952 ret = snprintf(page, PAGE_SIZE, "%u\n", 1); in target_stat_auth_dev_or_port_show()
972 ret = snprintf(page, PAGE_SIZE, "%s\n", nacl->initiatorname); in target_stat_auth_intr_name_show()
992 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_map_indx_show()
1012 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->attach_count); in target_stat_auth_att_count_show()
1032 ret = snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_auth_num_cmds_show()
1053 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_read_mbytes_show()
1074 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_write_mbytes_show()
1095 ret = snprintf(page, PAGE_SIZE, "%u\n", 0); in target_stat_auth_hs_num_cmds_show()
1115 ret = snprintf(page, PAGE_SIZE, "%u\n", (u32)(((u32)deve->creation_time - in target_stat_auth_creation_time_show()
1136 ret = snprintf(page, PAGE_SIZE, "Ready\n"); in target_stat_auth_row_status_show()
1207 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_inst_show()
1229 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->se_lun->lun_index); in target_stat_iport_dev_show()
1251 ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_iport_port_show()
1274 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_iport_indx_show()
1295 ret = snprintf(page, PAGE_SIZE, "%u\n", nacl->acl_index); in target_stat_iport_port_auth_indx_show()
1323 ret = snprintf(page, PAGE_SIZE, "%s+i+%s\n", nacl->initiatorname, buf); in target_stat_iport_port_ident_show()