/external/igt-gpu-tools/tools/ |
D | hsw_compute_wrpll.c | 54 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/ |
D | coop.rs | 67 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/ |
D | primitives.c | 71 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/ |
D | SkDiscardableMemoryPool.cpp | 30 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()
|
D | SkDiscardableMemoryPool.h | 33 virtual void setRAMBudget(size_t budget) = 0;
|
/external/skia/src/lazy/ |
D | SkDiscardableMemoryPool.cpp | 29 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()
|
D | SkDiscardableMemoryPool.h | 31 virtual void setRAMBudget(size_t budget) = 0;
|
/external/libdivsufsort/lib/ |
D | trsort.c | 202 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/ |
D | lws-struct-lejp.c | 461 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/ |
D | minimal-http-server-dynamic.c | 32 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/ |
D | quant_bands.c | 158 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 …]
|
D | quant_bands.h | 51 const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget,
|
/external/libwebsockets/minimal-examples/api-tests/api-test-lws_tokenize/ |
D | main.c | 286 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/ |
D | blocksort.c | 352 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/ |
D | secure-streams.c | 115 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/ |
D | schedule_budget.ll | 1 ; 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/ |
D | main.c | 234 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/ |
D | async-dns-parse.c | 32 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/ |
D | divsufsort.c | 1050 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/ |
D | schedule_budget.ll | 2 ; 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/ |
D | protocol_lws_minimal_threadpool.c | 100 int budget = 100 * 1000; in task_function() local 116 while (budget--) in task_function()
|
/external/angle/third_party/vulkan_memory_allocator/ |
D | CHANGELOG.md | 3 … 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/ |
D | GrTextBlobCache.h | 89 void setBudget(size_t budget) { in setBudget() argument 90 fSizeBudget = budget; in setBudget()
|
/external/libwebsockets/include/libwebsockets/abstract/ |
D | protocols.h | 63 int (*writeable)(lws_abs_protocol_inst_t *d, size_t budget);
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso_bench_rx.c | 250 int ret, len, gso_size, budget = 256; in do_flush_udp() local 253 while (budget--) { in do_flush_udp()
|