aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_dbf.h
diff options
context:
space:
mode:
authorMartin Peschke <mp3@de.ibm.com>2008-03-31 05:15:29 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:19:10 -0400
commit6bc473dd324237acbaa7a4c5e73d00dd5fc389ec (patch)
tree3708bd5d55c9b4e85912369fe0a1aaeb757d36ca /drivers/s390/scsi/zfcp_dbf.h
parent2b604c9b909ce1c98e51208eee2f70ee3e604079 (diff)
[SCSI] zfcp: Shorten excessive names in debug trace.
Saving on line breaks, improving readability, by shortening excessive function names and identifiers, by simplifying some functions call chains, and by simplifying nesting of some data structure. Signed-off-by: Martin Peschke <mp3@de.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_dbf.h')
-rw-r--r--drivers/s390/scsi/zfcp_dbf.h74
1 files changed, 35 insertions, 39 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.h b/drivers/s390/scsi/zfcp_dbf.h
index 5d88c01d5981..732a5ba1bea9 100644
--- a/drivers/s390/scsi/zfcp_dbf.h
+++ b/drivers/s390/scsi/zfcp_dbf.h
@@ -104,9 +104,9 @@ struct zfcp_hba_dbf_record_response {
104 u64 erp_action; 104 u64 erp_action;
105 union { 105 union {
106 struct { 106 struct {
107 u64 scsi_cmnd; 107 u64 cmnd;
108 u64 scsi_serial; 108 u64 serial;
109 } send_fcp; 109 } fcp;
110 struct { 110 struct {
111 u64 wwpn; 111 u64 wwpn;
112 u32 d_id; 112 u32 d_id;
@@ -121,8 +121,8 @@ struct zfcp_hba_dbf_record_response {
121 struct { 121 struct {
122 u32 d_id; 122 u32 d_id;
123 u8 ls_code; 123 u8 ls_code;
124 } send_els; 124 } els;
125 } data; 125 } u;
126} __attribute__ ((packed)); 126} __attribute__ ((packed));
127 127
128struct zfcp_hba_dbf_record_status { 128struct zfcp_hba_dbf_record_status {
@@ -154,35 +154,34 @@ struct zfcp_hba_dbf_record {
154 struct zfcp_hba_dbf_record_response response; 154 struct zfcp_hba_dbf_record_response response;
155 struct zfcp_hba_dbf_record_status status; 155 struct zfcp_hba_dbf_record_status status;
156 struct zfcp_hba_dbf_record_qdio qdio; 156 struct zfcp_hba_dbf_record_qdio qdio;
157 } type; 157 } u;
158} __attribute__ ((packed)); 158} __attribute__ ((packed));
159 159
160struct zfcp_san_dbf_record_ct { 160struct zfcp_san_dbf_record_ct_request {
161 union { 161 u16 cmd_req_code;
162 struct { 162 u8 revision;
163 u16 cmd_req_code; 163 u8 gs_type;
164 u8 revision; 164 u8 gs_subtype;
165 u8 gs_type; 165 u8 options;
166 u8 gs_subtype; 166 u16 max_res_size;
167 u8 options; 167 u32 len;
168 u16 max_res_size;
169 } request;
170 struct {
171 u16 cmd_rsp_code;
172 u8 revision;
173 u8 reason_code;
174 u8 reason_code_expl;
175 u8 vendor_unique;
176 } response;
177 } type;
178 u32 payload_size;
179#define ZFCP_DBF_CT_PAYLOAD 24 168#define ZFCP_DBF_CT_PAYLOAD 24
180 u8 payload[ZFCP_DBF_CT_PAYLOAD]; 169 u8 payload[ZFCP_DBF_CT_PAYLOAD];
181} __attribute__ ((packed)); 170} __attribute__ ((packed));
182 171
172struct zfcp_san_dbf_record_ct_response {
173 u16 cmd_rsp_code;
174 u8 revision;
175 u8 reason_code;
176 u8 expl;
177 u8 vendor_unique;
178 u32 len;
179 u8 payload[ZFCP_DBF_CT_PAYLOAD];
180} __attribute__ ((packed));
181
183struct zfcp_san_dbf_record_els { 182struct zfcp_san_dbf_record_els {
184 u8 ls_code; 183 u8 ls_code;
185 u32 payload_size; 184 u32 len;
186#define ZFCP_DBF_ELS_PAYLOAD 32 185#define ZFCP_DBF_ELS_PAYLOAD 32
187#define ZFCP_DBF_ELS_MAX_PAYLOAD 1024 186#define ZFCP_DBF_ELS_MAX_PAYLOAD 1024
188 u8 payload[ZFCP_DBF_ELS_PAYLOAD]; 187 u8 payload[ZFCP_DBF_ELS_PAYLOAD];
@@ -195,9 +194,10 @@ struct zfcp_san_dbf_record {
195 u32 s_id; 194 u32 s_id;
196 u32 d_id; 195 u32 d_id;
197 union { 196 union {
198 struct zfcp_san_dbf_record_ct ct; 197 struct zfcp_san_dbf_record_ct_request ct_req;
198 struct zfcp_san_dbf_record_ct_response ct_resp;
199 struct zfcp_san_dbf_record_els els; 199 struct zfcp_san_dbf_record_els els;
200 } type; 200 } u;
201} __attribute__ ((packed)); 201} __attribute__ ((packed));
202 202
203struct zfcp_scsi_dbf_record { 203struct zfcp_scsi_dbf_record {
@@ -215,19 +215,15 @@ struct zfcp_scsi_dbf_record {
215 u64 fsf_reqid; 215 u64 fsf_reqid;
216 u32 fsf_seqno; 216 u32 fsf_seqno;
217 u64 fsf_issued; 217 u64 fsf_issued;
218 union { 218 u64 old_fsf_reqid;
219 u64 old_fsf_reqid; 219 u8 rsp_validity;
220 struct { 220 u8 rsp_scsi_status;
221 u8 rsp_validity; 221 u32 rsp_resid;
222 u8 rsp_scsi_status; 222 u8 rsp_code;
223 u32 rsp_resid;
224 u8 rsp_code;
225#define ZFCP_DBF_SCSI_FCP_SNS_INFO 16 223#define ZFCP_DBF_SCSI_FCP_SNS_INFO 16
226#define ZFCP_DBF_SCSI_MAX_FCP_SNS_INFO 256 224#define ZFCP_DBF_SCSI_MAX_FCP_SNS_INFO 256
227 u32 sns_info_len; 225 u32 sns_info_len;
228 u8 sns_info[ZFCP_DBF_SCSI_FCP_SNS_INFO]; 226 u8 sns_info[ZFCP_DBF_SCSI_FCP_SNS_INFO];
229 } fcp;
230 } type;
231} __attribute__ ((packed)); 227} __attribute__ ((packed));
232 228
233#endif /* ZFCP_DBF_H */ 229#endif /* ZFCP_DBF_H */