Lines Matching refs:aha1542
239 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_interrupt() local
246 struct mailbox *mb = aha1542->mb; in aha1542_interrupt()
247 struct ccb *ccb = aha1542->ccb; in aha1542_interrupt()
286 mbi = aha1542->aha1542_last_mbi_used + 1; in aha1542_interrupt()
296 } while (mbi != aha1542->aha1542_last_mbi_used); in aha1542_interrupt()
309 aha1542->aha1542_last_mbi_used = mbi; in aha1542_interrupt()
324 tmp_cmd = aha1542->int_cmds[mbo]; in aha1542_interrupt()
363 aha1542->int_cmds[mbo] = NULL; /* This effectively frees up the mailbox slot, as in aha1542_interrupt()
372 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_queuecommand() local
379 struct mailbox *mb = aha1542->mb; in aha1542_queuecommand()
380 struct ccb *ccb = aha1542->ccb; in aha1542_queuecommand()
412 mbo = aha1542->aha1542_last_mbo_used + 1; in aha1542_queuecommand()
417 if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) in aha1542_queuecommand()
422 } while (mbo != aha1542->aha1542_last_mbo_used); in aha1542_queuecommand()
424 if (mb[mbo].status || aha1542->int_cmds[mbo]) in aha1542_queuecommand()
427 aha1542->int_cmds[mbo] = cmd; /* This will effectively prevent someone else from in aha1542_queuecommand()
430 aha1542->aha1542_last_mbo_used = mbo; in aha1542_queuecommand()
492 struct aha1542_hostdata *aha1542 = shost_priv(sh); in setup_mailboxes() local
494 struct mailbox *mb = aha1542->mb; in setup_mailboxes()
495 struct ccb *ccb = aha1542->ccb; in setup_mailboxes()
612 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_query() local
625 aha1542->bios_translation = BIOS_TRANSLATION_6432; /* Default case */ in aha1542_query()
641 aha1542->bios_translation = aha1542_mbenable(sh); in aha1542_query()
702 struct aha1542_hostdata *aha1542; in aha1542_hw_init() local
714 aha1542 = shost_priv(sh); in aha1542_hw_init()
719 aha1542->aha1542_last_mbi_used = 2 * AHA1542_MAILBOXES - 1; in aha1542_hw_init()
720 aha1542->aha1542_last_mbo_used = AHA1542_MAILBOXES - 1; in aha1542_hw_init()
735 if (aha1542->bios_translation == BIOS_TRANSLATION_25563) in aha1542_hw_init()
795 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_dev_reset() local
797 struct mailbox *mb = aha1542->mb; in aha1542_dev_reset()
801 struct ccb *ccb = aha1542->ccb; in aha1542_dev_reset()
804 mbo = aha1542->aha1542_last_mbo_used + 1; in aha1542_dev_reset()
809 if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) in aha1542_dev_reset()
814 } while (mbo != aha1542->aha1542_last_mbo_used); in aha1542_dev_reset()
816 if (mb[mbo].status || aha1542->int_cmds[mbo]) in aha1542_dev_reset()
819 aha1542->int_cmds[mbo] = cmd; /* This will effectively in aha1542_dev_reset()
823 aha1542->aha1542_last_mbo_used = mbo; in aha1542_dev_reset()
852 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_reset() local
887 if (aha1542->int_cmds[i] != NULL) { in aha1542_reset()
889 tmp_cmd = aha1542->int_cmds[i]; in aha1542_reset()
902 aha1542->int_cmds[i] = NULL; in aha1542_reset()
903 aha1542->mb[i].status = 0; in aha1542_reset()
924 struct aha1542_hostdata *aha1542 = shost_priv(sdev->host); in aha1542_biosparam() local
927 aha1542->bios_translation == BIOS_TRANSLATION_25563) { in aha1542_biosparam()