Lines Matching defs:ti

400 		struct aic_tinfo *ti = &sc->sc_tinfo[r];
402 ti->flags = 0;
404 ti->flags |= DO_SYNC;
405 ti->period = sc->sc_minsync;
406 ti->offset = AIC_SYNC_REQ_ACK_OFS;
408 ti->period = ti->offset = 0;
411 ti->flags |= DO_WIDE;
412 ti->width = AIC_MAX_WIDTH;
414 ti->width = 0;
577 aic_setsync(struct aic_softc *sc, struct aic_tinfo *ti)
583 if (ti->offset != 0)
585 ((ti->period * sc->sc_freq) / 250 - 2) << 4 | ti->offset);
602 struct aic_tinfo *ti = &sc->sc_tinfo[target];
606 aic_setsync(sc, ti);
623 struct aic_tinfo *ti;
663 ti = &sc->sc_tinfo[target];
664 ti->lubusy |= (1 << lun);
665 aic_setsync(sc, ti);
703 struct aic_tinfo *ti;
713 ti = &sc->sc_tinfo[sc_link->target];
714 if ((ti->lubusy & (1 << sc_link->lun)) == 0) {
738 struct aic_tinfo *ti = &sc->sc_tinfo[sc_link->target];
751 ti->senses++;
753 ti->lubusy &= ~(1 << sc_link->lun);
772 struct aic_tinfo *ti = &sc->sc_tinfo[sc_link->target];
815 ti->lubusy &= ~(1 << sc_link->lun);
823 ti->cmds++;
945 struct aic_tinfo *ti;
950 ti = &sc->sc_tinfo[acb->xs->sc_link->target];
975 ti->flags &= ~(DO_SYNC | DO_WIDE);
976 ti->period = ti->offset = 0;
977 aic_setsync(sc, ti);
978 ti->width = 0;
983 ti->flags &= ~DO_SYNC;
984 ti->period = ti->offset = 0;
985 aic_setsync(sc, ti);
990 ti->flags &= ~DO_WIDE;
991 ti->width = 0;
1004 ti->dconns++;
1026 ti->period = sc->sc_imess[3];
1027 ti->offset = sc->sc_imess[4];
1028 ti->flags &= ~DO_SYNC;
1029 if (ti->offset == 0) {
1030 } else if (ti->period < sc->sc_minsync ||
1031 ti->period > sc->sc_maxsync ||
1032 ti->offset > 8) {
1033 ti->period = ti->offset = 0;
1038 ti->offset);
1040 ti->period * 4);
1042 aic_setsync(sc, ti);
1050 ti->width = sc->sc_imess[3];
1051 ti->flags &= ~DO_WIDE;
1052 if (ti->width == 0) {
1053 } else if (ti->width > AIC_MAX_WIDTH) {
1054 ti->width = 0;
1059 1 << (3 + ti->width));
1133 struct aic_tinfo *ti;
1194 ti = &sc->sc_tinfo[sc->sc_nexus->xs->sc_link->target];
1198 sc->sc_omess[1] = ti->period >> 2;
1199 sc->sc_omess[0] = ti->offset;
1207 ti = &sc->sc_tinfo[sc->sc_nexus->xs->sc_link->target];
1211 sc->sc_omess[0] = ti->width;
1594 struct aic_tinfo *ti;
1692 ti = &sc->sc_tinfo[sc_link->target];
1701 if ((ti->flags & DO_SYNC) != 0)
1705 if ((ti->flags & DO_WIDE) != 0)
1711 ti->lubusy |= (1 << sc_link->lun);
1797 ti = &sc->sc_tinfo[sc_link->target];
1801 ti->flags &= ~DO_SYNC;
1802 ti->period = ti->offset = 0;
1807 ti->flags &= ~DO_WIDE;
1808 ti->width = 0;
2088 struct aic_tinfo *ti;
2096 ti = &sc->sc_tinfo[i];
2098 i, ti->cmds, ti->dconns, ti->touts);
2099 printf(" %d senses flags=%x\n", ti->senses, ti->flags);