Lines Matching refs:syncrate
2249 const struct ahc_syncrate *syncrate; in ahc_find_syncrate() local
2268 for (syncrate = &ahc_syncrates[maxsync]; in ahc_find_syncrate()
2269 syncrate->rate != NULL; in ahc_find_syncrate()
2270 syncrate++) { in ahc_find_syncrate()
2277 && (syncrate->sxfr_u2 == 0)) in ahc_find_syncrate()
2280 if (*period <= syncrate->period) { in ahc_find_syncrate()
2292 if (syncrate == &ahc_syncrates[maxsync]) in ahc_find_syncrate()
2293 *period = syncrate->period; in ahc_find_syncrate()
2299 if ((syncrate->sxfr_u2 & ST_SXFR) != 0) in ahc_find_syncrate()
2306 || (syncrate->rate == NULL) in ahc_find_syncrate()
2308 && (syncrate->sxfr_u2 == 0))) { in ahc_find_syncrate()
2311 syncrate = NULL; in ahc_find_syncrate()
2314 return (syncrate); in ahc_find_syncrate()
2324 const struct ahc_syncrate *syncrate; in ahc_find_period() local
2342 syncrate = &ahc_syncrates[maxsync]; in ahc_find_period()
2343 while (syncrate->rate != NULL) { in ahc_find_period()
2346 if (syncrate->sxfr_u2 == 0) in ahc_find_period()
2348 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) in ahc_find_period()
2349 return (syncrate->period); in ahc_find_period()
2350 } else if (scsirate == (syncrate->sxfr & SXFR)) { in ahc_find_period()
2351 return (syncrate->period); in ahc_find_period()
2353 syncrate++; in ahc_find_period()
2365 const struct ahc_syncrate *syncrate, in ahc_validate_offset() argument
2371 if (syncrate == NULL) { in ahc_validate_offset()
2469 const struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate() argument
2483 if (syncrate == NULL) { in ahc_set_syncrate()
2518 if (syncrate != NULL) { in ahc_set_syncrate()
2519 scsirate |= syncrate->sxfr_u2; in ahc_set_syncrate()
2533 if (syncrate != NULL) { in ahc_set_syncrate()
2534 if (syncrate->sxfr & ULTRA_SXFR) { in ahc_set_syncrate()
2538 scsirate |= syncrate->sxfr & SXFR; in ahc_set_syncrate()
2568 devinfo->target, syncrate->rate, in ahc_set_syncrate()
3612 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3636 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3639 ahc_validate_offset(ahc, tinfo, syncrate, &offset, in ahc_parse_msg()
3652 syncrate, period, in ahc_parse_msg()
3787 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3838 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3841 ahc_validate_offset(ahc, tinfo, syncrate, in ahc_parse_msg()
3859 syncrate = NULL; in ahc_parse_msg()
3894 syncrate, period, in ahc_parse_msg()