taglinefilesource code
current_SC207drivers/scsi/NCR53c406a.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC661drivers/scsi/NCR53c406a.ccurrent_SC->result = DID_TIME_OUT << 16;
current_SC662drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = idle;
current_SC663drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done(current_SC);
current_SC703drivers/scsi/NCR53c406a.ccurrent_SC = SCpnt;
current_SC704drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done = done;
current_SC705drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = command_ph;
current_SC706drivers/scsi/NCR53c406a.ccurrent_SC->SCp.Status = 0;
current_SC707drivers/scsi/NCR53c406a.ccurrent_SC->SCp.Message = 0;
current_SC805drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = idle;
current_SC806drivers/scsi/NCR53c406a.ccurrent_SC->result = DID_RESET << 16;
current_SC807drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done(current_SC);
current_SC814drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = idle;
current_SC815drivers/scsi/NCR53c406a.ccurrent_SC->result = DID_ERROR << 16;
current_SC816drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done(current_SC);
current_SC823drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = idle;
current_SC824drivers/scsi/NCR53c406a.ccurrent_SC->result = DID_PARITY << 16;
current_SC825drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done(current_SC);
current_SC831drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = idle;
current_SC832drivers/scsi/NCR53c406a.ccurrent_SC->result = DID_ERROR << 16;
current_SC833drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done(current_SC);
current_SC839drivers/scsi/NCR53c406a.cif(current_SC->SCp.phase != message_in){ /* Unexpected disconnect */
current_SC840drivers/scsi/NCR53c406a.ccurrent_SC->result = DID_NO_CONNECT << 16;
current_SC843drivers/scsi/NCR53c406a.ccurrent_SC->result = (current_SC->SCp.Status & 0xff) 
current_SC844drivers/scsi/NCR53c406a.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16);
current_SC848drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = idle;
current_SC849drivers/scsi/NCR53c406a.ccurrent_SC->scsi_done( current_SC );
current_SC857drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = data_out;
current_SC860drivers/scsi/NCR53c406a.cLOAD_DMA_COUNT(current_SC->request_bufflen); /* Max transfer size */
current_SC862drivers/scsi/NCR53c406a.cNCR53c406a_dma_write(current_SC->request_buffer, 
current_SC863drivers/scsi/NCR53c406a.ccurrent_SC->request_bufflen);
current_SC867drivers/scsi/NCR53c406a.cif (!current_SC->use_sg) /* Don't use scatter-gather */
current_SC868drivers/scsi/NCR53c406a.cNCR53c406a_pio_write(current_SC->request_buffer, 
current_SC869drivers/scsi/NCR53c406a.ccurrent_SC->request_bufflen);
current_SC871drivers/scsi/NCR53c406a.csgcount = current_SC->use_sg;
current_SC872drivers/scsi/NCR53c406a.csglist = current_SC->request_buffer;
current_SC886drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = data_in;
current_SC889drivers/scsi/NCR53c406a.cLOAD_DMA_COUNT(current_SC->request_bufflen); /* Max transfer size */
current_SC891drivers/scsi/NCR53c406a.cNCR53c406a_dma_read(current_SC->request_buffer, 
current_SC892drivers/scsi/NCR53c406a.ccurrent_SC->request_bufflen);
current_SC896drivers/scsi/NCR53c406a.cif (!current_SC->use_sg) /* Don't use scatter-gather */
current_SC897drivers/scsi/NCR53c406a.cNCR53c406a_pio_read(current_SC->request_buffer, 
current_SC898drivers/scsi/NCR53c406a.ccurrent_SC->request_bufflen);
current_SC900drivers/scsi/NCR53c406a.csgcount = current_SC->use_sg;
current_SC901drivers/scsi/NCR53c406a.csglist = current_SC->request_buffer;
current_SC913drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = command_ph;
current_SC919drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = status_ph;
current_SC932drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = message_out;
current_SC940drivers/scsi/NCR53c406a.ccurrent_SC->SCp.phase = message_in;
current_SC942drivers/scsi/NCR53c406a.ccurrent_SC->SCp.Status = inb(SCSI_FIFO);    
current_SC943drivers/scsi/NCR53c406a.ccurrent_SC->SCp.Message = inb(SCSI_FIFO);
current_SC947drivers/scsi/NCR53c406a.ccurrent_SC->SCp.Status, current_SC->SCp.Message));
current_SC949drivers/scsi/NCR53c406a.cif(current_SC->SCp.Message == SAVE_POINTERS || 
current_SC950drivers/scsi/NCR53c406a.ccurrent_SC->SCp.Message == DISCONNECT) {
current_SC351drivers/scsi/aha152x.c#define CURRENT_SC    (HOSTDATA(shpnt)->current_SC)
current_SC362drivers/scsi/aha152x.cScsi_Cmnd     *current_SC;
current_SC372drivers/scsi/fdomain.cstatic Scsi_Cmnd         *current_SC       = NULL;
current_SC1264drivers/scsi/fdomain.ccurrent_SC->result = error;
current_SC1265drivers/scsi/fdomain.cif (current_SC->scsi_done)
current_SC1266drivers/scsi/fdomain.ccurrent_SC->scsi_done( current_SC );
current_SC1293drivers/scsi/fdomain.cif (!in_command || !current_SC) {  /* Spurious interrupt */
current_SC1296drivers/scsi/fdomain.cin_command, current_SC );
current_SC1302drivers/scsi/fdomain.cif (current_SC->SCp.phase & aborted) {
current_SC1314drivers/scsi/fdomain.cif (current_SC->SCp.phase & in_arbitration) {
current_SC1323drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_selection;
current_SC1328drivers/scsi/fdomain.coutb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port );
current_SC1336drivers/scsi/fdomain.c} else if (current_SC->SCp.phase & in_selection) {
current_SC1340drivers/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
current_SC1354drivers/scsi/fdomain.ccurrent_SC->SCp.phase = in_other;
current_SC1372drivers/scsi/fdomain.coutb( current_SC->cmnd[current_SC->SCp.sent_command++],
current_SC1376drivers/scsi/fdomain.ccurrent_SC->cmnd[ current_SC->SCp.sent_command - 1] );
current_SC1380drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC1381drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1386drivers/scsi/fdomain.cif (chip != tmc1800 && !current_SC->SCp.have_data_in) {
current_SC1387drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1392drivers/scsi/fdomain.ccurrent_SC->SCp.Status = inb( Read_SCSI_Data_port );
current_SC1394drivers/scsi/fdomain.cprintk( "Status = %x, ", current_SC->SCp.Status );
current_SC1397drivers/scsi/fdomain.cif (current_SC->SCp.Status && current_SC->SCp.Status != 2) {
current_SC1399drivers/scsi/fdomain.ccurrent_SC->target,
current_SC1400drivers/scsi/fdomain.ccurrent_SC->cmnd[0],
current_SC1401drivers/scsi/fdomain.ccurrent_SC->SCp.Status );
current_SC1409drivers/scsi/fdomain.ccurrent_SC->SCp.Message = inb( Read_SCSI_Data_port );
current_SC1411drivers/scsi/fdomain.cprintk( "Message = %x, ", current_SC->SCp.Message );
current_SC1413drivers/scsi/fdomain.cif (!current_SC->SCp.Message) ++done;
current_SC1415drivers/scsi/fdomain.cif (current_SC->SCp.Message) {
current_SC1416drivers/scsi/fdomain.cprintk( "fdomain: message = %x\n", current_SC->SCp.Message );
current_SC1424drivers/scsi/fdomain.c&& !current_SC->SCp.have_data_in
current_SC1425drivers/scsi/fdomain.c&& (current_SC->SCp.sent_command
current_SC1426drivers/scsi/fdomain.c>= current_SC->cmd_len)) {
current_SC1553drivers/scsi/fdomain.cswitch (current_SC->cmnd[0]) {
current_SC1574drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = -1;
current_SC1581drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in = 1;
current_SC1587drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
current_SC1592drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1593drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1599drivers/scsi/fdomain.coutb( *current_SC->SCp.ptr++, Write_FIFO_port );
current_SC1600drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1603drivers/scsi/fdomain.coutsw( Write_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1604drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1605drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1608drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual) {
current_SC1609drivers/scsi/fdomain.cif (current_SC->SCp.buffers_residual) {
current_SC1610drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1611drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1612drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1613drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1620drivers/scsi/fdomain.cif (current_SC->SCp.have_data_in == 1) { /* DATA IN */
current_SC1625drivers/scsi/fdomain.cif (data_count > current_SC->SCp.this_residual)
current_SC1626drivers/scsi/fdomain.cdata_count = current_SC->SCp.this_residual;
current_SC1632drivers/scsi/fdomain.c*current_SC->SCp.ptr++ = inb( Read_FIFO_port );
current_SC1633drivers/scsi/fdomain.c--current_SC->SCp.this_residual;
current_SC1636drivers/scsi/fdomain.cinsw( Read_FIFO_port, current_SC->SCp.ptr, data_count );
current_SC1637drivers/scsi/fdomain.ccurrent_SC->SCp.ptr += 2 * data_count;
current_SC1638drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual -= 2 * data_count;
current_SC1641drivers/scsi/fdomain.cif (!current_SC->SCp.this_residual
current_SC1642drivers/scsi/fdomain.c&& current_SC->SCp.buffers_residual) {
current_SC1643drivers/scsi/fdomain.c--current_SC->SCp.buffers_residual;
current_SC1644drivers/scsi/fdomain.c++current_SC->SCp.buffer;
current_SC1645drivers/scsi/fdomain.ccurrent_SC->SCp.ptr = current_SC->SCp.buffer->address;
current_SC1646drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual = current_SC->SCp.buffer->length;
current_SC1653drivers/scsi/fdomain.cprintk( " ** IN DONE %d ** ", current_SC->SCp.have_data_in );
current_SC1657drivers/scsi/fdomain.cif (current_SC->cmnd[0] == REQUEST_SENSE && !current_SC->SCp.Status) {
current_SC1658drivers/scsi/fdomain.cif ((unsigned char)(*((char *)current_SC->request_buffer+2)) & 0x0f) {
current_SC1663drivers/scsi/fdomain.ckey = (unsigned char)(*((char *)current_SC->request_buffer + 2))
current_SC1665drivers/scsi/fdomain.ccode = (unsigned char)(*((char *)current_SC->request_buffer + 12));
current_SC1666drivers/scsi/fdomain.cqualifier = (unsigned char)(*((char *)current_SC->request_buffer
current_SC1686drivers/scsi/fdomain.cmy_done( (current_SC->SCp.Status & 0xff)
current_SC1687drivers/scsi/fdomain.c| ((current_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16) );
current_SC1693drivers/scsi/fdomain.cif (current_SC->SCp.phase & disconnect) {
current_SC1721drivers/scsi/fdomain.ccurrent_SC            = SCpnt; /* Save this for the done function */
current_SC1722drivers/scsi/fdomain.ccurrent_SC->scsi_done = done;
current_SC1726drivers/scsi/fdomain.cif (current_SC->use_sg) {
current_SC1727drivers/scsi/fdomain.ccurrent_SC->SCp.buffer =
current_SC1728drivers/scsi/fdomain.c(struct scatterlist *)current_SC->request_buffer;
current_SC1729drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = current_SC->SCp.buffer->address;
current_SC1730drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->SCp.buffer->length;
current_SC1731drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = current_SC->use_sg - 1;
current_SC1733drivers/scsi/fdomain.ccurrent_SC->SCp.ptr              = (char *)current_SC->request_buffer;
current_SC1734drivers/scsi/fdomain.ccurrent_SC->SCp.this_residual    = current_SC->request_bufflen;
current_SC1735drivers/scsi/fdomain.ccurrent_SC->SCp.buffer           = NULL;
current_SC1736drivers/scsi/fdomain.ccurrent_SC->SCp.buffers_residual = 0;
current_SC1740drivers/scsi/fdomain.ccurrent_SC->SCp.Status              = 0;
current_SC1741drivers/scsi/fdomain.ccurrent_SC->SCp.Message             = 0;
current_SC1742drivers/scsi/fdomain.ccurrent_SC->SCp.have_data_in        = 0;
current_SC1743drivers/scsi/fdomain.ccurrent_SC->SCp.sent_command        = 0;
current_SC1744drivers/scsi/fdomain.ccurrent_SC->SCp.phase               = in_arbitration;
current_SC1874drivers/scsi/fdomain.ccurrent_SC->SCp.phase |= aborted;
current_SC1876drivers/scsi/fdomain.ccurrent_SC->result = DID_ABORT << 16;
current_SC1897drivers/scsi/fdomain.cif (called_once) print_info( current_SC );