aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_qdio.c
diff options
context:
space:
mode:
authorMartin Peschke <mp3@de.ibm.com>2008-05-19 06:17:43 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-06-05 10:27:14 -0400
commite891bffe927f39718cf84c35b380d6edb189848b (patch)
tree4b6fb26379d0b9a02f9ae2ef32c18b713c1d53a4 /drivers/s390/scsi/zfcp_qdio.c
parentd01d51beee4dd9f7ff9caf7491aa1727a318e665 (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_qdio.c')
-rw-r--r--drivers/s390/scsi/zfcp_qdio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/s390/scsi/zfcp_qdio.c b/drivers/s390/scsi/zfcp_qdio.c
index b6b6b36c6f20..8c83cdc73d98 100644
--- a/drivers/s390/scsi/zfcp_qdio.c
+++ b/drivers/s390/scsi/zfcp_qdio.c
@@ -415,7 +415,7 @@ zfcp_qdio_sbale_resp(struct zfcp_fsf_req *fsf_req, int sbal, int sbale)
415volatile struct qdio_buffer_element * 415volatile struct qdio_buffer_element *
416zfcp_qdio_sbale_curr(struct zfcp_fsf_req *fsf_req) 416zfcp_qdio_sbale_curr(struct zfcp_fsf_req *fsf_req)
417{ 417{
418 return zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 418 return zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last,
419 fsf_req->sbale_curr); 419 fsf_req->sbale_curr);
420} 420}
421 421
@@ -443,7 +443,7 @@ zfcp_qdio_sbal_limit(struct zfcp_fsf_req *fsf_req, int max_sbals)
443 * @fsf_req: zfcp_fsf_req to be processed 443 * @fsf_req: zfcp_fsf_req to be processed
444 * @sbtype: SBAL flags which have to be set in first SBALE of new SBAL 444 * @sbtype: SBAL flags which have to be set in first SBALE of new SBAL
445 * 445 *
446 * This function changes sbal_curr, sbale_curr, sbal_number of fsf_req. 446 * This function changes sbal_last, sbale_curr, sbal_number of fsf_req.
447 */ 447 */
448static volatile struct qdio_buffer_element * 448static volatile struct qdio_buffer_element *
449zfcp_qdio_sbal_chain(struct zfcp_fsf_req *fsf_req, unsigned long sbtype) 449zfcp_qdio_sbal_chain(struct zfcp_fsf_req *fsf_req, unsigned long sbtype)
@@ -455,16 +455,16 @@ zfcp_qdio_sbal_chain(struct zfcp_fsf_req *fsf_req, unsigned long sbtype)
455 sbale->flags |= SBAL_FLAGS_LAST_ENTRY; 455 sbale->flags |= SBAL_FLAGS_LAST_ENTRY;
456 456
457 /* don't exceed last allowed SBAL */ 457 /* don't exceed last allowed SBAL */
458 if (fsf_req->sbal_curr == fsf_req->sbal_limit) 458 if (fsf_req->sbal_last == fsf_req->sbal_limit)
459 return NULL; 459 return NULL;
460 460
461 /* set chaining flag in first SBALE of current SBAL */ 461 /* set chaining flag in first SBALE of current SBAL */
462 sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); 462 sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0);
463 sbale->flags |= SBAL_FLAGS0_MORE_SBALS; 463 sbale->flags |= SBAL_FLAGS0_MORE_SBALS;
464 464
465 /* calculate index of next SBAL */ 465 /* calculate index of next SBAL */
466 fsf_req->sbal_curr++; 466 fsf_req->sbal_last++;
467 fsf_req->sbal_curr %= QDIO_MAX_BUFFERS_PER_Q; 467 fsf_req->sbal_last %= QDIO_MAX_BUFFERS_PER_Q;
468 468
469 /* keep this requests number of SBALs up-to-date */ 469 /* keep this requests number of SBALs up-to-date */
470 fsf_req->sbal_number++; 470 fsf_req->sbal_number++;
@@ -523,7 +523,7 @@ static inline int
523zfcp_qdio_sbals_wipe(struct zfcp_fsf_req *fsf_req) 523zfcp_qdio_sbals_wipe(struct zfcp_fsf_req *fsf_req)
524{ 524{
525 return zfcp_qdio_sbals_zero(&fsf_req->adapter->request_queue, 525 return zfcp_qdio_sbals_zero(&fsf_req->adapter->request_queue,
526 fsf_req->sbal_first, fsf_req->sbal_curr); 526 fsf_req->sbal_first, fsf_req->sbal_last);
527} 527}
528 528
529 529
@@ -601,7 +601,7 @@ zfcp_qdio_sbals_from_sg(struct zfcp_fsf_req *fsf_req, unsigned long sbtype,
601 zfcp_qdio_sbal_limit(fsf_req, max_sbals); 601 zfcp_qdio_sbal_limit(fsf_req, max_sbals);
602 602
603 /* set storage-block type for current SBAL */ 603 /* set storage-block type for current SBAL */
604 sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_curr, 0); 604 sbale = zfcp_qdio_sbale_req(fsf_req, fsf_req->sbal_last, 0);
605 sbale->flags |= sbtype; 605 sbale->flags |= sbtype;
606 606
607 /* process all segements of scatter-gather list */ 607 /* process all segements of scatter-gather list */