scsi_to_pci_dma_dir(Cmnd->sc_data_direction)); 
Cmnd->sc_data_direction); 
static void redo_port_db(unsigned long arg){        struct Scsi_Host * host = (struct Scsi_Host *) arg;	struct isp2x00_hostdata * hostdata;	unsigned long flags;	int i;	hostdata = (struct isp2x00_hostdata *) host->hostdata;	hostdata->explore_timer.data = 0;	del_timer(&hostdata->explore_timer);	spin_lock_irqsave(host->host_lock, flags);	if (hostdata->adapter_state & AS_REDO_FABRIC_PORTDB || hostdata->adapter_state & AS_REDO_LOOP_PORTDB) {		isp2x00_make_portdb(host);		printk("qlogicfc%d : Port Database\n", hostdata->host_id);		for (i = 0; hostdata->port_db[i].wwn != 0; i++) {			printk("wwn: %08x%08x  scsi_id: %x  loop_id: ", (u_int) (hostdata->port_db[i].wwn >> 32), (u_int) hostdata->port_db[i].wwn, i);			if (hostdata->port_db[i].loop_id != hostdata->port_db[0].loop_id || i == 0)			        printk("%x", hostdata->port_db[i].loop_id);			else			        printk("Not Available");			printk("\n");		}			        for (i = 0; i < QLOGICFC_REQ_QUEUE_LEN; i++){ 		        if (hostdata->handle_ptrs[i] && (hostdata->port_db[hostdata->handle_ptrs[i]->device->id].loop_id > QLOGICFC_MAX_LOOP_ID || hostdata->adapter_state & AS_REDO_LOOP_PORTDB)){                                if (hostdata->port_db[hostdata->handle_ptrs[i]->device->id].loop_id != hostdata->port_db[0].loop_id){					Scsi_Cmnd *Cmnd = hostdata->handle_ptrs[i];					 if (Cmnd->use_sg)						 pci_unmap_sg(hostdata->pci_dev,							      (struct scatterlist *)Cmnd->buffer,							      Cmnd->use_sg,							      scsi_to_pci_dma_dir(Cmnd->sc_data_direction));					 else if (Cmnd->request_bufflen &&						  Cmnd->sc_data_direction != PCI_DMA_NONE) {						 pci_unmap_page(hostdata->pci_dev,								Cmnd->SCp.dma_handle,								Cmnd->request_bufflen,								scsi_to_pci_dma_dir(Cmnd->sc_data_direction));					 }					 hostdata->handle_ptrs[i]->result = DID_SOFT_ERROR << 16;					 if (hostdata->handle_ptrs[i]->scsi_done){					   (*hostdata->handle_ptrs[i]->scsi_done) (hostdata->handle_ptrs[i]);					 }					 else printk("qlogicfc%d : done is null?\n", hostdata->host_id);					 hostdata->handle_ptrs[i] = NULL;					 hostdata->handle_serials[i] = 0;				}			}		}				hostdata->adapter_state = AS_LOOP_GOOD;	}	spin_unlock_irqrestore(host->host_lock, flags);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/be7db055dd7261522557046370f49160728e3847/qlogicfc.c/clean/drivers/scsi/qlogicfc.c