Lines Matching refs:clamp
307 offset = clamp(offset, -USEC_PER_SEC, USEC_PER_SEC);
311 /* Scale the phase adjustment and clamp to the operating range. */
312 offset = clamp(offset, -MAXPHASE, MAXPHASE);
453 * @amount is in ÷HZ units, so multiply by HZ first, then clamp to the
455 * shifted-ns). Multiply-then-clamp avoids an s64 divide for the cap.
532 * floor for a tiny time_offset can exceed it, so clamp.
541 * clamp against time_adjust's zero is needed: @amount is bounded by the
983 ntpdata->time_maxerror = clamp(txc->maxerror, 0, NTP_PHASE_LIMIT);
986 ntpdata->time_esterror = clamp(txc->esterror, 0, NTP_PHASE_LIMIT);
989 ntpdata->time_constant = clamp(txc->constant, 0, MAXTC);
992 ntpdata->time_constant = clamp(ntpdata->time_constant, 0, MAXTC);