Lines Matching refs:pcmd

859 	if (q->pcmd == cmd) return q;
887 PSCSICMD pcmd; in dc390_Query_get() local
889 pcmd = pACB->pQueryHead; in dc390_Query_get()
890 if (!pcmd) return pcmd; in dc390_Query_get()
891 DEBUG0(printk ("DC390: Get cmd %li from Query\n", pcmd->pid);) in dc390_Query_get()
892 pACB->pQueryHead = pcmd->next; in dc390_Query_get()
893 pcmd->next = NULL; in dc390_Query_get()
896 return( pcmd ); in dc390_Query_get()
928 DEBUG0(printk ("DC390: Insert pSRB %p cmd %li to Waiting\n", pSRB, pSRB->pcmd->pid);) in dc390_Waiting_insert()
940 DEBUG0(printk ("DC390: Append pSRB %p cmd %li to Waiting\n", pSRB, pSRB->pcmd->pid);) in dc390_Waiting_append()
989 DEBUG0(printk(KERN_INFO "DC390: Going_to_Waiting (SRB %p) pid = %li\n", pSRB, pSRB->pcmd->pid);) in dc390_Going_to_Waiting()
1133 static void dc390_BuildSRB (Scsi_Cmnd* pcmd, PDCB pDCB, PSRB pSRB) in dc390_BuildSRB() argument
1136 pSRB->pcmd = pcmd; in dc390_BuildSRB()
1140 if( pcmd->use_sg ) in dc390_BuildSRB()
1142 pSRB->SGcount = (UCHAR) pcmd->use_sg; in dc390_BuildSRB()
1143 pSRB->pSegmentList = (PSGL) pcmd->request_buffer; in dc390_BuildSRB()
1145 else if( pcmd->request_buffer ) in dc390_BuildSRB()
1149 pSRB->Segmentx.address = (PUCHAR) pcmd->request_buffer; in dc390_BuildSRB()
1150 pSRB->Segmentx.length = pcmd->request_bufflen; in dc390_BuildSRB()
1177 Scsi_Cmnd *pcmd; in dc390_Query_to_Waiting() local
1188 pcmd = dc390_Query_get ( pACB ); in dc390_Query_to_Waiting()
1189 if (!pcmd) { dc390_Free_insert (pACB, pSRB); return; }; /* should not happen */ in dc390_Query_to_Waiting()
1190 pDCB = dc390_findDCB (pACB, pcmd->target, pcmd->lun); in dc390_Query_to_Waiting()
1195 pcmd->result = MK_RES(DRIVER_ERROR,DID_ERROR,0,0); in dc390_Query_to_Waiting()
1197 pcmd->done (pcmd); in dc390_Query_to_Waiting()
1200 dc390_BuildSRB (pcmd, pDCB, pSRB); in dc390_Query_to_Waiting()
1547 PSCSICMD pcmd; in DC390_abort() local
1561 pcmd = pACB->pQueryHead; in DC390_abort()
1562 if( pcmd == cmd ) in DC390_abort()
1565 pACB->pQueryHead = pcmd->next; in DC390_abort()
1566 pcmd->next = NULL; in DC390_abort()
1574 if( pcmd->next == cmd ) in DC390_abort()
1576 pcmd->next = cmd->next; in DC390_abort()
1585 pcmd = pcmd->next; in DC390_abort()
1605 if( pSRB->pcmd == cmd ) in DC390_abort()
1615 while( psrb->pNextSRB->pcmd != cmd ) in DC390_abort()
1644 if( pSRB->pcmd != cmd ) in DC390_abort()
2868 PSCSICMD pcmd; in DC390_proc_info() local
2939 for (pcmd = pACB->pQueryHead; pcmd; pcmd = pcmd->next) in DC390_proc_info()
2940 SPRINTF (" %li", pcmd->pid); in DC390_proc_info()
2952 SPRINTF(" %li", pSRB->pcmd->pid); in DC390_proc_info()
2960 SPRINTF(" %li", pSRB->pcmd->pid); in DC390_proc_info()