Lines Matching refs:CURRENT_SC

531 #define CURRENT_SC		(HOSTDATA(shpnt)->current_SC)  macro
558 #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id])
559 #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id])
897 if(CURRENT_SC) { in setup_expected_interrupts()
898 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in setup_expected_interrupts()
1081 if(CURRENT_SC==SCpnt) { in aha152x_device_reset()
1304 if (CURRENT_SC) { in done()
1306 scmd_printk(KERN_ERR, CURRENT_SC, in done()
1310 DONE_SC = CURRENT_SC; in done()
1311 CURRENT_SC = NULL; in done()
1400 if(CURRENT_SC) { in busfree_run()
1401 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in busfree_run()
1423 append_SC(&DISCONNECTED_SC, CURRENT_SC); in busfree_run()
1425 CURRENT_SC = NULL; in busfree_run()
1502 CURRENT_SC = remove_first_SC(&ISSUE_SC); in busfree_run()
1506 if(CURRENT_SC) { in busfree_run()
1507 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in busfree_run()
1517 SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->device->id); in busfree_run()
1540 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in seldo_run()
1551 scmd_printk(KERN_ERR, CURRENT_SC, in seldo_run()
1559 ADDMSGO(IDENTIFY(RECONNECT, CURRENT_SC->device->lun)); in seldo_run()
1586 if (!CURRENT_SC) in selto_run()
1589 acp = aha152x_priv(CURRENT_SC); in selto_run()
1619 if(CURRENT_SC) { in seldi_run()
1620 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in seldi_run()
1623 scmd_printk(KERN_ERR, CURRENT_SC, in seldi_run()
1627 append_SC(&ISSUE_SC, CURRENT_SC); in seldi_run()
1630 CURRENT_SC = NULL; in seldi_run()
1690 if(!CURRENT_SC) { in msgi_run()
1706 CURRENT_SC = remove_lun_SC(&DISCONNECTED_SC, RECONN_TARGET, MSGI(0) & 0x3f); in msgi_run()
1708 if (!CURRENT_SC) { in msgi_run()
1717 acp = aha152x_priv(CURRENT_SC); in msgi_run()
1727 acp = aha152x_priv(CURRENT_SC); in msgi_run()
1733 scmd_printk(KERN_WARNING, CURRENT_SC, in msgi_run()
1745 scmd_printk(KERN_INFO, CURRENT_SC, in msgi_run()
1750 scmd_printk(KERN_INFO, CURRENT_SC, in msgi_run()
1772 scmd_printk(KERN_ERR, CURRENT_SC, in msgi_run()
1780 printk(INFO_LEAD, CMDINFO(CURRENT_SC)); in msgi_run()
1791 CURRENT_SC, in msgi_run()
1816 CURRENT_SC, in msgi_run()
1856 scmd_printk(KERN_WARNING, CURRENT_SC, in msgi_end()
1871 if ((aha152x_priv(CURRENT_SC)->phase & syncneg) && in msgo_init()
1873 ADDMSGO(IDENTIFY(RECONNECT, CURRENT_SC->device->lun)); in msgo_init()
1875 scmd_printk(KERN_INFO, CURRENT_SC, in msgo_init()
1889 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in msgo_run()
1917 scmd_printk(KERN_ERR, CURRENT_SC, in msgo_end()
1921 scmd_printk(KERN_INFO, CURRENT_SC, in msgo_end()
1937 if (aha152x_priv(CURRENT_SC)->sent_command) { in cmd_init()
1938 scmd_printk(KERN_ERR, CURRENT_SC, in cmd_init()
1953 while(CMD_I<CURRENT_SC->cmd_len) { in cmd_run()
1957 SETPORT(SCSIDAT, CURRENT_SC->cmnd[CMD_I++]); in cmd_run()
1963 if(CMD_I<CURRENT_SC->cmd_len) in cmd_end()
1964 scmd_printk(KERN_ERR, CURRENT_SC, in cmd_end()
1966 CMD_I, CURRENT_SC->cmd_len); in cmd_end()
1968 aha152x_priv(CURRENT_SC)->sent_command++; in cmd_end()
1980 aha152x_priv(CURRENT_SC)->status = GETPORT(SCSIDAT); in status_run()
2022 scmd_printk(KERN_ERR, CURRENT_SC, "datai timeout\n"); in datai_run()
2034 scmd_printk(KERN_ERR, CURRENT_SC, in datai_run()
2042 acp = aha152x_priv(CURRENT_SC); in datai_run()
2074 scmd_printk(KERN_ERR, CURRENT_SC, in datai_run()
2096 scmd_printk(KERN_ERR, CURRENT_SC, in datai_run()
2101 scmd_printk(KERN_ERR, CURRENT_SC, in datai_run()
2112 CMD_INC_RESID(CURRENT_SC, -GETSTCNT()); in datai_end()
2133 DATA_LEN = scsi_get_resid(CURRENT_SC); in datao_init()
2138 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in datao_run()
2149 scmd_printk(KERN_ERR, CURRENT_SC, in datao_run()
2159 CMD_INC_RESID(CURRENT_SC, -1); in datao_run()
2168 CMD_INC_RESID(CURRENT_SC, -2 * data_count); in datao_run()
2183 scmd_printk(KERN_ERR, CURRENT_SC, "dataout timeout\n"); in datao_run()
2191 struct aha152x_cmd_priv *acp = aha152x_priv(CURRENT_SC); in datao_end()
2195 int datao_out = DATA_LEN - scsi_get_resid(CURRENT_SC); in datao_end()
2197 struct scatterlist *sg = scsi_sglist(CURRENT_SC); in datao_end()
2199 CMD_INC_RESID(CURRENT_SC, datao_out - datao_cnt); in datao_end()
2201 done = scsi_bufflen(CURRENT_SC) - scsi_get_resid(CURRENT_SC); in datao_end()
2240 } else if (stat0 & SELDO && CURRENT_SC && in update_state()
2241 (aha152x_priv(CURRENT_SC)->phase & selecting)) { in update_state()
2264 scmd_printk(KERN_INFO, CURRENT_SC, "reselection missed?"); in update_state()
2282 scmd_printk(KERN_ERR, CURRENT_SC, "parity error\n"); in parerr_run()
2313 if(CURRENT_SC && !CURRENT_SC->device->soft_reset) in rsti_run()
2372 if(CURRENT_SC) in is_complete()
2373 aha152x_priv(CURRENT_SC)->phase &= ~spiordy; in is_complete()
2394 if(CURRENT_SC) in is_complete()
2395 aha152x_priv(CURRENT_SC)->phase |= spiordy; in is_complete()
2412 scmd_printk(KERN_ERR, CURRENT_SC, in is_complete()
2519 if (CURRENT_SC) in show_queues()
2520 show_command(CURRENT_SC); in show_queues()
2570 …seq_printf(m, "\n%s: %s(%s) ", CURRENT_SC ? "on bus" : "waiting", states[STATE].name, states[PREVS… in get_ports()
2898 if (CURRENT_SC) { in aha152x_show_info()
2900 get_command(m, CURRENT_SC); in aha152x_show_info()