/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/ |
D | lto.h | 219 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/ |
D | tst_cgroup.h | 137 tst_cgroup_group_name(const struct tst_cgroup_group *const cg) 142 tst_cgroup_group_rm(struct tst_cgroup_group *const cg) 145 #define TST_CGROUP_VER(cg, ctrl_name) \ argument 146 tst_cgroup_ver(__FILE__, __LINE__, (cg), (ctrl_name)) 149 const struct tst_cgroup_group *const cg, 153 #define TST_CGROUP_VER_IS_V1(cg, ctrl_name) \ argument 154 (TST_CGROUP_VER((cg), (ctrl_name)) == TST_CGROUP_V1) 156 #define SAFE_CGROUP_HAS(cg, file_name) \ argument 157 safe_cgroup_has(__FILE__, __LINE__, (cg), (file_name)) 160 const struct tst_cgroup_group *const cg, [all …]
|
/third_party/ltp/scripts/coccinelle/ |
D | kselftest-cgroup-to-ltp.cocci | 9 expression cg, fname, data; 12 - if (cg_write(cg, fname, data)) { 15 + SAFE_CGROUP_PRINT(cg, fname, data); 18 expression cg; 23 - SAFE_CGROUP_PRINT(cg, "cgroup.subtree_control", "+memory"); 24 + if (TST_CGROUP_VER(cg, "memory") != TST_CGROUP_V1) 25 + SAFE_CGROUP_PRINT(cg, "cgroup.subtree_control", "+memory"); 28 expression cg, fname, needle; 31 - cg_read_strstr(cg, fname, needle) 32 + !SAFE_CGROUP_OCCURSIN(cg, fname, needle) [all …]
|
D | cgroup-ver.cocci | 4 expression cg, ctrl; 7 - TST_CGROUP_VER(cg, ctrl) == TST_CGROUP_V1 8 + TST_CGROUP_VER_IS_V1(cg, ctrl) 11 expression cg, ctrl; 14 - TST_CGROUP_VER(cg, ctrl) != TST_CGROUP_V1 15 + !TST_CGROUP_VER_IS_V1(cg, ctrl) 18 expression cg, ctrl; 21 - TST_CGROUP_VER(cg, ctrl) == TST_CGROUP_V2 22 + !TST_CGROUP_VER_IS_V1(cg, ctrl) 25 expression cg, ctrl; [all …]
|
/third_party/ltp/testcases/kernel/mem/oom/ |
D | oom05.c | 39 static const struct tst_cgroup_group *cg; variable 56 SAFE_CGROUP_HAS(cg, "cpuset.memory_migrate")) { in verify_oom() 57 SAFE_CGROUP_PRINT(cg, "cpuset.memory_migrate", "1"); in verify_oom() 63 if (SAFE_CGROUP_HAS(cg, "memory.swap.max")) { in verify_oom() 66 if (!TST_CGROUP_VER_IS_V1(cg, "memory")) in verify_oom() 67 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", MB); in verify_oom() 69 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom() 75 if (TST_CGROUP_VER_IS_V1(cg, "memory")) in verify_oom() 76 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", ~0UL); in verify_oom() 78 SAFE_CGROUP_PRINT(cg, "memory.swap.max", "max"); in verify_oom() [all …]
|
D | oom03.c | 39 static const struct tst_cgroup_group *cg; variable 48 if (SAFE_CGROUP_HAS(cg, "memory.swap.max")) { in verify_oom() 60 if (!TST_CGROUP_VER_IS_V1(cg, "memory")) in verify_oom() 61 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", MB); in verify_oom() 63 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom() 67 if (TST_CGROUP_VER_IS_V1(cg, "memory")) in verify_oom() 68 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", ~0UL); in verify_oom() 70 SAFE_CGROUP_PRINT(cg, "memory.swap.max", "max"); in verify_oom() 88 cg = tst_cgroup_get_test_group(); in setup() 89 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup() [all …]
|
D | oom04.c | 39 static const struct tst_cgroup_group *cg; variable 50 SAFE_CGROUP_HAS(cg, "cpuset.memory_migrate")) { in verify_oom() 56 SAFE_CGROUP_PRINT(cg, "cpuset.memory_migrate", "1"); in verify_oom() 74 cg = tst_cgroup_get_test_group(); in setup() 86 write_cpusets(cg, memnode); in setup() 87 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/ltp/lib/ |
D | tst_cgroup.c | 226 #define for_each_dir(cg, ctrl, t) \ argument 227 for ((t) = (ctrl) ? (cg)->dirs_by_ctrl + (ctrl) : (cg)->dirs; \ 229 (t) = (ctrl) ? (cg)->dirs + ROOTS_MAX : (t) + 1) 824 static void cgroup_group_init(struct tst_cgroup_group *const cg, in cgroup_group_init() argument 827 memset(cg, 0, sizeof(*cg)); in cgroup_group_init() 835 strcpy(cg->group_name, group_name); in cgroup_group_init() 840 struct tst_cgroup_group *const cg, in cgroup_group_add_dir() argument 847 cg->dirs_by_ctrl[0] = dir; in cgroup_group_add_dir() 853 cg->dirs_by_ctrl[ctrl->ctrl_indx] = dir; in cgroup_group_add_dir() 862 for (i = 0; cg->dirs[i]; i++) in cgroup_group_add_dir() [all …]
|
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/ |
D | cfs_bandwidth01.c | 40 static void set_cpu_quota(const struct tst_cgroup_group *const cg, in set_cpu_quota() argument 46 if (!TST_CGROUP_VER_IS_V1(cg, "cpu")) { in set_cpu_quota() 47 SAFE_CGROUP_PRINTF(cg, "cpu.max", in set_cpu_quota() 50 SAFE_CGROUP_PRINTF(cg, "cpu.cfs_period_us", in set_cpu_quota() 52 SAFE_CGROUP_PRINTF(cg, "cpu.max", in set_cpu_quota() 57 tst_cgroup_group_name(cg), quota_us, period_us); in set_cpu_quota() 60 static void mk_cpu_cgroup(struct tst_cgroup_group **cg, in mk_cpu_cgroup() argument 65 *cg = tst_cgroup_group_mk(cg_parent, cg_child_name); in mk_cpu_cgroup() 67 set_cpu_quota(*cg, quota_percent); in mk_cpu_cgroup() 87 static void fork_busy_procs_in_cgroup(const struct tst_cgroup_group *const cg) in fork_busy_procs_in_cgroup() argument [all …]
|
/third_party/ltp/lib/newlib_tests/ |
D | tst_cgroup02.c | 18 static const struct tst_cgroup_group *cg; variable 27 if (!TST_CGROUP_VER_IS_V1(cg, "memory")) in do_test() 28 SAFE_CGROUP_PRINT(cg, "cgroup.subtree_control", "+memory"); in do_test() 29 if (!TST_CGROUP_VER_IS_V1(cg, "cpuset")) in do_test() 30 SAFE_CGROUP_PRINT(cg, "cgroup.subtree_control", "+cpuset"); in do_test() 32 cg_child = tst_cgroup_group_mk(cg, "child"); in do_test() 50 SAFE_CGROUP_PRINTF(cg, "memory.max", "%zu", (1UL << 24) - 1); in do_test() 52 SAFE_CGROUP_SCANF(cg, "memory.current", "%zu", &mem); in do_test() 70 cg = tst_cgroup_get_test_group(); in setup()
|
/third_party/skia/gm/ |
D | rasterhandleallocator.cpp | 97 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/ |
D | vp5.c | 139 int node, cg, ctx; in vp5_parse_coeff_models() local 156 for (cg=0; cg<6; cg++) in vp5_parse_coeff_models() 158 if (vp56_rac_get_prob_branchy(c, vp5_ract_pct[ct][pt][cg][node])) { in vp5_parse_coeff_models() 160 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp5_parse_coeff_models() 162 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp5_parse_coeff_models() 174 for (cg=0; cg<3; cg++) in vp5_parse_coeff_models() 177 …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() 188 int b, i, cg, idx, ctx, ctx_last; in vp5_parse_coeff() local 248 cg = vp5_coeff_groups[coeff_idx]; in vp5_parse_coeff() 250 model1 = model->coeff_ract[pt][ct][cg]; in vp5_parse_coeff() [all …]
|
D | vp6.c | 287 int node, cg, ctx, pos; in vp6_parse_coeff_models() local 309 for (cg=0; cg<2; cg++) in vp6_parse_coeff_models() 311 if (vp56_rac_get_prob_branchy(c, vp6_runv_pct[cg][node])) in vp6_parse_coeff_models() 312 model->coeff_runv[cg][node] = vp56_rac_gets_nn(c, 7); in vp6_parse_coeff_models() 316 for (cg=0; cg<6; cg++) in vp6_parse_coeff_models() 318 if (vp56_rac_get_prob_branchy(c, vp6_ract_pct[ct][pt][cg][node])) { in vp6_parse_coeff_models() 320 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp6_parse_coeff_models() 322 model->coeff_ract[pt][ct][cg][node] = def_prob[node]; in vp6_parse_coeff_models() 334 for (cg = 0; cg < 6; cg++) in vp6_parse_coeff_models() 335 if (vp6_build_huff_tree(s, model->coeff_ract[pt][ct][cg], in vp6_parse_coeff_models() [all …]
|
D | rasc.c | 613 int cg = s->cursor[3 * s->cursor_w * (s->cursor_h - i - 1) + 3 * j + 1]; in draw_cursor() local 619 if (cr == s->cursor[0] && cg == s->cursor[1] && cb == s->cursor[2]) in draw_cursor() 628 dist = FFABS(cr - pr) + FFABS(cg - pg) + FFABS(cb - pb); in draw_cursor() 641 int cg = s->cursor[3 * s->cursor_w * (s->cursor_h - i - 1) + 3 * j + 1]; in draw_cursor() local 644 if (cr == s->cursor[0] && cg == s->cursor[1] && cb == s->cursor[2]) in draw_cursor() 647 cr >>= 3; cg >>=3; cb >>= 3; in draw_cursor() 649 AV_WL16(dst, cr | cg << 5 | cb << 10); in draw_cursor() 656 int cg = s->cursor[3 * s->cursor_w * (s->cursor_h - i - 1) + 3 * j + 1]; in draw_cursor() local 659 if (cr == s->cursor[0] && cg == s->cursor[1] && cb == s->cursor[2]) in draw_cursor() 664 dst[1] = cg; in draw_cursor()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 59 static const struct tst_cgroup_group *cg; variable 76 if (!SAFE_CGROUP_HAS(cg, name)) in print_cgmem() 79 SAFE_CGROUP_SCANF(cg, name, "%ld", &ret); in print_cgmem() 125 cg = tst_cgroup_get_test_group(); in setup() 127 SAFE_CGROUP_PRINTF(cg, "memory.max", "%ld", MEM_LIMIT); in setup() 128 if (SAFE_CGROUP_HAS(cg, "memory.swap.max")) in setup() 129 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%ld", MEMSW_LIMIT); in setup() 131 if (SAFE_CGROUP_HAS(cg, "memory.swappiness")) { in setup() 132 SAFE_CGROUP_PRINT(cg, "memory.swappiness", "60"); in setup() 138 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/ltp/testcases/kernel/mem/cpuset/ |
D | cpuset01.c | 38 static const struct tst_cgroup_group *cg; variable 56 SAFE_CGROUP_READ(cg, "cpuset.cpus", buf, sizeof(buf)); in test_cpuset() 57 SAFE_CGROUP_PRINT(cg, "cpuset.cpus", buf); in test_cpuset() 58 SAFE_CGROUP_READ(cg, "cpuset.mems", buf, sizeof(buf)); in test_cpuset() 59 SAFE_CGROUP_PRINT(cg, "cpuset.mems", buf); in test_cpuset() 73 SAFE_CGROUP_PRINTF(cg, "cpuset.mems", "%d", nodes[0]); in test_cpuset() 74 SAFE_CGROUP_PRINTF(cg, "cpuset.mems", "%d", nodes[1]); in test_cpuset() 90 cg = tst_cgroup_get_test_group(); in setup() 91 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/skia/src/utils/mac/ |
D | SkCreateCGImageRef.cpp | 136 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/ltp/testcases/kernel/mem/ksm/ |
D | ksm04.c | 62 static const struct tst_cgroup_group *cg; variable 72 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in verify_ksm() 83 write_cpusets(cg, node); in verify_ksm() 111 cg = tst_cgroup_get_test_group(); in setup() 112 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
|
D | ksm03.c | 62 static const struct tst_cgroup_group *cg; variable 83 cg = tst_cgroup_get_test_group(); in setup() 84 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup() 85 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in setup()
|
D | ksm02.c | 62 static const struct tst_cgroup_group *cg; variable 82 write_cpusets(cg, node); in verify_ksm() 83 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in verify_ksm() 111 cg = tst_cgroup_get_test_group(); in setup()
|
/third_party/skia/src/core/ |
D | SkTraceEventCommon.h | 68 #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/ |
D | gk104.asm | 99 $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/ffmpeg/libavfilter/ |
D | colorspace.c | 147 if (coeffs->cr == 0.25 && coeffs->cg == 0.5 && coeffs->cb == 0.25) { in ff_fill_rgb2yuv_table() 150 } else if (coeffs->cr == 1 && coeffs->cg == 1 && coeffs->cb == 1) { in ff_fill_rgb2yuv_table() 156 rgb2yuv[0][1] = coeffs->cg; in ff_fill_rgb2yuv_table() 161 rgb2yuv[1][1] = bscale * coeffs->cg; in ff_fill_rgb2yuv_table() 164 rgb2yuv[2][1] = rscale * coeffs->cg; in ff_fill_rgb2yuv_table()
|
D | vf_vibrance.c | 90 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/cups-filters/cupsfilters/ |
D | image-colorspace.c | 338 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()
|