Home
last modified time | relevance | path

Searched refs:budget (Results 1 - 25 of 44) sorted by relevance

12

/third_party/libwebsockets/lib/roles/mqtt/
H A 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/
H A 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()
[all...]
H A DSkDiscardableMemoryPool.h24 * budget of memory. When the allocated memory exceeds this size,
26 * can exceed the memory-use budget.
31 virtual void setRAMBudget(size_t budget) = 0;
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-dynamic/
H A 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/libwebsockets/minimal-examples/api-tests/api-test-secure-streams/
H A 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/
H A 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 in lws_struct_json_serialize()
[all...]
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-stress/
H A 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()
623 if ((p = lws_cmdline_option(argc, argv, "--budget"))) in main()
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()
741 lwsl_user(" good: %d / %d budget, pas in main()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DResidencyManagerD3D12.cpp120 // The video memory budget provided by QueryVideoMemoryInfo is defined by the operating in UpdateMemorySegmentInfo()
122 // cap the external reservation to half the available budget, which prevents the external in UpdateMemorySegmentInfo()
131 // If we're restricting the budget for testing, leave the budget as is. in UpdateMemorySegmentInfo()
136 // We cap Dawn's budget to 95% of the provided budget. Leaving some budget unused in UpdateMemorySegmentInfo()
137 // decreases fluctuations in the operating-system-defined budget, which improves stability in UpdateMemorySegmentInfo()
141 segmentInfo->budget = in UpdateMemorySegmentInfo()
152 // the process budget an in RemoveSingleEntryFromLRU()
[all...]
H A DResidencyManagerD3D12.h52 uint64_t budget = 0; member
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_tokenize/
H A 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/node/deps/v8/src/regexp/
H A Dregexp-nodes.h196 // EatsAtLeast, GetQuickCheckDetails. The budget argument is used to limit
200 virtual void FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
251 // We should instead fix this properly, e.g. by using the code size budget
300 void FillInBMInfo(Isolate* isolate, int offset, int budget,
302 on_success_->FillInBMInfo(isolate, offset, budget - 1, bm, not_at_start);
351 void FillInBMInfo(Isolate* isolate, int offset, int budget,
434 void FillInBMInfo(Isolate* isolate, int offset, int budget,
487 void FillInBMInfo(Isolate* isolate, int offset, int budget,
522 void FillInBMInfo(Isolate* isolate, int offset, int budget,
544 void FillInBMInfo(Isolate* isolate, int offset, int budget,
[all...]
H A Dregexp-compiler.cc1366 void ActionNode::FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
1373 on_success()->FillInBMInfo(isolate, offset, budget - 1, bm, not_at_start); in FillInBMInfo()
1390 void AssertionNode::FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
1394 on_success()->FillInBMInfo(isolate, offset, budget - 1, bm, not_at_start); in FillInBMInfo()
2059 void LoopChoiceNode::FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
2061 if (body_can_be_zero_length_ || budget <= 0) { in FillInBMInfo()
2066 ChoiceNode::FillInBMInfo(isolate, offset, budget - 1, bm, not_at_start); in FillInBMInfo()
3087 // other choice nodes we only flush if we are out of code size budget. in Emit()
3124 // they are flushed. Take the budget of the parent trace and distribute in Emit()
3799 void BackReferenceNode::FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
3811 FillInBMInfo(Isolate* isolate, int offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) FillInBMInfo() argument
3827 FillInBMInfo(Isolate* isolate, int initial_offset, int budget, BoyerMooreLookahead* bm, bool not_at_start) FillInBMInfo() argument
[all...]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_dsh/
H A 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/libwebsockets/lwsws/
H A 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/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_dxcore_screen.cpp152 output->budget = local_info.budget + nonlocal_info.budget; in dxcore_get_memory_info()
H A Dd3d12_residency.cpp116 double pressure = double(mem_info->usage) / double(mem_info->budget); in get_eviction_grace_period()
187 int64_t available_memory = (int64_t)mem_info.budget - (int64_t)mem_info.usage; in d3d12_process_batch_residency()
232 evict_to_fence_or_budget(screen, oldest_resident_bo->last_used_fence, mem_info.usage + size_to_make_resident, mem_info.budget); in d3d12_process_batch_residency()
H A Dd3d12_screen.h56 uint64_t budget; member
/third_party/libwebsockets/lib/system/async-dns/
H A 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/minimal-examples/ws-server/minimal-ws-server-threadpool/
H A Dprotocol_lws_minimal_threadpool.c106 int budget = 100 * 1000; in task_function() local
122 while (budget--) in task_function()
/third_party/libwebsockets/lib/secure-streams/
H A Dsecure-streams.c494 size_t total, budget; in lws_ss_exp_cb_metadata() local
514 budget = olen - *pos; in lws_ss_exp_cb_metadata()
516 if (total < budget) in lws_ss_exp_cb_metadata()
517 budget = total; in lws_ss_exp_cb_metadata()
520 memcpy(out + *pos, replace + (*exp_ofs), budget); in lws_ss_exp_cb_metadata()
521 *exp_ofs += budget; in lws_ss_exp_cb_metadata()
522 *pos += budget; in lws_ss_exp_cb_metadata()
524 if (budget == total) in lws_ss_exp_cb_metadata()
/third_party/libwebsockets/include/libwebsockets/abstract/
H A Dprotocols.h63 int (*writeable)(lws_abs_protocol_inst_t *d, size_t budget);
/third_party/skia/third_party/externals/d3d12allocator/src/
H A DD3D12MemAlloc.cpp2627 // Writes object { } with data of given budget.
2628 static void WriteBudgetToJson(JsonWriter& json, const Budget& budget);
3445 Budget budget = {};
3446 m_hAllocator->GetBudgetForHeapType(budget, m_HeapType);
3447 freeMemory = (budget.UsageBytes < budget.BudgetBytes) ? (budget.BudgetBytes - budget.UsageBytes) : 0;
3453 // Even if we don't have to stay within budget with this allocation, when the
3454 // budget woul
[all...]
/third_party/libwebsockets/minimal-examples/http-client/minimal-http-client-jit-trust/
H A Dminimal-http-client.c25 static int budget = 6; variable
211 if (budget--) { in callback_http()
/third_party/libwebsockets/lib/misc/fts/
H A Dtrie-fd.c395 int pos = 0, n, m, nl, bp, base = 0, ra, palm, budget, sp, ofd = -1; in lws_fts_search() local
821 budget = ftsp->max_autocomplete; in lws_fts_search()
840 while (sp >= 0 && budget) { in lws_fts_search()
860 if (--budget == 0) in lws_fts_search()
/third_party/libwebsockets/lib/event-libs/libevent/
H A Dlibevent.c451 int budget = 1000; in elops_destroy_context2_event() local
465 while (budget-- && in elops_destroy_context2_event()

Completed in 25 milliseconds

12