Home | History | Annotate | Download | only in ic

Lines Matching defs:ti

431 		struct spc_tinfo *ti = &sc->sc_tinfo[r];
433 ti->flags = 0;
435 ti->flags |= DO_SYNC;
436 ti->period = sc->sc_minsync;
437 ti->offset = SPC_SYNC_REQ_ACK_OFS;
439 ti->period = ti->offset = 0;
442 ti->flags |= DO_WIDE;
443 ti->width = SPC_MAX_WIDTH;
445 ti->width = 0;
648 spc_setsync(struct spc_softc *sc, struct spc_tinfo *ti)
655 if (ti->offset != 0)
657 ((ti->period * sc->sc_freq) / 250 - 2) << 4 | ti->offset);
671 struct spc_tinfo *ti = &sc->sc_tinfo[target];
676 spc_setsync(sc, ti);
712 struct spc_tinfo *ti;
753 ti = &sc->sc_tinfo[target];
754 ti->lubusy |= (1 << lun);
755 spc_setsync(sc, ti);
790 struct spc_tinfo *ti;
802 ti = &sc->sc_tinfo[periph->periph_target];
803 if ((ti->lubusy & (1 << periph->periph_lun)) == 0) {
827 struct spc_tinfo *ti = &sc->sc_tinfo[periph->periph_target];
871 ti->lubusy &= ~(1 << periph->periph_lun);
880 ti->cmds++;
1042 struct spc_tinfo *ti;
1047 ti = &sc->sc_tinfo[acb->xs->xs_periph->periph_target];
1075 ti->flags &= ~(DO_SYNC | DO_WIDE);
1076 ti->period = ti->offset = 0;
1077 spc_setsync(sc, ti);
1078 ti->width = 0;
1083 ti->flags &= ~DO_SYNC;
1084 ti->period = ti->offset = 0;
1085 spc_setsync(sc, ti);
1090 ti->flags &= ~DO_WIDE;
1091 ti->width = 0;
1104 ti->dconns++;
1126 ti->period = sc->sc_imess[3];
1127 ti->offset = sc->sc_imess[4];
1128 ti->flags &= ~DO_SYNC;
1129 if (ti->offset == 0) {
1130 } else if (ti->period < sc->sc_minsync ||
1131 ti->period > sc->sc_maxsync ||
1132 ti->offset > 8) {
1133 ti->period = ti->offset = 0;
1139 ti->offset, ti->period * 4);
1141 spc_setsync(sc, ti);
1149 ti->width = sc->sc_imess[3];
1150 ti->flags &= ~DO_WIDE;
1151 if (ti->width == 0) {
1152 } else if (ti->width > SPC_MAX_WIDTH) {
1153 ti->width = 0;
1158 1 << (3 + ti->width));
1236 struct spc_tinfo *ti;
1292 ti = &sc->sc_tinfo[sc->sc_nexus->xs->xs_periph->periph_target];
1296 sc->sc_omess[1] = ti->period >> 2;
1297 sc->sc_omess[0] = ti->offset;
1305 ti = &sc->sc_tinfo[sc->sc_nexus->xs->xs_periph->periph_target];
1309 sc->sc_omess[0] = ti->width;
1646 struct spc_tinfo *ti;
1756 ti = &sc->sc_tinfo[periph->periph_target];
1765 if ((ti->flags & DO_SYNC) != 0)
1769 if ((ti->flags & DO_WIDE) != 0)
1775 ti->lubusy |= (1 << periph->periph_lun);
1851 ti = &sc->sc_tinfo[periph->periph_target];
1855 ti->flags &= ~DO_SYNC;
1856 ti->period = ti->offset = 0;
1861 ti->flags &= ~DO_WIDE;
1862 ti->width = 0;
2183 struct spc_tinfo *ti;
2191 ti = &sc->sc_tinfo[i];
2193 i, ti->cmds, ti->dconns, ti->touts);
2194 printf(" %d senses flags=%x\n", ti->senses, ti->flags);