Home
last modified time | relevance | path

Searched refs:cg (Results 1 – 25 of 76) sorted by relevance

1234

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
Dlto.h219 const char *path, lto_code_gen_t cg);
379 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
390 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
399 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
408 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
416 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
425 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
433 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
444 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
454 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/third_party/ltp/include/
Dtst_cgroup.h157 tst_cg_group_name(const struct tst_cg_group *const cg)
161 int tst_cg_group_unified_dir_fd(const struct tst_cg_group *const cg)
166 tst_cg_group_rm(struct tst_cg_group *const cg)
169 #define TST_CG_VER(cg, ctrl_name) \ argument
170 tst_cg_ver(__FILE__, __LINE__, (cg), (ctrl_name))
173 const struct tst_cg_group *const cg,
177 #define TST_CG_VER_IS_V1(cg, ctrl_name) \ argument
178 (TST_CG_VER((cg), (ctrl_name)) == TST_CG_V1)
180 #define SAFE_CG_HAS(cg, file_name) \ argument
181 safe_cg_has(__FILE__, __LINE__, (cg), (file_name))
[all …]
/third_party/ltp/scripts/coccinelle/
Dkselftest-cgroup-to-ltp.cocci9 expression cg, fname, data;
12 - if (cg_write(cg, fname, data)) {
15 + SAFE_CG_PRINT(cg, fname, data);
18 expression cg;
23 - SAFE_CG_PRINT(cg, "cgroup.subtree_control", "+memory");
24 + if (TST_CG_VER(cg, "memory") != TST_CG_V1)
25 + SAFE_CG_PRINT(cg, "cgroup.subtree_control", "+memory");
28 expression cg, fname, needle;
31 - cg_read_strstr(cg, fname, needle)
32 + !SAFE_CG_OCCURSIN(cg, fname, needle)
[all …]
Dcgroup-ver.cocci4 expression cg, ctrl;
7 - TST_CG_VER(cg, ctrl) == TST_CG_V1
8 + TST_CG_VER_IS_V1(cg, ctrl)
11 expression cg, ctrl;
14 - TST_CG_VER(cg, ctrl) != TST_CG_V1
15 + !TST_CG_VER_IS_V1(cg, ctrl)
18 expression cg, ctrl;
21 - TST_CG_VER(cg, ctrl) == TST_CG_V2
22 + !TST_CG_VER_IS_V1(cg, ctrl)
25 expression cg, ctrl;
[all …]
/third_party/ltp/lib/
Dtst_cgroup.c319 #define for_each_dir(cg, ctrl, t) \ argument
320 for ((t) = (ctrl) ? (cg)->dirs_by_ctrl + (ctrl) : (cg)->dirs; \
322 (t) = (ctrl) ? (cg)->dirs + ROOTS_MAX : (t) + 1)
1054 struct tst_cg_group *const cg, in cgroup_group_add_dir() argument
1061 cg->dirs_by_ctrl[0] = dir; in cgroup_group_add_dir()
1067 cg->dirs_by_ctrl[ctrl->ctrl_indx] = dir; in cgroup_group_add_dir()
1078 for (i = 0; cg->dirs[i]; i++) in cgroup_group_add_dir()
1080 cg->dirs[i] = dir; in cgroup_group_add_dir()
1087 struct tst_cg_group *cg; in tst_cg_group_mk() local
1093 cg = SAFE_MALLOC(sizeof(*cg)); in tst_cg_group_mk()
[all …]
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/
Dcfs_bandwidth01.c42 static void set_cpu_quota(const struct tst_cg_group *const cg, in set_cpu_quota() argument
48 if (!TST_CG_VER_IS_V1(cg, "cpu")) { in set_cpu_quota()
49 SAFE_CG_PRINTF(cg, "cpu.max", in set_cpu_quota()
52 SAFE_CG_PRINTF(cg, "cpu.cfs_period_us", in set_cpu_quota()
54 SAFE_CG_PRINTF(cg, "cpu.max", in set_cpu_quota()
59 tst_cg_group_name(cg), quota_us, period_us); in set_cpu_quota()
62 static void mk_cpu_cgroup(struct tst_cg_group **cg, in mk_cpu_cgroup() argument
68 *cg = tst_cg_group_mk(cg_parent, "%s", cg_child_name); in mk_cpu_cgroup()
70 set_cpu_quota(*cg, quota_percent); in mk_cpu_cgroup()
90 static void fork_busy_procs_in_cgroup(const struct tst_cg_group *const cg) in fork_busy_procs_in_cgroup() argument
[all …]
/third_party/skia/gm/
Drasterhandleallocator.cpp97 CGContextRef cg = (CGContextRef)fCanvas->accessTopRasterHandle(); in drawRect() local
104 CGContextSetFillColorWithColor(cg, color); in drawRect()
105 CGContextFillRect(cg, CGRectMake(r.x(), r.y(), r.width(), r.height())); in drawRect()
109 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { in matrix_to_transform() argument
112 matrix.postTranslate(0, SkIntToScalar(CGBitmapContextGetHeight(cg))); in matrix_to_transform()
129 CGContextRef cg = SkCreateCGContext(SkPixmap(info, nullptr, 0)); in allocHandle() local
130 if (!cg) { in allocHandle()
134 rec->fReleaseCtx = cg; in allocHandle()
135 rec->fPixels = CGBitmapContextGetData(cg); in allocHandle()
136 rec->fRowBytes = CGBitmapContextGetBytesPerRow(cg); in allocHandle()
[all …]
/third_party/ffmpeg/libavcodec/
Dvp5.c140 int node, cg, ctx; in vp5_parse_coeff_models() local
157 for (cg=0; cg<6; cg++) in vp5_parse_coeff_models()
159 if (vp56_rac_get_prob_branchy(c, vp5_ract_pct[ct][pt][cg][node])) { in vp5_parse_coeff_models()
161 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp5_parse_coeff_models()
163 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp5_parse_coeff_models()
175 for (cg=0; cg<3; cg++) in vp5_parse_coeff_models()
178 …t[pt][ct][cg][ctx][node] = av_clip(((model->coeff_ract[pt][ct][cg][node] * vp5_ract_lc[ct][cg][nod… in vp5_parse_coeff_models()
189 int b, i, cg, idx, ctx, ctx_last; in vp5_parse_coeff() local
249 cg = vp5_coeff_groups[coeff_idx]; in vp5_parse_coeff()
251 model1 = model->coeff_ract[pt][ct][cg]; in vp5_parse_coeff()
[all …]
Dvp6.c290 int node, cg, ctx, pos; in vp6_parse_coeff_models() local
312 for (cg=0; cg<2; cg++) in vp6_parse_coeff_models()
314 if (vp56_rac_get_prob_branchy(c, vp6_runv_pct[cg][node])) in vp6_parse_coeff_models()
315 model->coeff_runv[cg][node] = vp56_rac_gets_nn(c, 7); in vp6_parse_coeff_models()
319 for (cg=0; cg<6; cg++) in vp6_parse_coeff_models()
321 if (vp56_rac_get_prob_branchy(c, vp6_ract_pct[ct][pt][cg][node])) { in vp6_parse_coeff_models()
323 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp6_parse_coeff_models()
325 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp6_parse_coeff_models()
337 for (cg = 0; cg < 6; cg++) in vp6_parse_coeff_models()
338 if (vp6_build_huff_tree(s, model->coeff_ract[pt][ct][cg], in vp6_parse_coeff_models()
[all …]
Drasc.c616 int cg = s->cursor[3 * s->cursor_w * (s->cursor_h - i - 1) + 3 * j + 1]; in draw_cursor() local
622 if (cr == s->cursor[0] && cg == s->cursor[1] && cb == s->cursor[2]) in draw_cursor()
631 dist = FFABS(cr - pr) + FFABS(cg - pg) + FFABS(cb - pb); in draw_cursor()
644 int cg = s->cursor[3 * s->cursor_w * (s->cursor_h - i - 1) + 3 * j + 1]; in draw_cursor() local
647 if (cr == s->cursor[0] && cg == s->cursor[1] && cb == s->cursor[2]) in draw_cursor()
650 cr >>= 3; cg >>=3; cb >>= 3; in draw_cursor()
652 AV_WL16(dst, cr | cg << 5 | cb << 10); in draw_cursor()
659 int cg = s->cursor[3 * s->cursor_w * (s->cursor_h - i - 1) + 3 * j + 1]; in draw_cursor() local
662 if (cr == s->cursor[0] && cg == s->cursor[1] && cb == s->cursor[2]) in draw_cursor()
667 dst[1] = cg; in draw_cursor()
Dtexturedsp.c358 int cg = (g - 128) / s; in ycocg2rgba() local
360 src[0] = av_clip_uint8(y + co - cg); in ycocg2rgba()
361 src[1] = av_clip_uint8(y + cg); in ycocg2rgba()
362 src[2] = av_clip_uint8(y - co - cg); in ycocg2rgba()
/third_party/skia/src/utils/mac/
DSkCreateCGImageRef.cpp136 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap() argument
142 CGContextSaveGState(cg); in SkCGDrawBitmap()
143 CGContextTranslateCTM(cg, x, r.size.height + y); in SkCGDrawBitmap()
144 CGContextScaleCTM(cg, 1, -1); in SkCGDrawBitmap()
146 CGContextDrawImage(cg, r, img.get()); in SkCGDrawBitmap()
148 CGContextRestoreGState(cg); in SkCGDrawBitmap()
172 CGContextRef cg = CGBitmapContextCreate(pmap.writable_addr(), pmap.width(), pmap.height(), in SkCreateCGContext() local
174 return cg; in SkCreateCGContext()
195 SkUniqueCFRef<CGContextRef> cg(CGBitmapContextCreate( in SkCopyPixelsFromCGImage() local
198 if (!cg) { in SkCopyPixelsFromCGImage()
[all …]
/third_party/ffmpeg/libavfilter/
Dcolorspace.c129 double cr = av_q2d(coeffs->cr), cg = av_q2d(coeffs->cg), cb = av_q2d(coeffs->cb); in ff_fill_rgb2yuv_table() local
132 if (cr == 0.25 && cg == 0.5 && cb == 0.25) { in ff_fill_rgb2yuv_table()
135 } else if (cr == 1 && cg == 1 && cb == 1) { in ff_fill_rgb2yuv_table()
141 rgb2yuv[0][1] = cg; in ff_fill_rgb2yuv_table()
146 rgb2yuv[1][1] = bscale * cg; in ff_fill_rgb2yuv_table()
149 rgb2yuv[2][1] = rscale * cg; in ff_fill_rgb2yuv_table()
Dvf_vibrance.c90 const float cg = 1.f + gintensity * (1.f - sgintensity * color_saturation); in vibrance_slice8() local
94 g = lerpf(luma, g, cg); in vibrance_slice8()
149 const float cg = 1.f + gintensity * (1.f - sgintensity * color_saturation); in vibrance_slice16() local
153 g = lerpf(luma, g, cg); in vibrance_slice16()
206 const float cg = 1.f + gintensity * (1.f - sgintensity * color_saturation); in vibrance_slice8p() local
210 g = lerpf(luma, g, cg); in vibrance_slice8p()
263 const float cg = 1.f + gintensity * (1.f - sgintensity * color_saturation); in vibrance_slice16p() local
267 g = lerpf(luma, g, cg); in vibrance_slice16p()
/third_party/ltp/testcases/kernel/controllers/memcg/
Dmemcontrol04.c87 static void alloc_anon_in_child(const struct tst_cg_group *const cg, in alloc_anon_in_child() argument
97 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_anon_in_child()
100 getpid(), tst_cg_group_name(cg), size); in alloc_anon_in_child()
106 static void alloc_pagecache_in_child(const struct tst_cg_group *const cg, in alloc_pagecache_in_child() argument
116 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_pagecache_in_child()
119 getpid(), tst_cg_group_name(cg), size); in alloc_pagecache_in_child()
Dmemcontrol03.c98 static void alloc_anon_in_child(const struct tst_cg_group *const cg, in alloc_anon_in_child() argument
105 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_anon_in_child()
108 getpid(), tst_cg_group_name(cg), size); in alloc_anon_in_child()
132 static void alloc_pagecache_in_child(const struct tst_cg_group *const cg, in alloc_pagecache_in_child() argument
142 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in alloc_pagecache_in_child()
145 getpid(), tst_cg_group_name(cg), size); in alloc_pagecache_in_child()
/third_party/skia/src/core/
DSkTraceEventCommon.h68 #define TRACE_EVENT0(cg, n) TRACE_EMPTY argument
69 #define TRACE_EVENT0_ALWAYS(cg, n) TRACE_EMPTY argument
70 #define TRACE_EVENT1(cg, n, a1n, a1v) TRACE_EMPTY argument
71 #define TRACE_EVENT2(cg, n, a1n, a1v, a2n, a2v) TRACE_EMPTY argument
72 #define TRACE_EVENT_INSTANT0(cg, n, scope) TRACE_EMPTY argument
73 #define TRACE_EVENT_INSTANT1(cg, n, scope, a1n, a1v) TRACE_EMPTY argument
74 #define TRACE_EVENT_INSTANT2(cg, n, scope, a1n, a1v, a2n, a2v) TRACE_EMPTY argument
75 #define TRACE_COUNTER1(cg, n, value) TRACE_EMPTY argument
76 #define TRACE_COUNTER2(cg, n, v1n, v1v, v2n, v2v) TRACE_EMPTY argument
/third_party/mesa3d/src/nouveau/codegen/lib/
Dgk104.asm99 $p2 suldgb b128 $r0q cg zero u8 g[$r4d] $r2 $p0
106 $p2 suldgb b128 $r0q cg zero u8 g[$r4d] $r2 $p0
122 $p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
138 $p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
149 $p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
160 $p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
171 $p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
180 $p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
189 $p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
208 $p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
[all …]
/third_party/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_core03.c50 static int cg_run_nowait(const struct tst_cg_group *const cg) in cg_run_nowait() argument
56 SAFE_CG_PRINTF(cg, "cgroup.procs", "%d", getpid()); in cg_run_nowait()
65 static int cg_count_procs(const struct tst_cg_group *cg) in cg_count_procs() argument
71 SAFE_CG_READ(cg, "cgroup.procs", buf, BUF_LEN); in cg_count_procs()
/third_party/cups-filters/cupsfilters/
Dimage-colorspace.c338 int cr, cg, cb; /* Calibrated RGB values */ in cupsImageCMYKToRGB() local
353 cg = cupsImageMatrix[1][0][c] + in cupsImageCMYKToRGB()
367 if (cg < 0) in cupsImageCMYKToRGB()
369 else if (cg > 255) in cupsImageCMYKToRGB()
372 *out++ = 255 - cupsImageDensity[cg]; in cupsImageCMYKToRGB()
787 int cr, cg, cb; /* Calibrated RGB values */ in cupsImageRGBToRGB() local
805 cg = cupsImageMatrix[1][0][c] + in cupsImageRGBToRGB()
819 if (cg < 0) in cupsImageRGBToRGB()
821 else if (cg > 255) in cupsImageRGBToRGB()
824 *out++ = 255 - cupsImageDensity[cg]; in cupsImageRGBToRGB()
/third_party/skia/src/sksl/
DSkSLCompiler.cpp611 SPIRVCodeGenerator cg(fContext.get(), &program, &buffer); in toSPIRV() local
612 bool result = cg.generateCode(); in toSPIRV()
645 SPIRVCodeGenerator cg(fContext.get(), &program, &out); in toSPIRV() local
646 bool result = cg.generateCode(); in toSPIRV()
664 GLSLCodeGenerator cg(fContext.get(), &program, &out); in toGLSL() local
665 bool result = cg.generateCode(); in toGLSL()
690 MetalCodeGenerator cg(fContext.get(), &program, &out); in toMetal() local
691 bool result = cg.generateCode(); in toMetal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DCallGraphSCCPass.h93 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DCloning.h175 explicit InlineFunctionInfo(CallGraph *cg = nullptr,
181 : CG(cg), GetAssumptionCache(GetAssumptionCache), PSI(PSI), in CG() argument
/third_party/typescript/tests/baselines/reference/
DhugeDeclarationOutputGetsTruncatedWithError.types6 …" | "bw" | "bx" | "by" | "bz" | "ca" | "cb" | "cc" | "cd" | "ce" | "cf" | "cg" | "ch" | "ci" | "cj…
9cg: "aa.cg"; ch: "aa.ch"; ci: "aa.ci"; cj: "aa.cj"; ck: "aa.ck"; cl: "aa.cl"; cm: "aa.cm"; cn: "aa…
10cg: "aa.cg"; ch: "aa.ch"; ci: "aa.ci"; cj: "aa.cj"; ck: "aa.ck"; cl: "aa.cl"; cm: "aa.cm"; cn: "aa…
DhugeDeclarationOutputGTruncatedWithError.ts.types6 …" | "bw" | "bx" | "by" | "bz" | "ca" | "cb" | "cc" | "cd" | "ce" | "cf" | "cg" | "ch" | "ci" | "cj…
9cg: "aa.cg"; ch: "aa.ch"; ci: "aa.ci"; cj: "aa.cj"; ck: "aa.ck"; cl: "aa.cl"; cm: "aa.cm"; cn: "aa…
10cg: "aa.cg"; ch: "aa.ch"; ci: "aa.ci"; cj: "aa.cj"; ck: "aa.ck"; cl: "aa.cl"; cm: "aa.cm"; cn: "aa…

1234