Home
last modified time | relevance | path

Searched refs:budget (Results 1 – 25 of 75) 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/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/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/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/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/node/deps/v8/src/regexp/
Dregexp-nodes.h200 virtual void FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
300 void FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
302 on_success_->FillInBMInfo(isolate, offset, budget - 1, bm, not_at_start); in FillInBMInfo()
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, in FillInBMInfo() argument
620 void FillInBMInfo(Isolate* isolate, int offset, int budget,
679 void FillInBMInfo(Isolate* isolate, int offset, int budget, in FillInBMInfo() argument
[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()
DResidencyManagerD3D12.h52 uint64_t budget = 0; member
/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/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/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_dxcore_screen.cpp152 output->budget = local_info.budget + nonlocal_info.budget; in dxcore_get_memory_info()
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 …een, oldest_resident_bo->last_used_fence, mem_info.usage + size_to_make_resident, mem_info.budget); in d3d12_process_batch_residency()
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/
DVK_EXT_memory_budget.txt20 total memory budget for a memory heap.
37 From here the application can notice if it is over budget and decide how it
DVK_EXT_memory_budget.adoc20 total memory budget for a memory heap.
37 From here the application can notice if it is over budget and decide how it
/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/lib/secure-streams/
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/skia/third_party/externals/d3d12allocator/src/
DD3D12MemAlloc.cpp2628 static void WriteBudgetToJson(JsonWriter& json, const Budget& budget);
3445 Budget budget = {}; in AllocatePage() local
3446 m_hAllocator->GetBudgetForHeapType(budget, m_HeapType); in AllocatePage()
3447 …freeMemory = (budget.UsageBytes < budget.BudgetBytes) ? (budget.BudgetBytes - budget.UsageBytes) :… in AllocatePage()
3559 Budget budget = {}; in Free() local
3560 m_hAllocator->GetBudgetForHeapType(budget, m_HeapType); in Free()
3561 budgetExceeded = budget.UsageBytes >= budget.BudgetBytes; in Free()
4514 Budget budget = {}; in AllocateCommittedResource() local
4515 GetBudgetForHeapType(budget, pAllocDesc->HeapType); in AllocateCommittedResource()
4516 if(budget.UsageBytes + resAllocInfo.SizeInBytes > budget.BudgetBytes) in AllocateCommittedResource()
[all …]
/third_party/libwebsockets/include/libwebsockets/abstract/
Dprotocols.h63 int (*writeable)(lws_abs_protocol_inst_t *d, size_t budget);
/third_party/node/deps/v8/infra/testing/
Dbuilders.pyl2033 'test_args': ['--total-timeout-sec=2100', '--stress-interrupt-budget=1']
2061 'test_args': ['--total-timeout-sec=2100', '--stress-interrupt-budget=1']
2086 '--stress-interrupt-budget=1',
2122 'test_args': ['--total-timeout-sec=2100', '--stress-interrupt-budget=1']
2147 '--stress-interrupt-budget=1',
2177 'test_args': ['--total-timeout-sec=900', '--stress-interrupt-budget=1']
2199 'test_args': ['--total-timeout-sec=900', '--stress-interrupt-budget=1']
2224 '--stress-interrupt-budget=1',
2252 'test_args': ['--total-timeout-sec=900', '--stress-interrupt-budget=1']
2277 '--stress-interrupt-budget=1',

123