Lines Matching defs:ti
325 struct spc_tinfo *ti = &sc->sc_tinfo[r];
327 ti->flags = 0;
329 ti->flags |= DO_SYNC;
330 ti->period = sc->sc_minsync;
331 ti->offset = SPC_SYNC_REQ_ACK_OFS;
333 ti->period = ti->offset = 0;
336 ti->flags |= DO_WIDE;
337 ti->width = SPC_MAX_WIDTH;
339 ti->width = 0;
508 spc_setsync(struct spc_softc *sc, struct spc_tinfo *ti)
515 if (ti->offset != 0)
517 ((ti->period * sc->sc_freq) / 250 - 2) << 4 | ti->offset);
532 struct spc_tinfo *ti = &sc->sc_tinfo[target];
537 spc_setsync(sc, ti);
573 struct spc_tinfo *ti;
614 ti = &sc->sc_tinfo[target];
615 ti->lubusy |= (1 << lun);
616 spc_setsync(sc, ti);
651 struct spc_tinfo *ti;
663 ti = &sc->sc_tinfo[sc_link->target];
664 if ((ti->lubusy & (1 << sc_link->lun)) == 0) {
684 struct spc_tinfo *ti = &sc->sc_tinfo[sc_link->target];
697 ti->senses++;
699 ti->lubusy &= ~(1 << sc_link->lun);
718 struct spc_tinfo *ti = &sc->sc_tinfo[sc_link->target];
775 ti->lubusy &= ~(1 << sc_link->lun);
783 ti->cmds++;
931 struct spc_tinfo *ti;
936 ti = &sc->sc_tinfo[acb->xs->sc_link->target];
961 ti->flags &= ~(DO_SYNC | DO_WIDE);
962 ti->period = ti->offset = 0;
963 spc_setsync(sc, ti);
964 ti->width = 0;
969 ti->flags &= ~DO_SYNC;
970 ti->period = ti->offset = 0;
971 spc_setsync(sc, ti);
976 ti->flags &= ~DO_WIDE;
977 ti->width = 0;
990 ti->dconns++;
1012 ti->period = sc->sc_imess[3];
1013 ti->offset = sc->sc_imess[4];
1014 ti->flags &= ~DO_SYNC;
1015 if (ti->offset == 0) {
1016 } else if (ti->period < sc->sc_minsync ||
1017 ti->period > sc->sc_maxsync ||
1018 ti->offset > 8) {
1019 ti->period = ti->offset = 0;
1025 ti->offset, ti->period * 4);
1027 spc_setsync(sc, ti);
1035 ti->width = sc->sc_imess[3];
1036 ti->flags &= ~DO_WIDE;
1037 if (ti->width == 0) {
1038 } else if (ti->width > SPC_MAX_WIDTH) {
1039 ti->width = 0;
1044 1 << (3 + ti->width));
1117 struct spc_tinfo *ti;
1173 ti = &sc->sc_tinfo[sc->sc_nexus->xs->sc_link->target];
1177 sc->sc_omess[1] = ti->period >> 2;
1178 sc->sc_omess[0] = ti->offset;
1186 ti = &sc->sc_tinfo[sc->sc_nexus->xs->sc_link->target];
1190 sc->sc_omess[0] = ti->width;
1583 struct spc_tinfo *ti;
1696 ti = &sc->sc_tinfo[sc_link->target];
1705 if ((ti->flags & DO_SYNC) != 0)
1709 if ((ti->flags & DO_WIDE) != 0)
1715 ti->lubusy |= (1 << sc_link->lun);
1789 ti = &sc->sc_tinfo[sc_link->target];
1793 ti->flags &= ~DO_SYNC;
1794 ti->period = ti->offset = 0;
1799 ti->flags &= ~DO_WIDE;
1800 ti->width = 0;
2096 struct spc_tinfo *ti;
2104 ti = &sc->sc_tinfo[i];
2106 i, ti->cmds, ti->dconns, ti->touts);
2107 printf(" %d senses flags=%x\n", ti->senses, ti->flags);