Lines Matching refs:syncrate
2274 const struct ahc_syncrate *syncrate; in ahc_find_syncrate() local
2293 for (syncrate = &ahc_syncrates[maxsync]; in ahc_find_syncrate()
2294 syncrate->rate != NULL; in ahc_find_syncrate()
2295 syncrate++) { in ahc_find_syncrate()
2302 && (syncrate->sxfr_u2 == 0)) in ahc_find_syncrate()
2305 if (*period <= syncrate->period) { in ahc_find_syncrate()
2317 if (syncrate == &ahc_syncrates[maxsync]) in ahc_find_syncrate()
2318 *period = syncrate->period; in ahc_find_syncrate()
2324 if ((syncrate->sxfr_u2 & ST_SXFR) != 0) in ahc_find_syncrate()
2331 || (syncrate->rate == NULL) in ahc_find_syncrate()
2333 && (syncrate->sxfr_u2 == 0))) { in ahc_find_syncrate()
2336 syncrate = NULL; in ahc_find_syncrate()
2339 return (syncrate); in ahc_find_syncrate()
2349 const struct ahc_syncrate *syncrate; in ahc_find_period() local
2367 syncrate = &ahc_syncrates[maxsync]; in ahc_find_period()
2368 while (syncrate->rate != NULL) { in ahc_find_period()
2371 if (syncrate->sxfr_u2 == 0) in ahc_find_period()
2373 else if (scsirate == (syncrate->sxfr_u2 & SXFR_ULTRA2)) in ahc_find_period()
2374 return (syncrate->period); in ahc_find_period()
2375 } else if (scsirate == (syncrate->sxfr & SXFR)) { in ahc_find_period()
2376 return (syncrate->period); in ahc_find_period()
2378 syncrate++; in ahc_find_period()
2390 const struct ahc_syncrate *syncrate, in ahc_validate_offset() argument
2396 if (syncrate == NULL) { in ahc_validate_offset()
2494 const struct ahc_syncrate *syncrate, u_int period, in ahc_set_syncrate() argument
2508 if (syncrate == NULL) { in ahc_set_syncrate()
2543 if (syncrate != NULL) { in ahc_set_syncrate()
2544 scsirate |= syncrate->sxfr_u2; in ahc_set_syncrate()
2558 if (syncrate != NULL) { in ahc_set_syncrate()
2559 if (syncrate->sxfr & ULTRA_SXFR) { in ahc_set_syncrate()
2563 scsirate |= syncrate->sxfr & SXFR; in ahc_set_syncrate()
2593 devinfo->target, syncrate->rate, in ahc_set_syncrate()
3637 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3661 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3664 ahc_validate_offset(ahc, tinfo, syncrate, &offset, in ahc_parse_msg()
3677 syncrate, period, in ahc_parse_msg()
3812 const struct ahc_syncrate *syncrate; in ahc_parse_msg() local
3863 syncrate = ahc_devlimited_syncrate(ahc, tinfo, &period, in ahc_parse_msg()
3866 ahc_validate_offset(ahc, tinfo, syncrate, in ahc_parse_msg()
3884 syncrate = NULL; in ahc_parse_msg()
3919 syncrate, period, in ahc_parse_msg()