Lines Matching refs:syncrate
1693 struct ahc_syncrate *syncrate; in ahc_find_syncrate() local
1703 for (syncrate = &ahc_syncrates[maxsync]; in ahc_find_syncrate()
1704 syncrate->rate != NULL; in ahc_find_syncrate()
1705 syncrate++) { in ahc_find_syncrate()
1712 && (syncrate->sxfr_u2 == 0)) in ahc_find_syncrate()
1715 if (*period <= syncrate->period) { in ahc_find_syncrate()
1727 if (syncrate == &ahc_syncrates[maxsync]) in ahc_find_syncrate()
1728 *period = syncrate->period; in ahc_find_syncrate()
1734 if ((syncrate->sxfr_u2 & ST_SXFR) != 0) in ahc_find_syncrate()
1741 || (syncrate->rate == NULL) in ahc_find_syncrate()
1743 && (syncrate->sxfr_u2 == 0))) { in ahc_find_syncrate()
1746 syncrate = NULL; in ahc_find_syncrate()
1749 return (syncrate); in ahc_find_syncrate()
1759 struct ahc_syncrate *syncrate; in ahc_find_period() local
1766 syncrate = &ahc_syncrates[maxsync]; in ahc_find_period()
1767 while (syncrate->rate != NULL) { in ahc_find_period()
1770 if (syncrate->sxfr_u2 == 0) in ahc_find_period()
1772 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) in ahc_find_period()
1773 return (syncrate->period); in ahc_find_period()
1774 } else if (scsirate == (syncrate->sxfr & SXFR)) { in ahc_find_period()
1775 return (syncrate->period); in ahc_find_period()
1777 syncrate++; in ahc_find_period()
1789 struct ahc_syncrate *syncrate, in ahc_validate_offset() argument
1795 if (syncrate == NULL) { in ahc_validate_offset()
1893 struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate() argument
1907 if (syncrate == NULL) { in ahc_set_syncrate()
1942 if (syncrate != NULL) { in ahc_set_syncrate()
1943 scsirate |= syncrate->sxfr_u2; in ahc_set_syncrate()
1957 if (syncrate != NULL) { in ahc_set_syncrate()
1958 if (syncrate->sxfr & ULTRA_SXFR) { in ahc_set_syncrate()
1962 scsirate |= syncrate->sxfr & SXFR; in ahc_set_syncrate()
1992 devinfo->target, syncrate->rate, in ahc_set_syncrate()
3041 struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3065 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3068 ahc_validate_offset(ahc, tinfo, syncrate, &offset, in ahc_parse_msg()
3081 syncrate, period, in ahc_parse_msg()
3209 struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3260 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3263 ahc_validate_offset(ahc, tinfo, syncrate, in ahc_parse_msg()
3281 syncrate = NULL; in ahc_parse_msg()
3316 syncrate, period, in ahc_parse_msg()