Lines Matching refs:scbp
590 int init_tulip(HCS * pCurHcb, SCB * scbp, int tul_num_scb, BYTE * pbBiosAdr, int seconds) in init_tulip() argument
603 pCurHcb->HCS_Scb = scbp; in init_tulip()
604 pCurHcb->HCS_NxtPend = scbp; in init_tulip()
605 pCurHcb->HCS_NxtAvail = scbp; in init_tulip()
606 for (i = 0, pTmpScb = scbp; i < tul_num_scb; i++, pTmpScb++) { in init_tulip()
614 pCurHcb->HCS_FirstAvail = scbp; in init_tulip()
740 void tul_release_scb(HCS * hcsp, SCB * scbp) in tul_release_scb() argument
745 printk("Release SCB %lx; ", (ULONG) scbp); in tul_release_scb()
753 scbp->SCB_Srb = 0; in tul_release_scb()
754 scbp->SCB_Status = 0; in tul_release_scb()
755 scbp->SCB_NxtScb = NULL; in tul_release_scb()
757 hcsp->HCS_LastAvail->SCB_NxtScb = scbp; in tul_release_scb()
758 hcsp->HCS_LastAvail = scbp; in tul_release_scb()
760 hcsp->HCS_FirstAvail = scbp; in tul_release_scb()
761 hcsp->HCS_LastAvail = scbp; in tul_release_scb()
771 void tul_append_pend_scb(HCS * pCurHcb, SCB * scbp) in tul_append_pend_scb() argument
775 printk("Append pend SCB %lx; ", (ULONG) scbp); in tul_append_pend_scb()
777 scbp->SCB_Status = SCB_PEND; in tul_append_pend_scb()
778 scbp->SCB_NxtScb = NULL; in tul_append_pend_scb()
780 pCurHcb->HCS_LastPend->SCB_NxtScb = scbp; in tul_append_pend_scb()
781 pCurHcb->HCS_LastPend = scbp; in tul_append_pend_scb()
783 pCurHcb->HCS_FirstPend = scbp; in tul_append_pend_scb()
784 pCurHcb->HCS_LastPend = scbp; in tul_append_pend_scb()
789 void tul_push_pend_scb(HCS * pCurHcb, SCB * scbp) in tul_push_pend_scb() argument
793 printk("Push pend SCB %lx; ", (ULONG) scbp); in tul_push_pend_scb()
795 scbp->SCB_Status = SCB_PEND; in tul_push_pend_scb()
796 if ((scbp->SCB_NxtScb = pCurHcb->HCS_FirstPend) != NULL) { in tul_push_pend_scb()
797 pCurHcb->HCS_FirstPend = scbp; in tul_push_pend_scb()
799 pCurHcb->HCS_FirstPend = scbp; in tul_push_pend_scb()
800 pCurHcb->HCS_LastPend = scbp; in tul_push_pend_scb()
881 void tul_append_busy_scb(HCS * pCurHcb, SCB * scbp) in tul_append_busy_scb() argument
885 printk("append busy SCB %lx; ", (ULONG) scbp); in tul_append_busy_scb()
887 if (scbp->SCB_TagMsg) in tul_append_busy_scb()
888 pCurHcb->HCS_ActTags[scbp->SCB_Target]++; in tul_append_busy_scb()
890 pCurHcb->HCS_Tcs[scbp->SCB_Target].TCS_Flags |= TCF_BUSY; in tul_append_busy_scb()
891 scbp->SCB_Status = SCB_BUSY; in tul_append_busy_scb()
892 scbp->SCB_NxtScb = NULL; in tul_append_busy_scb()
894 pCurHcb->HCS_LastBusy->SCB_NxtScb = scbp; in tul_append_busy_scb()
895 pCurHcb->HCS_LastBusy = scbp; in tul_append_busy_scb()
897 pCurHcb->HCS_FirstBusy = scbp; in tul_append_busy_scb()
898 pCurHcb->HCS_LastBusy = scbp; in tul_append_busy_scb()
979 void tul_append_done_scb(HCS * pCurHcb, SCB * scbp) in tul_append_done_scb() argument
983 printk("append done SCB %lx; ", (ULONG) scbp); in tul_append_done_scb()
986 scbp->SCB_Status = SCB_DONE; in tul_append_done_scb()
987 scbp->SCB_NxtScb = NULL; in tul_append_done_scb()
989 pCurHcb->HCS_LastDone->SCB_NxtScb = scbp; in tul_append_done_scb()
990 pCurHcb->HCS_LastDone = scbp; in tul_append_done_scb()
992 pCurHcb->HCS_FirstDone = scbp; in tul_append_done_scb()
993 pCurHcb->HCS_LastDone = scbp; in tul_append_done_scb()