tag | line | file | source code |
mbi | 283 | drivers/scsi/aha1542.c | int errstatus, mbi, mbo, mbistatus; |
mbi | 336 | drivers/scsi/aha1542.c | mbi = HOSTDATA(shost)->aha1542_last_mbi_used + 1; |
mbi | 337 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 340 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 341 | drivers/scsi/aha1542.c | mbi++; |
mbi | 342 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 343 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(shost)->aha1542_last_mbi_used); |
mbi | 345 | drivers/scsi/aha1542.c | if(mb[mbi].status == 0){ |
mbi | 356 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
mbi | 357 | drivers/scsi/aha1542.c | mbistatus = mb[mbi].status; |
mbi | 358 | drivers/scsi/aha1542.c | mb[mbi].status = 0; |
mbi | 359 | drivers/scsi/aha1542.c | HOSTDATA(shost)->aha1542_last_mbi_used = mbi; |
mbi | 366 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
mbi | 373 | drivers/scsi/aha1542.c | printk("...done %d %d\n",mbo, mbi); |
mbi | 946 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
mbi | 954 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
mbi | 955 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 958 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 959 | drivers/scsi/aha1542.c | mbi++; |
mbi | 960 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 961 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
mbi | 964 | drivers/scsi/aha1542.c | if(mb[mbi].status) { |
mbi | 398 | drivers/scsi/buslogic.c | size_t mbi, mbo = 0; |
mbi | 442 | drivers/scsi/buslogic.c | mbi = HOSTDATA(SHpnt)->last_mbi_used + 1; |
mbi | 443 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 444 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 451 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |
mbi | 455 | drivers/scsi/buslogic.c | mbi++; |
mbi | 456 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 457 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 458 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(SHpnt)->last_mbi_used); |
mbi | 461 | drivers/scsi/buslogic.c | mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
mbi | 462 | drivers/scsi/buslogic.c | mbistatus = mb[mbi].status; |
mbi | 463 | drivers/scsi/buslogic.c | mb[mbi].status = MBX_NOT_IN_USE; |
mbi | 464 | drivers/scsi/buslogic.c | HOSTDATA(SHpnt)->last_mbi_used = mbi; |
mbi | 481 | drivers/scsi/buslogic.c | mb[mbi].status); |
mbi | 488 | drivers/scsi/buslogic.c | buslogic_printk("...done %u %u\n", mbo, mbi); |
mbi | 1101 | drivers/scsi/buslogic.c | int mbi, mbo, i; |
mbi | 1109 | drivers/scsi/buslogic.c | mbi = HOSTDATA(SCpnt->host)->last_mbi_used + 1; |
mbi | 1110 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1111 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1114 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) |
mbi | 1116 | drivers/scsi/buslogic.c | mbi++; |
mbi | 1117 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1118 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1119 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(SCpnt->host)->last_mbi_used); |
mbi | 1122 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |