Home
last modified time | relevance | path

Searched refs:gr (Results 1 - 25 of 72) sorted by relevance

123

/third_party/mesa3d/src/gallium/auxiliary/hud/
H A 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 in hud_fps_graph_install()
105 struct hud_graph *gr = CALLOC_STRUCT(hud_graph); hud_frametime_graph_install() local
[all...]
H A 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 in hud_cpu_graph_install()
326 query_api_thread_busy_status(struct hud_graph *gr, struct pipe_context *pipe) query_api_thread_busy_status() argument
370 struct hud_graph *gr; hud_thread_busy_install() local
402 get_counter(struct hud_graph *gr, enum hud_counter counter) get_counter() argument
423 query_thread_counter(struct hud_graph *gr, struct pipe_context *pipe) query_thread_counter() argument
446 struct hud_graph *gr = CALLOC_STRUCT(hud_graph); hud_thread_counter_install() local
[all...]
H A 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 in hud_cpufreq_graph_install()
[all...]
H A 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 in hud_draw_graph_line_strip()
329 struct hud_graph *gr; hud_pane_accumulate_vertices() local
404 struct hud_graph *gr; hud_pane_accumulate_vertices_simple() local
424 struct hud_graph *gr; hud_pane_draw_colored_objects() local
629 struct hud_graph *gr; hud_start_queries() local
647 struct hud_graph *gr, *next; hud_stop_queries() local
843 hud_pane_update_dyn_ceiling(struct hud_graph *gr, struct hud_pane *pane) hud_pane_update_dyn_ceiling() argument
920 hud_pane_add_graph(struct hud_pane *pane, struct hud_graph *gr) hud_pane_add_graph() argument
954 hud_graph_add_value(struct hud_graph *gr, double value) hud_graph_add_value() argument
1038 hud_graph_set_dump_file(struct hud_graph *gr) hud_graph_set_dump_file() argument
1504 struct hud_graph *gr; hud_parse_env_var() local
[all...]
H A 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 in hud_diskstat_graph_install()
[all...]
H A 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 in hud_nic_graph_install()
[all...]
H A 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 in hud_sensors_temp_graph_install()
[all...]
H A 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 in hud_pipe_query_install()
[all...]
/third_party/lame/libmp3lame/
H A Dencoder.c160 int gr, ch; in updateStats() local
173 for (gr = 0; gr < cfg->mode_gr; ++gr) { in updateStats()
175 int bt = gfc->l3_side.tt[gr][ch].block_type; in updateStats()
176 if (gfc->l3_side.tt[gr][ch].mixed_block_flag) in updateStats()
194 int ch, gr; in lame_encode_frame_init() local
219 for (gr = 0; gr < cfg->mode_gr; gr in lame_encode_frame_init()
327 int ch, gr; lame_encode_mp3_frame() local
[all...]
H A Dvbrquantize.c592 ol_sf -= ifqstep*scalefac[gr][ch].s[sfb][i];
684 ol_sf -= ifqstep*scalefac[gr][ch].l[sfb];
1232 reduce_bit_usage(lame_internal_flags * gfc, int gr, int ch in reduce_bit_usage() argument
1239 gr_info *const cod_info = &gfc->l3_side.tt[gr][ch]; in reduce_bit_usage()
1242 best_scalefac_store(gfc, gr, ch, &gfc->l3_side); in reduce_bit_usage()
1271 int gr, ch; in VBR_encode_frame() local
1276 for (gr = 0; gr < ngr; ++gr) { in VBR_encode_frame()
1277 max_nbits_gr[gr] in VBR_encode_frame()
[all...]
H A Dquantize.c49 ms_convert(III_side_info_t * l3_side, int gr) in ms_convert() argument
54 l = l3_side->tt[gr][0].xr[i]; in ms_convert()
55 r = l3_side->tt[gr][1].xr[i]; in ms_convert()
56 l3_side->tt[gr][0].xr[i] = (l + r) * (FLOAT) (SQRT2 * 0.5); in ms_convert()
57 l3_side->tt[gr][1].xr[i] = (l - r) * (FLOAT) (SQRT2 * 0.5); in ms_convert()
1214 iteration_finish_one(lame_internal_flags * gfc, int gr, int ch) in iteration_finish_one() argument
1218 gr_info *const cod_info = &l3_side->tt[gr][ch]; in iteration_finish_one()
1222 best_scalefac_store(gfc, gr, ch, l3_side); in iteration_finish_one()
1400 int gr, ch; in VBR_old_prepare() local
1409 for (gr in VBR_old_prepare()
1458 int gr, ch, sfb; bitpressure_strategy() local
1505 int ch, gr, analog_silence; VBR_old_iteration_loop() local
1591 int gr, ch; VBR_new_prepare() local
1657 int ch, gr, analog_silence, pad; VBR_new_iteration_loop() local
1778 int gr, ch, totbits, mean_bits; calc_target_bits() local
1929 int ch, gr, ath_over; ABR_iteration_loop() local
2018 int gr, ch; CBR_iteration_loop() local
[all...]
H A Dquantize_pvt.c430 on_pe(lame_internal_flags * gfc, const FLOAT pe[][2], int targ_bits[2], int mean_bits, int gr, int cbr) in on_pe() argument
450 add_bits[ch] = targ_bits[ch] * pe[gr][ch] / 700.0 - targ_bits[ch]; in on_pe()
505 /* float fac = .50*(.5-ms_ener_ratio[gr])/.5; */ in reduce_side()
937 gr_info * const cod_info, const III_psy_ratio * const ratio, const int gr, const int ch) in set_pinfo()
965 gfc->pinfo->en[gr][ch][sfb] = en1 * en0; in set_pinfo()
966 gfc->pinfo->xfsf[gr][ch][sfb] = en1 * l3_xmin[sfb] * xfsf[sfb] / bw; in set_pinfo()
973 gfc->pinfo->thr[gr][ch][sfb] = en1 * Max(en0 * ratio->thm.l[sfb], gfc->ATH->l[sfb]); in set_pinfo()
976 gfc->pinfo->LAMEsfb[gr][ch][sfb] = 0; in set_pinfo()
978 gfc->pinfo->LAMEsfb[gr][ch][sfb] = -ifqstep * pretab[sfb]; in set_pinfo()
982 gfc->pinfo->LAMEsfb[gr][c in set_pinfo()
936 set_pinfo(lame_internal_flags const *gfc, gr_info * const cod_info, const III_psy_ratio * const ratio, const int gr, const int ch) set_pinfo() argument
1050 int gr; set_frame_pinfo() local
[all...]
/third_party/lame/frontend/
H A Dgtkanal.c91 GtkWidget *enerbox[2]; /* spectrum, gr=0,1 plotted here */
92 GtkWidget *mdctbox[2]; /* mdct coefficients gr=0,1 plotted here */
93 GtkWidget *sfbbox[2]; /* scalefactors gr=0,1 plotted here */
249 int i, j, n, ch, gr; in plot_frame() local
366 for (gr = 0; gr < mode_gr; gr++) in plot_frame()
368 blocktype[gr][ch] = pplot1->mpg123blocktype[gr][ch]; in plot_frame()
370 blocktype[gr][c in plot_frame()
928 int gr, ch; frameadv1() local
[all...]
/third_party/musl/src/passwd/
H A 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 group **res) 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, cha argument
[all...]
H A 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()
H A Dgetgr_a.c20 int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res) 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 in __getgr_a()
[all...]
H A Dgetgrent_a.c11 int __getgrent_a(FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, struct group **res) 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()
H 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()
H A 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/
H A 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()
[all...]
/third_party/lame/mpglib/
H A Dlayer3.c372 int ch, gr; in III_get_side_info_1() local
382 mp->sideinfo.ch[ch].gr[0].scfsi = -1; in III_get_side_info_1()
383 mp->sideinfo.ch[ch].gr[1].scfsi = getbits_fast(mp, 4); in III_get_side_info_1()
386 for (gr = 0; gr < 2; gr++) { in III_get_side_info_1()
388 struct gr_info_s *gr_infos = &(mp->sideinfo.ch[ch].gr[gr]); in III_get_side_info_1()
400 mp->pinfo->qss[gr][ch] = qss; in III_get_side_info_1()
424 mp->pinfo->sub_gain[gr][c in III_get_side_info_1()
1720 int ch, gr, databits; decode_layer3_sideinfo() local
1759 int gr, ch, ss, clip = 0; decode_layer3_frame() local
[all...]
/third_party/ffmpeg/libavfilter/
H A Daf_stereotools.c177 double L = src[0], R = src[1], l, r, m, S, gl, gr, gd; in filter_frame() local
183 gr = 1. + FFMIN(0., balance_in); in filter_frame()
186 gd = gl - gr; in filter_frame()
188 gr = 1. - gd; in filter_frame()
192 gr = FFMAX(0.5, gr); in filter_frame()
193 gl = 1. / gr; in filter_frame()
196 gr = 1. / gl; in filter_frame()
201 R *= gr; in filter_frame()
302 gr in filter_frame()
[all...]
/third_party/toybox/toys/pending/
H A 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 in sem_array()
343 struct group *gr; msg_array() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/bind/
H A 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/musl/libc-test/src/functionalext/supplement/passwd/
H A 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()

Completed in 16 milliseconds

123