Lines Matching refs:active_tc

1143 	struct target_control *active_tc;  in tulip_scsi()  local
1183 active_tc = &host->targets[scb->target]; in tulip_scsi()
1186 active_tc->drv_flags |= TCF_DRV_EN_TAG; in tulip_scsi()
1188 active_tc->drv_flags &= ~TCF_DRV_EN_TAG; in tulip_scsi()
1190 outb(active_tc->js_period, host->addr + TUL_SPeriod); in tulip_scsi()
1191 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { /* do wdtr negotiation */ in tulip_scsi()
1194 …if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { /* do sync negotiation … in tulip_scsi()
1294 struct target_control *active_tc = host->active_tc; in initio_state_1() local
1303 outb(active_tc->sconfig0, host->addr + TUL_SConfig ); in initio_state_1()
1313 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { in initio_state_1()
1314 active_tc->flags |= TCF_WDTR_DONE; in initio_state_1()
1319 } else if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { in initio_state_1()
1320 active_tc->flags |= TCF_SYNC_DONE; in initio_state_1()
1324 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_1()
1349 struct target_control *active_tc = host->active_tc; in initio_state_2() local
1357 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in initio_state_2()
1378 struct target_control *active_tc = host->active_tc; in initio_state_3() local
1408 if (active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) { in initio_state_3()
1414 active_tc->flags |= TCF_SYNC_DONE; in initio_state_3()
1419 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_3()
1532 if (host->active_tc->js_period & TSC_WIDE_SCSI) in initio_state_5()
1729 struct target_control *active_tc = host->active_tc; in initio_xpad_in() local
1734 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_in()
1753 struct target_control *active_tc = host->active_tc; in initio_xpad_out() local
1758 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_out()
1841 host->active_tc = NULL; in int_initio_busfree()
1879 host->active_tc = NULL; in int_initio_scsi_rst()
1899 struct target_control *active_tc; in int_initio_resel() local
1914 active_tc = &host->targets[tar]; in int_initio_resel()
1915 host->active_tc = active_tc; in int_initio_resel()
1916 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in int_initio_resel()
1917 outb(active_tc->js_period, host->addr + TUL_SPeriod); in int_initio_resel()
1920 if (active_tc->drv_flags & TCF_DRV_EN_TAG) { in int_initio_resel()
1962 if (!(active_tc->drv_flags & TCF_DRV_EN_TAG)) { in int_initio_resel()
2050 struct target_control *active_tc; in initio_msgin() local
2072 active_tc = host->active_tc; in initio_msgin()
2073 if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) /* do sync nego */ in initio_msgin()
2149 if (host->active_tc->flags & TCF_NO_SYNC_NEGO) { /* Set OFFSET=0 to do async, nego back */ in initio_msgin_extend()
2153 (host->active_tc->flags & TCF_SYNC_DONE)) { in initio_msgin_extend()
2180 if (host->active_tc->flags & TCF_NO_WDTR) { in initio_msgin_extend()
2188 if ((host->active_tc->flags & TCF_NO_WDTR) == 0) { in initio_msgin_extend()
2190 if ((host->active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) in initio_msgin_extend()
2213 default_period = initio_rate_tbl[host->active_tc->flags & TCF_SCSI_RATE]; in initio_msgin_sync()
2241 host->active_tc->flags &= ~TCF_SYNC_DONE; in wdtr_done()
2242 host->active_tc->flags |= TCF_WDTR_DONE; in wdtr_done()
2244 host->active_tc->js_period = 0; in wdtr_done()
2246 host->active_tc->js_period |= TSC_WIDE_SCSI; in wdtr_done()
2247 host->active_tc->sconfig0 &= ~TSC_ALT_PERIOD; in wdtr_done()
2248 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in wdtr_done()
2249 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in wdtr_done()
2258 host->active_tc->flags |= TCF_SYNC_DONE; in initio_sync_done()
2261 host->active_tc->js_period |= host->msg[3]; in initio_sync_done()
2266 host->active_tc->js_period |= (i << 4); in initio_sync_done()
2267 host->active_tc->sconfig0 |= TSC_ALT_PERIOD; in initio_sync_done()
2269 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in initio_sync_done()
2270 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in initio_sync_done()
2279 struct target_control *active_tc; in initio_post_scsi_rst() local
2283 host->active_tc = NULL; in initio_post_scsi_rst()
2291 active_tc = &host->targets[0]; in initio_post_scsi_rst()
2292 for (i = 0; i < host->max_tar; active_tc++, i++) { in initio_post_scsi_rst()
2293 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE); in initio_post_scsi_rst()
2295 active_tc->js_period = 0; in initio_post_scsi_rst()
2296 active_tc->sconfig0 = host->sconf1; in initio_post_scsi_rst()
2309 host->active_tc = &host->targets[scb->target]; in initio_select_atn_stop()
2324 host->active_tc = &host->targets[scb->target]; in initio_select_atn()
2341 host->active_tc = &host->targets[scb->target]; in initio_select_atn3()
2356 struct target_control *active_tc = host->active_tc; in initio_bus_device_reset() local
2368 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE | TCF_BUSY); in initio_bus_device_reset()
2430 host->active_tc = NULL; in wait_tulip()
2439 host->active_tc = NULL; in wait_tulip()