Home
last modified time | relevance | path

Searched refs:gr (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_fps.c42 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 …]
Dhud_cpu.c231 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 …]
Dhud_cpufreq.c94 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 …]
Dhud_context.c301 hud_draw_graph_line_strip(struct hud_context *hud, const struct hud_graph *gr, in hud_draw_graph_line_strip() argument
304 if (gr->num_vertices <= 1) in hud_draw_graph_line_strip()
307 assert(gr->index <= gr->num_vertices); in hud_draw_graph_line_strip()
310 gr->vertices, gr->index, in hud_draw_graph_line_strip()
311 gr->color[0], gr->color[1], gr->color[2], 1, in hud_draw_graph_line_strip()
312 xoffset + (gr->pane->max_num_vertices - gr->index - 1) * 2 - 1, in hud_draw_graph_line_strip()
315 if (gr->num_vertices <= gr->index) in hud_draw_graph_line_strip()
319 gr->vertices + gr->index*2, in hud_draw_graph_line_strip()
320 gr->num_vertices - gr->index, in hud_draw_graph_line_strip()
321 gr->color[0], gr->color[1], gr->color[2], 1, in hud_draw_graph_line_strip()
[all …]
Dhud_diskstat.c121 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 …]
Dhud_nic.c175 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 …]
Dhud_driver_query.c294 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 …]
Dhud_sensors_temp.c161 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 …]
/third_party/musl/src/passwd/
Dgetgr_r.c4 #define FIX(x) (gr->gr_##x = gr->gr_##x-line+buf)
6 static int getgr_r(const char *name, gid_t gid, struct group *gr, char *buf, size_t size, struct gr… in getgr_r() argument
18 rv = __getgr_a(name, gid, gr, &line, &len, &mem, &nmem, res); in getgr_r()
25 gr->gr_mem = (void *)buf; in getgr_r()
31 gr->gr_mem[i] = mem[i]-line+buf; in getgr_r()
32 gr->gr_mem[i] = 0; in getgr_r()
41 int getgrnam_r(const char *name, struct group *gr, char *buf, size_t size, struct group **res) in getgrnam_r() argument
43 return getgr_r(name, 0, gr, buf, size, res); in getgrnam_r()
46 int getgrgid_r(gid_t gid, struct group *gr, char *buf, size_t size, struct group **res) in getgrgid_r() argument
48 return getgr_r(0, gid, gr, buf, size, res); in getgrgid_r()
Dputgrent.c5 int putgrent(const struct group *gr, FILE *f) in putgrent() argument
10 if ((r = fprintf(f, "%s:%s:%u:", gr->gr_name, gr->gr_passwd, gr->gr_gid))<0) goto done; in putgrent()
11 if (gr->gr_mem) for (i=0; gr->gr_mem[i]; i++) in putgrent()
12 if ((r = fprintf(f, "%s%s", i?",":"", gr->gr_mem[i]))<0) goto done; in putgrent()
Dgetgr_a.c20 int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem,… in __getgr_a() argument
35 while (!(rv = __getgrent_a(f, gr, buf, size, mem, nmem, res)) && *res) { in __getgr_a()
141 gr->gr_name = *buf; in __getgr_a()
142 gr->gr_passwd = gr->gr_name + groupbuf[GRNAMELEN]; in __getgr_a()
143 gr->gr_gid = groupbuf[GRGID]; in __getgr_a()
144 gr->gr_mem = *mem; in __getgr_a()
146 if (gr->gr_passwd[-1] in __getgr_a()
147 || gr->gr_passwd[groupbuf[GRPASSWDLEN]-1]) { in __getgr_a()
152 if (name && strcmp(name, gr->gr_name) in __getgr_a()
153 || !name && gid != gr->gr_gid) { in __getgr_a()
[all …]
Dgetgrent_a.c11 int __getgrent_a(FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, s… in __getgrent_a() argument
24 gr = 0; in __getgrent_a()
30 gr->gr_name = s++; in __getgrent_a()
33 *s++ = 0; gr->gr_passwd = s; in __getgrent_a()
36 *s++ = 0; gr->gr_gid = atou(&s); in __getgrent_a()
51 gr = 0; in __getgrent_a()
62 gr->gr_mem = *mem; in __getgrent_a()
65 *res = gr; in __getgrent_a()
Dgetgrouplist.c16 struct group gr; in getgrouplist() local
51 while (!(rv = __getgrent_a(f, &gr, &buf, &size, &mem, &nmem, &res)) && res) { in getgrouplist()
54 if (nscdbuf[i] == gr.gr_gid) nscdbuf[i] = gid; in getgrouplist()
56 for (i=0; gr.gr_mem[i] && strcmp(user, gr.gr_mem[i]); i++); in getgrouplist()
57 if (!gr.gr_mem[i]) continue; in getgrouplist()
58 if (++n <= nlim) *groups++ = gr.gr_gid; in getgrouplist()
Dgetgrent.c5 static struct group gr; variable
21 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); in getgrent()
29 __getgr_a(0, gid, &gr, &line, &size, &mem, &nmem, &res); in getgrgid()
37 __getgr_a(name, 0, &gr, &line, &size, &mem, &nmem, &res); in getgrnam()
/third_party/pulseaudio/src/tests/
Dusergroup-test.c35 static int load_reference_structs(struct group **gr, struct passwd **pw) { in load_reference_structs() argument
41 *gr = getgrent(); in load_reference_structs()
44 return (*gr && *pw) ? 0 : 1; in load_reference_structs()
121 struct group *gr; in START_TEST() local
129 gr = pa_getgrgid_malloc(reference_group->gr_gid); in START_TEST()
130 fail_if(compare_group(reference_group, gr)); in START_TEST()
131 pa_getgrgid_free(gr); in START_TEST()
134 gr = pa_getgrnam_malloc(reference_group->gr_name); in START_TEST()
135 fail_if(compare_group(reference_group, gr)); in START_TEST()
136 pa_getgrnam_free(gr); in START_TEST()
/third_party/ffmpeg/libavfilter/
Daf_stereotools.c178 double L = src[0], R = src[1], l, r, m, S, gl, gr, gd; in filter_frame() local
184 gr = 1. + FFMIN(0., balance_in); in filter_frame()
187 gd = gl - gr; in filter_frame()
189 gr = 1. - gd; in filter_frame()
193 gr = FFMAX(0.5, gr); in filter_frame()
194 gl = 1. / gr; in filter_frame()
197 gr = 1. / gl; in filter_frame()
202 R *= gr; in filter_frame()
303 gr = 1. + FFMIN(0., balance_out); in filter_frame()
306 gd = gl - gr; in filter_frame()
[all …]
/third_party/libffi/testsuite/libffi.call/
Dpr1172638.c24 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()
/third_party/toybox/toys/pending/
Dipcs.c154 struct group *gr; in shm_array() local
229 if ((gr = getgrgid(buf.shm_perm.cgid))) printf(" %-10s", gr->gr_name); in shm_array()
233 if ((gr = getgrgid(buf.shm_perm.gid))) printf(" %-10s\n", gr->gr_name); in shm_array()
256 struct group *gr; in sem_array() local
321 if ((gr = getgrgid(buf.sem_perm.cgid))) printf(" %-10s", gr->gr_name); in sem_array()
325 if ((gr = getgrgid(buf.sem_perm.gid))) printf(" %-10s\n", gr->gr_name); in sem_array()
343 struct group *gr; in msg_array() local
406 if ((gr = getgrgid(buf.msg_perm.cgid))) printf(" %-10s", gr->gr_name); in msg_array()
410 if ((gr = getgrgid(buf.msg_perm.gid))) printf(" %-10s\n", gr->gr_name); in msg_array()
/third_party/musl/libc-test/src/functionalext/supplement/passwd/
Dgetgrouplist.c33 struct group *gr; in getgrouplist_0100() local
56 gr = getgrgid(server_groups[i]); in getgrouplist_0100()
57 if (gr != NULL) { in getgrouplist_0100()
58 printf(" (%s)", gr->gr_name); in getgrouplist_0100()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind02.c47 struct group *gr; in setup() local
50 gr = SAFE_GETGRGID(pw->pw_gid); in setup()
53 pw->pw_name, gr->gr_name); in setup()
54 SAFE_SETEGID(gr->gr_gid); in setup()
/third_party/libwebsockets/lib/plat/unix/
Dunix-caps.c73 struct group gr; local
76 if (getgrnam_r(colon, &gr, strs, sizeof(strs), &g) || !g) {
120 struct group gr; local
123 if (!getgrnam_r(context->groupname, &gr, strs, sizeof(strs), &g) && g) {
170 struct group gr; local
173 if (getgrgid_r(context->gid, &gr, strs, sizeof(strs), &g) || !g) {
/third_party/flutter/skia/gm/
Dasyncrescaleandread.cpp107 auto* gr = surface->getCanvas()->getGrContext(); in do_read_and_scale_yuv() local
110 backendTextures[0] = gr->priv().createBackendTexture(&context.fYData, 1, in do_read_and_scale_yuv()
112 backendTextures[1] = gr->priv().createBackendTexture(&context.fUData, 1, in do_read_and_scale_yuv()
114 backendTextures[2] = gr->priv().createBackendTexture(&context.fVData, 1, in do_read_and_scale_yuv()
123 *cleanup = {[gr, backendTextures] { in do_read_and_scale_yuv()
126 gr->flush(flushInfo); in do_read_and_scale_yuv()
127 gr->deleteBackendTexture(backendTextures[0]); in do_read_and_scale_yuv()
128 gr->deleteBackendTexture(backendTextures[1]); in do_read_and_scale_yuv()
129 gr->deleteBackendTexture(backendTextures[2]); in do_read_and_scale_yuv()
132 return SkImage::MakeFromYUVATextures(gr, yuvCS, backendTextures, indices, {dstW, dstH}, in do_read_and_scale_yuv()
Dvideo_decoder.cpp37 GrContext* gr = canvas->getGrContext(); in onDraw() local
38 if (!gr) { in onDraw()
42 fDecoder.setGrContext(gr); // gr can change over time in viewer in onDraw()
/third_party/flutter/skia/third_party/externals/icu/source/data/unit/
Dse.txt33 dnam{"grádat"}
34 one{"{0} grádat"}
35 other{"{0} grádat"}
36 two{"{0} grádat"}
280 dnam{"grádat Celsius"}
281 one{"{0} grádat Celsius"}
282 other{"{0} grádat Celsius"}
283 two{"{0} grádat Celsius"}
286 dnam{"grádat Fahrenheit"}
287 one{"{0} grádat Fahrenheit"}
[all …]
Dfr_HT.txt25 dnam{"gr."}
42 one{"{0}gr"}
43 other{"{0}gr"}

12345678910>>...13