Lines Matching refs:cmd
79 int scsi_mlqueue_insert(Scsi_Cmnd * cmd, int reason) in scsi_mlqueue_insert() argument
84 SCSI_LOG_MLQUEUE(1, printk("Inserting command %p into mlqueue\n", cmd)); in scsi_mlqueue_insert()
90 scsi_delete_timer(cmd); in scsi_mlqueue_insert()
92 host = cmd->host; in scsi_mlqueue_insert()
107 if (scsi_retry_command(cmd) == 0) { in scsi_mlqueue_insert()
121 if (cmd->device->device_busy == 0) { in scsi_mlqueue_insert()
122 if (scsi_retry_command(cmd) == 0) { in scsi_mlqueue_insert()
126 cmd->device->device_blocked = TRUE; in scsi_mlqueue_insert()
132 cmd->state = SCSI_STATE_MLQUEUE; in scsi_mlqueue_insert()
133 cmd->owner = SCSI_OWNER_MIDLEVEL; in scsi_mlqueue_insert()
134 cmd->bh_next = NULL; in scsi_mlqueue_insert()
141 cmd->host->host_busy--; in scsi_mlqueue_insert()
142 cmd->device->device_busy--; in scsi_mlqueue_insert()
149 scsi_insert_special_cmd(cmd, 1); in scsi_mlqueue_insert()