Lines Matching refs:tip

2246 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
7930 struct sym_trans *tip; local
7976 tip = &tp->tinfo.current;
7980 tip = &tp->tinfo.user;
7986 cts->protocol_version = tip->scsi_version;
7987 cts->transport_version = tip->spi_version;
7989 cts__spi->sync_period = tip->period;
7990 cts__spi->sync_offset = tip->offset;
7991 cts__spi->bus_width = tip->width;
7992 cts__spi->ppr_options = tip->options;
8130 static void sym_update_trans(hcb_p np, struct sym_trans *tip, argument
8141 tip->width = cts__spi->bus_width;
8143 tip->offset = cts__spi->sync_offset;
8145 tip->period = cts__spi->sync_period;
8147 tip->options = (cts__spi->ppr_options & PPR_OPT_DT);
8150 tip->scsi_version = cts->protocol_version;
8153 tip->spi_version = cts->transport_version;
8158 if (tip->width > SYM_SETUP_MAX_WIDE) tip->width = SYM_SETUP_MAX_WIDE;
8159 if (tip->period && tip->offset) {
8160 if (tip->offset > SYM_SETUP_MAX_OFFS) tip->offset = SYM_SETUP_MAX_OFFS;
8161 if (tip->period < SYM_SETUP_MIN_SYNC) tip->period = SYM_SETUP_MIN_SYNC;
8163 tip->offset = 0;
8164 tip->period = 0;
8170 if (tip->width > np->maxwide)
8171 tip->width = np->maxwide;
8177 !(tip->width == BUS_16_BIT && tip->offset)) {
8178 tip->options &= ~PPR_OPT_DT;
8184 if (tip->offset && tip->period) {
8185 if (tip->options & PPR_OPT_DT) {
8186 if (tip->period < np->minsync_dt)
8187 tip->period = np->minsync_dt;
8188 if (tip->period > np->maxsync_dt)
8189 tip->period = np->maxsync_dt;
8190 if (tip->offset > np->maxoffs_dt)
8191 tip->offset = np->maxoffs_dt;
8194 if (tip->period < np->minsync)
8195 tip->period = np->minsync;
8196 if (tip->period > np->maxsync)
8197 tip->period = np->maxsync;
8198 if (tip->offset > np->maxoffs)
8199 tip->offset = np->maxoffs;