Lines Matching refs:mbi
241 int errstatus, mbi, mbo, mbistatus; in aha1542_interrupt() local
286 mbi = aha1542->aha1542_last_mbi_used + 1; in aha1542_interrupt()
287 if (mbi >= 2 * AHA1542_MAILBOXES) in aha1542_interrupt()
288 mbi = AHA1542_MAILBOXES; in aha1542_interrupt()
291 if (mb[mbi].status != 0) in aha1542_interrupt()
293 mbi++; in aha1542_interrupt()
294 if (mbi >= 2 * AHA1542_MAILBOXES) in aha1542_interrupt()
295 mbi = AHA1542_MAILBOXES; in aha1542_interrupt()
296 } while (mbi != aha1542->aha1542_last_mbi_used); in aha1542_interrupt()
298 if (mb[mbi].status == 0) { in aha1542_interrupt()
306 mbo = (scsi2int(mb[mbi].ccbptr) - (isa_virt_to_bus(&ccb[0]))) / sizeof(struct ccb); in aha1542_interrupt()
307 mbistatus = mb[mbi].status; in aha1542_interrupt()
308 mb[mbi].status = 0; in aha1542_interrupt()
309 aha1542->aha1542_last_mbi_used = mbi; in aha1542_interrupt()
314 ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); in aha1542_interrupt()
321 shost_printk(KERN_DEBUG, sh, "...done %d %d\n", mbo, mbi); in aha1542_interrupt()