Lines Matching refs:tip
2245 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
7928 struct sym_trans *tip; local
7974 tip = &tp->tinfo.current;
7978 tip = &tp->tinfo.user;
7984 cts->protocol_version = tip->scsi_version;
7985 cts->transport_version = tip->spi_version;
7987 cts__spi->sync_period = tip->period;
7988 cts__spi->sync_offset = tip->offset;
7989 cts__spi->bus_width = tip->width;
7990 cts__spi->ppr_options = tip->options;
8128 static void sym_update_trans(hcb_p np, struct sym_trans *tip, argument
8139 tip->width = cts__spi->bus_width;
8141 tip->offset = cts__spi->sync_offset;
8143 tip->period = cts__spi->sync_period;
8145 tip->options = (cts__spi->ppr_options & PPR_OPT_DT);
8148 tip->scsi_version = cts->protocol_version;
8151 tip->spi_version = cts->transport_version;
8156 if (tip->width > SYM_SETUP_MAX_WIDE) tip->width = SYM_SETUP_MAX_WIDE;
8157 if (tip->period && tip->offset) {
8158 if (tip->offset > SYM_SETUP_MAX_OFFS) tip->offset = SYM_SETUP_MAX_OFFS;
8159 if (tip->period < SYM_SETUP_MIN_SYNC) tip->period = SYM_SETUP_MIN_SYNC;
8161 tip->offset = 0;
8162 tip->period = 0;
8168 if (tip->width > np->maxwide)
8169 tip->width = np->maxwide;
8175 !(tip->width == BUS_16_BIT && tip->offset)) {
8176 tip->options &= ~PPR_OPT_DT;
8182 if (tip->offset && tip->period) {
8183 if (tip->options & PPR_OPT_DT) {
8184 if (tip->period < np->minsync_dt)
8185 tip->period = np->minsync_dt;
8186 if (tip->period > np->maxsync_dt)
8187 tip->period = np->maxsync_dt;
8188 if (tip->offset > np->maxoffs_dt)
8189 tip->offset = np->maxoffs_dt;
8192 if (tip->period < np->minsync)
8193 tip->period = np->minsync;
8194 if (tip->period > np->maxsync)
8195 tip->period = np->maxsync;
8196 if (tip->offset > np->maxoffs)
8197 tip->offset = np->maxoffs;