Lines Matching refs:active_tc
1144 struct target_control *active_tc; in tulip_scsi() local
1184 active_tc = &host->targets[scb->target]; in tulip_scsi()
1187 active_tc->drv_flags |= TCF_DRV_EN_TAG; in tulip_scsi()
1189 active_tc->drv_flags &= ~TCF_DRV_EN_TAG; in tulip_scsi()
1191 outb(active_tc->js_period, host->addr + TUL_SPeriod); in tulip_scsi()
1192 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { /* do wdtr negotiation */ in tulip_scsi()
1195 …if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { /* do sync negotiation … in tulip_scsi()
1295 struct target_control *active_tc = host->active_tc; in initio_state_1() local
1304 outb(active_tc->sconfig0, host->addr + TUL_SConfig ); in initio_state_1()
1314 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { in initio_state_1()
1315 active_tc->flags |= TCF_WDTR_DONE; in initio_state_1()
1320 } else if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { in initio_state_1()
1321 active_tc->flags |= TCF_SYNC_DONE; in initio_state_1()
1325 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_1()
1350 struct target_control *active_tc = host->active_tc; in initio_state_2() local
1358 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in initio_state_2()
1379 struct target_control *active_tc = host->active_tc; in initio_state_3() local
1409 if (active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) { in initio_state_3()
1415 active_tc->flags |= TCF_SYNC_DONE; in initio_state_3()
1420 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_3()
1533 if (host->active_tc->js_period & TSC_WIDE_SCSI) in initio_state_5()
1730 struct target_control *active_tc = host->active_tc; in initio_xpad_in() local
1735 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_in()
1754 struct target_control *active_tc = host->active_tc; in initio_xpad_out() local
1759 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_out()
1842 host->active_tc = NULL; in int_initio_busfree()
1880 host->active_tc = NULL; in int_initio_scsi_rst()
1900 struct target_control *active_tc; in int_initio_resel() local
1915 active_tc = &host->targets[tar]; in int_initio_resel()
1916 host->active_tc = active_tc; in int_initio_resel()
1917 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in int_initio_resel()
1918 outb(active_tc->js_period, host->addr + TUL_SPeriod); in int_initio_resel()
1921 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()