cmndinfo 163 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo); cmndinfo 288 drivers/scsi/gdth.c if (ha->cmndinfo[i].index == 0) { cmndinfo 289 drivers/scsi/gdth.c priv = &ha->cmndinfo[i]; cmndinfo 318 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 319 drivers/scsi/gdth.c int internal_command = cmndinfo->internal_command; cmndinfo 323 drivers/scsi/gdth.c gdth_put_cmndinfo(cmndinfo); cmndinfo 337 drivers/scsi/gdth.c struct gdth_cmndinfo cmndinfo; cmndinfo 352 drivers/scsi/gdth.c memset(&cmndinfo, 0, sizeof(cmndinfo)); cmndinfo 358 drivers/scsi/gdth.c cmndinfo.priority = IOCTL_PRI; cmndinfo 359 drivers/scsi/gdth.c cmndinfo.internal_cmd_str = gdtcmd; cmndinfo 360 drivers/scsi/gdth.c cmndinfo.internal_command = 1; cmndinfo 363 drivers/scsi/gdth.c __gdth_queuecommand(ha, scp, &cmndinfo); cmndinfo 367 drivers/scsi/gdth.c rval = cmndinfo.status; cmndinfo 369 drivers/scsi/gdth.c *info = cmndinfo.info; cmndinfo 1538 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 1546 drivers/scsi/gdth.c if (!cmndinfo->internal_command) cmndinfo 1547 drivers/scsi/gdth.c cmndinfo->priority = priority; cmndinfo 1878 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 1965 drivers/scsi/gdth.c if (!cmndinfo->wait_for_completion) cmndinfo 1966 drivers/scsi/gdth.c cmndinfo->wait_for_completion++; cmndinfo 1977 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 2004 drivers/scsi/gdth.c if (cmndinfo->OpCode != -1) cmndinfo 2005 drivers/scsi/gdth.c cmdp->OpCode = cmndinfo->OpCode; /* special cache cmd. */ cmndinfo 2067 drivers/scsi/gdth.c cmndinfo->dma_dir = (read_write == 1 ? cmndinfo 2070 drivers/scsi/gdth.c scsi_sg_count(scp), cmndinfo->dma_dir); cmndinfo 2144 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo; cmndinfo 2165 drivers/scsi/gdth.c cmndinfo = gdth_cmnd_priv(scp); cmndinfo 2167 drivers/scsi/gdth.c if (cmndinfo->OpCode != -1) { cmndinfo 2168 drivers/scsi/gdth.c cmdp->OpCode = cmndinfo->OpCode; /* special raw cmd. */ cmndinfo 2171 drivers/scsi/gdth.c cmdp->u.raw64.direction = (cmndinfo->phase >> 8); cmndinfo 2177 drivers/scsi/gdth.c cmdp->u.raw.direction = (cmndinfo->phase >> 8); cmndinfo 2188 drivers/scsi/gdth.c cmndinfo->sense_paddr = sense_paddr; cmndinfo 2227 drivers/scsi/gdth.c cmndinfo->dma_dir = DMA_BIDIRECTIONAL; cmndinfo 2229 drivers/scsi/gdth.c scsi_sg_count(scp), cmndinfo->dma_dir); cmndinfo 2297 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 2303 drivers/scsi/gdth.c *cmdp = *cmndinfo->internal_cmd_str; cmndinfo 2648 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 2725 drivers/scsi/gdth.c if (cmndinfo->OpCode == -1 && b != ha->virt_bus) { cmndinfo 2731 drivers/scsi/gdth.c if (cmndinfo->OpCode == GDT_MOUNT) cmndinfo 2732 drivers/scsi/gdth.c cmndinfo->OpCode = GDT_CLUST_INFO; cmndinfo 2738 drivers/scsi/gdth.c cmndinfo->dma_dir); cmndinfo 2740 drivers/scsi/gdth.c if (cmndinfo->sense_paddr) cmndinfo 2741 drivers/scsi/gdth.c dma_unmap_page(&ha->pdev->dev, cmndinfo->sense_paddr, 16, cmndinfo 2745 drivers/scsi/gdth.c cmndinfo->status = S_OK; cmndinfo 2746 drivers/scsi/gdth.c cmndinfo->info = ha->info; cmndinfo 2747 drivers/scsi/gdth.c if (cmndinfo->OpCode != -1) { cmndinfo 2749 drivers/scsi/gdth.c cmndinfo->OpCode)); cmndinfo 2751 drivers/scsi/gdth.c if (cmndinfo->OpCode == GDT_CLUST_INFO) { cmndinfo 2756 drivers/scsi/gdth.c cmndinfo->OpCode = GDT_MOUNT; cmndinfo 2760 drivers/scsi/gdth.c cmndinfo->phase = -2; /* reservation conflict */ cmndinfo 2763 drivers/scsi/gdth.c cmndinfo->OpCode = -1; cmndinfo 2766 drivers/scsi/gdth.c if (cmndinfo->OpCode == GDT_MOUNT) { cmndinfo 2769 drivers/scsi/gdth.c } else if (cmndinfo->OpCode == GDT_UNMOUNT) { cmndinfo 2773 drivers/scsi/gdth.c cmndinfo->OpCode = -1; cmndinfo 2776 drivers/scsi/gdth.c cmndinfo->priority = HIGH_PRI; cmndinfo 2789 drivers/scsi/gdth.c cmndinfo->status = ha->status; cmndinfo 2790 drivers/scsi/gdth.c cmndinfo->info = ha->info; cmndinfo 2792 drivers/scsi/gdth.c if (cmndinfo->OpCode != -1) { cmndinfo 2794 drivers/scsi/gdth.c cmndinfo->OpCode, ha->status)); cmndinfo 2795 drivers/scsi/gdth.c if (cmndinfo->OpCode == GDT_SCAN_START || cmndinfo 2796 drivers/scsi/gdth.c cmndinfo->OpCode == GDT_SCAN_END) { cmndinfo 2797 drivers/scsi/gdth.c cmndinfo->OpCode = -1; cmndinfo 2799 drivers/scsi/gdth.c cmndinfo->priority = HIGH_PRI; cmndinfo 2821 drivers/scsi/gdth.c if (!cmndinfo->internal_command) { cmndinfo 2842 drivers/scsi/gdth.c if (!cmndinfo->wait_for_completion) cmndinfo 2843 drivers/scsi/gdth.c cmndinfo->wait_for_completion++; cmndinfo 3277 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); cmndinfo 3291 drivers/scsi/gdth.c if (++cmndinfo->timeout_count < 6) cmndinfo 3392 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo; cmndinfo 3396 drivers/scsi/gdth.c cmndinfo = gdth_get_cmndinfo(ha); cmndinfo 3397 drivers/scsi/gdth.c BUG_ON(!cmndinfo); cmndinfo 3400 drivers/scsi/gdth.c cmndinfo->timeout_count = 0; cmndinfo 3401 drivers/scsi/gdth.c cmndinfo->priority = DEFAULT_PRI; cmndinfo 3403 drivers/scsi/gdth.c return __gdth_queuecommand(ha, scp, cmndinfo); cmndinfo 3409 drivers/scsi/gdth.c struct gdth_cmndinfo *cmndinfo) cmndinfo 3411 drivers/scsi/gdth.c scp->host_scribble = (unsigned char *)cmndinfo; cmndinfo 3412 drivers/scsi/gdth.c cmndinfo->wait_for_completion = 1; cmndinfo 3413 drivers/scsi/gdth.c cmndinfo->phase = -1; cmndinfo 3414 drivers/scsi/gdth.c cmndinfo->OpCode = -1; cmndinfo 3420 drivers/scsi/gdth.c gdth_putq(ha, scp, cmndinfo->priority); cmndinfo 885 drivers/scsi/gdth.h } cmndinfo[GDTH_MAXCMDS]; /* index==0 is free */ cmndinfo 565 drivers/scsi/gdth_proc.c struct gdth_cmndinfo *cmndinfo; cmndinfo 572 drivers/scsi/gdth_proc.c cmndinfo = gdth_cmnd_priv(scp); cmndinfo 578 drivers/scsi/gdth_proc.c cmndinfo->wait_for_completion = 0; cmndinfo 580 drivers/scsi/gdth_proc.c while (!cmndinfo->wait_for_completion)