Lines Matching refs:syncrate
2267 const struct ahc_syncrate *syncrate; in ahc_find_syncrate() local
2286 for (syncrate = &ahc_syncrates[maxsync]; in ahc_find_syncrate()
2287 syncrate->rate != NULL; in ahc_find_syncrate()
2288 syncrate++) { in ahc_find_syncrate()
2295 && (syncrate->sxfr_u2 == 0)) in ahc_find_syncrate()
2298 if (*period <= syncrate->period) { in ahc_find_syncrate()
2310 if (syncrate == &ahc_syncrates[maxsync]) in ahc_find_syncrate()
2311 *period = syncrate->period; in ahc_find_syncrate()
2317 if ((syncrate->sxfr_u2 & ST_SXFR) != 0) in ahc_find_syncrate()
2324 || (syncrate->rate == NULL) in ahc_find_syncrate()
2326 && (syncrate->sxfr_u2 == 0))) { in ahc_find_syncrate()
2329 syncrate = NULL; in ahc_find_syncrate()
2332 return (syncrate); in ahc_find_syncrate()
2342 const struct ahc_syncrate *syncrate; in ahc_find_period() local
2360 syncrate = &ahc_syncrates[maxsync]; in ahc_find_period()
2361 while (syncrate->rate != NULL) { in ahc_find_period()
2364 if (syncrate->sxfr_u2 == 0) in ahc_find_period()
2366 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) in ahc_find_period()
2367 return (syncrate->period); in ahc_find_period()
2368 } else if (scsirate == (syncrate->sxfr & SXFR)) { in ahc_find_period()
2369 return (syncrate->period); in ahc_find_period()
2371 syncrate++; in ahc_find_period()
2383 const struct ahc_syncrate *syncrate, in ahc_validate_offset() argument
2389 if (syncrate == NULL) { in ahc_validate_offset()
2487 const struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate() argument
2501 if (syncrate == NULL) { in ahc_set_syncrate()
2536 if (syncrate != NULL) { in ahc_set_syncrate()
2537 scsirate |= syncrate->sxfr_u2; in ahc_set_syncrate()
2551 if (syncrate != NULL) { in ahc_set_syncrate()
2552 if (syncrate->sxfr & ULTRA_SXFR) { in ahc_set_syncrate()
2556 scsirate |= syncrate->sxfr & SXFR; in ahc_set_syncrate()
2586 devinfo->target, syncrate->rate, in ahc_set_syncrate()
3630 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3654 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3657 ahc_validate_offset(ahc, tinfo, syncrate, &offset, in ahc_parse_msg()
3670 syncrate, period, in ahc_parse_msg()
3805 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3856 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3859 ahc_validate_offset(ahc, tinfo, syncrate, in ahc_parse_msg()
3877 syncrate = NULL; in ahc_parse_msg()
3912 syncrate, period, in ahc_parse_msg()