Lines Matching refs:pCurrCard

765 		     struct sccb_card *pCurrCard);
793 static void FPT_queueSelectFail(struct sccb_card *pCurrCard,
796 static void FPT_queueCmdComplete(struct sccb_card *pCurrCard,
798 static void FPT_queueSearchSelect(struct sccb_card *pCurrCard,
837 struct sccb_card *pCurrCard);
848 struct sccb_card *pCurrCard,
852 static void FPT_SccbMgrTableInitCard(struct sccb_card *pCurrCard,
1369 static void FlashPoint_ReleaseHostAdapter(void *pCurrCard) in FlashPoint_ReleaseHostAdapter() argument
1378 pCurrNvRam = ((struct sccb_card *)pCurrCard)->pNvRamInfo; in FlashPoint_ReleaseHostAdapter()
1402 FPT_WrStack(((struct sccb_card *)pCurrCard)->ioPort, 0, 0); in FlashPoint_ReleaseHostAdapter()
1476 struct sccb_card *pCurrCard = curr_card; in FlashPoint_StartCCB() local
1478 thisCard = pCurrCard->cardIndex; in FlashPoint_StartCCB()
1479 ioport = pCurrCard->ioPort; in FlashPoint_StartCCB()
1494 if (!pCurrCard->cmdCounter) { in FlashPoint_StartCCB()
1499 if (pCurrCard->globalFlags & F_GREEN_PC) { in FlashPoint_StartCCB()
1505 pCurrCard->cmdCounter++; in FlashPoint_StartCCB()
1514 pCurrCard->currentSCCB; in FlashPoint_StartCCB()
1515 pCurrCard->currentSCCB = p_Sccb; in FlashPoint_StartCCB()
1517 pCurrCard->currentSCCB = in FlashPoint_StartCCB()
1528 pCurrCard->currentSCCB; in FlashPoint_StartCCB()
1529 pCurrCard->currentSCCB = p_Sccb; in FlashPoint_StartCCB()
1531 pCurrCard->currentSCCB = in FlashPoint_StartCCB()
1542 if ((pCurrCard->globalFlags & F_CONLUN_IO) && in FlashPoint_StartCCB()
1548 if ((pCurrCard->currentSCCB == NULL) && in FlashPoint_StartCCB()
1553 pCurrCard->currentSCCB = p_Sccb; in FlashPoint_StartCCB()
1560 pSaveSccb = pCurrCard->currentSCCB; in FlashPoint_StartCCB()
1561 pCurrCard->currentSCCB = p_Sccb; in FlashPoint_StartCCB()
1564 pCurrCard->currentSCCB = pSaveSccb; in FlashPoint_StartCCB()
1584 static int FlashPoint_AbortCCB(void *pCurrCard, struct sccb *p_Sccb) in FlashPoint_AbortCCB() argument
1593 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_AbortCCB()
1595 thisCard = ((struct sccb_card *)pCurrCard)->cardIndex; in FlashPoint_AbortCCB()
1601 ((struct sccb_card *)pCurrCard)->cmdCounter--; in FlashPoint_AbortCCB()
1603 if (!((struct sccb_card *)pCurrCard)->cmdCounter) in FlashPoint_AbortCCB()
1618 if (((struct sccb_card *)pCurrCard)->currentSCCB == in FlashPoint_AbortCCB()
1628 if (((struct sccb_card *)pCurrCard)-> in FlashPoint_AbortCCB()
1638 pCurrCard)->currentSCCB == in FlashPoint_AbortCCB()
1641 pCurrCard)-> in FlashPoint_AbortCCB()
1648 *)pCurrCard)-> in FlashPoint_AbortCCB()
1651 pCurrCard)-> in FlashPoint_AbortCCB()
1653 FPT_queueSelectFail((struct sccb_card *)pCurrCard, thisCard); in FlashPoint_AbortCCB()
1655 pCurrCard)-> in FlashPoint_AbortCCB()
1688 static unsigned char FlashPoint_InterruptPending(void *pCurrCard) in FlashPoint_InterruptPending() argument
1692 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_InterruptPending()
1718 struct sccb_card *pCurrCard = pcard; in FlashPoint_HandleInterrupt() local
1721 thisCard = pCurrCard->cardIndex; in FlashPoint_HandleInterrupt()
1722 ioport = pCurrCard->ioPort; in FlashPoint_HandleInterrupt()
1737 currSCCB = pCurrCard->currentSCCB; in FlashPoint_HandleInterrupt()
1741 FPT_SccbMgr_bad_isr(ioport, thisCard, pCurrCard, in FlashPoint_HandleInterrupt()
1767 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) in FlashPoint_HandleInterrupt()
1783 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) in FlashPoint_HandleInterrupt()
1826 pCurrCard->globalFlags |= F_NEW_SCCB_CMD; in FlashPoint_HandleInterrupt()
1836 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) in FlashPoint_HandleInterrupt()
1854 FPT_sres(ioport, thisCard, pCurrCard); in FlashPoint_HandleInterrupt()
1911 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) { in FlashPoint_HandleInterrupt()
1923 pCurrCard->globalFlags |= F_NEW_SCCB_CMD; in FlashPoint_HandleInterrupt()
1926 if (((struct sccb_card *)pCurrCard)-> in FlashPoint_HandleInterrupt()
1929 pCurrCard->globalFlags &= ~F_NEW_SCCB_CMD; in FlashPoint_HandleInterrupt()
1931 if (pCurrCard->currentSCCB == NULL) in FlashPoint_HandleInterrupt()
1932 FPT_queueSearchSelect(pCurrCard, thisCard); in FlashPoint_HandleInterrupt()
1934 if (pCurrCard->currentSCCB != NULL) { in FlashPoint_HandleInterrupt()
1935 pCurrCard->globalFlags &= ~F_NEW_SCCB_CMD; in FlashPoint_HandleInterrupt()
1961 struct sccb_card *pCurrCard, in FPT_SccbMgr_bad_isr() argument
1971 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) { in FPT_SccbMgr_bad_isr()
1974 pCurrCard->currentSCCB); in FPT_SccbMgr_bad_isr()
1987 if (pCurrCard->currentSCCB != NULL) { in FPT_SccbMgr_bad_isr()
1989 if (!pCurrCard->currentSCCB->HostStatus) in FPT_SccbMgr_bad_isr()
1990 pCurrCard->currentSCCB->HostStatus = in FPT_SccbMgr_bad_isr()
2013 if (pCurrCard->currentSCCB != NULL) { in FPT_SccbMgr_bad_isr()
2015 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) in FPT_SccbMgr_bad_isr()
2018 pCurrCard->currentSCCB); in FPT_SccbMgr_bad_isr()
2028 pCurrNvRam = pCurrCard->pNvRamInfo; in FPT_SccbMgr_bad_isr()
2039 FPT_scini(p_card, pCurrCard->ourId, 0); in FPT_SccbMgr_bad_isr()
2048 if (pCurrCard->currentSCCB != NULL) in FPT_SccbMgr_bad_isr()
2060 pCurrCard->currentSCCB->HostStatus = SCCB_SELECTION_TIMEOUT; in FPT_SccbMgr_bad_isr()
2063 &FPT_sccbMgrTbl[p_card][pCurrCard->currentSCCB->TargID]; in FPT_SccbMgr_bad_isr()
2064 if ((pCurrCard->globalFlags & F_CONLUN_IO) in FPT_SccbMgr_bad_isr()
2067 currTar_Info->TarLUNBusy[pCurrCard->currentSCCB->Lun] = in FPT_SccbMgr_bad_isr()
2081 FPT_sssyncv(p_port, pCurrCard->currentSCCB->TargID, NARROW_SCSI, in FPT_SccbMgr_bad_isr()
2084 FPT_queueCmdComplete(pCurrCard, pCurrCard->currentSCCB, p_card); in FPT_SccbMgr_bad_isr()
2133 static void FPT_SccbMgrTableInitCard(struct sccb_card *pCurrCard, in FPT_SccbMgrTableInitCard() argument
2148 pCurrCard->scanIndex = 0x00; in FPT_SccbMgrTableInitCard()
2149 pCurrCard->currentSCCB = NULL; in FPT_SccbMgrTableInitCard()
2150 pCurrCard->globalFlags = 0x00; in FPT_SccbMgrTableInitCard()
2151 pCurrCard->cmdCounter = 0x00; in FPT_SccbMgrTableInitCard()
2152 pCurrCard->tagQ_Lst = 0x01; in FPT_SccbMgrTableInitCard()
2153 pCurrCard->discQCount = 0; in FPT_SccbMgrTableInitCard()
2575 struct sccb_card *pCurrCard) in FPT_sres() argument
2583 if (pCurrCard->currentSCCB != NULL) { in FPT_sres()
2585 &FPT_sccbMgrTbl[p_card][pCurrCard->currentSCCB->TargID]; in FPT_sres()
2590 currSCCB = pCurrCard->currentSCCB; in FPT_sres()
2599 if (((pCurrCard->globalFlags & F_CONLUN_IO) && in FPT_sres()
2604 pCurrCard->discQCount--; in FPT_sres()
2605 pCurrCard->discQ_Tbl[currTar_Info-> in FPT_sres()
2614 pCurrCard->discQCount--; in FPT_sres()
2615 pCurrCard->discQ_Tbl[currSCCB-> in FPT_sres()
2620 pCurrCard->discQCount--; in FPT_sres()
2621 pCurrCard->discQ_Tbl[currTar_Info-> in FPT_sres()
2652 message = FPT_sfm(port, pCurrCard->currentSCCB); in FPT_sres()
2672 pCurrCard-> in FPT_sres()
2688 pCurrCard-> in FPT_sres()
2762 if (((pCurrCard->globalFlags & F_CONLUN_IO) && in FPT_sres()
2765 pCurrCard->currentSCCB = in FPT_sres()
2766 pCurrCard->discQ_Tbl[currTar_Info->LunDiscQ_Idx[lun]]; in FPT_sres()
2767 if (pCurrCard->currentSCCB != NULL) { in FPT_sres()
2776 if (pCurrCard->discQ_Tbl[tag] != NULL) { in FPT_sres()
2777 pCurrCard->currentSCCB = in FPT_sres()
2778 pCurrCard->discQ_Tbl[tag]; in FPT_sres()
2785 pCurrCard->currentSCCB = in FPT_sres()
2786 pCurrCard->discQ_Tbl[currTar_Info->LunDiscQ_Idx[0]]; in FPT_sres()
2787 if (pCurrCard->currentSCCB != NULL) { in FPT_sres()
2795 if (pCurrCard->currentSCCB != NULL) { in FPT_sres()
2796 if (pCurrCard->currentSCCB->Sccb_scsistat == ABORT_ST) { in FPT_sres()
2800 FPT_queueFindSccb(pCurrCard->currentSCCB, p_card); in FPT_sres()
3646 static void FPT_ssenss(struct sccb_card *pCurrCard) in FPT_ssenss() argument
3651 currSCCB = pCurrCard->currentSCCB; in FPT_ssenss()
4887 static void FPT_dataXferProcessor(u32 port, struct sccb_card *pCurrCard) in FPT_dataXferProcessor() argument
4891 currSCCB = pCurrCard->currentSCCB; in FPT_dataXferProcessor()
4894 if (pCurrCard->globalFlags & F_HOST_XFER_ACT) in FPT_dataXferProcessor()
4899 pCurrCard->globalFlags |= F_HOST_XFER_ACT; in FPT_dataXferProcessor()
4905 if (!(pCurrCard->globalFlags & F_HOST_XFER_ACT)) { in FPT_dataXferProcessor()
4906 pCurrCard->globalFlags |= F_HOST_XFER_ACT; in FPT_dataXferProcessor()
6635 static void FPT_queueSearchSelect(struct sccb_card *pCurrCard, in FPT_queueSearchSelect() argument
6642 scan_ptr = pCurrCard->scanIndex; in FPT_queueSearchSelect()
6645 if ((pCurrCard->globalFlags & F_CONLUN_IO) && in FPT_queueSearchSelect()
6657 pCurrCard->currentSCCB = in FPT_queueSearchSelect()
6661 while ((pCurrCard-> in FPT_queueSearchSelect()
6664 pCurrCard-> in FPT_queueSearchSelect()
6667 pCurrCard-> in FPT_queueSearchSelect()
6669 pCurrCard->currentSCCB = in FPT_queueSearchSelect()
6671 *)(pCurrCard-> in FPT_queueSearchSelect()
6675 if (pCurrCard->currentSCCB == in FPT_queueSearchSelect()
6682 *)(pCurrCard-> in FPT_queueSearchSelect()
6688 *)(pCurrCard-> in FPT_queueSearchSelect()
6697 *)(pCurrCard-> in FPT_queueSearchSelect()
6721 pCurrCard->scanIndex = scan_ptr; in FPT_queueSearchSelect()
6723 pCurrCard->globalFlags |= in FPT_queueSearchSelect()
6742 pCurrCard->currentSCCB = in FPT_queueSearchSelect()
6746 (struct sccb *)(pCurrCard->currentSCCB)-> in FPT_queueSearchSelect()
6762 pCurrCard->scanIndex = scan_ptr; in FPT_queueSearchSelect()
6764 pCurrCard->globalFlags |= F_NEW_SCCB_CMD; in FPT_queueSearchSelect()
6776 } while (scan_ptr != pCurrCard->scanIndex); in FPT_queueSearchSelect()
6787 static void FPT_queueSelectFail(struct sccb_card *pCurrCard, in FPT_queueSelectFail() argument
6793 if (pCurrCard->currentSCCB != NULL) { in FPT_queueSelectFail()
6795 (unsigned char)(((struct sccb *)(pCurrCard->currentSCCB))-> in FPT_queueSelectFail()
6799 pCurrCard->currentSCCB->Sccb_backlink = (struct sccb *)NULL; in FPT_queueSelectFail()
6801 pCurrCard->currentSCCB->Sccb_forwardlink = in FPT_queueSelectFail()
6805 currTar_Info->TarSelQ_Tail = pCurrCard->currentSCCB; in FPT_queueSelectFail()
6810 pCurrCard->currentSCCB; in FPT_queueSelectFail()
6813 currTar_Info->TarSelQ_Head = pCurrCard->currentSCCB; in FPT_queueSelectFail()
6815 pCurrCard->currentSCCB = NULL; in FPT_queueSelectFail()
6828 static void FPT_queueCmdComplete(struct sccb_card *pCurrCard, in FPT_queueCmdComplete() argument
6851 (pCurrCard->globalFlags & F_NO_FILTER) in FPT_queueCmdComplete()
6877 pCurrCard->cmdCounter--; in FPT_queueCmdComplete()
6878 if (!pCurrCard->cmdCounter) { in FPT_queueCmdComplete()
6880 if (pCurrCard->globalFlags & F_GREEN_PC) { in FPT_queueCmdComplete()
6881 WR_HARPOON(pCurrCard->ioPort + hp_clkctrl_0, in FPT_queueCmdComplete()
6883 WR_HARPOON(pCurrCard->ioPort + hp_sys_ctrl, STOP_CLK); in FPT_queueCmdComplete()
6886 WR_HARPOON(pCurrCard->ioPort + hp_semaphore, in FPT_queueCmdComplete()
6887 (RD_HARPOON(pCurrCard->ioPort + hp_semaphore) & in FPT_queueCmdComplete()
6892 if (pCurrCard->discQCount != 0) { in FPT_queueCmdComplete()
6894 if (((pCurrCard->globalFlags & F_CONLUN_IO) && in FPT_queueCmdComplete()
6897 pCurrCard->discQCount--; in FPT_queueCmdComplete()
6898 pCurrCard->discQ_Tbl[currTar_Info-> in FPT_queueCmdComplete()
6902 pCurrCard->discQCount--; in FPT_queueCmdComplete()
6903 pCurrCard->discQ_Tbl[p_sccb->Sccb_tag] = NULL; in FPT_queueCmdComplete()
6905 pCurrCard->discQCount--; in FPT_queueCmdComplete()
6906 pCurrCard->discQ_Tbl[currTar_Info-> in FPT_queueCmdComplete()
6915 pCurrCard->globalFlags |= F_NEW_SCCB_CMD; in FPT_queueCmdComplete()
6916 pCurrCard->currentSCCB = NULL; in FPT_queueCmdComplete()