Lines Matching refs:tip

2257 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
7945 struct sym_trans *tip; local
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;
8145 static void sym_update_trans(hcb_p np, struct sym_trans *tip, argument
8156 tip->width = cts__spi->bus_width;
8158 tip->offset = cts__spi->sync_offset;
8160 tip->period = cts__spi->sync_period;
8162 tip->options = (cts__spi->ppr_options & PPR_OPT_DT);
8165 tip->scsi_version = cts->protocol_version;
8168 tip->spi_version = cts->transport_version;
8173 if (tip->width > SYM_SETUP_MAX_WIDE) tip->width = SYM_SETUP_MAX_WIDE;
8174 if (tip->period && tip->offset) {
8175 if (tip->offset > SYM_SETUP_MAX_OFFS) tip->offset = SYM_SETUP_MAX_OFFS;
8176 if (tip->period < SYM_SETUP_MIN_SYNC) tip->period = SYM_SETUP_MIN_SYNC;
8178 tip->offset = 0;
8179 tip->period = 0;
8185 if (tip->width > np->maxwide)
8186 tip->width = np->maxwide;
8192 !(tip->width == BUS_16_BIT && tip->offset)) {
8193 tip->options &= ~PPR_OPT_DT;
8199 if (tip->offset && tip->period) {
8200 if (tip->options & PPR_OPT_DT) {
8201 if (tip->period < np->minsync_dt)
8202 tip->period = np->minsync_dt;
8203 if (tip->period > np->maxsync_dt)
8204 tip->period = np->maxsync_dt;
8205 if (tip->offset > np->maxoffs_dt)
8206 tip->offset = np->maxoffs_dt;
8209 if (tip->period < np->minsync)
8210 tip->period = np->minsync;
8211 if (tip->period > np->maxsync)
8212 tip->period = np->maxsync;
8213 if (tip->offset > np->maxoffs)
8214 tip->offset = np->maxoffs;