Home
last modified time | relevance | path

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

1234

/external/igt-gpu-tools/tools/
Dhsw_compute_wrpll.c54 unsigned budget; in wrpll_get_budget_for_freq() local
88 budget = 0; in wrpll_get_budget_for_freq()
95 budget = 1500; in wrpll_get_budget_for_freq()
101 budget = 2000; in wrpll_get_budget_for_freq()
112 budget = 4000; in wrpll_get_budget_for_freq()
116 budget = 5000; in wrpll_get_budget_for_freq()
119 budget = 1000; in wrpll_get_budget_for_freq()
123 return budget; in wrpll_get_budget_for_freq()
126 static void wrpll_update_rnp(uint64_t freq2k, unsigned budget, in wrpll_update_rnp() argument
154 a = freq2k * budget * p * r2; in wrpll_update_rnp()
[all …]
/external/rust/crates/tokio/src/
Dcoop.rs67 self.0.map(|budget| budget > 0).unwrap_or(true)
75 pub(crate) fn budget<R>(f: impl FnOnce() -> R) -> R { in budget() function
87 fn with_budget<R>(budget: Budget, f: impl FnOnce() -> R) -> R { in with_budget()
102 cell.set(budget); in with_budget()
112 pub(crate) fn set(budget: Budget) {
113 CURRENT.with(|cell| cell.set(budget))
151 let budget = self.0.get(); localVariable
152 if !budget.is_unconstrained() {
154 cell.set(budget);
175 let mut budget = cell.get(); localVariable
[all …]
/external/libwebsockets/lib/roles/mqtt/
Dprimitives.c71 vbi->budget = 4; in lws_mqtt_vbi_init()
79 vbi->budget = 2; in lws_mqtt_2byte_init()
87 vbi->budget = 4; in lws_mqtt_4byte_init()
94 if (!vbi->budget) { in lws_mqtt_vbi_r()
100 while (*len && vbi->budget--) { in lws_mqtt_vbi_r()
111 if (!vbi->budget) { /* should have ended on b7 = 0 and exited then... */ in lws_mqtt_vbi_r()
123 if (!vbi->budget) in lws_mqtt_mb_parse()
126 while (*len && vbi->budget--) { in lws_mqtt_mb_parse()
132 return vbi->budget ? LMSPR_NEED_MORE : LMSPR_COMPLETED; in lws_mqtt_mb_parse()
210 lws_mqtt_str_next(lws_mqtt_str_t *s, uint16_t *budget) in lws_mqtt_str_next() argument
[all …]
/external/skqp/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;
/external/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;
/external/libdivsufsort/lib/
Dtrsort.c202 trbudget_init(trbudget_t *budget, saidx_t chance, saidx_t incval) { in trbudget_init() argument
203 budget->chance = chance; in trbudget_init()
204 budget->remain = budget->incval = incval; in trbudget_init()
209 trbudget_check(trbudget_t *budget, saidx_t size) { in trbudget_check() argument
210 if(size <= budget->remain) { budget->remain -= size; return 1; } in trbudget_check()
211 if(budget->chance == 0) { budget->count += size; return 0; } in trbudget_check()
212 budget->remain += budget->incval - size; in trbudget_check()
213 budget->chance -= 1; in trbudget_check()
329 trbudget_t *budget) { in tr_introsort() argument
402 if(trbudget_check(budget, a - first)) { in tr_introsort()
[all …]
/external/libwebsockets/lib/misc/
Dlws-struct-lejp.c461 size_t budget = 0, olen = len, m; in lws_struct_json_serialize() local
535 budget = lws_snprintf(dbuf, sizeof(dbuf), in lws_struct_json_serialize()
538 budget = lws_snprintf(dbuf, sizeof(dbuf), in lws_struct_json_serialize()
556 budget = lws_snprintf(dbuf, sizeof(dbuf), "%lld", li); in lws_struct_json_serialize()
630 budget = lws_snprintf(dbuf, 15, "\"schema\":"); in lws_struct_json_serialize()
632 dbuf[budget++] = ' '; in lws_struct_json_serialize()
634 budget += lws_snprintf(dbuf + budget, in lws_struct_json_serialize()
635 sizeof(dbuf) - budget, in lws_struct_json_serialize()
666 budget = strlen(q); /* how much unescaped is left */ in lws_struct_json_serialize()
678 js->remaining = budget - used; in lws_struct_json_serialize()
[all …]
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-dynamic/
Dminimal-http-server-dynamic.c32 int budget; member
85 pss->budget = atoi((char *)in + 1); in callback_dynamic_http()
87 if (!pss->budget) in callback_dynamic_http()
88 pss->budget = 10; in callback_dynamic_http()
97 if (!pss || pss->times > pss->budget) in callback_dynamic_http()
120 if (pss->times == pss->budget) in callback_dynamic_http()
/external/libopus/celt/
Dquant_bands.c158 opus_int32 budget, opus_int32 tell, in quant_coarse_energy_impl() argument
168 if (tell+3 <= budget) in quant_coarse_energy_impl()
217 bits_left = budget-tell-3*C*(end-i); in quant_coarse_energy_impl()
227 if (budget-tell >= 15) in quant_coarse_energy_impl()
234 else if(budget-tell >= 2) in quant_coarse_energy_impl()
239 else if(budget-tell >= 1) in quant_coarse_energy_impl()
262 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget, in quant_coarse_energy() argument
278 intra_bias = (opus_int32)((budget**delayedIntra*loss_rate)/(C*512)); in quant_coarse_energy()
282 if (tell+3 > budget) in quant_coarse_energy()
304 badness1 = quant_coarse_energy_impl(m, start, end, eBands, oldEBands_intra, budget, in quant_coarse_energy()
[all …]
Dquant_bands.h51 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget,
/external/libwebsockets/minimal-examples/api-tests/api-test-lws_tokenize/
Dmain.c286 size_t total, budget; in exp_cb1() local
297 budget = olen - *pos; in exp_cb1()
299 if (total < budget) in exp_cb1()
300 budget = total; in exp_cb1()
302 memcpy(out + *pos, replace + (*exp_ofs), budget); in exp_cb1()
303 *exp_ofs += budget; in exp_cb1()
304 *pos += budget; in exp_cb1()
306 if (budget == total) in exp_cb1()
/external/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 …]
/external/libwebsockets/lib/secure-streams/
Dsecure-streams.c115 size_t total, budget; in lws_ss_exp_cb_metadata() local
130 budget = olen - *pos; in lws_ss_exp_cb_metadata()
132 if (total < budget) in lws_ss_exp_cb_metadata()
133 budget = total; in lws_ss_exp_cb_metadata()
135 memcpy(out + *pos, replace + (*exp_ofs), budget); in lws_ss_exp_cb_metadata()
136 *exp_ofs += budget; in lws_ss_exp_cb_metadata()
137 *pos += budget; in lws_ss_exp_cb_metadata()
139 if (budget == total) in lws_ss_exp_cb_metadata()
/external/llvm/test/Transforms/SLPVectorizer/X86/
Dschedule_budget.ll1 ; RUN: opt < %s -basicaa -slp-vectorizer -S -slp-schedule-budget=16 -mtriple=x86_64-apple-macosx10…
6 ; Test if the budget for the scheduling region size works.
7 ; We test with a reduced budget of 16 which should prevent vectorizing the loads.
73 ; But still vectorize the following instructions, because even if the budget
/external/libwebsockets/lwsws/
Dmain.c234 int n = 0, budget = 100, debug_level = 1024 + 7; in main() local
341 (void)budget; in main()
343 while ((n = uv_loop_close(&loop)) && --budget) in main()
/external/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()
84 if (ll > budget) { in lws_adns_parse_label()
85 lwsl_notice("%s: label too long %d vs %d\n", __func__, ll, budget); in lws_adns_parse_label()
/external/zstd/lib/dictBuilder/
Ddivsufsort.c1050 trbudget_init(trbudget_t *budget, int chance, int incval) { in trbudget_init() argument
1051 budget->chance = chance; in trbudget_init()
1052 budget->remain = budget->incval = incval; in trbudget_init()
1057 trbudget_check(trbudget_t *budget, int size) { in trbudget_check() argument
1058 if(size <= budget->remain) { budget->remain -= size; return 1; } in trbudget_check()
1059 if(budget->chance == 0) { budget->count += size; return 0; } in trbudget_check()
1060 budget->remain += budget->incval - size; in trbudget_check()
1061 budget->chance -= 1; in trbudget_check()
1177 trbudget_t *budget) { in tr_introsort() argument
1250 if(trbudget_check(budget, a - first)) { in tr_introsort()
[all …]
/external/llvm-project/llvm/test/Transforms/SLPVectorizer/X86/
Dschedule_budget.ll2 ; RUN: opt < %s -basic-aa -slp-vectorizer -S -slp-schedule-budget=16 -mtriple=x86_64-apple-macosx1…
7 ; Test if the budget for the scheduling region size works.
8 ; We test with a reduced budget of 16 which should prevent vectorizing the loads.
118 ; But still vectorize the following instructions, because even if the budget
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threadpool/
Dprotocol_lws_minimal_threadpool.c100 int budget = 100 * 1000; in task_function() local
116 while (budget--) in task_function()
/external/angle/third_party/vulkan_memory_allocator/
DCHANGELOG.md3 … feature branches. Notable new features: supporting Vulkan 1.1, supporting query for memory budget.
10 - Added support for query for memory budget and staying within the budget.
12 …- By default the budget it is estimated based on memory heap sizes. It may be queried from the sys…
13 …g `VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT` that fails an allocation if it would exceed the budget.
/external/skqp/src/gpu/text/
DGrTextBlobCache.h89 void setBudget(size_t budget) { in setBudget() argument
90 fSizeBudget = budget; in setBudget()
/external/libwebsockets/include/libwebsockets/abstract/
Dprotocols.h63 int (*writeable)(lws_abs_protocol_inst_t *d, size_t budget);
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_rx.c250 int ret, len, gso_size, budget = 256; in do_flush_udp() local
253 while (budget--) { in do_flush_udp()

1234