Lines Matching refs:active_tc
1146 struct target_control *active_tc; in tulip_scsi() local
1186 active_tc = &host->targets[scb->target]; in tulip_scsi()
1189 active_tc->drv_flags |= TCF_DRV_EN_TAG; in tulip_scsi()
1191 active_tc->drv_flags &= ~TCF_DRV_EN_TAG; in tulip_scsi()
1193 outb(active_tc->js_period, host->addr + TUL_SPeriod); in tulip_scsi()
1194 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { /* do wdtr negotiation */ in tulip_scsi()
1197 …if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { /* do sync negotiation … in tulip_scsi()
1297 struct target_control *active_tc = host->active_tc; in initio_state_1() local
1306 outb(active_tc->sconfig0, host->addr + TUL_SConfig ); in initio_state_1()
1316 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { in initio_state_1()
1317 active_tc->flags |= TCF_WDTR_DONE; in initio_state_1()
1322 } else if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { in initio_state_1()
1323 active_tc->flags |= TCF_SYNC_DONE; in initio_state_1()
1327 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_1()
1352 struct target_control *active_tc = host->active_tc; in initio_state_2() local
1360 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in initio_state_2()
1381 struct target_control *active_tc = host->active_tc; in initio_state_3() local
1411 if (active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) { in initio_state_3()
1417 active_tc->flags |= TCF_SYNC_DONE; in initio_state_3()
1422 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_3()
1535 if (host->active_tc->js_period & TSC_WIDE_SCSI) in initio_state_5()
1732 struct target_control *active_tc = host->active_tc; in initio_xpad_in() local
1737 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_in()
1756 struct target_control *active_tc = host->active_tc; in initio_xpad_out() local
1761 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_out()
1843 host->active_tc = NULL; in int_initio_busfree()
1881 host->active_tc = NULL; in int_initio_scsi_rst()
1901 struct target_control *active_tc; in int_initio_resel() local
1916 active_tc = &host->targets[tar]; in int_initio_resel()
1917 host->active_tc = active_tc; in int_initio_resel()
1918 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in int_initio_resel()
1919 outb(active_tc->js_period, host->addr + TUL_SPeriod); in int_initio_resel()
1922 if (active_tc->drv_flags & TCF_DRV_EN_TAG) { in int_initio_resel()
1963 if (!(active_tc->drv_flags & TCF_DRV_EN_TAG)) { in int_initio_resel()
2051 struct target_control *active_tc; in initio_msgin() local
2073 active_tc = host->active_tc; in initio_msgin()
2074 if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) /* do sync nego */ in initio_msgin()
2150 if (host->active_tc->flags & TCF_NO_SYNC_NEGO) { /* Set OFFSET=0 to do async, nego back */ in initio_msgin_extend()
2154 (host->active_tc->flags & TCF_SYNC_DONE)) { in initio_msgin_extend()
2181 if (host->active_tc->flags & TCF_NO_WDTR) { in initio_msgin_extend()
2189 if ((host->active_tc->flags & TCF_NO_WDTR) == 0) { in initio_msgin_extend()
2191 if ((host->active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) in initio_msgin_extend()
2214 default_period = initio_rate_tbl[host->active_tc->flags & TCF_SCSI_RATE]; in initio_msgin_sync()
2242 host->active_tc->flags &= ~TCF_SYNC_DONE; in wdtr_done()
2243 host->active_tc->flags |= TCF_WDTR_DONE; in wdtr_done()
2245 host->active_tc->js_period = 0; in wdtr_done()
2247 host->active_tc->js_period |= TSC_WIDE_SCSI; in wdtr_done()
2248 host->active_tc->sconfig0 &= ~TSC_ALT_PERIOD; in wdtr_done()
2249 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in wdtr_done()
2250 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in wdtr_done()
2259 host->active_tc->flags |= TCF_SYNC_DONE; in initio_sync_done()
2262 host->active_tc->js_period |= host->msg[3]; in initio_sync_done()
2267 host->active_tc->js_period |= (i << 4); in initio_sync_done()
2268 host->active_tc->sconfig0 |= TSC_ALT_PERIOD; in initio_sync_done()
2270 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in initio_sync_done()
2271 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in initio_sync_done()
2280 struct target_control *active_tc; in initio_post_scsi_rst() local
2284 host->active_tc = NULL; in initio_post_scsi_rst()
2292 active_tc = &host->targets[0]; in initio_post_scsi_rst()
2293 for (i = 0; i < host->max_tar; active_tc++, i++) { in initio_post_scsi_rst()
2294 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE); in initio_post_scsi_rst()
2296 active_tc->js_period = 0; in initio_post_scsi_rst()
2297 active_tc->sconfig0 = host->sconf1; in initio_post_scsi_rst()
2310 host->active_tc = &host->targets[scb->target]; in initio_select_atn_stop()
2325 host->active_tc = &host->targets[scb->target]; in initio_select_atn()
2342 host->active_tc = &host->targets[scb->target]; in initio_select_atn3()
2357 struct target_control *active_tc = host->active_tc; in initio_bus_device_reset() local
2369 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE | TCF_BUSY); in initio_bus_device_reset()
2431 host->active_tc = NULL; in wait_tulip()
2440 host->active_tc = NULL; in wait_tulip()