spi_dv_device_compare_inquiry(struct scsi_request *sreq, u8 *buffer, 
spi_dv_device_compare_inquiry(struct scsi_device *sdev, u8 *buffer, 
spi_dv_device_compare_inquiry(struct scsi_request *sreq, u8 *buffer,			      u8 *ptr, const int retries){	int r;	const int len = sreq->sr_device->inquiry_len;	struct scsi_device *sdev = sreq->sr_device;	const char spi_inquiry[] = {		INQUIRY, 0, 0, 0, len, 0	};	for (r = 0; r < retries; r++) {		sreq->sr_cmd_len = 0;	/* wait_req to fill in */		sreq->sr_data_direction = DMA_FROM_DEVICE;		memset(ptr, 0, len);		spi_wait_req(sreq, spi_inquiry, ptr, len);				if(sreq->sr_result || !scsi_device_online(sdev)) {			scsi_device_set_state(sdev, SDEV_QUIESCE);			return SPI_COMPARE_FAILURE;		}		/* If we don't have the inquiry data already, the		 * first read gets it */		if (ptr == buffer) {			ptr += len;			--r;			continue;		}		if (memcmp(buffer, ptr, len) != 0)			/* failure */			return SPI_COMPARE_FAILURE;	}	return SPI_COMPARE_SUCCESS;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/33aa687db90dd8541bd5e9a762eebf880eaee767/scsi_transport_spi.c/clean/drivers/scsi/scsi_transport_spi.c