Lines Matching refs:period
1648 * update period, conf3, offset reg, if necessary
1652 uchar_t period, offset, conf3; \
1653 period = fas->f_sync_period[target] & SYNC_PERIOD_MASK; \
1656 if ((period != fas->f_period_reg_last) || \
1659 fas->f_period_reg_last = period; \
1662 fas_reg_write(fas, &fasreg->fas_sync_period, period); \
1777 * initialize period and offset for each target
4107 * we know the target so update period, conf3,
4115 * the period/offset/conf3 registers need to be
5508 * phase, period. Moreover, until the entire incoming
6067 uint_t period, offset, regval;
6071 period = fas->f_imsgarea[3] & 0xff;
6079 DPRINTF3("received period %d offset %d from tgt %d\n",
6080 period, offset, tgt);
6083 DPRINTF2("sync period %d, neg period %d\n",
6102 period =
6103 period ? max(period, MIN_SYNC_PERIOD(fas)) : 0;
6106 period = period ?
6107 max(period, fas->f_neg_period[tgt]) : 0;
6118 period = offset = 0;
6122 if (offset && (period > maxsync)) {
6129 period = offset = 0;
6131 } else if (offset && (period < minsync)) {
6133 * If the target's period is less than ours,
6136 period = offset = 0;
6144 * We adjust the input period value such that
6146 * than the period value received.
6150 regval = (((period << 2) + clockval - 1) / clockval);
6156 if (regval && (period >= FASTSCSI_THRESHOLD)) {
6162 fas->f_neg_period[tgt] = period;
6166 * initiated sdtr. period and offset have been checked.
6170 period = fas->f_neg_period[tgt];
6187 if (period < FASTSCSI_THRESHOLD) {
6196 DPRINTF4("period %d (%d), offset %d to tgt %d\n",
6197 period,
6818 uchar_t period = MIN_SYNC_PERIOD(fas);
6828 period = fas->f_neg_period[target];
6836 period = fas->f_neg_period[target];
6849 * sanity check of period and offset
6852 if (period < (uchar_t)(DEFAULT_FASTSYNC_PERIOD/4)) {
6853 period = (uchar_t)(DEFAULT_FASTSYNC_PERIOD/4);
6856 if (period < (uchar_t)(DEFAULT_SYNC_PERIOD/4)) {
6857 period = (uchar_t)(DEFAULT_SYNC_PERIOD/4);
6871 fas->f_neg_period[target] = (uchar_t)period;
6877 *p++ = period;
6881 IPRINTF2("fas_make_sdtr: period = %x, offset = %x\n",
6882 period, offset);
7472 * fas_sync_wide_backoff() increases sync period and enables slow
7540 /* increase period by 100% */