tag | line | file | source code |
mbi | 317 | drivers/scsi/aha1542.c | int errstatus, mbi, mbo, mbistatus; |
mbi | 370 | drivers/scsi/aha1542.c | mbi = HOSTDATA(shost)->aha1542_last_mbi_used + 1; |
mbi | 371 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 374 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 375 | drivers/scsi/aha1542.c | mbi++; |
mbi | 376 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 377 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(shost)->aha1542_last_mbi_used); |
mbi | 379 | drivers/scsi/aha1542.c | if(mb[mbi].status == 0){ |
mbi | 390 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
mbi | 391 | drivers/scsi/aha1542.c | mbistatus = mb[mbi].status; |
mbi | 392 | drivers/scsi/aha1542.c | mb[mbi].status = 0; |
mbi | 393 | drivers/scsi/aha1542.c | HOSTDATA(shost)->aha1542_last_mbi_used = mbi; |
mbi | 400 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
mbi | 407 | drivers/scsi/aha1542.c | printk("...done %d %d\n",mbo, mbi); |
mbi | 981 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
mbi | 989 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
mbi | 990 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 993 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 994 | drivers/scsi/aha1542.c | mbi++; |
mbi | 995 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 996 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
mbi | 999 | drivers/scsi/aha1542.c | if(mb[mbi].status) { |
mbi | 426 | drivers/scsi/buslogic.c | size_t mbi, mbo = 0; |
mbi | 487 | drivers/scsi/buslogic.c | mbi = HOSTDATA(shpnt)->last_mbi_used + 1; |
mbi | 488 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 489 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 496 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |
mbi | 500 | drivers/scsi/buslogic.c | mbi++; |
mbi | 501 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 502 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 503 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(shpnt)->last_mbi_used); |
mbi | 506 | drivers/scsi/buslogic.c | mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
mbi | 507 | drivers/scsi/buslogic.c | mbistatus = mb[mbi].status; |
mbi | 508 | drivers/scsi/buslogic.c | mb[mbi].status = MBX_NOT_IN_USE; |
mbi | 509 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->last_mbi_used = mbi; |
mbi | 529 | drivers/scsi/buslogic.c | mb[mbi].status); |
mbi | 536 | drivers/scsi/buslogic.c | buslogic_printk("...done %u %u\n", mbo, mbi); |
mbi | 1212 | drivers/scsi/buslogic.c | size_t mbi, mbo; |
mbi | 1221 | drivers/scsi/buslogic.c | mbi = HOSTDATA(scpnt->host)->last_mbi_used + 1; |
mbi | 1222 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1223 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1226 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) |
mbi | 1228 | drivers/scsi/buslogic.c | mbi++; |
mbi | 1229 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1230 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1231 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(scpnt->host)->last_mbi_used); |
mbi | 1234 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |