Lines Matching defs:sync
130 /* find min/max sync period for this chip */
144 panic("siop: can't find my sync parameters");
154 panic("siop: can't find my sync parameters");
377 /* we now need to do sync */
403 * but don't schedule a sync neg, target should initiate it
421 int sync, offset, options, scf = 0;
433 sync = tables->msg_in[3];
447 if (offset > sc->maxoff || sync < sc->dt_minsync ||
448 sync > sc->dt_maxsync) {
450 "offset (%d) or sync (%d) out of range\n",
451 device_xname(sc->sc_dev), target, offset, sync);
460 if (dt_scf_period[i].period == sync) {
461 /* ok, found it. we now are sync. */
463 siop_target->period = sync;
470 "sync (%d) incompatible with adapter\n",
471 device_xname(sc->sc_dev), target, sync);
527 int sync, maxoffset, offset, i;
534 sync = tables->msg_in[3];
538 /* we initiated sync negotiation */
541 printf("sdtr: sync %d offset %d\n", sync, offset);
543 if (offset > maxoffset || sync < sc->st_minsync ||
544 sync > sc->st_maxsync)
549 if (scf_period[i].period == sync) {
550 /* ok, found it. we now are sync. */
552 siop_target->period = sync;
557 if (sync < 25 && /* Ultra */
585 } else { /* target initiated sync neg */
587 printf("sdtr (target): sync %d offset %d\n", sync, offset);
589 if (offset == 0 || sync > sc->st_maxsync) { /* async */
594 if (sync < sc->st_minsync)
595 sync = sc->st_minsync;
596 /* look for sync period */
600 if (scf_period[i].period == sync) {
601 /* ok, found it. we now are sync. */
603 siop_target->period = sync;
608 if (sync < 25 && /* Ultra */
620 siop_sdtr_msg(siop_cmd, 0, sync, offset);