Lines Matching refs:active_tc
1160 struct target_control *active_tc; in tulip_scsi() local
1200 active_tc = &host->targets[scb->target]; in tulip_scsi()
1203 active_tc->drv_flags |= TCF_DRV_EN_TAG; in tulip_scsi()
1205 active_tc->drv_flags &= ~TCF_DRV_EN_TAG; in tulip_scsi()
1207 outb(active_tc->js_period, host->addr + TUL_SPeriod); in tulip_scsi()
1208 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { /* do wdtr negotiation */ in tulip_scsi()
1211 …if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { /* do sync negotiation … in tulip_scsi()
1311 struct target_control *active_tc = host->active_tc; in initio_state_1() local
1320 outb(active_tc->sconfig0, host->addr + TUL_SConfig ); in initio_state_1()
1330 if ((active_tc->flags & (TCF_WDTR_DONE | TCF_NO_WDTR)) == 0) { in initio_state_1()
1331 active_tc->flags |= TCF_WDTR_DONE; in initio_state_1()
1336 } else if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) { in initio_state_1()
1337 active_tc->flags |= TCF_SYNC_DONE; in initio_state_1()
1341 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_1()
1366 struct target_control *active_tc = host->active_tc; in initio_state_2() local
1374 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in initio_state_2()
1395 struct target_control *active_tc = host->active_tc; in initio_state_3() local
1425 if (active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) { in initio_state_3()
1431 active_tc->flags |= TCF_SYNC_DONE; in initio_state_3()
1436 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_3()
1549 if (host->active_tc->js_period & TSC_WIDE_SCSI) in initio_state_5()
1746 struct target_control *active_tc = host->active_tc; in initio_xpad_in() local
1751 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_in()
1770 struct target_control *active_tc = host->active_tc; in initio_xpad_out() local
1775 if (active_tc->js_period & TSC_WIDE_SCSI) in initio_xpad_out()
1857 host->active_tc = NULL; in int_initio_busfree()
1895 host->active_tc = NULL; in int_initio_scsi_rst()
1915 struct target_control *active_tc; in int_initio_resel() local
1930 active_tc = &host->targets[tar]; in int_initio_resel()
1931 host->active_tc = active_tc; in int_initio_resel()
1932 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in int_initio_resel()
1933 outb(active_tc->js_period, host->addr + TUL_SPeriod); in int_initio_resel()
1936 if (active_tc->drv_flags & TCF_DRV_EN_TAG) { in int_initio_resel()
1977 if (!(active_tc->drv_flags & TCF_DRV_EN_TAG)) { in int_initio_resel()
2065 struct target_control *active_tc; in initio_msgin() local
2087 active_tc = host->active_tc; in initio_msgin()
2088 if ((active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) /* do sync nego */ in initio_msgin()
2164 if (host->active_tc->flags & TCF_NO_SYNC_NEGO) { /* Set OFFSET=0 to do async, nego back */ in initio_msgin_extend()
2168 (host->active_tc->flags & TCF_SYNC_DONE)) { in initio_msgin_extend()
2195 if (host->active_tc->flags & TCF_NO_WDTR) { in initio_msgin_extend()
2203 if ((host->active_tc->flags & TCF_NO_WDTR) == 0) { in initio_msgin_extend()
2205 if ((host->active_tc->flags & (TCF_SYNC_DONE | TCF_NO_SYNC_NEGO)) == 0) in initio_msgin_extend()
2228 default_period = initio_rate_tbl[host->active_tc->flags & TCF_SCSI_RATE]; in initio_msgin_sync()
2256 host->active_tc->flags &= ~TCF_SYNC_DONE; in wdtr_done()
2257 host->active_tc->flags |= TCF_WDTR_DONE; in wdtr_done()
2259 host->active_tc->js_period = 0; in wdtr_done()
2261 host->active_tc->js_period |= TSC_WIDE_SCSI; in wdtr_done()
2262 host->active_tc->sconfig0 &= ~TSC_ALT_PERIOD; in wdtr_done()
2263 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in wdtr_done()
2264 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in wdtr_done()
2273 host->active_tc->flags |= TCF_SYNC_DONE; in initio_sync_done()
2276 host->active_tc->js_period |= host->msg[3]; in initio_sync_done()
2281 host->active_tc->js_period |= (i << 4); in initio_sync_done()
2282 host->active_tc->sconfig0 |= TSC_ALT_PERIOD; in initio_sync_done()
2284 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in initio_sync_done()
2285 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in initio_sync_done()
2294 struct target_control *active_tc; in initio_post_scsi_rst() local
2298 host->active_tc = NULL; in initio_post_scsi_rst()
2306 active_tc = &host->targets[0]; in initio_post_scsi_rst()
2307 for (i = 0; i < host->max_tar; active_tc++, i++) { in initio_post_scsi_rst()
2308 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE); in initio_post_scsi_rst()
2310 active_tc->js_period = 0; in initio_post_scsi_rst()
2311 active_tc->sconfig0 = host->sconf1; in initio_post_scsi_rst()
2324 host->active_tc = &host->targets[scb->target]; in initio_select_atn_stop()
2339 host->active_tc = &host->targets[scb->target]; in initio_select_atn()
2356 host->active_tc = &host->targets[scb->target]; in initio_select_atn3()
2371 struct target_control *active_tc = host->active_tc; in initio_bus_device_reset() local
2383 active_tc->flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE | TCF_BUSY); in initio_bus_device_reset()
2445 host->active_tc = NULL; in wait_tulip()
2454 host->active_tc = NULL; in wait_tulip()