tag | line | file | source code |
mbi | 257 | drivers/scsi/aha1542.c | int errstatus, mbi, mbo, mbistatus; |
mbi | 293 | drivers/scsi/aha1542.c | mbi = HOSTDATA(shost)->aha1542_last_mbi_used + 1; |
mbi | 294 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 297 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 298 | drivers/scsi/aha1542.c | mbi++; |
mbi | 299 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 300 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(shost)->aha1542_last_mbi_used); |
mbi | 302 | drivers/scsi/aha1542.c | if(mb[mbi].status == 0){ |
mbi | 310 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
mbi | 311 | drivers/scsi/aha1542.c | mbistatus = mb[mbi].status; |
mbi | 312 | drivers/scsi/aha1542.c | mb[mbi].status = 0; |
mbi | 313 | drivers/scsi/aha1542.c | HOSTDATA(shost)->aha1542_last_mbi_used = mbi; |
mbi | 320 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
mbi | 327 | drivers/scsi/aha1542.c | printk("...done %d %d\n",mbo, mbi); |