tag | line | file | source code |
mbi | 351 | 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 | 1104 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
mbi | 1113 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
mbi | 1114 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 1117 | drivers/scsi/aha1542.c | if(mb[mbi].status != 0) break; |
mbi | 1118 | drivers/scsi/aha1542.c | mbi++; |
mbi | 1119 | drivers/scsi/aha1542.c | if (mbi >= 2*AHA1542_MAILBOXES) mbi = AHA1542_MAILBOXES; |
mbi | 1120 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
mbi | 1123 | drivers/scsi/aha1542.c | if(mb[mbi].status) { |
mbi | 429 | drivers/scsi/buslogic.c | size_t mbi, mbo = 0; |
mbi | 494 | drivers/scsi/buslogic.c | mbi = HOSTDATA(shpnt)->last_mbi_used + 1; |
mbi | 495 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 496 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 503 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |
mbi | 507 | drivers/scsi/buslogic.c | mbi++; |
mbi | 508 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 509 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 510 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(shpnt)->last_mbi_used); |
mbi | 513 | drivers/scsi/buslogic.c | mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
mbi | 514 | drivers/scsi/buslogic.c | mbistatus = mb[mbi].status; |
mbi | 515 | drivers/scsi/buslogic.c | mb[mbi].status = MBX_NOT_IN_USE; |
mbi | 516 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->last_mbi_used = mbi; |
mbi | 536 | drivers/scsi/buslogic.c | mb[mbi].status); |
mbi | 543 | drivers/scsi/buslogic.c | buslogic_printk("...done %u %u\n", mbo, mbi); |
mbi | 1385 | drivers/scsi/buslogic.c | size_t mbi, mbo; |
mbi | 1396 | drivers/scsi/buslogic.c | mbi = HOSTDATA(scpnt->host)->last_mbi_used + 1; |
mbi | 1397 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1398 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1401 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) |
mbi | 1403 | drivers/scsi/buslogic.c | mbi++; |
mbi | 1404 | drivers/scsi/buslogic.c | if (mbi >= 2 * BUSLOGIC_MAILBOXES) |
mbi | 1405 | drivers/scsi/buslogic.c | mbi = BUSLOGIC_MAILBOXES; |
mbi | 1406 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(scpnt->host)->last_mbi_used); |
mbi | 1409 | drivers/scsi/buslogic.c | if (mb[mbi].status != MBX_NOT_IN_USE) { |