Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 207) sorted by relevance

123456789

/external/iproute2/tc/
Dq_tbf.c116 if (opt.rate.rate) { in tbf_parse_opt()
120 if (get_rate(&opt.rate.rate, *argv)) { in tbf_parse_opt()
127 if (opt.peakrate.rate) { in tbf_parse_opt()
131 if (get_rate(&opt.peakrate.rate, *argv)) { in tbf_parse_opt()
164 if (opt.rate.rate == 0 || !buffer) { in tbf_parse_opt()
168 if (opt.peakrate.rate) { in tbf_parse_opt()
181 double lim = opt.rate.rate*(double)latency/TIME_UNITS_PER_SEC + buffer; in tbf_parse_opt()
182 if (opt.peakrate.rate) { in tbf_parse_opt()
183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()
190 opt.rate.mpu = mpu; in tbf_parse_opt()
[all …]
Dm_police.c194 if (p.rate.rate) { in act_parse_police()
198 if (get_rate(&p.rate.rate, *argv)) { in act_parse_police()
214 if (p.peakrate.rate) { in act_parse_police()
218 if (get_rate(&p.peakrate.rate, *argv)) { in act_parse_police()
262 if (p.rate.rate && !buffer) { in act_parse_police()
266 if (p.peakrate.rate) { in act_parse_police()
267 if (!p.rate.rate) { in act_parse_police()
277 if (p.rate.rate) { in act_parse_police()
278 p.rate.mpu = mpu; in act_parse_police()
279 p.rate.overhead = overhead; in act_parse_police()
[all …]
Dq_htb.c170 if (opt.ceil.rate) { in htb_parse_class_opt()
174 if (get_rate(&opt.ceil.rate, *argv)) { in htb_parse_class_opt()
181 if (opt.rate.rate) { in htb_parse_class_opt()
185 if (get_rate(&opt.rate.rate, *argv)) { in htb_parse_class_opt()
204 if (opt.rate.rate == 0) { in htb_parse_class_opt()
209 if (!opt.ceil.rate) opt.ceil = opt.rate; in htb_parse_class_opt()
213 if (!buffer) buffer = opt.rate.rate / get_hz() + mtu; in htb_parse_class_opt()
214 if (!cbuffer) cbuffer = opt.ceil.rate / get_hz() + mtu; in htb_parse_class_opt()
217 opt.rate.overhead = overhead; in htb_parse_class_opt()
220 opt.rate.mpu = mpu; in htb_parse_class_opt()
[all …]
Dtc_cbq.c27 unsigned tc_cbq_calc_maxidle(unsigned bndw, unsigned rate, unsigned avpkt, in tc_cbq_calc_maxidle() argument
35 if (bndw != rate && maxburst) { in tc_cbq_calc_maxidle()
36 double vxmt = (double)avpkt/rate - xmt; in tc_cbq_calc_maxidle()
44 unsigned tc_cbq_calc_offtime(unsigned bndw, unsigned rate, unsigned avpkt, in tc_cbq_calc_offtime() argument
48 double offtime = (double)avpkt/rate - (double)avpkt/bndw; in tc_cbq_calc_offtime()
Dtc_core.c59 unsigned tc_calc_xmittime(unsigned rate, unsigned size) in tc_calc_xmittime() argument
61 return tc_core_time2tick(TIME_UNITS_PER_SEC*((double)size/rate)); in tc_calc_xmittime()
64 unsigned tc_calc_xmitsize(unsigned rate, unsigned ticks) in tc_calc_xmitsize() argument
66 return ((double)rate*tc_core_tick2time(ticks))/TIME_UNITS_PER_SEC; in tc_calc_xmitsize()
115 unsigned bps = r->rate; in tc_calc_rtable()
Dq_cbq.c70 if (get_rate(&r.rate, *argv)) { in cbq_parse_opt()
142 if (r.rate == 0) { in cbq_parse_opt()
163 lss.maxidle = tc_calc_xmittime(r.rate, avpkt); in cbq_parse_opt()
209 if (get_rate(&r.rate, *argv)) { in cbq_parse_class_opt()
360 if (r.rate) { in cbq_parse_class_opt()
379 if (bndw==0 || r.rate == 0) { in cbq_parse_class_opt()
392 wrr.weight = (wrr.priority == TC_CBQ_MAXPRIO) ? 1 : r.rate; in cbq_parse_class_opt()
399 lss.maxidle = tc_cbq_calc_maxidle(bndw, r.rate, lss.avpkt, ewma_log, maxburst); in cbq_parse_class_opt()
404 lss.offtime = tc_cbq_calc_offtime(bndw, r.rate, lss.avpkt, ewma_log, minburst); in cbq_parse_class_opt()
423 if (r.rate) { in cbq_parse_class_opt()
[all …]
/external/iproute2/misc/
Drtacct.c70 double rate[256*4]; member
133 void format_rate(FILE *fp, double rate) in format_rate() argument
137 if (rate > 1024*1024) { in format_rate()
138 sprintf(temp, "%uM", (unsigned)rint(rate/(1024*1024))); in format_rate()
140 } else if (rate > 1024) { in format_rate()
141 sprintf(temp, "%uK", (unsigned)rint(rate/1024)); in format_rate()
144 fprintf(fp, " %-10u", (unsigned)rate); in format_rate()
186 double *rate; in dump_abs_db() local
192 rate = &kern_db->rate[realm*4]; in dump_abs_db()
195 !val[0] && !rate[0] && in dump_abs_db()
[all …]
Difstat.c59 double rate[MAXS]; member
109 memset(&n->rate, 0, sizeof(n->rate)); in get_nlmsg()
183 unsigned rate; in load_raw_table() local
194 if (sscanf(p, "%u", &rate) != 1) in load_raw_table()
196 n->rate[i] = rate; in load_raw_table()
220 double *rates = n->rate; in dump_raw_db()
228 rates = h1->rate; in dump_raw_db()
334 format_rate(fp, vals, n->rate, i); in print_one_if()
341 format_rate(fp, vals, n->rate, 11); in print_one_if()
342 format_rate(fp, vals, n->rate, 9); in print_one_if()
[all …]
Dnstat.c79 double rate; member
123 double rate; in load_good_table() local
134 nr = sscanf(buf, "%s%llu%lg", idbuf, &val, &rate); in load_good_table()
138 rate = 0; in load_good_table()
146 n->rate = rate; in load_good_table()
194 n->rate = 0; in load_ugly_table()
265 if (!dump_zeros && !val && !n->rate) in dump_kern_db()
279 fprintf(fp, "%-32s%-16llu%6.1f\n", n->id, val, n->rate); in dump_kern_db()
303 if (!dump_zeros && !val && !n->rate) in dump_incr_db()
308 n->rate, ovfl?" (overflow)":""); in dump_incr_db()
[all …]
/external/qemu/audio/
Drate_template.h33 struct rate *rate = opaque; in NAME() local
43 ilast = rate->ilast; in NAME()
51 if (rate->opos_inc == (1ULL + UINT_MAX)) { in NAME()
71 while (rate->ipos <= (rate->opos >> 32)) { in NAME()
73 rate->ipos++; in NAME()
85 t = (rate->opos & UINT_MAX) * (1.f / UINT_MAX); in NAME()
87 t = (rate->opos & UINT_MAX) / (mixeng_real) UINT_MAX; in NAME()
92 t = rate->opos & 0xffffffff; in NAME()
101 rate->opos += rate->opos_inc; in NAME()
107 rate->ilast = ilast; in NAME()
Dmixeng.c289 struct rate { struct
301 struct rate *rate = audio_calloc (AUDIO_FUNC, 1, sizeof (*rate)); in st_rate_start() argument
303 if (!rate) { in st_rate_start()
304 dolog ("Could not allocate resampler (%zu bytes)\n", sizeof (*rate)); in st_rate_start()
308 rate->opos = 0; in st_rate_start()
311 rate->opos_inc = ((uint64_t) inrate << 32) / outrate; in st_rate_start()
313 rate->ipos = 0; in st_rate_start()
314 rate->ilast.l = 0; in st_rate_start()
315 rate->ilast.r = 0; in st_rate_start()
316 return rate; in st_rate_start()
/external/quake/quake/src/QW/client/
Dnet_chan.c175 chan->rate = 1.0/2500; in Netchan_Setup()
189 if (chan->cleartime < realtime + MAX_BACKUP*chan->rate) in Netchan_CanPacket()
298 chan->cleartime = realtime + send.cursize*chan->rate; in Netchan_Transmit()
300 chan->cleartime += send.cursize*chan->rate; in Netchan_Transmit()
369 double time, rate; in Netchan_Process()
376 if (chan->rate > 1.0/5000) in Netchan_Process()
377 chan->rate = 1.0/5000; in Netchan_Process()
383 rate = chan->outgoing_size[i]/time; in Netchan_Process()
384 if (rate > 5000) in Netchan_Process()
385 rate = 5000; in Netchan_Process()
[all …]
/external/esd/include/
Desd.h145 int esd_play_stream( esd_format_t format, int rate,
147 int esd_play_stream_fallback( esd_format_t format, int rate,
149 int esd_monitor_stream( esd_format_t format, int rate,
152 int esd_record_stream( esd_format_t format, int rate,
154 int esd_record_stream_fallback( esd_format_t format, int rate,
156 int esd_filter_stream( esd_format_t format, int rate,
160 int esd_sample_cache( int esd, esd_format_t format, const int rate,
201 int rate; /* sample rate */ member
212 int rate; /* sample rate */ member
227 int rate; /* sample rate */ member
/external/ppp/pppd/plugins/pppoatm/
Dtext2qos.c30 unsigned int rate,fract; in __t2q_get_rate() local
37 rate = strtoul(*text,&end,10); in __t2q_get_rate()
47 if (rate > UINT_MAX/1000) return RATE_ERROR; in __t2q_get_rate()
48 rate *= 1000; in __t2q_get_rate()
63 rate += fract; in __t2q_get_rate()
69 rate = (rate+(up ? 8*ATM_CELL_PAYLOAD-1 : 0))/8/ in __t2q_get_rate()
74 if (rate > INT_MAX) return RATE_ERROR; in __t2q_get_rate()
76 return rate; in __t2q_get_rate()
/external/dropbear/libtommath/
Dpretty.build14 my $rate = 0;
29 if ($rate > 0) {
30 my $tleft = ($count - $i) / $rate;
57 $rate = $i/$delay;
62 …tf("\nFinished building source (%d seconds, %3.2f files per second).\n", time - $starttime, $rate);
/external/iproute2/examples/
Dcbqinit.eth126 $BANDWIDTH rate 10Mbit allot 1514 maxburst 50 avpkt 1000
36 $BANDWIDTH rate 4Mbit allot 1514 weight 500Kbit \
48 $BANDWIDTH rate 1Mbit allot 1514 weight 100Kbit \
56 $BANDWIDTH rate 100Kbit allot 1514 weight 10Mbit \
64 rate 5Mbit $BANDWIDTH allot 1514b avpkt 1000 \
74 rate 1Mbit $BANDWIDTH allot 1514b avpkt 1000 weight 10Kbit \
/external/libvpx/vp8/encoder/
Drdopt.c661 int rate = 0; in rd_pick_intra4x4block() local
683 rate = mode_costs[mode]; in rd_pick_intra4x4block()
690 rate += ratey; in rd_pick_intra4x4block()
693 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); in rd_pick_intra4x4block()
697 *bestrate = rate; in rd_pick_intra4x4block()
764 int rate, ratey; in vp8_rd_pick_intra16x16mby_mode() local
773 rate = 0; in vp8_rd_pick_intra16x16mby_mode()
777 rate += x->mbmode_cost[x->e_mbd.frame_type][x->e_mbd.mode_info_context->mbmi.mode]; in vp8_rd_pick_intra16x16mby_mode()
783 rate += ratey; in vp8_rd_pick_intra16x16mby_mode()
787 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); in vp8_rd_pick_intra16x16mby_mode()
[all …]
/external/netperf/
Dnetcpu_pstat.c108 rate[MAXTIMES], in calibrate_idle_rate() local
139 rate[i] = 0.0; in calibrate_idle_rate()
201 if (temp_rate > rate[i]) rate[i] = temp_rate; in calibrate_idle_rate()
203 fprintf(where,"\trate[%d] = %g\n",i,rate[i]); in calibrate_idle_rate()
206 if (local_maxrate < rate[i]) local_maxrate = rate[i]; in calibrate_idle_rate()
Dnetcpu_perfstat.c125 rate[MAXTIMES], in calibrate_idle_rate() local
166 rate[i] = (float)0.0; in calibrate_idle_rate()
250 if (temp_rate > rate[i]) rate[i] = temp_rate; in calibrate_idle_rate()
252 fprintf(where,"\trate[%d] = %g\n",i,rate[i]); in calibrate_idle_rate()
255 if (local_maxrate < rate[i]) local_maxrate = rate[i]; in calibrate_idle_rate()
Dnetcpu_kstat.c259 rate[MAXTIMES], in calibrate_idle_rate() local
287 rate[i] = (float)0.0; in calibrate_idle_rate()
329 if (temp_rate > rate[i]) rate[i] = temp_rate; in calibrate_idle_rate()
331 fprintf(where,"\trate[%d] = %g\n",i,rate[i]); in calibrate_idle_rate()
334 if (local_maxrate < rate[i]) local_maxrate = rate[i]; in calibrate_idle_rate()
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Dscan_helpers.c95 int rate = 0; in wpa_scan_get_max_rate() local
101 if ((ie[i + 2] & 0x7f) > rate) in wpa_scan_get_max_rate()
102 rate = ie[i + 2] & 0x7f; in wpa_scan_get_max_rate()
107 if ((ie[i + 2] & 0x7f) > rate) in wpa_scan_get_max_rate()
108 rate = ie[i + 2] & 0x7f; in wpa_scan_get_max_rate()
111 return rate; in wpa_scan_get_max_rate()
/external/iproute2/doc/actions/
Dactions-general15 127.0.0.1/32 flowid 1:1 police mtu 4000 rate 1500kbit burst 90k
20 we execute a policing action which rate limits its bandwidth utilization
56 police mtu 4000 rate 1500kbit burst 90k
62 action police mtu 4000 rate 1500kbit burst 90k
113 - It is then metered to make sure it does not exceed its allocated rate of
114 1Kbps. If it doesnt exceed rate, this is where we terminate action execution.
116 - If it does exceed its rate, its "color" changes to a mark of 2 and it is
148 # doesnt exceed that rate, this is where we stop, if it exceeds we
150 action police rate 1kbit burst 9k pipe \
158 action police index 30 mtu 5000 rate 1kbit burst 10k pipe \
[all …]
/external/speex/libspeex/
Dspeex_header.c86 EXPORT void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m) in speex_init_header() argument
105 header->rate = rate; in speex_init_header()
131 ENDIAN_SWITCH(le_header->rate); in speex_header_to_packet()
171 ENDIAN_SWITCH(le_header->rate); in speex_packet_to_header()
/external/iproute2/testsuite/tests/
Dpolicer4 $TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 p…
5 $TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2k…
11 $TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 p…
12 $TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2k…
/external/bluetooth/bluez/audio/
Dgstsbcutil.c145 gint gst_sbc_parse_rate_to_sbc(gint rate) in gst_sbc_parse_rate_to_sbc() argument
147 switch (rate) { in gst_sbc_parse_rate_to_sbc()
327 gint temp, rate, channels, blocks, subbands, bitpool; in gst_sbc_util_caps_fixate() local
345 rate = temp; in gst_sbc_util_caps_fixate()
440 "rate", G_TYPE_INT, rate, in gst_sbc_util_caps_fixate()
485 gint rate, channels, subbands, blocks, bitpool; in gst_sbc_util_fill_sbc_params() local
493 if (!gst_structure_get_int(structure, "rate", &rate)) in gst_sbc_util_fill_sbc_params()
512 sbc->frequency = gst_sbc_parse_rate_to_sbc(rate); in gst_sbc_util_fill_sbc_params()

123456789