Lines Matching refs:mb
61 struct mailbox mb[2 * AHA1542_MAILBOXES]; member
246 struct mailbox *mb = aha1542->mb; in aha1542_interrupt() local
291 if (mb[mbi].status != 0) 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()
314 ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); in aha1542_interrupt()
379 struct mailbox *mb = aha1542->mb; in aha1542_queuecommand() local
417 if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) in aha1542_queuecommand()
424 if (mb[mbo].status || aha1542->int_cmds[mbo]) in aha1542_queuecommand()
436 any2scsi(mb[mbo].ccbptr, isa_virt_to_bus(&ccb[mbo])); /* This gets trashed for some reason */ in aha1542_queuecommand()
482 mb[mbo].status = 1; in aha1542_queuecommand()
494 struct mailbox *mb = aha1542->mb; in setup_mailboxes() local
500 mb[i].status = mb[AHA1542_MAILBOXES + i].status = 0; in setup_mailboxes()
501 any2scsi(mb[i].ccbptr, isa_virt_to_bus(&ccb[i])); in setup_mailboxes()
504 any2scsi((mb_cmd + 2), isa_virt_to_bus(mb)); in setup_mailboxes()
797 struct mailbox *mb = aha1542->mb; in aha1542_dev_reset() local
809 if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) in aha1542_dev_reset()
816 if (mb[mbo].status || aha1542->int_cmds[mbo]) in aha1542_dev_reset()
825 any2scsi(mb[mbo].ccbptr, isa_virt_to_bus(&ccb[mbo])); /* This gets trashed for some reason */ in aha1542_dev_reset()
903 aha1542->mb[i].status = 0; in aha1542_reset()