Home
last modified time | relevance | path

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

/external/iptables/extensions/
Dlibxt_RATEEST.c48 #define TIME_UNITS_PER_SEC 1000000 macro
63 t *= TIME_UNITS_PER_SEC; in RATEEST_get_time()
66 t *= TIME_UNITS_PER_SEC/1000; in RATEEST_get_time()
69 t *= TIME_UNITS_PER_SEC/1000000; in RATEEST_get_time()
83 if (tmp >= TIME_UNITS_PER_SEC) in RATEEST_print_time()
84 printf(" %.1fs", tmp / TIME_UNITS_PER_SEC); in RATEEST_print_time()
85 else if (tmp >= TIME_UNITS_PER_SEC/1000) in RATEEST_print_time()
86 printf(" %.1fms", tmp / (TIME_UNITS_PER_SEC / 1000)); in RATEEST_print_time()
118 if (udata->interval <= (1 << info->interval) * (TIME_UNITS_PER_SEC / 4)) in RATEEST_final_check()
146 local_interval = (TIME_UNITS_PER_SEC << (info->interval + 2)) / 4; in __RATEEST_print()
/external/iproute2/tc/
Dtc_cbq.c41 return tc_core_time2tick(maxidle*(1<<ewma_log)*TIME_UNITS_PER_SEC); in tc_cbq_calc_maxidle()
56 return tc_core_time2tick(offtime*TIME_UNITS_PER_SEC); in tc_cbq_calc_offtime()
Dtc_core.c61 return tc_core_time2tick(TIME_UNITS_PER_SEC*((double)size/(double)rate)); in tc_calc_xmittime()
66 return ((double)rate*tc_core_tick2time(ticks))/TIME_UNITS_PER_SEC; in tc_calc_xmitsize()
224 clock_factor = (double)clock_res / TIME_UNITS_PER_SEC; in tc_core_init()
Dtc_util.c287 t *= TIME_UNITS_PER_SEC; in get_time()
290 t *= TIME_UNITS_PER_SEC/1000; in get_time()
293 t *= TIME_UNITS_PER_SEC/1000000; in get_time()
307 if (tmp >= TIME_UNITS_PER_SEC) in print_time()
308 snprintf(buf, len, "%.1fs", tmp/TIME_UNITS_PER_SEC); in print_time()
309 else if (tmp >= TIME_UNITS_PER_SEC/1000) in print_time()
310 snprintf(buf, len, "%.1fms", tmp/(TIME_UNITS_PER_SEC/1000)); in print_time()
Dq_tbf.c205 double lim = rate64*(double)latency/TIME_UNITS_PER_SEC + buffer; in tbf_parse_opt()
207 double lim2 = prate64*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()
305 latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)rate64) - tc_core_tick2time(qopt->buffer); in tbf_print_opt()
307 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)prate64) - tc_core_tick2time(qopt->mtu); in tbf_print_opt()
Dq_hfsc.c374 if (dmax != 0 && ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax) > rate) { in hfsc_get_sc2()
379 sc->m1 = ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax); /* in bps */ in hfsc_get_sc2()
388 sc->d = tc_core_time2ktime(ceil(dmax - umax * TIME_UNITS_PER_SEC / rate)); in hfsc_get_sc2()
Dtc_estimator.c29 if (A <= (1<<est->interval)*(TIME_UNITS_PER_SEC/4)) in tc_setup_estimator()
Dtc_core.h7 #define TIME_UNITS_PER_SEC 1000000 macro