diff options
author | Martin Peschke <mp3@de.ibm.com> | 2008-05-19 06:17:43 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-06-05 10:27:14 -0400 |
commit | e891bffe927f39718cf84c35b380d6edb189848b (patch) | |
tree | 4b6fb26379d0b9a02f9ae2ef32c18b713c1d53a4 /drivers/s390/scsi/zfcp_fsf.c | |
parent | d01d51beee4dd9f7ff9caf7491aa1727a318e665 (diff) |
[SCSI] zfcp: Rename sbal_curr to sbal_last.
sbal_last is more appropriate, because it matches sbal_first.
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_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 2f27d03e61c2..01f9b27daa8c 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -726,7 +726,7 @@ zfcp_fsf_status_read(struct zfcp_adapter *adapter, int req_flags) | |||
726 | goto failed_req_create; | 726 | goto failed_req_create; |
727 | } | 727 | } |
728 | 728 | ||
729 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 729 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
730 | sbale[0].flags |= SBAL_FLAGS0_TYPE_STATUS; | 730 | sbale[0].flags |= SBAL_FLAGS0_TYPE_STATUS; |
731 | sbale[2].flags |= SBAL_FLAGS_LAST_ENTRY; | 731 | sbale[2].flags |= SBAL_FLAGS_LAST_ENTRY; |
732 | fsf_req->sbale_curr = 2; | 732 | fsf_req->sbale_curr = 2; |
@@ -1075,7 +1075,7 @@ zfcp_fsf_abort_fcp_command(unsigned long old_req_id, | |||
1075 | &unit->status))) | 1075 | &unit->status))) |
1076 | goto unit_blocked; | 1076 | goto unit_blocked; |
1077 | 1077 | ||
1078 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 1078 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
1079 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 1079 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
1080 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 1080 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
1081 | 1081 | ||
@@ -1295,7 +1295,7 @@ zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool, | |||
1295 | goto failed_req; | 1295 | goto failed_req; |
1296 | } | 1296 | } |
1297 | 1297 | ||
1298 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 1298 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
1299 | if (zfcp_use_one_sbal(ct->req, ct->req_count, | 1299 | if (zfcp_use_one_sbal(ct->req, ct->req_count, |
1300 | ct->resp, ct->resp_count)){ | 1300 | ct->resp, ct->resp_count)){ |
1301 | /* both request buffer and response buffer | 1301 | /* both request buffer and response buffer |
@@ -1593,7 +1593,7 @@ zfcp_fsf_send_els(struct zfcp_send_els *els) | |||
1593 | goto port_blocked; | 1593 | goto port_blocked; |
1594 | } | 1594 | } |
1595 | 1595 | ||
1596 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 1596 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
1597 | if (zfcp_use_one_sbal(els->req, els->req_count, | 1597 | if (zfcp_use_one_sbal(els->req, els->req_count, |
1598 | els->resp, els->resp_count)){ | 1598 | els->resp, els->resp_count)){ |
1599 | /* both request buffer and response buffer | 1599 | /* both request buffer and response buffer |
@@ -1657,7 +1657,7 @@ zfcp_fsf_send_els(struct zfcp_send_els *els) | |||
1657 | fsf_req->qtcb->bottom.support.timeout = ZFCP_ELS_TIMEOUT; | 1657 | fsf_req->qtcb->bottom.support.timeout = ZFCP_ELS_TIMEOUT; |
1658 | fsf_req->data = (unsigned long) els; | 1658 | fsf_req->data = (unsigned long) els; |
1659 | 1659 | ||
1660 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 1660 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
1661 | 1661 | ||
1662 | zfcp_san_dbf_event_els_request(fsf_req); | 1662 | zfcp_san_dbf_event_els_request(fsf_req); |
1663 | 1663 | ||
@@ -1872,7 +1872,7 @@ zfcp_fsf_exchange_config_data(struct zfcp_erp_action *erp_action) | |||
1872 | return retval; | 1872 | return retval; |
1873 | } | 1873 | } |
1874 | 1874 | ||
1875 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 1875 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
1876 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 1876 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
1877 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 1877 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
1878 | 1878 | ||
@@ -1925,7 +1925,7 @@ zfcp_fsf_exchange_config_data_sync(struct zfcp_adapter *adapter, | |||
1925 | return retval; | 1925 | return retval; |
1926 | } | 1926 | } |
1927 | 1927 | ||
1928 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 1928 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
1929 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 1929 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
1930 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 1930 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
1931 | 1931 | ||
@@ -2187,7 +2187,7 @@ zfcp_fsf_exchange_port_data(struct zfcp_erp_action *erp_action) | |||
2187 | return retval; | 2187 | return retval; |
2188 | } | 2188 | } |
2189 | 2189 | ||
2190 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 2190 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
2191 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 2191 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
2192 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 2192 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
2193 | 2193 | ||
@@ -2249,7 +2249,7 @@ zfcp_fsf_exchange_port_data_sync(struct zfcp_adapter *adapter, | |||
2249 | if (data) | 2249 | if (data) |
2250 | fsf_req->data = (unsigned long) data; | 2250 | fsf_req->data = (unsigned long) data; |
2251 | 2251 | ||
2252 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 2252 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
2253 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 2253 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
2254 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 2254 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
2255 | 2255 | ||
@@ -2359,7 +2359,7 @@ zfcp_fsf_open_port(struct zfcp_erp_action *erp_action) | |||
2359 | goto out; | 2359 | goto out; |
2360 | } | 2360 | } |
2361 | 2361 | ||
2362 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 2362 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
2363 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 2363 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
2364 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 2364 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
2365 | 2365 | ||
@@ -2591,7 +2591,7 @@ zfcp_fsf_close_port(struct zfcp_erp_action *erp_action) | |||
2591 | goto out; | 2591 | goto out; |
2592 | } | 2592 | } |
2593 | 2593 | ||
2594 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 2594 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
2595 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 2595 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
2596 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 2596 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
2597 | 2597 | ||
@@ -2720,7 +2720,7 @@ zfcp_fsf_close_physical_port(struct zfcp_erp_action *erp_action) | |||
2720 | goto out; | 2720 | goto out; |
2721 | } | 2721 | } |
2722 | 2722 | ||
2723 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 2723 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
2724 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 2724 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
2725 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 2725 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
2726 | 2726 | ||
@@ -2915,7 +2915,7 @@ zfcp_fsf_open_unit(struct zfcp_erp_action *erp_action) | |||
2915 | goto out; | 2915 | goto out; |
2916 | } | 2916 | } |
2917 | 2917 | ||
2918 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 2918 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
2919 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 2919 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
2920 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 2920 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
2921 | 2921 | ||
@@ -3230,7 +3230,7 @@ zfcp_fsf_close_unit(struct zfcp_erp_action *erp_action) | |||
3230 | goto out; | 3230 | goto out; |
3231 | } | 3231 | } |
3232 | 3232 | ||
3233 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 3233 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
3234 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; | 3234 | sbale[0].flags |= SBAL_FLAGS0_TYPE_READ; |
3235 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 3235 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
3236 | 3236 | ||
@@ -3613,7 +3613,7 @@ zfcp_fsf_send_fcp_command_task_management(struct zfcp_adapter *adapter, | |||
3613 | fsf_req->qtcb->bottom.io.fcp_cmnd_length = | 3613 | fsf_req->qtcb->bottom.io.fcp_cmnd_length = |
3614 | sizeof (struct fcp_cmnd_iu) + sizeof (fcp_dl_t); | 3614 | sizeof (struct fcp_cmnd_iu) + sizeof (fcp_dl_t); |
3615 | 3615 | ||
3616 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 3616 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
3617 | sbale[0].flags |= SBAL_FLAGS0_TYPE_WRITE; | 3617 | sbale[0].flags |= SBAL_FLAGS0_TYPE_WRITE; |
3618 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; | 3618 | sbale[1].flags |= SBAL_FLAGS_LAST_ENTRY; |
3619 | 3619 | ||
@@ -4238,7 +4238,7 @@ zfcp_fsf_control_file(struct zfcp_adapter *adapter, | |||
4238 | goto unlock_queue_lock; | 4238 | goto unlock_queue_lock; |
4239 | } | 4239 | } |
4240 | 4240 | ||
4241 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 4241 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
4242 | sbale[0].flags |= direction; | 4242 | sbale[0].flags |= direction; |
4243 | 4243 | ||
4244 | bottom = &fsf_req->qtcb->bottom.support; | 4244 | bottom = &fsf_req->qtcb->bottom.support; |
@@ -4590,14 +4590,14 @@ zfcp_fsf_req_create(struct zfcp_adapter *adapter, u32 fsf_cmd, int req_flags, | |||
4590 | } | 4590 | } |
4591 | fsf_req->sbal_number = 1; | 4591 | fsf_req->sbal_number = 1; |
4592 | fsf_req->sbal_first = req_queue->free_index; | 4592 | fsf_req->sbal_first = req_queue->free_index; |
4593 | fsf_req->sbal_curr = req_queue->free_index; | 4593 | fsf_req->sbal_last = req_queue->free_index; |
4594 | fsf_req->sbale_curr = 1; | 4594 | fsf_req->sbale_curr = 1; |
4595 | 4595 | ||
4596 | if (likely(req_flags & ZFCP_REQ_AUTO_CLEANUP)) { | 4596 | if (likely(req_flags & ZFCP_REQ_AUTO_CLEANUP)) { |
4597 | fsf_req->status |= ZFCP_STATUS_FSFREQ_CLEANUP; | 4597 | fsf_req->status |= ZFCP_STATUS_FSFREQ_CLEANUP; |
4598 | } | 4598 | } |
4599 | 4599 | ||
4600 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); | 4600 | sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0); |
4601 | 4601 | ||
4602 | /* setup common SBALE fields */ | 4602 | /* setup common SBALE fields */ |
4603 | sbale[0].addr = (void *) fsf_req->req_id; | 4603 | sbale[0].addr = (void *) fsf_req->req_id; |