Lines Matching refs:tinfo

1121 	struct sym_tinfo tinfo;  member
2720 tp->tinfo.user.scsi_version = tp->tinfo.current.scsi_version= 2; in sym_prepare_setting()
2721 tp->tinfo.user.spi_version = tp->tinfo.current.spi_version = 2; in sym_prepare_setting()
2722 tp->tinfo.user.period = np->minsync; in sym_prepare_setting()
2724 tp->tinfo.user.period = np->minsync_dt; in sym_prepare_setting()
2725 tp->tinfo.user.offset = np->maxoffs; in sym_prepare_setting()
2726 tp->tinfo.user.width = np->maxwide ? BUS_16_BIT : BUS_8_BIT; in sym_prepare_setting()
2737 if (tp->tinfo.user.period <= 9 && in sym_prepare_setting()
2738 tp->tinfo.user.width == BUS_16_BIT) { in sym_prepare_setting()
2739 tp->tinfo.user.options |= PPR_OPT_DT; in sym_prepare_setting()
2740 tp->tinfo.user.offset = np->maxoffs_dt; in sym_prepare_setting()
2741 tp->tinfo.user.spi_version = 3; in sym_prepare_setting()
2817 tp->tinfo.goal.options = 0; in sym_prepare_nego()
2821 if (tp->tinfo.goal.options & PPR_OPT_MASK) in sym_prepare_nego()
2826 else if (tp->tinfo.current.width != tp->tinfo.goal.width) in sym_prepare_nego()
2831 else if (tp->tinfo.current.period != tp->tinfo.goal.period || in sym_prepare_nego()
2832 tp->tinfo.current.offset != tp->tinfo.goal.offset) in sym_prepare_nego()
2840 msgptr[msglen++] = tp->tinfo.goal.period; in sym_prepare_nego()
2841 msgptr[msglen++] = tp->tinfo.goal.offset; in sym_prepare_nego()
2847 msgptr[msglen++] = tp->tinfo.goal.width; in sym_prepare_nego()
2853 msgptr[msglen++] = tp->tinfo.goal.period; in sym_prepare_nego()
2855 msgptr[msglen++] = tp->tinfo.goal.offset; in sym_prepare_nego()
2856 msgptr[msglen++] = tp->tinfo.goal.width; in sym_prepare_nego()
2857 msgptr[msglen++] = tp->tinfo.goal.options & PPR_OPT_DT; in sym_prepare_nego()
3277 tp->tinfo.current.period = 0; in sym_init()
3278 tp->tinfo.current.offset = 0; in sym_init()
3279 tp->tinfo.current.width = BUS_8_BIT; in sym_init()
3280 tp->tinfo.current.options = 0; in sym_init()
3435 cts.protocol_version = tp->tinfo.current.scsi_version; in sym_xpt_async_transfer_neg()
3436 cts.transport_version = tp->tinfo.current.spi_version; in sym_xpt_async_transfer_neg()
3440 cts__spi.sync_period = tp->tinfo.current.period; in sym_xpt_async_transfer_neg()
3442 cts__spi.sync_offset = tp->tinfo.current.offset; in sym_xpt_async_transfer_neg()
3444 cts__spi.bus_width = tp->tinfo.current.width; in sym_xpt_async_transfer_neg()
3446 cts__spi.ppr_options = tp->tinfo.current.options; in sym_xpt_async_transfer_neg()
3480 tp->tinfo.goal.width = tp->tinfo.current.width = wide; in sym_setwide()
3481 tp->tinfo.current.offset = 0; in sym_setwide()
3482 tp->tinfo.current.period = 0; in sym_setwide()
3483 tp->tinfo.current.options = 0; in sym_setwide()
3503 tp->tinfo.goal.period = tp->tinfo.current.period = per; in sym_setsync()
3504 tp->tinfo.goal.offset = tp->tinfo.current.offset = ofs; in sym_setsync()
3505 tp->tinfo.goal.options = tp->tinfo.current.options = 0; in sym_setsync()
3524 tp->tinfo.goal.width = tp->tinfo.current.width = wide; in sym_setpprot()
3525 tp->tinfo.goal.period = tp->tinfo.current.period = per; in sym_setpprot()
3526 tp->tinfo.goal.offset = tp->tinfo.current.offset = ofs; in sym_setpprot()
3527 tp->tinfo.goal.options = tp->tinfo.current.options = dt; in sym_setpprot()
4731 if (tp->tinfo.current.options & PPR_OPT_MASK) in sym_sir_bad_scsi_status()
4733 else if (tp->tinfo.current.width != BUS_8_BIT) in sym_sir_bad_scsi_status()
4735 else if (tp->tinfo.current.offset != 0) in sym_sir_bad_scsi_status()
4757 if (tp->tinfo.current.scsi_version > 2 || cp->lun > 7) in sym_sir_bad_scsi_status()
5170 tp->tinfo.current.period = 0; in sym_sir_task_recovery()
5171 tp->tinfo.current.offset = 0; in sym_sir_task_recovery()
5172 tp->tinfo.current.width = BUS_8_BIT; in sym_sir_task_recovery()
5173 tp->tinfo.current.options = 0; in sym_sir_task_recovery()
5625 if (ofs > tp->tinfo.user.offset) in sym_sync_nego()
5626 {chg = 1; ofs = tp->tinfo.user.offset;} in sym_sync_nego()
5634 if (per < tp->tinfo.user.period) in sym_sync_nego()
5635 {chg = 1; per = tp->tinfo.user.period;} in sym_sync_nego()
5729 if (wide > tp->tinfo.user.width) in sym_ppr_nego()
5730 {chg = 1; wide = tp->tinfo.user.width;} in sym_ppr_nego()
5746 if (ofs > tp->tinfo.user.offset) in sym_ppr_nego()
5747 {chg = 1; ofs = tp->tinfo.user.offset;} in sym_ppr_nego()
5759 if (per < tp->tinfo.user.period) in sym_ppr_nego()
5760 {chg = 1; per = tp->tinfo.user.period;} in sym_ppr_nego()
5819 tp->tinfo.goal.options = 0; in sym_ppr_nego()
5820 tp->tinfo.goal.width = wide; in sym_ppr_nego()
5821 tp->tinfo.goal.period = per; in sym_ppr_nego()
5822 tp->tinfo.goal.offset = ofs; in sym_ppr_nego()
5863 if (wide > tp->tinfo.user.width) in sym_wide_nego()
5864 {chg = 1; wide = tp->tinfo.user.width;} in sym_wide_nego()
5885 if (tp->tinfo.goal.offset) { in sym_wide_nego()
5889 np->msgout[3] = tp->tinfo.goal.period; in sym_wide_nego()
5890 np->msgout[4] = tp->tinfo.goal.offset; in sym_wide_nego()
5951 tp->tinfo.goal.options = 0; in sym_nego_default()
5952 if (tp->tinfo.goal.period < np->minsync) in sym_nego_default()
5953 tp->tinfo.goal.period = np->minsync; in sym_nego_default()
5954 if (tp->tinfo.goal.offset > np->maxoffs) in sym_nego_default()
5955 tp->tinfo.goal.offset = np->maxoffs; in sym_nego_default()
7538 if (tp->tinfo.current.width != tp->tinfo.goal.width ||
7539 tp->tinfo.current.period != tp->tinfo.goal.period ||
7540 tp->tinfo.current.offset != tp->tinfo.goal.offset ||
7541 tp->tinfo.current.options != tp->tinfo.goal.options) {
7954 sym_update_trans(np, &tp->tinfo.goal, cts);
7959 sym_update_trans(np, &tp->tinfo.user, cts);
7974 tip = &tp->tinfo.current;
7978 tip = &tp->tinfo.user;
8114 tp->tinfo.current.period = tp->tinfo.goal.period = 0;
8115 tp->tinfo.current.offset = tp->tinfo.goal.offset = 0;
8116 tp->tinfo.current.width = tp->tinfo.goal.width = BUS_8_BIT;
8117 tp->tinfo.current.options = tp->tinfo.goal.options = 0;
9008 tp->tinfo.user.period = tn->sync_period ? (tn->sync_period + 3) / 4 : 0;
9009 tp->tinfo.user.width = tn->bus_width == 0x10 ? BUS_16_BIT : BUS_8_BIT;
9033 tp->tinfo.user.period = Tekram_sync[i];
9036 tp->tinfo.user.width =