aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/task.c')
-rw-r--r--drivers/scsi/isci/task.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c
index 3a1fc55a7557..d040aa2f3722 100644
--- a/drivers/scsi/isci/task.c
+++ b/drivers/scsi/isci/task.c
@@ -257,12 +257,12 @@ static struct isci_request *isci_task_request_build(struct isci_host *ihost,
257 return NULL; 257 return NULL;
258 258
259 /* let the core do it's construct. */ 259 /* let the core do it's construct. */
260 status = scic_task_request_construct(ihost, idev, tag, 260 status = sci_task_request_construct(ihost, idev, tag,
261 ireq); 261 ireq);
262 262
263 if (status != SCI_SUCCESS) { 263 if (status != SCI_SUCCESS) {
264 dev_warn(&ihost->pdev->dev, 264 dev_warn(&ihost->pdev->dev,
265 "%s: scic_task_request_construct failed - " 265 "%s: sci_task_request_construct failed - "
266 "status = 0x%x\n", 266 "status = 0x%x\n",
267 __func__, 267 __func__,
268 status); 268 status);
@@ -272,7 +272,7 @@ static struct isci_request *isci_task_request_build(struct isci_host *ihost,
272 /* XXX convert to get this from task->tproto like other drivers */ 272 /* XXX convert to get this from task->tproto like other drivers */
273 if (dev->dev_type == SAS_END_DEV) { 273 if (dev->dev_type == SAS_END_DEV) {
274 isci_tmf->proto = SAS_PROTOCOL_SSP; 274 isci_tmf->proto = SAS_PROTOCOL_SSP;
275 status = scic_task_request_construct_ssp(ireq); 275 status = sci_task_request_construct_ssp(ireq);
276 if (status != SCI_SUCCESS) 276 if (status != SCI_SUCCESS)
277 return NULL; 277 return NULL;
278 } 278 }
@@ -332,7 +332,7 @@ int isci_task_execute_tmf(struct isci_host *ihost,
332 spin_lock_irqsave(&ihost->scic_lock, flags); 332 spin_lock_irqsave(&ihost->scic_lock, flags);
333 333
334 /* start the TMF io. */ 334 /* start the TMF io. */
335 status = scic_controller_start_task(ihost, idev, ireq); 335 status = sci_controller_start_task(ihost, idev, ireq);
336 336
337 if (status != SCI_TASK_SUCCESS) { 337 if (status != SCI_TASK_SUCCESS) {
338 dev_warn(&ihost->pdev->dev, 338 dev_warn(&ihost->pdev->dev,
@@ -364,7 +364,7 @@ int isci_task_execute_tmf(struct isci_host *ihost,
364 if (tmf->cb_state_func != NULL) 364 if (tmf->cb_state_func != NULL)
365 tmf->cb_state_func(isci_tmf_timed_out, tmf, tmf->cb_data); 365 tmf->cb_state_func(isci_tmf_timed_out, tmf, tmf->cb_data);
366 366
367 scic_controller_terminate_request(ihost, 367 sci_controller_terminate_request(ihost,
368 idev, 368 idev,
369 ireq); 369 ireq);
370 370
@@ -556,7 +556,7 @@ static void isci_terminate_request_core(struct isci_host *ihost,
556 if (!test_bit(IREQ_TERMINATED, &isci_request->flags)) { 556 if (!test_bit(IREQ_TERMINATED, &isci_request->flags)) {
557 was_terminated = true; 557 was_terminated = true;
558 needs_cleanup_handling = true; 558 needs_cleanup_handling = true;
559 status = scic_controller_terminate_request(ihost, 559 status = sci_controller_terminate_request(ihost,
560 idev, 560 idev,
561 isci_request); 561 isci_request);
562 } 562 }
@@ -569,7 +569,7 @@ static void isci_terminate_request_core(struct isci_host *ihost,
569 */ 569 */
570 if (status != SCI_SUCCESS) { 570 if (status != SCI_SUCCESS) {
571 dev_err(&ihost->pdev->dev, 571 dev_err(&ihost->pdev->dev,
572 "%s: scic_controller_terminate_request" 572 "%s: sci_controller_terminate_request"
573 " returned = 0x%x\n", 573 " returned = 0x%x\n",
574 __func__, status); 574 __func__, status);
575 575
@@ -1251,7 +1251,7 @@ isci_task_request_complete(struct isci_host *ihost,
1251 /* PRINT_TMF( ((struct isci_tmf *)request->task)); */ 1251 /* PRINT_TMF( ((struct isci_tmf *)request->task)); */
1252 tmf_complete = tmf->complete; 1252 tmf_complete = tmf->complete;
1253 1253
1254 scic_controller_complete_io(ihost, ireq->target_device, ireq); 1254 sci_controller_complete_io(ihost, ireq->target_device, ireq);
1255 /* set the 'terminated' flag handle to make sure it cannot be terminated 1255 /* set the 'terminated' flag handle to make sure it cannot be terminated
1256 * or completed again. 1256 * or completed again.
1257 */ 1257 */
@@ -1514,12 +1514,12 @@ static int isci_reset_device(struct isci_host *ihost,
1514 dev_dbg(&ihost->pdev->dev, "%s: idev %p\n", __func__, idev); 1514 dev_dbg(&ihost->pdev->dev, "%s: idev %p\n", __func__, idev);
1515 1515
1516 spin_lock_irqsave(&ihost->scic_lock, flags); 1516 spin_lock_irqsave(&ihost->scic_lock, flags);
1517 status = scic_remote_device_reset(idev); 1517 status = sci_remote_device_reset(idev);
1518 if (status != SCI_SUCCESS) { 1518 if (status != SCI_SUCCESS) {
1519 spin_unlock_irqrestore(&ihost->scic_lock, flags); 1519 spin_unlock_irqrestore(&ihost->scic_lock, flags);
1520 1520
1521 dev_warn(&ihost->pdev->dev, 1521 dev_warn(&ihost->pdev->dev,
1522 "%s: scic_remote_device_reset(%p) returned %d!\n", 1522 "%s: sci_remote_device_reset(%p) returned %d!\n",
1523 __func__, idev, status); 1523 __func__, idev, status);
1524 1524
1525 return TMF_RESP_FUNC_FAILED; 1525 return TMF_RESP_FUNC_FAILED;
@@ -1540,7 +1540,7 @@ static int isci_reset_device(struct isci_host *ihost,
1540 1540
1541 /* Since all pending TCs have been cleaned, resume the RNC. */ 1541 /* Since all pending TCs have been cleaned, resume the RNC. */
1542 spin_lock_irqsave(&ihost->scic_lock, flags); 1542 spin_lock_irqsave(&ihost->scic_lock, flags);
1543 status = scic_remote_device_reset_complete(idev); 1543 status = sci_remote_device_reset_complete(idev);
1544 spin_unlock_irqrestore(&ihost->scic_lock, flags); 1544 spin_unlock_irqrestore(&ihost->scic_lock, flags);
1545 1545
1546 /* If this is a device on an expander, bring the phy back up. */ 1546 /* If this is a device on an expander, bring the phy back up. */
@@ -1560,7 +1560,7 @@ static int isci_reset_device(struct isci_host *ihost,
1560 1560
1561 if (status != SCI_SUCCESS) { 1561 if (status != SCI_SUCCESS) {
1562 dev_warn(&ihost->pdev->dev, 1562 dev_warn(&ihost->pdev->dev,
1563 "%s: scic_remote_device_reset_complete(%p) " 1563 "%s: sci_remote_device_reset_complete(%p) "
1564 "returned %d!\n", __func__, idev, status); 1564 "returned %d!\n", __func__, idev, status);
1565 } 1565 }
1566 1566