Lines Matching refs:tinfo

130 					     struct ahd_transinfo *tinfo);
1919 struct ahd_transinfo *tinfo;
1952 tinfo = &targ_info->curr;
3135 struct ahd_initiator_tinfo *tinfo;
3152 tinfo = ahd_fetch_transinfo(ahd, devinfo.channel,
3155 if ((tinfo->curr.ppr_options & MSG_EXT_PPR_IU_REQ)!=0) {
3171 tinfo->curr.transport_version = 2;
3172 tinfo->goal.transport_version = 2;
3173 tinfo->goal.ppr_options = 0;
3698 struct ahd_initiator_tinfo *tinfo,
3723 transinfo = &tinfo->user;
3725 transinfo = &tinfo->goal;
3786 struct ahd_initiator_tinfo *tinfo,
3803 if (tinfo != NULL) {
3805 *offset = min(*offset, (u_int)tinfo->user.offset);
3807 *offset = min(*offset, (u_int)tinfo->goal.offset);
3816 ahd_validate_width(struct ahd_softc *ahd, struct ahd_initiator_tinfo *tinfo,
3831 if (tinfo != NULL) {
3833 *bus_width = min((u_int)tinfo->user.width, *bus_width);
3835 *bus_width = min((u_int)tinfo->goal.width, *bus_width);
3848 struct ahd_initiator_tinfo *tinfo, ahd_neg_type neg_type)
3861 tinfo->curr.width = AHD_WIDTH_UNKNOWN;
3862 tinfo->curr.period = AHD_PERIOD_UNKNOWN;
3863 tinfo->curr.offset = AHD_OFFSET_UNKNOWN;
3865 if (tinfo->curr.period != tinfo->goal.period
3866 || tinfo->curr.width != tinfo->goal.width
3867 || tinfo->curr.offset != tinfo->goal.offset
3868 || tinfo->curr.ppr_options != tinfo->goal.ppr_options
3870 && (tinfo->goal.offset != 0
3871 || tinfo->goal.width != MSG_EXT_WDTR_BUS_8_BIT
3872 || tinfo->goal.ppr_options != 0)))
3893 struct ahd_initiator_tinfo *tinfo;
3909 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid,
3913 tinfo->user.period = period;
3914 tinfo->user.offset = offset;
3915 tinfo->user.ppr_options = ppr_options;
3919 tinfo->goal.period = period;
3920 tinfo->goal.offset = offset;
3921 tinfo->goal.ppr_options = ppr_options;
3924 old_period = tinfo->curr.period;
3925 old_offset = tinfo->curr.offset;
3926 old_ppr = tinfo->curr.ppr_options;
3935 tinfo->curr.period = period;
3936 tinfo->curr.offset = offset;
3937 tinfo->curr.ppr_options = ppr_options;
3994 ahd_update_neg_table(ahd, devinfo, &tinfo->curr);
4020 tinfo, AHD_NEG_TO_GOAL);
4038 struct ahd_initiator_tinfo *tinfo;
4046 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid,
4050 tinfo->user.width = width;
4053 tinfo->goal.width = width;
4055 oldwidth = tinfo->curr.width;
4060 tinfo->curr.width = width;
4073 ahd_update_neg_table(ahd, devinfo, &tinfo->curr);
4079 tinfo, AHD_NEG_TO_GOAL);
4101 struct ahd_transinfo *tinfo)
4116 period = tinfo->period;
4117 offset = tinfo->offset;
4119 ppr_opts = tinfo->ppr_options & (MSG_EXT_PPR_QAS_REQ|MSG_EXT_PPR_DT_REQ
4149 if ((tinfo->ppr_options & MSG_EXT_PPR_PCOMP_EN) == 0)
4189 if (tinfo->width == MSG_EXT_WDTR_BUS_16_BIT)
4206 if ((tinfo->ppr_options & MSG_EXT_PPR_IU_REQ) == 0)
4241 struct ahd_initiator_tinfo *tinfo;
4245 tinfo = ahd_fetch_transinfo(ahd, devinfo.channel,
4529 struct ahd_initiator_tinfo *tinfo;
4538 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid,
4546 period = tinfo->goal.period;
4547 offset = tinfo->goal.offset;
4548 ppr_options = tinfo->goal.ppr_options;
4552 ahd_devlimited_syncrate(ahd, tinfo, &period,
4554 dowide = tinfo->curr.width != tinfo->goal.width;
4555 dosync = tinfo->curr.offset != offset || tinfo->curr.period != period;
4564 dowide = tinfo->goal.width != MSG_EXT_WDTR_BUS_8_BIT;
4565 dosync = tinfo->goal.offset != 0;
4597 offset = tinfo->goal.offset;
4598 ahd_validate_offset(ahd, tinfo, period, &offset,
4599 doppr ? tinfo->goal.width
4600 : tinfo->curr.width,
4604 tinfo->goal.width, ppr_options);
4609 ahd_construct_wdtr(ahd, devinfo, tinfo->goal.width);
5104 struct ahd_initiator_tinfo *tinfo;
5113 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid,
5176 ahd_devlimited_syncrate(ahd, tinfo, &period,
5178 ahd_validate_offset(ahd, tinfo, period, &offset,
5179 tinfo->curr.width, devinfo->role);
5250 ahd_validate_width(ahd, tinfo, &bus_width,
5304 tinfo, AHD_NEG_ALWAYS);
5370 ahd_validate_width(ahd, tinfo, &bus_width,
5372 ahd_devlimited_syncrate(ahd, tinfo, &period,
5374 ahd_validate_offset(ahd, tinfo, period, &offset,
5529 struct ahd_initiator_tinfo *tinfo;
5537 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel,
5545 && tinfo->goal.period <= AHD_SYNCRATE_PACED) {
5557 tinfo->goal.period = AHD_SYNCRATE_DT;
5558 tinfo->goal.ppr_options &= MSG_EXT_PPR_IU_REQ
5572 tinfo->goal.ppr_options = 0;
5573 tinfo->curr.transport_version = 2;
5574 tinfo->goal.transport_version = 2;
5597 if (tinfo->goal.offset != tinfo->curr.offset) {
7470 struct ahd_initiator_tinfo *tinfo;
7473 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id,
7478 ahd_update_neg_table(ahd, &devinfo, &tinfo->curr);
7652 struct ahd_initiator_tinfo *tinfo;
7656 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id,
7661 tinfo->user.protocol_version = 4;
7662 tinfo->user.transport_version = 4;
7669 tinfo->user.period = AHD_SYNCRATE_DT;
7671 tinfo->user.period = AHD_SYNCRATE_160;
7673 tinfo->user.offset = MAX_OFFSET;
7674 tinfo->user.ppr_options = MSG_EXT_PPR_RD_STRM
7681 tinfo->user.ppr_options |= MSG_EXT_PPR_RTI;
7683 tinfo->user.width = MSG_EXT_WDTR_BUS_16_BIT;
7689 tinfo->goal.protocol_version = 2;
7690 tinfo->goal.transport_version = 2;
7691 tinfo->curr.protocol_version = 2;
7692 tinfo->curr.transport_version = 2;
7731 struct ahd_initiator_tinfo *tinfo;
7736 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id,
7738 user_tinfo = &tinfo->user;
7743 tinfo->user.protocol_version = 4;
7744 tinfo->user.transport_version = 4;
7803 tinfo->goal.protocol_version = 2;
7804 tinfo->goal.transport_version = 2;
7805 tinfo->curr.protocol_version = 2;
7806 tinfo->curr.transport_version = 2;
9032 struct ahd_transinfo *tinfo;
9054 tinfo = &targ_info->curr;
9073 if (tinfo->protocol_version <= SCSI_REV_2