aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic94xx/aic94xx_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_task.c')
-rw-r--r--drivers/scsi/aic94xx/aic94xx_task.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_task.c b/drivers/scsi/aic94xx/aic94xx_task.c
index ee0a98bffcd4..663fdef38c52 100644
--- a/drivers/scsi/aic94xx/aic94xx_task.c
+++ b/drivers/scsi/aic94xx/aic94xx_task.c
@@ -187,7 +187,7 @@ static void asd_get_response_tasklet(struct asd_ascb *ascb,
187 ts->buf_valid_size = 0; 187 ts->buf_valid_size = 0;
188 edb = asd_ha->seq.edb_arr[edb_id + escb->edb_index]; 188 edb = asd_ha->seq.edb_arr[edb_id + escb->edb_index];
189 r = edb->vaddr; 189 r = edb->vaddr;
190 if (task->task_proto == SAS_PROTO_SSP) { 190 if (task->task_proto == SAS_PROTOCOL_SSP) {
191 struct ssp_response_iu *iu = 191 struct ssp_response_iu *iu =
192 r + 16 + sizeof(struct ssp_frame_hdr); 192 r + 16 + sizeof(struct ssp_frame_hdr);
193 193
@@ -341,14 +341,14 @@ Again:
341 } 341 }
342 342
343 switch (task->task_proto) { 343 switch (task->task_proto) {
344 case SATA_PROTO: 344 case SAS_PROTOCOL_SATA:
345 case SAS_PROTO_STP: 345 case SAS_PROTOCOL_STP:
346 asd_unbuild_ata_ascb(ascb); 346 asd_unbuild_ata_ascb(ascb);
347 break; 347 break;
348 case SAS_PROTO_SMP: 348 case SAS_PROTOCOL_SMP:
349 asd_unbuild_smp_ascb(ascb); 349 asd_unbuild_smp_ascb(ascb);
350 break; 350 break;
351 case SAS_PROTO_SSP: 351 case SAS_PROTOCOL_SSP:
352 asd_unbuild_ssp_ascb(ascb); 352 asd_unbuild_ssp_ascb(ascb);
353 default: 353 default:
354 break; 354 break;
@@ -586,17 +586,17 @@ int asd_execute_task(struct sas_task *task, const int num,
586 list_for_each_entry(a, &alist, list) { 586 list_for_each_entry(a, &alist, list) {
587 t = a->uldd_task; 587 t = a->uldd_task;
588 a->uldd_timer = 1; 588 a->uldd_timer = 1;
589 if (t->task_proto & SAS_PROTO_STP) 589 if (t->task_proto & SAS_PROTOCOL_STP)
590 t->task_proto = SAS_PROTO_STP; 590 t->task_proto = SAS_PROTOCOL_STP;
591 switch (t->task_proto) { 591 switch (t->task_proto) {
592 case SATA_PROTO: 592 case SAS_PROTOCOL_SATA:
593 case SAS_PROTO_STP: 593 case SAS_PROTOCOL_STP:
594 res = asd_build_ata_ascb(a, t, gfp_flags); 594 res = asd_build_ata_ascb(a, t, gfp_flags);
595 break; 595 break;
596 case SAS_PROTO_SMP: 596 case SAS_PROTOCOL_SMP:
597 res = asd_build_smp_ascb(a, t, gfp_flags); 597 res = asd_build_smp_ascb(a, t, gfp_flags);
598 break; 598 break;
599 case SAS_PROTO_SSP: 599 case SAS_PROTOCOL_SSP:
600 res = asd_build_ssp_ascb(a, t, gfp_flags); 600 res = asd_build_ssp_ascb(a, t, gfp_flags);
601 break; 601 break;
602 default: 602 default:
@@ -633,14 +633,14 @@ out_err_unmap:
633 t->task_state_flags &= ~SAS_TASK_AT_INITIATOR; 633 t->task_state_flags &= ~SAS_TASK_AT_INITIATOR;
634 spin_unlock_irqrestore(&t->task_state_lock, flags); 634 spin_unlock_irqrestore(&t->task_state_lock, flags);
635 switch (t->task_proto) { 635 switch (t->task_proto) {
636 case SATA_PROTO: 636 case SAS_PROTOCOL_SATA:
637 case SAS_PROTO_STP: 637 case SAS_PROTOCOL_STP:
638 asd_unbuild_ata_ascb(a); 638 asd_unbuild_ata_ascb(a);
639 break; 639 break;
640 case SAS_PROTO_SMP: 640 case SAS_PROTOCOL_SMP:
641 asd_unbuild_smp_ascb(a); 641 asd_unbuild_smp_ascb(a);
642 break; 642 break;
643 case SAS_PROTO_SSP: 643 case SAS_PROTOCOL_SSP:
644 asd_unbuild_ssp_ascb(a); 644 asd_unbuild_ssp_ascb(a);
645 default: 645 default:
646 break; 646 break;