Lines Matching refs:cmndinfo
189 struct gdth_cmndinfo *cmndinfo);
401 if (ha->cmndinfo[i].index == 0) { in gdth_get_cmndinfo()
402 priv = &ha->cmndinfo[i]; in gdth_get_cmndinfo()
431 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_scsi_done() local
432 int internal_command = cmndinfo->internal_command; in gdth_scsi_done()
436 gdth_put_cmndinfo(cmndinfo); in gdth_scsi_done()
450 struct gdth_cmndinfo cmndinfo; in __gdth_execute() local
465 memset(&cmndinfo, 0, sizeof(cmndinfo)); in __gdth_execute()
471 cmndinfo.priority = IOCTL_PRI; in __gdth_execute()
472 cmndinfo.internal_cmd_str = gdtcmd; in __gdth_execute()
473 cmndinfo.internal_command = 1; in __gdth_execute()
476 __gdth_queuecommand(ha, scp, &cmndinfo); in __gdth_execute()
480 rval = cmndinfo.status; in __gdth_execute()
482 *info = cmndinfo.info; in __gdth_execute()
1995 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_putq() local
2003 if (!cmndinfo->internal_command) in gdth_putq()
2004 cmndinfo->priority = priority; in gdth_putq()
2335 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_internal_cache_cmd() local
2422 if (!cmndinfo->wait_for_completion) in gdth_internal_cache_cmd()
2423 cmndinfo->wait_for_completion++; in gdth_internal_cache_cmd()
2433 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_fill_cache_cmd() local
2463 if (cmndinfo->OpCode != -1) in gdth_fill_cache_cmd()
2464 cmdp->OpCode = cmndinfo->OpCode; /* special cache cmd. */ in gdth_fill_cache_cmd()
2526 cmndinfo->dma_dir = (read_write == 1 ? in gdth_fill_cache_cmd()
2529 cmndinfo->dma_dir); in gdth_fill_cache_cmd()
2614 struct gdth_cmndinfo *cmndinfo; in gdth_fill_raw_cmd() local
2638 cmndinfo = gdth_cmnd_priv(scp); in gdth_fill_raw_cmd()
2640 if (cmndinfo->OpCode != -1) { in gdth_fill_raw_cmd()
2641 cmdp->OpCode = cmndinfo->OpCode; /* special raw cmd. */ in gdth_fill_raw_cmd()
2644 cmdp->u.raw64.direction = (cmndinfo->phase >> 8); in gdth_fill_raw_cmd()
2650 cmdp->u.raw.direction = (cmndinfo->phase >> 8); in gdth_fill_raw_cmd()
2663 cmndinfo->sense_paddr = sense_paddr; in gdth_fill_raw_cmd()
2702 cmndinfo->dma_dir = PCI_DMA_BIDIRECTIONAL; in gdth_fill_raw_cmd()
2704 cmndinfo->dma_dir); in gdth_fill_raw_cmd()
2781 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_special_cmd() local
2790 *cmdp = *cmndinfo->internal_cmd_str; in gdth_special_cmd()
3236 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_sync_event() local
3313 if (cmndinfo->OpCode == -1 && b != ha->virt_bus) { in gdth_sync_event()
3319 if (cmndinfo->OpCode == GDT_MOUNT) in gdth_sync_event()
3320 cmndinfo->OpCode = GDT_CLUST_INFO; in gdth_sync_event()
3326 cmndinfo->dma_dir); in gdth_sync_event()
3328 if (cmndinfo->sense_paddr) in gdth_sync_event()
3329 pci_unmap_page(ha->pdev, cmndinfo->sense_paddr, 16, in gdth_sync_event()
3333 cmndinfo->status = S_OK; in gdth_sync_event()
3334 cmndinfo->info = ha->info; in gdth_sync_event()
3335 if (cmndinfo->OpCode != -1) { in gdth_sync_event()
3337 cmndinfo->OpCode)); in gdth_sync_event()
3339 if (cmndinfo->OpCode == GDT_CLUST_INFO) { in gdth_sync_event()
3344 cmndinfo->OpCode = GDT_MOUNT; in gdth_sync_event()
3348 cmndinfo->phase = -2; /* reservation conflict */ in gdth_sync_event()
3351 cmndinfo->OpCode = -1; in gdth_sync_event()
3354 if (cmndinfo->OpCode == GDT_MOUNT) { in gdth_sync_event()
3357 } else if (cmndinfo->OpCode == GDT_UNMOUNT) { in gdth_sync_event()
3361 cmndinfo->OpCode = -1; in gdth_sync_event()
3364 cmndinfo->priority = HIGH_PRI; in gdth_sync_event()
3377 cmndinfo->status = ha->status; in gdth_sync_event()
3378 cmndinfo->info = ha->info; in gdth_sync_event()
3380 if (cmndinfo->OpCode != -1) { in gdth_sync_event()
3382 cmndinfo->OpCode, ha->status)); in gdth_sync_event()
3383 if (cmndinfo->OpCode == GDT_SCAN_START || in gdth_sync_event()
3384 cmndinfo->OpCode == GDT_SCAN_END) { in gdth_sync_event()
3385 cmndinfo->OpCode = -1; in gdth_sync_event()
3387 cmndinfo->priority = HIGH_PRI; in gdth_sync_event()
3409 if (!cmndinfo->internal_command) { in gdth_sync_event()
3430 if (!cmndinfo->wait_for_completion) in gdth_sync_event()
3431 cmndinfo->wait_for_completion++; in gdth_sync_event()
3895 struct gdth_cmndinfo *cmndinfo = gdth_cmnd_priv(scp); in gdth_timed_out() local
3909 if (++cmndinfo->timeout_count < 6) in gdth_timed_out()
4010 struct gdth_cmndinfo *cmndinfo; in gdth_queuecommand_lck() local
4014 cmndinfo = gdth_get_cmndinfo(ha); in gdth_queuecommand_lck()
4015 BUG_ON(!cmndinfo); in gdth_queuecommand_lck()
4018 cmndinfo->timeout_count = 0; in gdth_queuecommand_lck()
4019 cmndinfo->priority = DEFAULT_PRI; in gdth_queuecommand_lck()
4021 return __gdth_queuecommand(ha, scp, cmndinfo); in gdth_queuecommand_lck()
4027 struct gdth_cmndinfo *cmndinfo) in DEF_SCSI_QCMD()
4029 scp->host_scribble = (unsigned char *)cmndinfo; in DEF_SCSI_QCMD()
4030 cmndinfo->wait_for_completion = 1; in DEF_SCSI_QCMD()
4031 cmndinfo->phase = -1; in DEF_SCSI_QCMD()
4032 cmndinfo->OpCode = -1; in DEF_SCSI_QCMD()
4038 gdth_putq(ha, scp, cmndinfo->priority); in DEF_SCSI_QCMD()