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()
416 mbo = aha1542->aha1542_last_mbo_used + 1; in aha1542_queuecommand()
421 if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) in aha1542_queuecommand()
426 } while (mbo != aha1542->aha1542_last_mbo_used); in aha1542_queuecommand()
428 if (mb[mbo].status || aha1542->int_cmds[mbo]) in aha1542_queuecommand()
431 aha1542->int_cmds[mbo] = cmd; /* This will effectively prevent someone else from in aha1542_queuecommand()
434 aha1542->aha1542_last_mbo_used = mbo; in aha1542_queuecommand()
496 struct aha1542_hostdata *aha1542 = shost_priv(sh); in setup_mailboxes() local
498 struct mailbox *mb = aha1542->mb; in setup_mailboxes()
499 struct ccb *ccb = aha1542->ccb; in setup_mailboxes()
616 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_query() local
629 aha1542->bios_translation = BIOS_TRANSLATION_6432; /* Default case */ in aha1542_query()
645 aha1542->bios_translation = aha1542_mbenable(sh); in aha1542_query()
706 struct aha1542_hostdata *aha1542; in aha1542_hw_init() local
718 aha1542 = shost_priv(sh); in aha1542_hw_init()
723 aha1542->aha1542_last_mbi_used = 2 * AHA1542_MAILBOXES - 1; in aha1542_hw_init()
724 aha1542->aha1542_last_mbo_used = AHA1542_MAILBOXES - 1; in aha1542_hw_init()
739 if (aha1542->bios_translation == BIOS_TRANSLATION_25563) in aha1542_hw_init()
799 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_dev_reset() local
801 struct mailbox *mb = aha1542->mb; in aha1542_dev_reset()
805 struct ccb *ccb = aha1542->ccb; in aha1542_dev_reset()
808 mbo = aha1542->aha1542_last_mbo_used + 1; in aha1542_dev_reset()
813 if (mb[mbo].status == 0 && aha1542->int_cmds[mbo] == NULL) in aha1542_dev_reset()
818 } while (mbo != aha1542->aha1542_last_mbo_used); in aha1542_dev_reset()
820 if (mb[mbo].status || aha1542->int_cmds[mbo]) in aha1542_dev_reset()
823 aha1542->int_cmds[mbo] = cmd; /* This will effectively in aha1542_dev_reset()
827 aha1542->aha1542_last_mbo_used = mbo; in aha1542_dev_reset()
856 struct aha1542_hostdata *aha1542 = shost_priv(sh); in aha1542_reset() local
891 if (aha1542->int_cmds[i] != NULL) { in aha1542_reset()
893 tmp_cmd = aha1542->int_cmds[i]; in aha1542_reset()
906 aha1542->int_cmds[i] = NULL; in aha1542_reset()
907 aha1542->mb[i].status = 0; in aha1542_reset()
928 struct aha1542_hostdata *aha1542 = shost_priv(sdev->host); in aha1542_biosparam() local
931 aha1542->bios_translation == BIOS_TRANSLATION_25563) { in aha1542_biosparam()