Lines Matching refs:tip

2257 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
7945 struct sym_trans *tip;
7991 tip = &tp->tinfo.current;
7995 tip = &tp->tinfo.user;
8001 cts->protocol_version = tip->scsi_version;
8002 cts->transport_version = tip->spi_version;
8004 cts__spi->sync_period = tip->period;
8005 cts__spi->sync_offset = tip->offset;
8006 cts__spi->bus_width = tip->width;
8007 cts__spi->ppr_options = tip->options;
8150 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
8161 tip->width = cts__spi->bus_width;
8163 tip->offset = cts__spi->sync_offset;
8165 tip->period = cts__spi->sync_period;
8167 tip->options = (cts__spi->ppr_options & PPR_OPT_DT);
8170 tip->scsi_version = cts->protocol_version;
8173 tip->spi_version = cts->transport_version;
8178 if (tip->width > SYM_SETUP_MAX_WIDE) tip->width = SYM_SETUP_MAX_WIDE;
8179 if (tip->period && tip->offset) {
8180 if (tip->offset > SYM_SETUP_MAX_OFFS) tip->offset = SYM_SETUP_MAX_OFFS;
8181 if (tip->period < SYM_SETUP_MIN_SYNC) tip->period = SYM_SETUP_MIN_SYNC;
8183 tip->offset = 0;
8184 tip->period = 0;
8190 if (tip->width > np->maxwide)
8191 tip->width = np->maxwide;
8197 !(tip->width == BUS_16_BIT && tip->offset)) {
8198 tip->options &= ~PPR_OPT_DT;
8204 if (tip->offset && tip->period) {
8205 if (tip->options & PPR_OPT_DT) {
8206 if (tip->period < np->minsync_dt)
8207 tip->period = np->minsync_dt;
8208 if (tip->period > np->maxsync_dt)
8209 tip->period = np->maxsync_dt;
8210 if (tip->offset > np->maxoffs_dt)
8211 tip->offset = np->maxoffs_dt;
8214 if (tip->period < np->minsync)
8215 tip->period = np->minsync;
8216 if (tip->period > np->maxsync)
8217 tip->period = np->maxsync;
8218 if (tip->offset > np->maxoffs)
8219 tip->offset = np->maxoffs;