Home
last modified time | relevance | path

Searched refs:budget (Results 1 – 25 of 72) sorted by relevance

123

/third_party/libwebsockets/lib/roles/mqtt/
Dprimitives.c69 vbi->budget = 4; in lws_mqtt_vbi_init()
77 vbi->budget = 2; in lws_mqtt_2byte_init()
85 vbi->budget = 4; in lws_mqtt_4byte_init()
92 if (!vbi->budget) { in lws_mqtt_vbi_r()
98 while (*len && vbi->budget--) { in lws_mqtt_vbi_r()
109 if (!vbi->budget) { /* should have ended on b7 = 0 and exited then... */ in lws_mqtt_vbi_r()
121 if (!vbi->budget) in lws_mqtt_mb_parse()
124 while (*len && vbi->budget--) { in lws_mqtt_mb_parse()
130 return vbi->budget ? LMSPR_NEED_MORE : LMSPR_COMPLETED; in lws_mqtt_mb_parse()
208 lws_mqtt_str_next(lws_mqtt_str_t *s, uint16_t *budget) in lws_mqtt_str_next() argument
[all …]
/third_party/skia/src/lazy/
DSkDiscardableMemoryPool.cpp29 DiscardableMemoryPool(size_t budget);
38 void setRAMBudget(size_t budget) override;
61 void dumpDownTo(size_t budget);
125 DiscardableMemoryPool::DiscardableMemoryPool(size_t budget) in DiscardableMemoryPool() argument
126 : fBudget(budget) in DiscardableMemoryPool()
140 void DiscardableMemoryPool::dumpDownTo(size_t budget) { in dumpDownTo() argument
142 if (fUsed <= budget) { in dumpDownTo()
148 while ((fUsed > budget) && (cur)) { in dumpDownTo()
219 void DiscardableMemoryPool::setRAMBudget(size_t budget) { in setRAMBudget() argument
221 fBudget = budget; in setRAMBudget()
DSkDiscardableMemoryPool.h31 virtual void setRAMBudget(size_t budget) = 0;
/third_party/flutter/skia/src/lazy/
DSkDiscardableMemoryPool.cpp30 DiscardableMemoryPool(size_t budget);
39 void setRAMBudget(size_t budget) override;
62 void dumpDownTo(size_t budget);
126 DiscardableMemoryPool::DiscardableMemoryPool(size_t budget) in DiscardableMemoryPool() argument
127 : fBudget(budget) in DiscardableMemoryPool()
141 void DiscardableMemoryPool::dumpDownTo(size_t budget) { in dumpDownTo() argument
143 if (fUsed <= budget) { in dumpDownTo()
149 while ((fUsed > budget) && (cur)) { in dumpDownTo()
220 void DiscardableMemoryPool::setRAMBudget(size_t budget) { in setRAMBudget() argument
222 fBudget = budget; in setRAMBudget()
DSkDiscardableMemoryPool.h33 virtual void setRAMBudget(size_t budget) = 0;
/third_party/libwebsockets/minimal-examples/api-tests/api-test-secure-streams/
Dmain.c171 size_t budget = (next_test->send - m->sent); in myss_tx_post() local
173 if (!budget) in myss_tx_post()
176 if (*len < budget) in myss_tx_post()
177 budget = *len; in myss_tx_post()
182 memset(buf, 0x55, budget); in myss_tx_post()
183 *len = budget; in myss_tx_post()
184 m->sent += budget; in myss_tx_post()
/third_party/libwebsockets/lib/misc/
Dlws-struct-lejp.c548 size_t budget = 0, olen = len, m; in lws_struct_json_serialize() local
629 budget = (unsigned int)lws_snprintf(dbuf, sizeof(dbuf), in lws_struct_json_serialize()
632 budget = (unsigned int)lws_snprintf(dbuf, sizeof(dbuf), in lws_struct_json_serialize()
650 budget = (unsigned int)lws_snprintf(dbuf, sizeof(dbuf), "%lld", li); in lws_struct_json_serialize()
725 budget = (unsigned int)lws_snprintf(dbuf, 15, "\"schema\":"); in lws_struct_json_serialize()
727 dbuf[budget++] = ' '; in lws_struct_json_serialize()
729 budget += (unsigned int)lws_snprintf(dbuf + budget, in lws_struct_json_serialize()
730 sizeof(dbuf) - budget, in lws_struct_json_serialize()
765 budget = strlen(q); /* how much unescaped is left */ in lws_struct_json_serialize()
777 js->remaining = budget - (unsigned int)used; in lws_struct_json_serialize()
[all …]
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-stress/
DREADME.md4 SS connections and a budget of sequential connections.
6 It basically forks as many times as `-c <concurrent>` and each fork does `--budget <count>`
21 --budget <count>|Each fork sequentially does this many SS connections (default 1)|
22 --pass-limit <count>|By default the pass limit is the budget, but if doing fault injection you can …
Dminimal-secure-streams.c44 budget = 1, predicted_good = 1, good, orig_budget; variable
365 if (budget) in myss_state()
374 if (budget) in myss_state()
406 budget--; in create_ss()
624 budget = atoi(p); in main()
626 predicted_good = budget; in main()
627 orig_budget = budget; in main()
693 (lws_usec_t)((lws_usec_t)budget * in main()
DCMakeLists.txt47 $<TARGET_FILE:lws-minimal-secure-streams-stress> -c 4 --budget 5)
49 add_test(NAME ssstress-warmcat COMMAND lws-minimal-secure-streams-stress -c 4 --budget 5)
94 … $<TARGET_FILE:lws-minimal-secure-streams-stress-client> -i +${CTEST_SOCKET_PATH} -c 4 --budget 5)
96 …alstress COMMAND lws-minimal-secure-streams-stress-client -i +${CTEST_SOCKET_PATH} -c 4 --budget 5)
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-dynamic/
Dminimal-http-server-dynamic.c32 int budget; member
117 pss->budget = atoi((char *)in + 1); in callback_dynamic_http()
119 if (!pss->budget) in callback_dynamic_http()
120 pss->budget = 10; in callback_dynamic_http()
129 if (!pss || pss->times > pss->budget) in callback_dynamic_http()
152 if (pss->times == pss->budget) in callback_dynamic_http()
/third_party/bzip2/
Dblocksort.c352 Int32* budget ) in mainGtU() argument
464 (*budget)--; in mainGtU()
492 Int32* budget ) in mainSimpleSort() argument
515 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
529 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
543 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
552 if (*budget < 0) return; in mainSimpleSort()
628 Int32* budget ) in mainQSort3() argument
651 mainSimpleSort ( ptr, block, quadrant, nblock, lo, hi, d, budget ); in mainQSort3()
652 if (*budget < 0) return; in mainQSort3()
[all …]
/third_party/boost/tools/boost_install/test/iostreams/bzip2-1.0.8/
Dblocksort.c352 Int32* budget ) in mainGtU() argument
464 (*budget)--; in mainGtU()
492 Int32* budget ) in mainSimpleSort() argument
515 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
529 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
543 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
552 if (*budget < 0) return; in mainSimpleSort()
628 Int32* budget ) in mainQSort3() argument
651 mainSimpleSort ( ptr, block, quadrant, nblock, lo, hi, d, budget ); in mainQSort3()
652 if (*budget < 0) return; in mainQSort3()
[all …]
/third_party/boost/tools/boost_install/test/iostreams/bzip2-1.0.6/
Dblocksort.c352 Int32* budget ) in mainGtU() argument
464 (*budget)--; in mainGtU()
492 Int32* budget ) in mainSimpleSort() argument
515 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
529 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
543 ptr[j-h]+d, v+d, block, quadrant, nblock, budget in mainSimpleSort()
552 if (*budget < 0) return; in mainSimpleSort()
628 Int32* budget ) in mainQSort3() argument
651 mainSimpleSort ( ptr, block, quadrant, nblock, lo, hi, d, budget ); in mainQSort3()
652 if (*budget < 0) return; in mainQSort3()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DResidencyManagerD3D12.cpp141 segmentInfo->budget = in UpdateMemorySegmentInfo()
205 if (memoryUsageAfterMakeResident < memorySegment->budget) { in EnsureCanMakeResident()
210 uint64_t sizeNeededToBeUnderBudget = memoryUsageAfterMakeResident - memorySegment->budget; in EnsureCanMakeResident()
364 mVideoMemoryInfo.local.budget = mVideoMemoryInfo.local.usage + artificialBudgetCap; in RestrictBudgetForTesting()
366 mVideoMemoryInfo.nonLocal.budget = in RestrictBudgetForTesting()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_tokenize/
Dmain.c294 size_t total, budget; in exp_cb1() local
305 budget = olen - *pos; in exp_cb1()
307 if (total < budget) in exp_cb1()
308 budget = total; in exp_cb1()
311 memcpy(out + *pos, replace + (*exp_ofs), budget); in exp_cb1()
312 *exp_ofs += budget; in exp_cb1()
313 *pos += budget; in exp_cb1()
315 if (budget == total) in exp_cb1()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_dsh/
Dmain.c255 unsigned int budget; in test5() local
264 budget = (unsigned int)(lws_xos(&xos) % 4000) + 4000; in test5()
266 lwsl_notice("%s: budget %u\n", __func__, budget); in test5()
318 } while (budget--); in test5()
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpulpfecenc.c269 ctx->budget, ctx->budget_important); in gst_rtp_ulpfec_enc_stream_ctx_report_budget()
277 if (ctx->budget > 0) { in gst_rtp_ulpfec_enc_stream_ctx_increment_budget()
278 ctx->budget = 0; in gst_rtp_ulpfec_enc_stream_ctx_increment_budget()
281 if (ctx->budget < 0) in gst_rtp_ulpfec_enc_stream_ctx_increment_budget()
282 ctx->budget += ctx->budget_inc; in gst_rtp_ulpfec_enc_stream_ctx_increment_budget()
286 ctx->budget += ctx->budget_inc; in gst_rtp_ulpfec_enc_stream_ctx_increment_budget()
301 ctx->budget -= fec_packets_num; in gst_rtp_ulpfec_enc_stream_ctx_decrement_budget()
314 return ctx->budget > 0. ? (guint) ctx->budget : 0; in gst_rtp_ulpfec_enc_stream_ctx_get_fec_packets_num()
436 ctx->budget = push_fec ? 1 : 0; in gst_rtp_ulpfec_enc_stream_ctx_cache_packet()
Dgstrtpulpfecenc.h84 gdouble budget; member
/third_party/libwebsockets/lib/system/async-dns/
Dasync-dns-parse.c32 lws_adns_parse_label(const uint8_t *pkt, int len, const uint8_t *ls, int budget, in lws_adns_parse_label() argument
40 if (budget < 1) in lws_adns_parse_label()
51 if (budget < 2) in lws_adns_parse_label()
85 if (ls + ll > ols + budget) { in lws_adns_parse_label()
86 lwsl_notice("%s: label too long %d vs %d\n", __func__, ll, budget); in lws_adns_parse_label()
/third_party/libwebsockets/lwsws/
Dmain.c240 int n = 0, budget = 100, debug_level = 1024 + 7; in main() local
351 (void)budget; in main()
353 while ((n = uv_loop_close(&loop)) && --budget) in main()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threadpool/
Dprotocol_lws_minimal_threadpool.c106 int budget = 100 * 1000; in task_function() local
122 while (budget--) in task_function()
/third_party/libwebsockets/include/libwebsockets/abstract/
Dprotocols.h63 int (*writeable)(lws_abs_protocol_inst_t *d, size_t budget);
/third_party/flutter/skia/src/gpu/text/
DGrTextBlobCache.h93 void setBudget(size_t budget) { in setBudget() argument
94 fSizeBudget = budget; in setBudget()
/third_party/libwebsockets/lib/secure-streams/
Dsecure-streams.c488 size_t total, budget; in lws_ss_exp_cb_metadata() local
508 budget = olen - *pos; in lws_ss_exp_cb_metadata()
510 if (total < budget) in lws_ss_exp_cb_metadata()
511 budget = total; in lws_ss_exp_cb_metadata()
514 memcpy(out + *pos, replace + (*exp_ofs), budget); in lws_ss_exp_cb_metadata()
515 *exp_ofs += budget; in lws_ss_exp_cb_metadata()
516 *pos += budget; in lws_ss_exp_cb_metadata()
518 if (budget == total) in lws_ss_exp_cb_metadata()

123