Home
last modified time | relevance | path

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

12345678910>>...16

/third_party/weston/libweston/renderer-gl/
Degl-glue.c246 egl_config_pixel_format_matches(struct gl_renderer *gr, in egl_config_pixel_format_matches() argument
259 if (gr->platform == EGL_PLATFORM_GBM_KHR) { in egl_config_pixel_format_matches()
260 if (!eglGetConfigAttrib(gr->egl_display, config, in egl_config_pixel_format_matches()
268 if (!eglGetConfigAttrib(gr->egl_display, config, in egl_config_pixel_format_matches()
279 egl_choose_config(struct gl_renderer *gr, in egl_choose_config() argument
292 if (!eglGetConfigs(gr->egl_display, NULL, 0, &count) || count < 1) { in egl_choose_config()
300 if (!eglChooseConfig(gr->egl_display, attribs, configs, in egl_choose_config()
311 if (egl_config_pixel_format_matches(gr, configs[j], in egl_choose_config()
332 egl_config_is_compatible(struct gl_renderer *gr, in egl_config_is_compatible() argument
344 if (!eglGetConfigAttrib(gr->egl_display, config, in egl_config_is_compatible()
[all …]
Dgl-renderer.c292 create_render_sync(struct gl_renderer *gr) in create_render_sync() argument
296 if (!gr->has_native_fence_sync) in create_render_sync()
299 return gr->create_sync(gr->egl_display, EGL_SYNC_NATIVE_FENCE_ANDROID, in create_render_sync()
304 timeline_submit_render_sync(struct gl_renderer *gr, in timeline_submit_render_sync() argument
318 !gr->has_native_fence_sync || in timeline_submit_render_sync()
325 fd = gr->dup_native_fence_fd(gr->egl_display, sync); in timeline_submit_render_sync()
347 egl_image_create(struct gl_renderer *gr, EGLenum target, in egl_image_create() argument
353 img->renderer = gr; in egl_image_create()
355 img->image = gr->create_image(gr->egl_display, EGL_NO_CONTEXT, in egl_image_create()
377 struct gl_renderer *gr = image->renderer; in egl_image_unref() local
[all …]
/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
50 while (!(rv = __getgrent_a(f, &gr, &buf, &size, &mem, &nmem, &res)) && res) { in getgrouplist()
53 if (nscdbuf[i] == gr.gr_gid) nscdbuf[i] = gid; in getgrouplist()
55 for (i=0; gr.gr_mem[i] && strcmp(user, gr.gr_mem[i]); i++); in getgrouplist()
56 if (!gr.gr_mem[i]) continue; in getgrouplist()
57 if (++n <= nlim) *groups++ = gr.gr_gid; in getgrouplist()
/third_party/e2fsprogs/lib/ext2fs/
Dalloc_tables.c158 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 …]
/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/boost/libs/geometry/test/algorithms/
Dsimplify_countries.cpp126 std::string gr = read_from_file<mp>(base_folder + "gr.wkt"); in test_all() local
136 test_one<mp>("gr", gr, 100, 0.999905, 0.999758, 68, 0, 2520); in test_all()
137 test_one<mp>("gr", gr, 200, 0.999773, 0.998865, 68, 0, 2019); in test_all()
138 test_one<mp>("gr", gr, 500, 0.999026, 0.995931, 68, 0, 1468); in test_all()
139 test_one<mp>("gr", gr, 1000, 0.997782, 0.991475, 68, 0, 1132); in test_all()
140 test_one<mp>("gr", gr, 2000, 0.994448, 0.9793, 65, 0, 854); in test_all()
141 test_one<mp>("gr", gr, 5000, 0.979743, 0.910266, 50, 0, 471); in test_all()
142 test_one<mp>("gr", gr, 10000, 0.968349, 0.778863, 28, 0, 245); in test_all()
143 test_one<mp>("gr", gr, 20000, 0.961943, 0.607009, 10, 0, 97); // Many islands disappear in test_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/boost/libs/graph/test/
Dreverse_graph_cc.cpp37 Graph gr(g); in main() local
38 get_property(gr, graph_name_t()); in main()
58 Graph gr(g); in main() local
59 get_property(gr, graph_name_t()); in main()
60 set_property(gr, graph_name_t(), "foo"); in main()
/third_party/boost/libs/geometry/test/algorithms/buffer/
Dbuffer_countries.cpp151 std::string gr = read_from_file<mpt>(base_folder + "gr.wkt"); in test_all() local
157 test_one<mpt, pt>("gr10", gr, 336279815682, 10); in test_all()
158 test_one<mpt, pt>("gr20", gr, 442317491749, 20); in test_all()
159 test_one<mpt, pt>("gr50", gr, 680442278645, 50); in test_all()
160 test_one<mpt, pt>("gr100", gr, 910474621215, 100); in test_all()
162 test_one<mpt, pt>("gr10", gr, 139313156846, -10); in test_all()
163 test_one<mpt, pt>("gr20", gr, 96991350242, -20); in test_all()
164 test_one<mpt, pt>("gr50", gr, 31391928002, -50); in test_all()
165 test_one<mpt, pt>("gr100", gr, 2035400805, -100); in test_all()
/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()

12345678910>>...16