CURRENT_SC 540 drivers/scsi/aha152x.c #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id]) CURRENT_SC 541 drivers/scsi/aha152x.c #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id]) CURRENT_SC 877 drivers/scsi/aha152x.c if(CURRENT_SC) { CURRENT_SC 878 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= 1 << 16; CURRENT_SC 880 drivers/scsi/aha152x.c if(CURRENT_SC->SCp.phase & selecting) { CURRENT_SC 885 drivers/scsi/aha152x.c SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0); CURRENT_SC 1054 drivers/scsi/aha152x.c if(CURRENT_SC==SCpnt) { CURRENT_SC 1276 drivers/scsi/aha152x.c if (CURRENT_SC) { CURRENT_SC 1278 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1282 drivers/scsi/aha152x.c DONE_SC = CURRENT_SC; CURRENT_SC 1283 drivers/scsi/aha152x.c CURRENT_SC = NULL; CURRENT_SC 1371 drivers/scsi/aha152x.c if(CURRENT_SC) { CURRENT_SC 1375 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~syncneg; CURRENT_SC 1377 drivers/scsi/aha152x.c if(CURRENT_SC->SCp.phase & completed) { CURRENT_SC 1379 drivers/scsi/aha152x.c done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_OK << 16)); CURRENT_SC 1381 drivers/scsi/aha152x.c } else if(CURRENT_SC->SCp.phase & aborted) { CURRENT_SC 1382 drivers/scsi/aha152x.c done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_ABORT << 16)); CURRENT_SC 1384 drivers/scsi/aha152x.c } else if(CURRENT_SC->SCp.phase & resetted) { CURRENT_SC 1385 drivers/scsi/aha152x.c done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_RESET << 16)); CURRENT_SC 1387 drivers/scsi/aha152x.c } else if(CURRENT_SC->SCp.phase & disconnected) { CURRENT_SC 1392 drivers/scsi/aha152x.c append_SC(&DISCONNECTED_SC, CURRENT_SC); CURRENT_SC 1393 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= 1 << 16; CURRENT_SC 1394 drivers/scsi/aha152x.c CURRENT_SC = NULL; CURRENT_SC 1471 drivers/scsi/aha152x.c CURRENT_SC = remove_first_SC(&ISSUE_SC); CURRENT_SC 1475 drivers/scsi/aha152x.c if(CURRENT_SC) { CURRENT_SC 1479 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= selecting; CURRENT_SC 1484 drivers/scsi/aha152x.c SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->device->id); CURRENT_SC 1511 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~(selecting|not_issued); CURRENT_SC 1516 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1524 drivers/scsi/aha152x.c ADDMSGO(IDENTIFY(RECONNECT, CURRENT_SC->device->lun)); CURRENT_SC 1526 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.phase & aborting) { CURRENT_SC 1528 drivers/scsi/aha152x.c } else if (CURRENT_SC->SCp.phase & resetting) { CURRENT_SC 1531 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= syncneg; CURRENT_SC 1549 drivers/scsi/aha152x.c if (!CURRENT_SC) CURRENT_SC 1552 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~selecting; CURRENT_SC 1554 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.phase & aborted) CURRENT_SC 1581 drivers/scsi/aha152x.c if(CURRENT_SC) { CURRENT_SC 1582 drivers/scsi/aha152x.c if(!(CURRENT_SC->SCp.phase & not_issued)) CURRENT_SC 1583 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1587 drivers/scsi/aha152x.c append_SC(&ISSUE_SC, CURRENT_SC); CURRENT_SC 1590 drivers/scsi/aha152x.c CURRENT_SC = NULL; CURRENT_SC 1649 drivers/scsi/aha152x.c if(!CURRENT_SC) { CURRENT_SC 1665 drivers/scsi/aha152x.c CURRENT_SC = remove_lun_SC(&DISCONNECTED_SC, RECONN_TARGET, MSGI(0) & 0x3f); CURRENT_SC 1667 drivers/scsi/aha152x.c if (!CURRENT_SC) { CURRENT_SC 1676 drivers/scsi/aha152x.c CURRENT_SC->SCp.Message = MSGI(0); CURRENT_SC 1677 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~disconnected; CURRENT_SC 1685 drivers/scsi/aha152x.c CURRENT_SC->SCp.Message = MSGI(0); CURRENT_SC 1690 drivers/scsi/aha152x.c scmd_printk(KERN_WARNING, CURRENT_SC, CURRENT_SC 1693 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= disconnected; CURRENT_SC 1697 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= completed; CURRENT_SC 1702 drivers/scsi/aha152x.c scmd_printk(KERN_INFO, CURRENT_SC, CURRENT_SC 1707 drivers/scsi/aha152x.c scmd_printk(KERN_INFO, CURRENT_SC, CURRENT_SC 1729 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1737 drivers/scsi/aha152x.c printk(INFO_LEAD, CMDINFO(CURRENT_SC)); CURRENT_SC 1748 drivers/scsi/aha152x.c CURRENT_SC, CURRENT_SC 1773 drivers/scsi/aha152x.c CURRENT_SC, CURRENT_SC 1813 drivers/scsi/aha152x.c scmd_printk(KERN_WARNING, CURRENT_SC, CURRENT_SC 1828 drivers/scsi/aha152x.c if((CURRENT_SC->SCp.phase & syncneg) && SYNCNEG==2 && SYNCRATE==0) { CURRENT_SC 1829 drivers/scsi/aha152x.c ADDMSGO(IDENTIFY(RECONNECT, CURRENT_SC->device->lun)); CURRENT_SC 1831 drivers/scsi/aha152x.c scmd_printk(KERN_INFO, CURRENT_SC, CURRENT_SC 1856 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= identified; CURRENT_SC 1859 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= aborted; CURRENT_SC 1862 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= resetted; CURRENT_SC 1871 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1875 drivers/scsi/aha152x.c scmd_printk(KERN_INFO, CURRENT_SC, CURRENT_SC 1891 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.sent_command) { CURRENT_SC 1892 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1907 drivers/scsi/aha152x.c while(CMD_I<CURRENT_SC->cmd_len) { CURRENT_SC 1911 drivers/scsi/aha152x.c SETPORT(SCSIDAT, CURRENT_SC->cmnd[CMD_I++]); CURRENT_SC 1917 drivers/scsi/aha152x.c if(CMD_I<CURRENT_SC->cmd_len) CURRENT_SC 1918 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1920 drivers/scsi/aha152x.c CMD_I, CURRENT_SC->cmd_len); CURRENT_SC 1922 drivers/scsi/aha152x.c CURRENT_SC->SCp.sent_command++; CURRENT_SC 1934 drivers/scsi/aha152x.c CURRENT_SC->SCp.Status = GETPORT(SCSIDAT); CURRENT_SC 1975 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, "datai timeout\n"); CURRENT_SC 1987 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 1995 drivers/scsi/aha152x.c if(CURRENT_SC->SCp.this_residual>0) { CURRENT_SC 1996 drivers/scsi/aha152x.c while(fifodata>0 && CURRENT_SC->SCp.this_residual>0) { CURRENT_SC 1997 drivers/scsi/aha152x.c data_count = fifodata > CURRENT_SC->SCp.this_residual ? CURRENT_SC 1998 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual : CURRENT_SC 2004 drivers/scsi/aha152x.c *CURRENT_SC->SCp.ptr++ = GETPORT(DATAPORT); CURRENT_SC 2005 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual--; CURRENT_SC 2012 drivers/scsi/aha152x.c insw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); CURRENT_SC 2013 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr += 2 * data_count; CURRENT_SC 2014 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual -= 2 * data_count; CURRENT_SC 2018 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.this_residual == 0 && CURRENT_SC 2019 drivers/scsi/aha152x.c !sg_is_last(CURRENT_SC->SCp.buffer)) { CURRENT_SC 2021 drivers/scsi/aha152x.c CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); CURRENT_SC 2022 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); CURRENT_SC 2023 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; CURRENT_SC 2027 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 2050 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 2055 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 2066 drivers/scsi/aha152x.c CMD_INC_RESID(CURRENT_SC, -GETSTCNT()); CURRENT_SC 2087 drivers/scsi/aha152x.c DATA_LEN = scsi_get_resid(CURRENT_SC); CURRENT_SC 2096 drivers/scsi/aha152x.c while(TESTLO(DMASTAT, INTSTAT) && CURRENT_SC->SCp.this_residual>0) { CURRENT_SC 2098 drivers/scsi/aha152x.c if(data_count > CURRENT_SC->SCp.this_residual) CURRENT_SC 2099 drivers/scsi/aha152x.c data_count=CURRENT_SC->SCp.this_residual; CURRENT_SC 2102 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 2110 drivers/scsi/aha152x.c SETPORT(DATAPORT, *CURRENT_SC->SCp.ptr++); CURRENT_SC 2111 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual--; CURRENT_SC 2112 drivers/scsi/aha152x.c CMD_INC_RESID(CURRENT_SC, -1); CURRENT_SC 2118 drivers/scsi/aha152x.c outsw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); CURRENT_SC 2119 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr += 2 * data_count; CURRENT_SC 2120 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual -= 2 * data_count; CURRENT_SC 2121 drivers/scsi/aha152x.c CMD_INC_RESID(CURRENT_SC, -2 * data_count); CURRENT_SC 2124 drivers/scsi/aha152x.c if (CURRENT_SC->SCp.this_residual == 0 && CURRENT_SC 2125 drivers/scsi/aha152x.c !sg_is_last(CURRENT_SC->SCp.buffer)) { CURRENT_SC 2127 drivers/scsi/aha152x.c CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); CURRENT_SC 2128 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); CURRENT_SC 2129 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; CURRENT_SC 2137 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, "dataout timeout\n"); CURRENT_SC 2147 drivers/scsi/aha152x.c int datao_out = DATA_LEN - scsi_get_resid(CURRENT_SC); CURRENT_SC 2149 drivers/scsi/aha152x.c struct scatterlist *sg = scsi_sglist(CURRENT_SC); CURRENT_SC 2151 drivers/scsi/aha152x.c CMD_INC_RESID(CURRENT_SC, datao_out - datao_cnt); CURRENT_SC 2153 drivers/scsi/aha152x.c done = scsi_bufflen(CURRENT_SC) - scsi_get_resid(CURRENT_SC); CURRENT_SC 2162 drivers/scsi/aha152x.c CURRENT_SC->SCp.buffer = sg; CURRENT_SC 2163 drivers/scsi/aha152x.c CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer) + done; CURRENT_SC 2164 drivers/scsi/aha152x.c CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length - CURRENT_SC 2193 drivers/scsi/aha152x.c } else if(stat0 & SELDO && CURRENT_SC && (CURRENT_SC->SCp.phase & selecting)) { CURRENT_SC 2216 drivers/scsi/aha152x.c scmd_printk(KERN_INFO, CURRENT_SC, "reselection missed?"); CURRENT_SC 2234 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, "parity error\n"); CURRENT_SC 2265 drivers/scsi/aha152x.c if(CURRENT_SC && !CURRENT_SC->device->soft_reset) CURRENT_SC 2324 drivers/scsi/aha152x.c if(CURRENT_SC) CURRENT_SC 2325 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase &= ~spiordy; CURRENT_SC 2346 drivers/scsi/aha152x.c if(CURRENT_SC) CURRENT_SC 2347 drivers/scsi/aha152x.c CURRENT_SC->SCp.phase |= spiordy; CURRENT_SC 2364 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, CURRENT_SC, CURRENT_SC 2469 drivers/scsi/aha152x.c if (CURRENT_SC) CURRENT_SC 2470 drivers/scsi/aha152x.c show_command(CURRENT_SC); CURRENT_SC 2518 drivers/scsi/aha152x.c seq_printf(m, "\n%s: %s(%s) ", CURRENT_SC ? "on bus" : "waiting", states[STATE].name, states[PREVSTATE].name); CURRENT_SC 2846 drivers/scsi/aha152x.c if (CURRENT_SC) { CURRENT_SC 2848 drivers/scsi/aha152x.c get_command(m, CURRENT_SC);