Lines Matching refs:syncrate
2251 const struct ahc_syncrate *syncrate; in ahc_find_syncrate() local
2270 for (syncrate = &ahc_syncrates[maxsync]; in ahc_find_syncrate()
2271 syncrate->rate != NULL; in ahc_find_syncrate()
2272 syncrate++) { in ahc_find_syncrate()
2279 && (syncrate->sxfr_u2 == 0)) in ahc_find_syncrate()
2282 if (*period <= syncrate->period) { in ahc_find_syncrate()
2294 if (syncrate == &ahc_syncrates[maxsync]) in ahc_find_syncrate()
2295 *period = syncrate->period; in ahc_find_syncrate()
2301 if ((syncrate->sxfr_u2 & ST_SXFR) != 0) in ahc_find_syncrate()
2308 || (syncrate->rate == NULL) in ahc_find_syncrate()
2310 && (syncrate->sxfr_u2 == 0))) { in ahc_find_syncrate()
2313 syncrate = NULL; in ahc_find_syncrate()
2316 return (syncrate); in ahc_find_syncrate()
2326 const struct ahc_syncrate *syncrate; in ahc_find_period() local
2344 syncrate = &ahc_syncrates[maxsync]; in ahc_find_period()
2345 while (syncrate->rate != NULL) { in ahc_find_period()
2348 if (syncrate->sxfr_u2 == 0) in ahc_find_period()
2350 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) in ahc_find_period()
2351 return (syncrate->period); in ahc_find_period()
2352 } else if (scsirate == (syncrate->sxfr & SXFR)) { in ahc_find_period()
2353 return (syncrate->period); in ahc_find_period()
2355 syncrate++; in ahc_find_period()
2367 const struct ahc_syncrate *syncrate, in ahc_validate_offset() argument
2373 if (syncrate == NULL) { in ahc_validate_offset()
2471 const struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate() argument
2485 if (syncrate == NULL) { in ahc_set_syncrate()
2520 if (syncrate != NULL) { in ahc_set_syncrate()
2521 scsirate |= syncrate->sxfr_u2; in ahc_set_syncrate()
2535 if (syncrate != NULL) { in ahc_set_syncrate()
2536 if (syncrate->sxfr & ULTRA_SXFR) { in ahc_set_syncrate()
2540 scsirate |= syncrate->sxfr & SXFR; in ahc_set_syncrate()
2570 devinfo->target, syncrate->rate, in ahc_set_syncrate()
3614 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3638 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3641 ahc_validate_offset(ahc, tinfo, syncrate, &offset, in ahc_parse_msg()
3654 syncrate, period, in ahc_parse_msg()
3789 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3840 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3843 ahc_validate_offset(ahc, tinfo, syncrate, in ahc_parse_msg()
3861 syncrate = NULL; in ahc_parse_msg()
3896 syncrate, period, in ahc_parse_msg()