Lines Matching refs:tip
2253 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
7941 struct sym_trans *tip; local
7987 tip = &tp->tinfo.current;
7991 tip = &tp->tinfo.user;
7997 cts->protocol_version = tip->scsi_version;
7998 cts->transport_version = tip->spi_version;
8000 cts__spi->sync_period = tip->period;
8001 cts__spi->sync_offset = tip->offset;
8002 cts__spi->bus_width = tip->width;
8003 cts__spi->ppr_options = tip->options;
8146 static void sym_update_trans(hcb_p np, struct sym_trans *tip, argument
8157 tip->width = cts__spi->bus_width;
8159 tip->offset = cts__spi->sync_offset;
8161 tip->period = cts__spi->sync_period;
8163 tip->options = (cts__spi->ppr_options & PPR_OPT_DT);
8166 tip->scsi_version = cts->protocol_version;
8169 tip->spi_version = cts->transport_version;
8174 if (tip->width > SYM_SETUP_MAX_WIDE) tip->width = SYM_SETUP_MAX_WIDE;
8175 if (tip->period && tip->offset) {
8176 if (tip->offset > SYM_SETUP_MAX_OFFS) tip->offset = SYM_SETUP_MAX_OFFS;
8177 if (tip->period < SYM_SETUP_MIN_SYNC) tip->period = SYM_SETUP_MIN_SYNC;
8179 tip->offset = 0;
8180 tip->period = 0;
8186 if (tip->width > np->maxwide)
8187 tip->width = np->maxwide;
8193 !(tip->width == BUS_16_BIT && tip->offset)) {
8194 tip->options &= ~PPR_OPT_DT;
8200 if (tip->offset && tip->period) {
8201 if (tip->options & PPR_OPT_DT) {
8202 if (tip->period < np->minsync_dt)
8203 tip->period = np->minsync_dt;
8204 if (tip->period > np->maxsync_dt)
8205 tip->period = np->maxsync_dt;
8206 if (tip->offset > np->maxoffs_dt)
8207 tip->offset = np->maxoffs_dt;
8210 if (tip->period < np->minsync)
8211 tip->period = np->minsync;
8212 if (tip->period > np->maxsync)
8213 tip->period = np->maxsync;
8214 if (tip->offset > np->maxoffs)
8215 tip->offset = np->maxoffs;