• Home
  • Raw
  • Download

Lines Matching refs:tinfo

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