tag | line | file | source code |
mbi | 355 | drivers/scsi/aha1542.c | int errstatus, mbi, mbo, mbistatus; |
mbi | 406 | drivers/scsi/aha1542.c | mbi = HOSTDATA(shost)->aha1542_last_mbi_used + 1; |
mbi | 407 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 410 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 411 | drivers/scsi/aha1542.c | mbi++; |
mbi | 412 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 413 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(shost)->aha1542_last_mbi_used); |
mbi | 415 | drivers/scsi/aha1542.c | if(mb[mbi].status == 0){ |
mbi | 426 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
mbi | 427 | drivers/scsi/aha1542.c | mbistatus = mb[mbi].status; |
mbi | 428 | drivers/scsi/aha1542.c | mb[mbi].status = 0; |
mbi | 429 | drivers/scsi/aha1542.c | HOSTDATA(shost)->aha1542_last_mbi_used = mbi; |
mbi | 436 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
mbi | 443 | drivers/scsi/aha1542.c | printk("...done %d %d\n",mbo, mbi); |
mbi | 1103 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
mbi | 1112 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
mbi | 1113 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 1116 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 1117 | drivers/scsi/aha1542.c | mbi++; |
mbi | 1118 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 1119 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
mbi | 1122 | drivers/scsi/aha1542.c | if(mb[mbi].status) { |
mbi | 447 | drivers/scsi/buslogic.c | int mbi, saved_mbo[BUSLOGIC_MAILBOXES]; |
mbi | 495 | drivers/scsi/buslogic.c | mbi = HOSTDATA(shpnt)->last_mbi_used + 1; |
mbi | 496 | drivers/scsi/buslogic.c | if (mbi >= 2*BUSLOGIC_MAILBOXES) |
mbi | 497 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 501 | drivers/scsi/buslogic.c | while (mb[mbi].status != MBX_NOT_IN_USE && found < BUSLOGIC_MAILBOXES) |
mbi | 503 | drivers/scsi/buslogic.c | int mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
mbi | 512 | drivers/scsi/buslogic.c | if (sctmp != NULL && mb[mbi].status != MBX_COMPLETION_NOT_FOUND) |
mbi | 518 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_COMPLETION_OK) |
mbi | 523 | drivers/scsi/buslogic.c | mb[mbi].status = MBX_NOT_IN_USE; |
mbi | 526 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->last_mbi_used = mbi; |
mbi | 528 | drivers/scsi/buslogic.c | if (++mbi >= 2*BUSLOGIC_MAILBOXES) |
mbi | 529 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1357 | drivers/scsi/buslogic.c | int mbi, mbo, last_mbi; |
mbi | 1369 | drivers/scsi/buslogic.c | mbi = last_mbi + 1; |
mbi | 1370 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1371 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1374 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) |
mbi | 1376 | drivers/scsi/buslogic.c | last_mbi = mbi; |
mbi | 1377 | drivers/scsi/buslogic.c | mbi++; |
mbi | 1378 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1379 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1380 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(scpnt->host)->last_mbi_used); |
mbi | 1382 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |