Lines Matching refs:tinfo

122 					     struct ahd_transinfo *tinfo);
3103 struct ahd_initiator_tinfo *tinfo; in ahd_handle_nonpkt_busfree() local
3120 tinfo = ahd_fetch_transinfo(ahd, devinfo.channel, in ahd_handle_nonpkt_busfree()
3123 if ((tinfo->curr.ppr_options & MSG_EXT_PPR_IU_REQ)!=0) { in ahd_handle_nonpkt_busfree()
3139 tinfo->curr.transport_version = 2; in ahd_handle_nonpkt_busfree()
3140 tinfo->goal.transport_version = 2; in ahd_handle_nonpkt_busfree()
3141 tinfo->goal.ppr_options = 0; in ahd_handle_nonpkt_busfree()
3664 struct ahd_initiator_tinfo *tinfo, in ahd_devlimited_syncrate() argument
3689 transinfo = &tinfo->user; in ahd_devlimited_syncrate()
3691 transinfo = &tinfo->goal; in ahd_devlimited_syncrate()
3752 struct ahd_initiator_tinfo *tinfo, in ahd_validate_offset() argument
3769 if (tinfo != NULL) { in ahd_validate_offset()
3771 *offset = min(*offset, (u_int)tinfo->user.offset); in ahd_validate_offset()
3773 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahd_validate_offset()
3782 ahd_validate_width(struct ahd_softc *ahd, struct ahd_initiator_tinfo *tinfo, in ahd_validate_width() argument
3797 if (tinfo != NULL) { in ahd_validate_width()
3799 *bus_width = min((u_int)tinfo->user.width, *bus_width); in ahd_validate_width()
3801 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahd_validate_width()
3814 struct ahd_initiator_tinfo *tinfo, ahd_neg_type neg_type) in ahd_update_neg_request() argument
3827 tinfo->curr.width = AHD_WIDTH_UNKNOWN; in ahd_update_neg_request()
3828 tinfo->curr.period = AHD_PERIOD_UNKNOWN; in ahd_update_neg_request()
3829 tinfo->curr.offset = AHD_OFFSET_UNKNOWN; in ahd_update_neg_request()
3831 if (tinfo->curr.period != tinfo->goal.period in ahd_update_neg_request()
3832 || tinfo->curr.width != tinfo->goal.width in ahd_update_neg_request()
3833 || tinfo->curr.offset != tinfo->goal.offset in ahd_update_neg_request()
3834 || tinfo->curr.ppr_options != tinfo->goal.ppr_options in ahd_update_neg_request()
3836 && (tinfo->goal.offset != 0 in ahd_update_neg_request()
3837 || tinfo->goal.width != MSG_EXT_WDTR_BUS_8_BIT in ahd_update_neg_request()
3838 || tinfo->goal.ppr_options != 0))) in ahd_update_neg_request()
3859 struct ahd_initiator_tinfo *tinfo; in ahd_set_syncrate() local
3875 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, in ahd_set_syncrate()
3879 tinfo->user.period = period; in ahd_set_syncrate()
3880 tinfo->user.offset = offset; in ahd_set_syncrate()
3881 tinfo->user.ppr_options = ppr_options; in ahd_set_syncrate()
3885 tinfo->goal.period = period; in ahd_set_syncrate()
3886 tinfo->goal.offset = offset; in ahd_set_syncrate()
3887 tinfo->goal.ppr_options = ppr_options; in ahd_set_syncrate()
3890 old_period = tinfo->curr.period; in ahd_set_syncrate()
3891 old_offset = tinfo->curr.offset; in ahd_set_syncrate()
3892 old_ppr = tinfo->curr.ppr_options; in ahd_set_syncrate()
3901 tinfo->curr.period = period; in ahd_set_syncrate()
3902 tinfo->curr.offset = offset; in ahd_set_syncrate()
3903 tinfo->curr.ppr_options = ppr_options; in ahd_set_syncrate()
3960 ahd_update_neg_table(ahd, devinfo, &tinfo->curr); in ahd_set_syncrate()
3986 tinfo, AHD_NEG_TO_GOAL); in ahd_set_syncrate()
4004 struct ahd_initiator_tinfo *tinfo; in ahd_set_width() local
4012 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, in ahd_set_width()
4016 tinfo->user.width = width; in ahd_set_width()
4019 tinfo->goal.width = width; in ahd_set_width()
4021 oldwidth = tinfo->curr.width; in ahd_set_width()
4026 tinfo->curr.width = width; in ahd_set_width()
4039 ahd_update_neg_table(ahd, devinfo, &tinfo->curr); in ahd_set_width()
4045 tinfo, AHD_NEG_TO_GOAL); in ahd_set_width()
4067 struct ahd_transinfo *tinfo) in ahd_update_neg_table() argument
4082 period = tinfo->period; in ahd_update_neg_table()
4083 offset = tinfo->offset; in ahd_update_neg_table()
4085 ppr_opts = tinfo->ppr_options & (MSG_EXT_PPR_QAS_REQ|MSG_EXT_PPR_DT_REQ in ahd_update_neg_table()
4115 if ((tinfo->ppr_options & MSG_EXT_PPR_PCOMP_EN) == 0) in ahd_update_neg_table()
4155 if (tinfo->width == MSG_EXT_WDTR_BUS_16_BIT) in ahd_update_neg_table()
4172 if ((tinfo->ppr_options & MSG_EXT_PPR_IU_REQ) == 0) in ahd_update_neg_table()
4493 struct ahd_initiator_tinfo *tinfo; in ahd_build_transfer_msg() local
4502 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, in ahd_build_transfer_msg()
4510 period = tinfo->goal.period; in ahd_build_transfer_msg()
4511 offset = tinfo->goal.offset; in ahd_build_transfer_msg()
4512 ppr_options = tinfo->goal.ppr_options; in ahd_build_transfer_msg()
4516 ahd_devlimited_syncrate(ahd, tinfo, &period, in ahd_build_transfer_msg()
4518 dowide = tinfo->curr.width != tinfo->goal.width; in ahd_build_transfer_msg()
4519 dosync = tinfo->curr.offset != offset || tinfo->curr.period != period; in ahd_build_transfer_msg()
4528 dowide = tinfo->goal.width != MSG_EXT_WDTR_BUS_8_BIT; in ahd_build_transfer_msg()
4529 dosync = tinfo->goal.offset != 0; in ahd_build_transfer_msg()
4561 offset = tinfo->goal.offset; in ahd_build_transfer_msg()
4562 ahd_validate_offset(ahd, tinfo, period, &offset, in ahd_build_transfer_msg()
4563 doppr ? tinfo->goal.width in ahd_build_transfer_msg()
4564 : tinfo->curr.width, in ahd_build_transfer_msg()
4568 tinfo->goal.width, ppr_options); in ahd_build_transfer_msg()
4573 ahd_construct_wdtr(ahd, devinfo, tinfo->goal.width); in ahd_build_transfer_msg()
5068 struct ahd_initiator_tinfo *tinfo; in ahd_parse_msg() local
5077 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, devinfo->our_scsiid, in ahd_parse_msg()
5140 ahd_devlimited_syncrate(ahd, tinfo, &period, in ahd_parse_msg()
5142 ahd_validate_offset(ahd, tinfo, period, &offset, in ahd_parse_msg()
5143 tinfo->curr.width, devinfo->role); in ahd_parse_msg()
5214 ahd_validate_width(ahd, tinfo, &bus_width, in ahd_parse_msg()
5268 tinfo, AHD_NEG_ALWAYS); in ahd_parse_msg()
5334 ahd_validate_width(ahd, tinfo, &bus_width, in ahd_parse_msg()
5336 ahd_devlimited_syncrate(ahd, tinfo, &period, in ahd_parse_msg()
5338 ahd_validate_offset(ahd, tinfo, period, &offset, in ahd_parse_msg()
5493 struct ahd_initiator_tinfo *tinfo; in ahd_handle_msg_reject() local
5501 tinfo = ahd_fetch_transinfo(ahd, devinfo->channel, in ahd_handle_msg_reject()
5509 && tinfo->goal.period <= AHD_SYNCRATE_PACED) { in ahd_handle_msg_reject()
5521 tinfo->goal.period = AHD_SYNCRATE_DT; in ahd_handle_msg_reject()
5522 tinfo->goal.ppr_options &= MSG_EXT_PPR_IU_REQ in ahd_handle_msg_reject()
5536 tinfo->goal.ppr_options = 0; in ahd_handle_msg_reject()
5537 tinfo->curr.transport_version = 2; in ahd_handle_msg_reject()
5538 tinfo->goal.transport_version = 2; in ahd_handle_msg_reject()
5561 if (tinfo->goal.offset != tinfo->curr.offset) { in ahd_handle_msg_reject()
7377 struct ahd_initiator_tinfo *tinfo; in ahd_chip_init() local
7380 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_chip_init()
7385 ahd_update_neg_table(ahd, &devinfo, &tinfo->curr); in ahd_chip_init()
7559 struct ahd_initiator_tinfo *tinfo; in ahd_default_config() local
7563 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_default_config()
7568 tinfo->user.protocol_version = 4; in ahd_default_config()
7569 tinfo->user.transport_version = 4; in ahd_default_config()
7576 tinfo->user.period = AHD_SYNCRATE_DT; in ahd_default_config()
7578 tinfo->user.period = AHD_SYNCRATE_160; in ahd_default_config()
7580 tinfo->user.offset = MAX_OFFSET; in ahd_default_config()
7581 tinfo->user.ppr_options = MSG_EXT_PPR_RD_STRM in ahd_default_config()
7588 tinfo->user.ppr_options |= MSG_EXT_PPR_RTI; in ahd_default_config()
7590 tinfo->user.width = MSG_EXT_WDTR_BUS_16_BIT; in ahd_default_config()
7596 tinfo->goal.protocol_version = 2; in ahd_default_config()
7597 tinfo->goal.transport_version = 2; in ahd_default_config()
7598 tinfo->curr.protocol_version = 2; in ahd_default_config()
7599 tinfo->curr.transport_version = 2; in ahd_default_config()
7638 struct ahd_initiator_tinfo *tinfo; in ahd_parse_cfgdata() local
7643 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_parse_cfgdata()
7645 user_tinfo = &tinfo->user; in ahd_parse_cfgdata()
7650 tinfo->user.protocol_version = 4; in ahd_parse_cfgdata()
7651 tinfo->user.transport_version = 4; in ahd_parse_cfgdata()
7710 tinfo->goal.protocol_version = 2; in ahd_parse_cfgdata()
7711 tinfo->goal.transport_version = 2; in ahd_parse_cfgdata()
7712 tinfo->curr.protocol_version = 2; in ahd_parse_cfgdata()
7713 tinfo->curr.transport_version = 2; in ahd_parse_cfgdata()
8936 struct ahd_transinfo *tinfo; in ahd_handle_scsi_status() local
8958 tinfo = &targ_info->curr; in ahd_handle_scsi_status()
8977 if (tinfo->protocol_version <= SCSI_REV_2 in ahd_handle_scsi_status()