Lines Matching refs:sync
113 /* find min/max sync period for this chip */
127 panic("siop: can't find my sync parameters");
137 panic("siop: can't find my sync parameters");
363 /* we now need to do sync */
389 * but don't schedule a sync neg, target should initiate it
407 int sync, offset, options, scf = 0;
419 sync = tables->msg_in[3];
433 if (offset > sc->maxoff || sync < sc->dt_minsync ||
434 sync > sc->dt_maxsync) {
436 "offset (%d) or sync (%d) out of range\n",
437 sc->sc_dev.dv_xname, target, offset, sync);
450 if (dt_scf_period[i].period == sync) {
451 /* ok, found it. we now are sync. */
453 siop_target->period = sync;
460 "sync (%d) incompatible with adapter\n",
461 sc->sc_dev.dv_xname, target, sync);
519 int sync, maxoffset, offset, i;
526 sync = tables->msg_in[3];
530 /* we initiated sync negotiation */
533 printf("sdtr: sync %d offset %d\n", sync, offset);
535 if (offset > maxoffset || sync < sc->st_minsync ||
536 sync > sc->st_maxsync)
542 if (scf_period[i].period == sync) {
543 /* ok, found it. we now are sync. */
545 siop_target->period = sync;
550 if (sync < 25 && /* Ultra */
578 } else { /* target initiated sync neg */
580 printf("sdtr (target): sync %d offset %d\n", sync, offset);
582 if (offset == 0 || sync > sc->st_maxsync) { /* async */
587 if (sync < sc->st_minsync)
588 sync = sc->st_minsync;
589 /* look for sync period */
594 if (scf_period[i].period == sync) {
595 /* ok, found it. we now are sync. */
597 siop_target->period = sync;
602 if (sync < 25 && /* Ultra */
614 siop_sdtr_msg(siop_cmd, 0, sync, offset);