Lines Matching refs:sync
421 int sync, offset, options, scf = 0; in siop_ppr_neg() local
433 sync = tables->msg_in[3]; in siop_ppr_neg()
447 if (offset > sc->maxoff || sync < sc->dt_minsync || in siop_ppr_neg()
448 sync > sc->dt_maxsync) { in siop_ppr_neg()
451 device_xname(sc->sc_dev), target, offset, sync); in siop_ppr_neg()
460 if (dt_scf_period[i].period == sync) { in siop_ppr_neg()
463 siop_target->period = sync; in siop_ppr_neg()
471 device_xname(sc->sc_dev), target, sync); in siop_ppr_neg()
527 int sync, maxoffset, offset, i; in siop_sdtr_neg() local
534 sync = tables->msg_in[3]; in siop_sdtr_neg()
541 printf("sdtr: sync %d offset %d\n", sync, offset); in siop_sdtr_neg()
543 if (offset > maxoffset || sync < sc->st_minsync || in siop_sdtr_neg()
544 sync > sc->st_maxsync) in siop_sdtr_neg()
549 if (scf_period[i].period == sync) { in siop_sdtr_neg()
552 siop_target->period = sync; in siop_sdtr_neg()
557 if (sync < 25 && /* Ultra */ in siop_sdtr_neg()
587 printf("sdtr (target): sync %d offset %d\n", sync, offset); in siop_sdtr_neg()
589 if (offset == 0 || sync > sc->st_maxsync) { /* async */ in siop_sdtr_neg()
594 if (sync < sc->st_minsync) in siop_sdtr_neg()
595 sync = sc->st_minsync; in siop_sdtr_neg()
600 if (scf_period[i].period == sync) { in siop_sdtr_neg()
603 siop_target->period = sync; in siop_sdtr_neg()
608 if (sync < 25 && /* Ultra */ in siop_sdtr_neg()
620 siop_sdtr_msg(siop_cmd, 0, sync, offset); in siop_sdtr_neg()