Lines Matching refs:input_Q
410 * Add the cmd to the end of 'input_Q'. Note that REQUEST_SENSE
415 if (!(hostdata->input_Q) || (cmd->cmnd[0] == REQUEST_SENSE)) {
416 cmd->host_scribble = (uchar *) hostdata->input_Q;
417 hostdata->input_Q = cmd;
419 for (tmp = (Scsi_Cmnd *) hostdata->input_Q; tmp->host_scribble; tmp = (Scsi_Cmnd *) tmp->host_scribble);
423 /* We know that there's at least one command in 'input_Q' now.
440 * the input_Q, using the first command we find that's intended
467 * Search through the input_Q for a command destined
471 cmd = (Scsi_Cmnd *) hostdata->input_Q;
494 hostdata->input_Q = (Scsi_Cmnd *) cmd->host_scribble;
522 * + Commands should NOT disconnect if input_Q is empty.
523 * + Disconnect should be allowed if there are commands in input_Q
541 if (!(hostdata->input_Q)) /* input_Q empty? */
543 for (prev = (Scsi_Cmnd *) hostdata->input_Q; prev; prev = (Scsi_Cmnd *) prev->host_scribble) {
545 for (prev = (Scsi_Cmnd *) hostdata->input_Q; prev; prev = (Scsi_Cmnd *) prev->host_scribble)
704 * to search the input_Q again...
1491 /* If yes, put losing command back on top of input_Q. */
1498 cmd->host_scribble = (uchar *) hostdata->input_Q;
1499 hostdata->input_Q = cmd;
1508 cmd->host_scribble = (uchar *) hostdata->input_Q;
1509 hostdata->input_Q = cmd;
1663 hostdata->input_Q = NULL;
1697 tmp = (Scsi_Cmnd *) hostdata->input_Q;
1705 printk(KERN_WARNING "scsi%d: Abort - removing command from input_Q. ", instance->host_no);
2037 hostdata->input_Q = NULL;
2277 cmd = (Scsi_Cmnd *) hd->input_Q;