Lines Matching refs:syncrate
1267 struct aic7xxx_syncrate *syncrate, int target, int channel,
1870 struct aic7xxx_syncrate *syncrate; in aic7xxx_find_syncrate() local
1915 syncrate = &aic7xxx_syncrates[maxsync]; in aic7xxx_find_syncrate()
1916 while ( (syncrate->rate[0] != NULL) && in aic7xxx_find_syncrate()
1917 (!(p->features & AHC_ULTRA2) || syncrate->sxfr_ultra2) ) in aic7xxx_find_syncrate()
1919 if (*period <= syncrate->period) in aic7xxx_find_syncrate()
1925 if(!(syncrate->sxfr_ultra2 & AHC_SYNCRATE_CRC)) in aic7xxx_find_syncrate()
1937 *period = syncrate->period; in aic7xxx_find_syncrate()
1942 if(syncrate == &aic7xxx_syncrates[maxsync]) in aic7xxx_find_syncrate()
1944 *period = syncrate->period; in aic7xxx_find_syncrate()
1949 if(!(syncrate->sxfr_ultra2 & AHC_SYNCRATE_CRC)) in aic7xxx_find_syncrate()
1952 if(syncrate == &aic7xxx_syncrates[maxsync]) in aic7xxx_find_syncrate()
1954 *period = syncrate->period; in aic7xxx_find_syncrate()
1964 syncrate++; in aic7xxx_find_syncrate()
1966 if ( (*period == 0) || (syncrate->rate[0] == NULL) || in aic7xxx_find_syncrate()
1967 ((p->features & AHC_ULTRA2) && (syncrate->sxfr_ultra2 == 0)) ) in aic7xxx_find_syncrate()
1974 syncrate = NULL; in aic7xxx_find_syncrate()
1976 return (syncrate); in aic7xxx_find_syncrate()
1991 struct aic7xxx_syncrate *syncrate; in aic7xxx_find_period() local
2002 syncrate = &aic7xxx_syncrates[maxsync]; in aic7xxx_find_period()
2003 while (syncrate->rate[0] != NULL) in aic7xxx_find_period()
2007 if (syncrate->sxfr_ultra2 == 0) in aic7xxx_find_period()
2009 else if (scsirate == syncrate->sxfr_ultra2) in aic7xxx_find_period()
2010 return (syncrate->period); in aic7xxx_find_period()
2011 else if (scsirate == (syncrate->sxfr_ultra2 & ~AHC_SYNCRATE_CRC)) in aic7xxx_find_period()
2012 return (syncrate->period); in aic7xxx_find_period()
2014 else if (scsirate == (syncrate->sxfr & ~ULTRA_SXFR)) in aic7xxx_find_period()
2016 return (syncrate->period); in aic7xxx_find_period()
2018 syncrate++; in aic7xxx_find_period()
2033 struct aic7xxx_syncrate *syncrate, unsigned int *offset, int wide) in aic7xxx_validate_offset() argument
2038 if (syncrate == NULL) in aic7xxx_validate_offset()
2064 aic7xxx_set_syncrate(struct aic7xxx_host *p, struct aic7xxx_syncrate *syncrate, in aic7xxx_set_syncrate() argument
2077 if (syncrate == NULL) in aic7xxx_set_syncrate()
2096 if (syncrate != NULL) in aic7xxx_set_syncrate()
2104 scsirate |= (syncrate->sxfr_ultra2 & ~AHC_SYNCRATE_CRC); in aic7xxx_set_syncrate()
2107 scsirate |= syncrate->sxfr_ultra2; in aic7xxx_set_syncrate()
2121 if (syncrate != NULL) in aic7xxx_set_syncrate()
2123 if (syncrate->sxfr & ULTRA_SXFR) in aic7xxx_set_syncrate()
2127 scsirate |= (syncrate->sxfr & SXFR); in aic7xxx_set_syncrate()
2161 syncrate->rate[rate_mod], offset); in aic7xxx_set_syncrate()
4911 struct aic7xxx_syncrate *syncrate; in aic7xxx_parse_msg() local
5073 syncrate = aic7xxx_find_syncrate(p, &new_period, maxsync, in aic7xxx_parse_msg()
5075 aic7xxx_validate_offset(p, syncrate, &new_offset, bus_width); in aic7xxx_parse_msg()
5098 aic7xxx_set_syncrate(p, syncrate, target, channel, new_period, in aic7xxx_parse_msg()
5109 aic7xxx_set_syncrate(p, syncrate, target, channel, new_period, in aic7xxx_parse_msg()
5434 syncrate = aic7xxx_find_syncrate(p, &new_period, maxsync, in aic7xxx_parse_msg()
5436 aic7xxx_validate_offset(p, syncrate, &new_offset, new_bus_width); in aic7xxx_parse_msg()
5437 aic7xxx_set_syncrate(p, syncrate, target, channel, new_period, in aic7xxx_parse_msg()
5446 syncrate = aic7xxx_find_syncrate(p, &new_period, maxsync, in aic7xxx_parse_msg()
5448 aic7xxx_validate_offset(p, syncrate, &new_offset, new_bus_width); in aic7xxx_parse_msg()
5449 aic7xxx_set_syncrate(p, syncrate, target, channel, new_period, in aic7xxx_parse_msg()