Lines Matching defs:ti

489 		struct spc_tinfo *ti = &sc->sc_tinfo[r];
491 ti->flags = 0;
493 ti->flags |= T_SYNCMODE;
494 ti->period = sc->sc_minsync;
495 ti->offset = SPC_SYNC_REQ_ACK_OFS;
497 ti->period = ti->offset = 0;
499 ti->width = 0;
600 struct spc_tinfo *ti;
640 ti = &sc->sc_tinfo[target];
641 ti->lubusy |= (1 << lun);
642 mha_setsync(sc, ti);
808 mha_setsync(struct mha_softc *sc, struct spc_tinfo *ti)
837 struct spc_tinfo *ti;
840 ti = &sc->sc_tinfo[t];
841 if (!(ti->lubusy & (1 << periph->periph_lun))) {
851 ti->lubusy |= (1<<periph->periph_lun);
871 struct spc_tinfo *ti = &sc->sc_tinfo[periph->periph_target];
936 ti->lubusy &= ~(1<<periph->periph_lun);
944 ti->lubusy &= ~(1<<periph->periph_lun);
963 ti->cmds++;
1072 struct spc_tinfo *ti =
1101 ti->period = ti->offset = 0;
1103 ti->flags &= ~T_NEGOTIATE;
1114 ti->dconns++;
1147 ti->period = sc->sc_imess[3];
1148 ti->offset = sc->sc_imess[4];
1151 ti->offset = 0;
1153 } else if (ti->offset == 0) {
1156 ti->offset = 0;
1158 } else if (ti->period > 124) {
1161 ti->offset = 0;
1166 p = mha_stp2cpb(sc, ti->period);
1167 ti->period = mha_cpb2stp(sc, p);
1175 if (ti->flags & T_SYNCMODE) {
1176 ti->flags &= ~T_SYNCMODE;
1183 if (ti->period < sc->sc_minsync)
1184 ti->period = sc->sc_minsync;
1185 if (ti->offset > 15)
1186 ti->offset = 15;
1192 ti->flags |= T_SYNCMODE;
1195 ti->flags &= ~T_NEGOTIATE;
1215 struct spc_tinfo *ti;
1247 ti = &sc->sc_tinfo[periph->periph_target];
1253 if (ti->flags & T_SYNCMODE) {
1289 struct spc_tinfo *ti;
1344 ti = &sc->sc_tinfo[sc->sc_nexus->xs->xs_periph->periph_target];
1348 sc->sc_omess[1] = ti->period >> 2;
1349 sc->sc_omess[0] = ti->offset;
1357 ti = &sc->sc_tinfo[sc->sc_nexus->xs->xs_periph->periph_target];
1361 sc->sc_omess[0] = ti->width;
2038 struct spc_tinfo *ti;
2046 ti = &sc->sc_tinfo[i];
2048 i, ti->cmds, ti->dconns, ti->touts);
2049 printf(" %d senses flags=%x\n", ti->senses, ti->flags);