Searched refs:TIME_UNITS_PER_SEC (Results 1 - 8 of 8) sorted by relevance

/external/iptables/extensions/
H A Dlibxt_RATEEST.c48 #define TIME_UNITS_PER_SEC 1000000 macro
63 t *= TIME_UNITS_PER_SEC;
66 t *= TIME_UNITS_PER_SEC/1000;
69 t *= TIME_UNITS_PER_SEC/1000000;
83 if (tmp >= TIME_UNITS_PER_SEC)
84 printf(" %.1fs", tmp / TIME_UNITS_PER_SEC);
85 else if (tmp >= TIME_UNITS_PER_SEC/1000)
86 printf(" %.1fms", tmp / (TIME_UNITS_PER_SEC / 1000));
118 if (udata->interval <= (1 << info->interval) * (TIME_UNITS_PER_SEC / 4))
146 local_interval = (TIME_UNITS_PER_SEC << (inf
[all...]
/external/iproute2/tc/
H A Dtc_core.h7 #define TIME_UNITS_PER_SEC 1000000 macro
H A Dtc_cbq.c41 return tc_core_time2tick(maxidle*(1<<ewma_log)*TIME_UNITS_PER_SEC);
56 return tc_core_time2tick(offtime*TIME_UNITS_PER_SEC);
H A Dtc_estimator.c29 if (A <= (1<<est->interval)*(TIME_UNITS_PER_SEC/4))
H A Dtc_core.c61 return tc_core_time2tick(TIME_UNITS_PER_SEC*((double)size/rate));
66 return ((double)rate*tc_core_tick2time(ticks))/TIME_UNITS_PER_SEC;
208 clock_factor = (double)clock_res / TIME_UNITS_PER_SEC;
H A Dq_tbf.c181 double lim = opt.rate.rate*(double)latency/TIME_UNITS_PER_SEC + buffer;
183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu;
266 latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->rate.rate) - tc_core_tick2time(qopt->buffer);
268 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->peakrate.rate) - tc_core_tick2time(qopt->mtu);
H A Dtc_util.c239 t *= TIME_UNITS_PER_SEC;
242 t *= TIME_UNITS_PER_SEC/1000;
245 t *= TIME_UNITS_PER_SEC/1000000;
259 if (tmp >= TIME_UNITS_PER_SEC)
260 snprintf(buf, len, "%.1fs", tmp/TIME_UNITS_PER_SEC);
261 else if (tmp >= TIME_UNITS_PER_SEC/1000)
262 snprintf(buf, len, "%.1fms", tmp/(TIME_UNITS_PER_SEC/1000));
H A Dq_hfsc.c374 if (dmax != 0 && ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax) > rate) {
379 sc->m1 = ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax); /* in bps */
388 sc->d = tc_core_time2ktime(ceil(dmax - umax * TIME_UNITS_PER_SEC / rate));

Completed in 231 milliseconds