Lines Matching refs:pSRB
148 static void inia100AppendSRBToQueue(ORC_HCS * pHCB, Scsi_Cmnd * pSRB) in inia100AppendSRBToQueue() argument
154 pSRB->next = NULL; /* Pointer to next */ in inia100AppendSRBToQueue()
156 pHCB->pSRB_head = pSRB; in inia100AppendSRBToQueue()
158 pHCB->pSRB_tail->next = pSRB; /* Pointer to next */ in inia100AppendSRBToQueue()
159 pHCB->pSRB_tail = pSRB; in inia100AppendSRBToQueue()
173 Scsi_Cmnd *pSRB; in inia100PopSRBFromQueue() local
176 if ((pSRB = (Scsi_Cmnd *) pHCB->pSRB_head) != NULL) { in inia100PopSRBFromQueue()
178 pSRB->next = NULL; in inia100PopSRBFromQueue()
181 return (pSRB); in inia100PopSRBFromQueue()
618 Scsi_Cmnd *pSRB; /* Pointer to SCSI request block */ in inia100SCBPost() local
626 if ((pSRB = (Scsi_Cmnd *) pEScb->SCB_Srb) == 0) { in inia100SCBPost()
669 memcpy((unsigned char *) &pSRB->sense_buffer[0], in inia100SCBPost()
672 pSRB->result = pSCB->SCB_TaStat | (pSCB->SCB_HaStat << 16); in inia100SCBPost()
673 pSRB->scsi_done(pSRB); /* Notify system DONE */ in inia100SCBPost()
676 if ((pSRB = inia100PopSRBFromQueue(pHCB)) != NULL) { /* Assume resend will success */ in inia100SCBPost()
678 inia100BuildSCB(pHCB, pSCB, pSRB); /* Create corresponding SCB */ in inia100SCBPost()