Lines Matching refs:active_tc
1176 struct target_control *active_tc; in tulip_scsi() local
1216 active_tc = &host->targets[scb->target]; in tulip_scsi()
1219 active_tc->drv_flags |= TCF_DRV_EN_TAG; in tulip_scsi()
1221 active_tc->drv_flags &= ~TCF_DRV_EN_TAG; in tulip_scsi()
1223 outb(active_tc->js_period, host->addr + TUL_SPeriod); in tulip_scsi()
1224 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { /* do wdtr negotiation */ in tulip_scsi()
1227 …if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { /* do sync negotiation … in tulip_scsi()
1327 struct target_control *active_tc = host->active_tc; in initio_state_1() local
1336 outb(active_tc->sconfig0, host->addr + TUL_SConfig ); in initio_state_1()
1346 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { in initio_state_1()
1347 active_tc->flags |= TCF_WDTR_DONE; in initio_state_1()
1352 } else if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { in initio_state_1()
1353 active_tc->flags |= TCF_SYNC_DONE; in initio_state_1()
1357 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_1()
1382 struct target_control *active_tc = host->active_tc; in initio_state_2() local
1390 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in initio_state_2()
1411 struct target_control *active_tc = host->active_tc; in initio_state_3() local
1441 if (active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) { in initio_state_3()
1447 active_tc->flags |= TCF_SYNC_DONE; in initio_state_3()
1452 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_3()
1565 if (host->active_tc->js_period & TSC_WIDE_SCSI) in initio_state_5()
1762 struct target_control *active_tc = host->active_tc; in initio_xpad_in() local
1767 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_in()
1786 struct target_control *active_tc = host->active_tc; in initio_xpad_out() local
1791 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_out()
1873 host->active_tc = NULL; in int_initio_busfree()
1911 host->active_tc = NULL; in int_initio_scsi_rst()
1931 struct target_control *active_tc; in int_initio_resel() local
1946 active_tc = &host->targets[tar]; in int_initio_resel()
1947 host->active_tc = active_tc; in int_initio_resel()
1948 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in int_initio_resel()
1949 outb(active_tc->js_period, host->addr + TUL_SPeriod); in int_initio_resel()
1952 if (active_tc->drv_flags & TCF_DRV_EN_TAG) { in int_initio_resel()
1993 if (!(active_tc->drv_flags & TCF_DRV_EN_TAG)) { in int_initio_resel()
2081 struct target_control *active_tc; in initio_msgin() local
2103 active_tc = host->active_tc; in initio_msgin()
2104 if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) /* do sync nego */ in initio_msgin()
2180 if (host->active_tc->flags & TCF_NO_SYNC_NEGO) { /* Set OFFSET=0 to do async, nego back */ in initio_msgin_extend()
2184 (host->active_tc->flags & TCF_SYNC_DONE)) { in initio_msgin_extend()
2211 if (host->active_tc->flags & TCF_NO_WDTR) { in initio_msgin_extend()
2219 if ((host->active_tc->flags & TCF_NO_WDTR) == 0) { in initio_msgin_extend()
2221 if ((host->active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) in initio_msgin_extend()
2244 default_period = initio_rate_tbl[host->active_tc->flags & TCF_SCSI_RATE]; in initio_msgin_sync()
2272 host->active_tc->flags &= ~TCF_SYNC_DONE; in wdtr_done()
2273 host->active_tc->flags |= TCF_WDTR_DONE; in wdtr_done()
2275 host->active_tc->js_period = 0; in wdtr_done()
2277 host->active_tc->js_period |= TSC_WIDE_SCSI; in wdtr_done()
2278 host->active_tc->sconfig0 &= ~TSC_ALT_PERIOD; in wdtr_done()
2279 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in wdtr_done()
2280 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in wdtr_done()
2289 host->active_tc->flags |= TCF_SYNC_DONE; in initio_sync_done()
2292 host->active_tc->js_period |= host->msg[3]; in initio_sync_done()
2297 host->active_tc->js_period |= (i << 4); in initio_sync_done()
2298 host->active_tc->sconfig0 |= TSC_ALT_PERIOD; in initio_sync_done()
2300 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in initio_sync_done()
2301 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in initio_sync_done()
2310 struct target_control *active_tc; in initio_post_scsi_rst() local
2314 host->active_tc = NULL; in initio_post_scsi_rst()
2322 active_tc = &host->targets[0]; in initio_post_scsi_rst()
2323 for (i = 0; i < host->max_tar; active_tc++, i++) { in initio_post_scsi_rst()
2324 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE); in initio_post_scsi_rst()
2326 active_tc->js_period = 0; in initio_post_scsi_rst()
2327 active_tc->sconfig0 = host->sconf1; in initio_post_scsi_rst()
2340 host->active_tc = &host->targets[scb->target]; in initio_select_atn_stop()
2355 host->active_tc = &host->targets[scb->target]; in initio_select_atn()
2372 host->active_tc = &host->targets[scb->target]; in initio_select_atn3()
2387 struct target_control *active_tc = host->active_tc; in initio_bus_device_reset() local
2399 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE | TCF_BUSY); in initio_bus_device_reset()
2461 host->active_tc = NULL; in wait_tulip()
2470 host->active_tc = NULL; in wait_tulip()