aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/u14-34f.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/u14-34f.c')
-rw-r--r--drivers/scsi/u14-34f.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/scsi/u14-34f.c b/drivers/scsi/u14-34f.c
index 9e8232a1f169..fc9f51818e8f 100644
--- a/drivers/scsi/u14-34f.c
+++ b/drivers/scsi/u14-34f.c
@@ -1254,7 +1254,7 @@ static int u14_34f_queuecommand(struct scsi_cmnd *SCpnt, void (*done)(struct scs
1254 1254
1255 if (SCpnt->host_scribble) 1255 if (SCpnt->host_scribble)
1256 panic("%s: qcomm, pid %ld, SCpnt %p already active.\n", 1256 panic("%s: qcomm, pid %ld, SCpnt %p already active.\n",
1257 BN(j), SCpnt->pid, SCpnt); 1257 BN(j), SCpnt->serial_number, SCpnt);
1258 1258
1259 /* i is the mailbox number, look for the first free mailbox 1259 /* i is the mailbox number, look for the first free mailbox
1260 starting from last_cp_used */ 1260 starting from last_cp_used */
@@ -1285,7 +1285,7 @@ static int u14_34f_queuecommand(struct scsi_cmnd *SCpnt, void (*done)(struct scs
1285 1285
1286 if (do_trace) printk("%s: qcomm, mbox %d, target %d.%d:%d, pid %ld.\n", 1286 if (do_trace) printk("%s: qcomm, mbox %d, target %d.%d:%d, pid %ld.\n",
1287 BN(j), i, SCpnt->device->channel, SCpnt->device->id, 1287 BN(j), i, SCpnt->device->channel, SCpnt->device->id,
1288 SCpnt->device->lun, SCpnt->pid); 1288 SCpnt->device->lun, SCpnt->serial_number);
1289 1289
1290 cpp->opcode = OP_SCSI; 1290 cpp->opcode = OP_SCSI;
1291 cpp->channel = SCpnt->device->channel; 1291 cpp->channel = SCpnt->device->channel;
@@ -1312,7 +1312,7 @@ static int u14_34f_queuecommand(struct scsi_cmnd *SCpnt, void (*done)(struct scs
1312 unmap_dma(i, j); 1312 unmap_dma(i, j);
1313 SCpnt->host_scribble = NULL; 1313 SCpnt->host_scribble = NULL;
1314 scmd_printk(KERN_INFO, SCpnt, 1314 scmd_printk(KERN_INFO, SCpnt,
1315 "qcomm, pid %ld, adapter busy.\n", SCpnt->pid); 1315 "qcomm, pid %ld, adapter busy.\n", SCpnt->serial_number);
1316 return 1; 1316 return 1;
1317 } 1317 }
1318 1318
@@ -1333,13 +1333,13 @@ static int u14_34f_eh_abort(struct scsi_cmnd *SCarg) {
1333 1333
1334 if (SCarg->host_scribble == NULL) { 1334 if (SCarg->host_scribble == NULL) {
1335 scmd_printk(KERN_INFO, SCarg, "abort, pid %ld inactive.\n", 1335 scmd_printk(KERN_INFO, SCarg, "abort, pid %ld inactive.\n",
1336 SCarg->pid); 1336 SCarg->serial_number);
1337 return SUCCESS; 1337 return SUCCESS;
1338 } 1338 }
1339 1339
1340 i = *(unsigned int *)SCarg->host_scribble; 1340 i = *(unsigned int *)SCarg->host_scribble;
1341 scmd_printk(KERN_INFO, SCarg, "abort, mbox %d, pid %ld.\n", 1341 scmd_printk(KERN_INFO, SCarg, "abort, mbox %d, pid %ld.\n",
1342 i, SCarg->pid); 1342 i, SCarg->serial_number);
1343 1343
1344 if (i >= sh[j]->can_queue) 1344 if (i >= sh[j]->can_queue)
1345 panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); 1345 panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j));
@@ -1383,7 +1383,7 @@ static int u14_34f_eh_abort(struct scsi_cmnd *SCarg) {
1383 SCarg->host_scribble = NULL; 1383 SCarg->host_scribble = NULL;
1384 HD(j)->cp_stat[i] = FREE; 1384 HD(j)->cp_stat[i] = FREE;
1385 printk("%s, abort, mbox %d ready, DID_ABORT, pid %ld done.\n", 1385 printk("%s, abort, mbox %d ready, DID_ABORT, pid %ld done.\n",
1386 BN(j), i, SCarg->pid); 1386 BN(j), i, SCarg->serial_number);
1387 SCarg->scsi_done(SCarg); 1387 SCarg->scsi_done(SCarg);
1388 return SUCCESS; 1388 return SUCCESS;
1389 } 1389 }
@@ -1397,12 +1397,12 @@ static int u14_34f_eh_host_reset(struct scsi_cmnd *SCarg) {
1397 struct scsi_cmnd *SCpnt; 1397 struct scsi_cmnd *SCpnt;
1398 1398
1399 j = ((struct hostdata *) SCarg->device->host->hostdata)->board_number; 1399 j = ((struct hostdata *) SCarg->device->host->hostdata)->board_number;
1400 scmd_printk(KERN_INFO, SCarg, "reset, enter, pid %ld.\n", SCarg->pid); 1400 scmd_printk(KERN_INFO, SCarg, "reset, enter, pid %ld.\n", SCarg->serial_number);
1401 1401
1402 spin_lock_irq(sh[j]->host_lock); 1402 spin_lock_irq(sh[j]->host_lock);
1403 1403
1404 if (SCarg->host_scribble == NULL) 1404 if (SCarg->host_scribble == NULL)
1405 printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); 1405 printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->serial_number);
1406 1406
1407 if (HD(j)->in_reset) { 1407 if (HD(j)->in_reset) {
1408 printk("%s: reset, exit, already in reset.\n", BN(j)); 1408 printk("%s: reset, exit, already in reset.\n", BN(j));
@@ -1440,13 +1440,13 @@ static int u14_34f_eh_host_reset(struct scsi_cmnd *SCarg) {
1440 if (HD(j)->cp_stat[i] == READY || HD(j)->cp_stat[i] == ABORTING) { 1440 if (HD(j)->cp_stat[i] == READY || HD(j)->cp_stat[i] == ABORTING) {
1441 HD(j)->cp_stat[i] = ABORTING; 1441 HD(j)->cp_stat[i] = ABORTING;
1442 printk("%s: reset, mbox %d aborting, pid %ld.\n", 1442 printk("%s: reset, mbox %d aborting, pid %ld.\n",
1443 BN(j), i, SCpnt->pid); 1443 BN(j), i, SCpnt->serial_number);
1444 } 1444 }
1445 1445
1446 else { 1446 else {
1447 HD(j)->cp_stat[i] = IN_RESET; 1447 HD(j)->cp_stat[i] = IN_RESET;
1448 printk("%s: reset, mbox %d in reset, pid %ld.\n", 1448 printk("%s: reset, mbox %d in reset, pid %ld.\n",
1449 BN(j), i, SCpnt->pid); 1449 BN(j), i, SCpnt->serial_number);
1450 } 1450 }
1451 1451
1452 if (SCpnt->host_scribble == NULL) 1452 if (SCpnt->host_scribble == NULL)
@@ -1495,7 +1495,7 @@ static int u14_34f_eh_host_reset(struct scsi_cmnd *SCarg) {
1495 HD(j)->cp_stat[i] = LOCKED; 1495 HD(j)->cp_stat[i] = LOCKED;
1496 1496
1497 printk("%s, reset, mbox %d locked, DID_RESET, pid %ld done.\n", 1497 printk("%s, reset, mbox %d locked, DID_RESET, pid %ld done.\n",
1498 BN(j), i, SCpnt->pid); 1498 BN(j), i, SCpnt->serial_number);
1499 } 1499 }
1500 1500
1501 else if (HD(j)->cp_stat[i] == ABORTING) { 1501 else if (HD(j)->cp_stat[i] == ABORTING) {
@@ -1508,7 +1508,7 @@ static int u14_34f_eh_host_reset(struct scsi_cmnd *SCarg) {
1508 HD(j)->cp_stat[i] = FREE; 1508 HD(j)->cp_stat[i] = FREE;
1509 1509
1510 printk("%s, reset, mbox %d aborting, DID_RESET, pid %ld done.\n", 1510 printk("%s, reset, mbox %d aborting, DID_RESET, pid %ld done.\n",
1511 BN(j), i, SCpnt->pid); 1511 BN(j), i, SCpnt->serial_number);
1512 } 1512 }
1513 1513
1514 else 1514 else
@@ -1522,7 +1522,7 @@ static int u14_34f_eh_host_reset(struct scsi_cmnd *SCarg) {
1522 HD(j)->in_reset = FALSE; 1522 HD(j)->in_reset = FALSE;
1523 do_trace = FALSE; 1523 do_trace = FALSE;
1524 1524
1525 if (arg_done) printk("%s: reset, exit, pid %ld done.\n", BN(j), SCarg->pid); 1525 if (arg_done) printk("%s: reset, exit, pid %ld done.\n", BN(j), SCarg->serial_number);
1526 else printk("%s: reset, exit.\n", BN(j)); 1526 else printk("%s: reset, exit.\n", BN(j));
1527 1527
1528 spin_unlock_irq(sh[j]->host_lock); 1528 spin_unlock_irq(sh[j]->host_lock);
@@ -1639,7 +1639,7 @@ static int reorder(unsigned int j, unsigned long cursec,
1639 1639
1640 if (!input_only) for (n = 0; n < n_ready; n++) { 1640 if (!input_only) for (n = 0; n < n_ready; n++) {
1641 k = il[n]; cpp = &HD(j)->cp[k]; SCpnt = cpp->SCpnt; 1641 k = il[n]; cpp = &HD(j)->cp[k]; SCpnt = cpp->SCpnt;
1642 ll[n] = SCpnt->request->nr_sectors; pl[n] = SCpnt->pid; 1642 ll[n] = SCpnt->request->nr_sectors; pl[n] = SCpnt->serial_number;
1643 1643
1644 if (!n) continue; 1644 if (!n) continue;
1645 1645
@@ -1666,7 +1666,7 @@ static int reorder(unsigned int j, unsigned long cursec,
1666 printk("%s %d.%d:%d pid %ld mb %d fc %d nr %d sec %ld ns %ld"\ 1666 printk("%s %d.%d:%d pid %ld mb %d fc %d nr %d sec %ld ns %ld"\
1667 " cur %ld s:%c r:%c rev:%c in:%c ov:%c xd %d.\n", 1667 " cur %ld s:%c r:%c rev:%c in:%c ov:%c xd %d.\n",
1668 (ihdlr ? "ihdlr" : "qcomm"), SCpnt->channel, SCpnt->target, 1668 (ihdlr ? "ihdlr" : "qcomm"), SCpnt->channel, SCpnt->target,
1669 SCpnt->lun, SCpnt->pid, k, flushcount, n_ready, 1669 SCpnt->lun, SCpnt->serial_number, k, flushcount, n_ready,
1670 SCpnt->request->sector, SCpnt->request->nr_sectors, cursec, 1670 SCpnt->request->sector, SCpnt->request->nr_sectors, cursec,
1671 YESNO(s), YESNO(r), YESNO(rev), YESNO(input_only), 1671 YESNO(s), YESNO(r), YESNO(rev), YESNO(input_only),
1672 YESNO(overlap), cpp->xdir); 1672 YESNO(overlap), cpp->xdir);
@@ -1703,7 +1703,7 @@ static void flush_dev(struct scsi_device *dev, unsigned long cursec, unsigned in
1703 scmd_printk(KERN_INFO, SCpnt, 1703 scmd_printk(KERN_INFO, SCpnt,
1704 "%s, pid %ld, mbox %d, adapter" 1704 "%s, pid %ld, mbox %d, adapter"
1705 " busy, will abort.\n", (ihdlr ? "ihdlr" : "qcomm"), 1705 " busy, will abort.\n", (ihdlr ? "ihdlr" : "qcomm"),
1706 SCpnt->pid, k); 1706 SCpnt->serial_number, k);
1707 HD(j)->cp_stat[k] = ABORTING; 1707 HD(j)->cp_stat[k] = ABORTING;
1708 continue; 1708 continue;
1709 } 1709 }
@@ -1787,11 +1787,11 @@ static irqreturn_t ihdlr(int irq, unsigned int j) {
1787 1787
1788 if (SCpnt->host_scribble == NULL) 1788 if (SCpnt->host_scribble == NULL)
1789 panic("%s: ihdlr, mbox %d, pid %ld, SCpnt %p garbled.\n", BN(j), i, 1789 panic("%s: ihdlr, mbox %d, pid %ld, SCpnt %p garbled.\n", BN(j), i,
1790 SCpnt->pid, SCpnt); 1790 SCpnt->serial_number, SCpnt);
1791 1791
1792 if (*(unsigned int *)SCpnt->host_scribble != i) 1792 if (*(unsigned int *)SCpnt->host_scribble != i)
1793 panic("%s: ihdlr, mbox %d, pid %ld, index mismatch %d.\n", 1793 panic("%s: ihdlr, mbox %d, pid %ld, index mismatch %d.\n",
1794 BN(j), i, SCpnt->pid, *(unsigned int *)SCpnt->host_scribble); 1794 BN(j), i, SCpnt->serial_number, *(unsigned int *)SCpnt->host_scribble);
1795 1795
1796 sync_dma(i, j); 1796 sync_dma(i, j);
1797 1797
@@ -1835,12 +1835,12 @@ static irqreturn_t ihdlr(int irq, unsigned int j) {
1835 (SCpnt->sense_buffer[2] & 0xf) == NOT_READY))) 1835 (SCpnt->sense_buffer[2] & 0xf) == NOT_READY)))
1836 scmd_printk(KERN_INFO, SCpnt, 1836 scmd_printk(KERN_INFO, SCpnt,
1837 "ihdlr, pid %ld, target_status 0x%x, sense key 0x%x.\n", 1837 "ihdlr, pid %ld, target_status 0x%x, sense key 0x%x.\n",
1838 SCpnt->pid, spp->target_status, 1838 SCpnt->serial_number, spp->target_status,
1839 SCpnt->sense_buffer[2]); 1839 SCpnt->sense_buffer[2]);
1840 1840
1841 HD(j)->target_to[scmd_id(SCpnt)][scmd_channel(SCpnt)] = 0; 1841 HD(j)->target_to[scmd_id(SCpnt)][scmd_channel(SCpnt)] = 0;
1842 1842
1843 if (HD(j)->last_retried_pid == SCpnt->pid) HD(j)->retries = 0; 1843 if (HD(j)->last_retried_pid == SCpnt->serial_number) HD(j)->retries = 0;
1844 1844
1845 break; 1845 break;
1846 case ASST: /* Selection Time Out */ 1846 case ASST: /* Selection Time Out */
@@ -1877,7 +1877,7 @@ static irqreturn_t ihdlr(int irq, unsigned int j) {
1877#endif 1877#endif
1878 1878
1879 HD(j)->retries++; 1879 HD(j)->retries++;
1880 HD(j)->last_retried_pid = SCpnt->pid; 1880 HD(j)->last_retried_pid = SCpnt->serial_number;
1881 } 1881 }
1882 else 1882 else
1883 status = DID_ERROR << 16; 1883 status = DID_ERROR << 16;
@@ -1907,7 +1907,7 @@ static irqreturn_t ihdlr(int irq, unsigned int j) {
1907#endif 1907#endif
1908 scmd_printk(KERN_INFO, SCpnt, "ihdlr, mbox %2d, err 0x%x:%x,"\ 1908 scmd_printk(KERN_INFO, SCpnt, "ihdlr, mbox %2d, err 0x%x:%x,"\
1909 " pid %ld, reg 0x%x, count %d.\n", 1909 " pid %ld, reg 0x%x, count %d.\n",
1910 i, spp->adapter_status, spp->target_status, SCpnt->pid, 1910 i, spp->adapter_status, spp->target_status, SCpnt->serial_number,
1911 reg, HD(j)->iocount); 1911 reg, HD(j)->iocount);
1912 1912
1913 unmap_dma(i, j); 1913 unmap_dma(i, j);