SCpnt->SCp.have_data_in = pci_map_single (padapter->pdev, SCpnt->request_buffer, SCpnt->request_bufflen, scsi_to_pci_dma_dir (SCpnt->sc_data_direction)); 
SCpnt->SCp.have_data_in = pci_map_single (padapter->pdev, SCpnt->request_buffer, SCpnt->request_bufflen, SCpnt->sc_data_direction); 
static int BuildSgList (Scsi_Cmnd *SCpnt, PADAPTER2000 padapter, PDEV2000 pdev)	{	int					 z;	int					 zc;	struct scatterlist	*sg;	if ( SCpnt->use_sg )		{		sg = (struct scatterlist *)SCpnt->request_buffer;		zc = pci_map_sg (padapter->pdev, sg, SCpnt->use_sg, scsi_to_pci_dma_dir (SCpnt->sc_data_direction));		for ( z = 0;  z < zc;  z++ )			{			pdev->scatGath[z].address = cpu_to_le32 (sg_dma_address (sg));			pdev->scatGath[z].length = cpu_to_le32 (sg_dma_len (sg++));			}		outl (pdev->scatGathDma, padapter->mb2);		outl ((zc << 24) | SCpnt->request_bufflen, padapter->mb3);		return FALSE;		}	if ( !SCpnt->request_bufflen)		{		outl (0, padapter->mb2);		outl (0, padapter->mb3);		return TRUE;		}	SCpnt->SCp.have_data_in = pci_map_single (padapter->pdev, SCpnt->request_buffer, SCpnt->request_bufflen, scsi_to_pci_dma_dir (SCpnt->sc_data_direction));	outl (SCpnt->SCp.have_data_in, padapter->mb2);	outl (SCpnt->request_bufflen, padapter->mb3);	return TRUE;	}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/be7db055dd7261522557046370f49160728e3847/pci2000.c/buggy/drivers/scsi/pci2000.c