/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_fps.c | 42 query_fps(struct hud_graph *gr, struct pipe_context *pipe) in query_fps() argument 44 struct fps_info *info = gr->query_data; in query_fps() 52 hud_graph_add_value(gr, frametime); in query_fps() 55 else if (info->last_time + gr->pane->period <= now) { in query_fps() 61 hud_graph_add_value(gr, fps); in query_fps() 78 struct hud_graph *gr = CALLOC_STRUCT(hud_graph); in hud_fps_graph_install() local 80 if (!gr) in hud_fps_graph_install() 83 strcpy(gr->name, "fps"); in hud_fps_graph_install() 84 gr->query_data = CALLOC_STRUCT(fps_info); in hud_fps_graph_install() 85 if (!gr->query_data) { in hud_fps_graph_install() [all …]
|
D | hud_cpu.c | 231 query_cpu_load(struct hud_graph *gr, struct pipe_context *pipe) in query_cpu_load() argument 233 struct cpu_info *info = gr->query_data; in query_cpu_load() 237 if (info->last_time + gr->pane->period <= now) { in query_cpu_load() 245 hud_graph_add_value(gr, cpu_load); in query_cpu_load() 269 struct hud_graph *gr; in hud_cpu_graph_install() local 278 gr = CALLOC_STRUCT(hud_graph); in hud_cpu_graph_install() 279 if (!gr) in hud_cpu_graph_install() 283 strcpy(gr->name, "cpu"); in hud_cpu_graph_install() 285 sprintf(gr->name, "cpu%u", cpu_index); in hud_cpu_graph_install() 287 gr->query_data = CALLOC_STRUCT(cpu_info); in hud_cpu_graph_install() [all …]
|
D | hud_context.c | 299 hud_draw_graph_line_strip(struct hud_context *hud, const struct hud_graph *gr, in hud_draw_graph_line_strip() argument 302 if (gr->num_vertices <= 1) in hud_draw_graph_line_strip() 305 assert(gr->index <= gr->num_vertices); in hud_draw_graph_line_strip() 308 gr->vertices, gr->index, in hud_draw_graph_line_strip() 309 gr->color[0], gr->color[1], gr->color[2], 1, in hud_draw_graph_line_strip() 310 xoffset + (gr->pane->max_num_vertices - gr->index - 1) * 2 - 1, in hud_draw_graph_line_strip() 313 if (gr->num_vertices <= gr->index) in hud_draw_graph_line_strip() 317 gr->vertices + gr->index*2, in hud_draw_graph_line_strip() 318 gr->num_vertices - gr->index, in hud_draw_graph_line_strip() 319 gr->color[0], gr->color[1], gr->color[2], 1, in hud_draw_graph_line_strip() [all …]
|
D | hud_cpufreq.c | 94 query_cfi_load(struct hud_graph *gr, struct pipe_context *pipe) in query_cfi_load() argument 96 struct cpufreq_info *cfi = gr->query_data; in query_cfi_load() 100 if (cfi->last_time + gr->pane->period <= now) { in query_cfi_load() 106 hud_graph_add_value(gr, (uint64_t)cfi->KHz * 1000); in query_cfi_load() 127 struct hud_graph *gr; in hud_cpufreq_graph_install() local 138 gr = CALLOC_STRUCT(hud_graph); in hud_cpufreq_graph_install() 139 if (!gr) in hud_cpufreq_graph_install() 145 snprintf(gr->name, sizeof(gr->name), "%s-Min", cfi->name); in hud_cpufreq_graph_install() 148 snprintf(gr->name, sizeof(gr->name), "%s-Cur", cfi->name); in hud_cpufreq_graph_install() 151 snprintf(gr->name, sizeof(gr->name), "%s-Max", cfi->name); in hud_cpufreq_graph_install() [all …]
|
D | hud_diskstat.c | 121 query_dsi_load(struct hud_graph *gr, struct pipe_context *pipe) in query_dsi_load() argument 126 struct diskstat_info *dsi = gr->query_data; in query_dsi_load() 130 if (dsi->last_time + gr->pane->period <= now) { in query_dsi_load() 141 (((float) gr->pane->period / 1000) / 1000); in query_dsi_load() 147 (((float) gr->pane->period / 1000) / 1000); in query_dsi_load() 151 hud_graph_add_value(gr, (uint64_t) val); in query_dsi_load() 178 struct hud_graph *gr; in hud_diskstat_graph_install() local 189 gr = CALLOC_STRUCT(hud_graph); in hud_diskstat_graph_install() 190 if (!gr) in hud_diskstat_graph_install() 195 snprintf(gr->name, sizeof(gr->name), "%s-Read-MB/s", dsi->name); in hud_diskstat_graph_install() [all …]
|
D | hud_driver_query.c | 294 begin_query(struct hud_graph *gr, struct pipe_context *pipe) in begin_query() argument 296 struct query_info *info = gr->query_data; in begin_query() 304 query_new_value(struct hud_graph *gr, struct pipe_context *pipe) in query_new_value() argument 306 struct query_info *info = gr->query_data; in query_new_value() 320 if (info->num_results && info->last_time + gr->pane->period <= now) { in query_new_value() 337 hud_graph_add_value(gr, value); in query_new_value() 379 struct hud_graph *gr; in hud_pipe_query_install() local 382 gr = CALLOC_STRUCT(hud_graph); in hud_pipe_query_install() 383 if (!gr) in hud_pipe_query_install() 386 strncpy(gr->name, name, sizeof(gr->name)); in hud_pipe_query_install() [all …]
|
D | hud_nic.c | 175 query_nic_load(struct hud_graph *gr, struct pipe_context *pipe) in query_nic_load() argument 181 struct nic_info *nic = gr->query_data; in query_nic_load() 185 if (nic->last_time + gr->pane->period <= now) { in query_nic_load() 196 float periodMs = gr->pane->period / 1000.0; in query_nic_load() 208 hud_graph_add_value(gr, (uint64_t) pct); in query_nic_load() 217 hud_graph_add_value(gr, leveldBm); in query_nic_load() 250 struct hud_graph *gr; in hud_nic_graph_install() local 261 gr = CALLOC_STRUCT(hud_graph); in hud_nic_graph_install() 262 if (!gr) in hud_nic_graph_install() 267 snprintf(gr->name, sizeof(gr->name), "%s-rx-%"PRId64"Mbps", nic->name, in hud_nic_graph_install() [all …]
|
D | hud_sensors_temp.c | 161 query_sti_load(struct hud_graph *gr, struct pipe_context *pipe) in query_sti_load() argument 163 struct sensors_temp_info *sti = gr->query_data; in query_sti_load() 167 if (sti->last_time + gr->pane->period <= now) { in query_sti_load() 172 hud_graph_add_value(gr, sti->current); in query_sti_load() 175 hud_graph_add_value(gr, sti->critical); in query_sti_load() 178 hud_graph_add_value(gr, sti->current * 1000); in query_sti_load() 181 hud_graph_add_value(gr, sti->current); in query_sti_load() 184 hud_graph_add_value(gr, sti->current); in query_sti_load() 208 struct hud_graph *gr; in hud_sensors_temp_graph_install() local 219 gr = CALLOC_STRUCT(hud_graph); in hud_sensors_temp_graph_install() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | collective_param_resolver_local.cc | 97 std::function<void(const Status& s, GroupRec* gr)> done_with_cleanup; in CompleteGroupLocal() 118 const Status& s, GroupRec* gr) { in CompleteGroupLocal() argument 126 done(s, gr); in CompleteGroupLocal() 132 GroupRec* gr = nullptr; in CompleteGroupLocal() local 138 gr = new GroupRec; in CompleteGroupLocal() 139 mutex_lock grl(gr->mu); in CompleteGroupLocal() 140 gr->group.group_key = cp->group.group_key; in CompleteGroupLocal() 141 gr->group.group_size = cp->group.group_size; in CompleteGroupLocal() 142 gr->group.device_type = cp->group.device_type; in CompleteGroupLocal() 143 gr->group.gpu_ring_order = cp->group.gpu_ring_order; in CompleteGroupLocal() [all …]
|
D | collective_param_resolver_local.h | 85 typedef std::function<void(const Status& s, const GroupRec* gr)> 93 void FinishGroup(GroupRec* gr) TF_EXCLUSIVE_LOCKS_REQUIRED(gr->mu); 123 // already exist, create and initialize from gr and cp. 126 // Precondition: *gr must be a complete GroupRec, i.e. the value set 130 InstanceRec* GetOrCreateInstanceRec(const GroupRec* gr, CollectiveParams* cp, 132 TF_LOCKS_EXCLUDED(instance_mu_, gr->mu, group_mu_); 134 // Populate *ir with device membership from gr, then initialize to be specific 139 void InitInstanceSharedParams(const GroupRec* gr, const CollectiveParams* cp, 140 InstanceRec* ir) TF_LOCKS_EXCLUDED(gr->mu); 148 // Precondition: *gr has been fully populated by CompleteGroupLocal. [all …]
|
/external/elfutils/backends/ |
D | x86_64_corenote.c | 52 #define GR(at, n, dwreg) \ macro 57 GR (0, 1, 15), /* %r15 */ 58 GR (1, 1, 14), /* %r14 */ 59 GR (2, 1, 13), /* %r13 */ 60 GR (3, 1, 12), /* %r12 */ 61 GR (4, 1, 6), /* %rbp */ 62 GR (5, 1, 3), /* %rbx */ 63 GR (6, 1, 11), /* %r11 */ 64 GR (7, 1, 10), /* %r10 */ 65 GR (8, 1, 9), /* %r9 */ [all …]
|
D | sparc_corenote.c | 49 #define GR(at, n, dwreg) \ macro 54 GR (0, 32, 0), /* %g0-%g7, %o0-%o7, %i0-%i7 */ 56 GR (32, 1, 65), /* %psr */ 57 GR (33, 2, 68), /* %pc, %npc */ 58 GR (35, 1, 64), /* %y */ 59 GR (36, 1, 66), /* %wim, %tbr */ 61 GR (32, 1, 82), /* %state */ 62 GR (33, 2, 80), /* %pc, %npc */ 63 GR (35, 1, 85), /* %y */ 71 GR (0, 32, 32), /* %f0-%f31 */ [all …]
|
D | sh_corenote.c | 45 #define GR(at, n, dwreg) \ macro 47 GR (0, 16, 0), /* r0-r15 */ 48 GR (16, 1, 16), /* pc */ 49 GR (17, 1, 17), /* pr */ 50 GR (18, 1, 22), /* sr */ 51 GR (19, 1, 18), /* gbr */ 52 GR (20, 1, 20), /* mach */ 53 GR (21, 1, 21), /* macl */ 55 #undef GR
|
D | ppc_corenote.c | 50 #define GR(at, n, dwreg) \ macro 53 GR (0, 32, 0), /* r0-r31 */ 55 GR (33, 1, 66), /* msr */ 57 GR (35, 1, 109), /* ctr */ 58 GR (36, 1, 108), /* lr */ 59 GR (37, 1, 101), /* xer */ 60 GR (38, 1, 64), /* cr */ 61 GR (39, 1, 100), /* mq */ 63 GR (41, 1, 119), /* dar */ 64 GR (42, 1, 118), /* dsisr */ [all …]
|
D | i386_corenote.c | 45 #define GR(at, n, dwreg) \ macro 50 GR (0, 1, 3), /* %ebx */ 51 GR (1, 2, 1), /* %ecx-%edx */ 52 GR (3, 2, 6), /* %esi-%edi */ 53 GR (5, 1, 5), /* %ebp */ 54 GR (6, 1, 0), /* %eax */ 60 GR (12, 1, 8), /* %eip */ 62 GR (14, 1, 9), /* eflags */ 63 GR (15, 1, 4), /* %esp */ 66 #undef GR
|
/external/tensorflow/tensorflow/core/distributed_runtime/ |
D | collective_param_resolver_distributed.cc | 114 [this, device, cp, cancel_mgr, done](Status s, const GroupRec* gr) { in CompleteParamsAsync() argument 117 mutex_lock l(gr->mu); in CompleteParamsAsync() 118 for (const auto& item : gr->devices) { in CompleteParamsAsync() 124 CompleteInstanceDistributed(device.name(), gr, cp, cancel_mgr, done); in CompleteParamsAsync() 148 [response, done](const Status& s, const GroupRec* gr) { in CompleteGroupAsync() argument 150 mutex_lock l(gr->mu); in CompleteGroupAsync() 151 response->set_group_key(gr->group.group_key); in CompleteGroupAsync() 152 response->set_group_size(gr->group.group_size); in CompleteGroupAsync() 153 response->set_device_type(gr->group.device_type.type_string()); in CompleteGroupAsync() 154 response->set_num_tasks(gr->group.num_tasks); in CompleteGroupAsync() [all …]
|
/external/python/cpython2/Parser/ |
D | pgen.c | 102 static void compile_rule(nfagrammar *gr, node *n); 107 nfagrammar *gr; in newnfagrammar() local 109 gr = (nfagrammar *)PyObject_MALLOC(sizeof(nfagrammar)); in newnfagrammar() 110 if (gr == NULL) in newnfagrammar() 112 gr->gr_nnfas = 0; in newnfagrammar() 113 gr->gr_nfa = NULL; in newnfagrammar() 114 gr->gr_ll.ll_nlabels = 0; in newnfagrammar() 115 gr->gr_ll.ll_label = NULL; in newnfagrammar() 116 addlabel(&gr->gr_ll, ENDMARKER, "EMPTY"); in newnfagrammar() 117 return gr; in newnfagrammar() [all …]
|
/external/aac/libSBRdec/src/ |
D | psbitdec.cpp | 249 UCHAR gr, env; in DecodePs() local 316 for (gr = 0; gr < NO_HI_RES_IID_BINS; gr++) { in DecodePs() 317 pBsData->aaIidIndex[pBsData->noEnv - 1][gr] = in DecodePs() 318 h_ps_d->specificTo.mpeg.aIidPrevFrameIndex[gr]; in DecodePs() 321 for (gr = 0; gr < NO_HI_RES_IID_BINS; gr++) { in DecodePs() 322 pBsData->aaIidIndex[pBsData->noEnv - 1][gr] = 0; in DecodePs() 328 for (gr = 0; gr < NO_HI_RES_ICC_BINS; gr++) { in DecodePs() 329 pBsData->aaIccIndex[pBsData->noEnv - 1][gr] = in DecodePs() 330 h_ps_d->specificTo.mpeg.aIccPrevFrameIndex[gr]; in DecodePs() 333 for (gr = 0; gr < NO_HI_RES_ICC_BINS; gr++) { in DecodePs() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | alloc_tables.c | 158 dgrp_t gr = ext2fs_group_of_blk2(fs, new_blk); in ext2fs_allocate_group_table() local 159 ext2fs_bg_free_blocks_count_set(fs, gr, ext2fs_bg_free_blocks_count(fs, gr) - 1); in ext2fs_allocate_group_table() 161 ext2fs_bg_flags_clear(fs, gr, EXT2_BG_BLOCK_UNINIT); in ext2fs_allocate_group_table() 162 ext2fs_group_desc_csum_set(fs, gr); in ext2fs_allocate_group_table() 191 dgrp_t gr = ext2fs_group_of_blk2(fs, new_blk); in ext2fs_allocate_group_table() local 192 ext2fs_bg_free_blocks_count_set(fs, gr, ext2fs_bg_free_blocks_count(fs, gr) - 1); in ext2fs_allocate_group_table() 194 ext2fs_bg_flags_clear(fs, gr, EXT2_BG_BLOCK_UNINIT); in ext2fs_allocate_group_table() 195 ext2fs_group_desc_csum_set(fs, gr); in ext2fs_allocate_group_table() 233 int gr = ext2fs_group_of_blk2(fs, blk); in ext2fs_allocate_group_table() local 234 last_blk = ext2fs_group_last_block2(fs, gr); in ext2fs_allocate_group_table() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/ |
D | Session.c | 154 lowBits = (CONTEXT_SLOT)gr.contextCounter; in ContextIdSetOldest() 157 entry = gr.contextArray[i]; in ContextIdSetOldest() 206 if(gr.contextArray[i] <= MAX_LOADED_SESSIONS) in SessionStartup() 207 gr.contextArray[i] = 0; in SessionStartup() 217 gr.contextArray[i] = 0; in SessionStartup() 220 gr.contextCounter = MAX_LOADED_SESSIONS + 1; in SessionStartup() 255 || gr.contextArray[handle] == 0 in SessionIsLoaded() 256 || gr.contextArray[handle] > MAX_LOADED_SESSIONS) in SessionIsLoaded() 286 || gr.contextArray[handle] == 0 in SessionIsSaved() 287 || gr.contextArray[handle] <= MAX_LOADED_SESSIONS in SessionIsSaved() [all …]
|
/external/clang/test/Driver/ |
D | cl-fallback.c | 4 // RUN: %clang_cl --target=i686-pc-win32 /fallback /Dfoo=bar /Ubaz /Ifoo /O0 /Ox /GR /GR- /GS /GS- … 24 // CHECK: "/GR-" 41 // RUN: %clang_cl /fallback /GR- -### -- %s 2>&1 | FileCheck -check-prefix=GR %s 42 // GR: cl.exe 43 // GR: "/GR-" 74 // RUN: %clang_cl /fallback /c /GR /GR- -### -- %s 2>&1 | \ 79 // NO_RTTI: "/GR-"
|
/external/llvm-project/clang/test/Driver/ |
D | cl-fallback.c | 4 // RUN: %clang_cl --target=i686-pc-win32 /fallback /Dfoo=bar /Ubaz /Ifoo /O0 /Ox /GR /GR- /GS /GS- … 24 // CHECK: "/GR-" 42 // RUN: %clang_cl /fallback /GR- -### -- %s 2>&1 | FileCheck -check-prefix=GR %s 43 // GR: cl.exe 44 // GR: "/GR-" 81 // RUN: %clang_cl /fallback /c /GR /GR- -### -- %s 2>&1 | \ 86 // NO_RTTI: "/GR-"
|
/external/llvm-project/llvm/unittests/DebugInfo/GSYM/ |
D | GSYMTest.cpp | 1119 static void Compare(const GsymCreator &GC, const GsymReader &GR) { in Compare() argument 1123 auto DecodedFI = GR.getFunctionInfo(FI.Range.Start); in Compare() 1139 Expected<GsymReader> GR = GsymReader::copyBuffer(OutStrm.str()); in TestEncodeDecode() local 1140 ASSERT_TRUE(bool(GR)); in TestEncodeDecode() 1141 const Header &Hdr = GR->getHeader(); in TestEncodeDecode() 1148 Compare(GC, GR.get()); in TestEncodeDecode() 1255 static void VerifyFunctionInfo(const GsymReader &GR, uint64_t Addr, in VerifyFunctionInfo() argument 1257 auto ExpFI = GR.getFunctionInfo(Addr); in VerifyFunctionInfo() 1262 static void VerifyFunctionInfoError(const GsymReader &GR, uint64_t Addr, in VerifyFunctionInfoError() argument 1264 auto ExpFI = GR.getFunctionInfo(Addr); in VerifyFunctionInfoError() [all …]
|
/external/libffi/testsuite/libffi.call/ |
D | pr1172638.c | 24 POINT fp, RECT gr __UNUSED__) in pr_test() 47 RECT ar, br, dr, er, gr; in main() local 105 gr.left = 22; in main() 106 gr.right = 23; in main() 107 gr.top = 24; in main() 108 gr.bottom = 25; in main() 119 values[7] = &gr; in main()
|
/external/perfetto/src/profiling/common/ |
D | profiler_guardrails_unittest.cc | 45 ProfilerCpuGuardrails gr(f.ReleaseFD()); in TEST() local 50 EXPECT_TRUE(gr.IsOverCpuThreshold(gc)); in TEST() 65 ProfilerCpuGuardrails gr(f.ReleaseFD()); in TEST() local 70 EXPECT_FALSE(gr.IsOverCpuThreshold(gc)); in TEST() 94 ProfilerMemoryGuardrails gr(f.ReleaseFD()); in TEST() local 98 EXPECT_TRUE(gr.IsOverMemoryThreshold(gc)); in TEST() 122 ProfilerMemoryGuardrails gr(f.ReleaseFD()); in TEST() local 125 EXPECT_FALSE(gr.IsOverMemoryThreshold(gc)); in TEST()
|