Home
last modified time | relevance | path

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

12345678910>>...19

/aosp_15_r20/external/libcups/cups/
H A Dusersys.c102 static void cups_set_default_ipp_port(_cups_globals_t *cg);
133 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsEncryption() local
136 if (cg->encryption == (http_encryption_t)-1) in cupsEncryption()
139 return (cg->encryption); in cupsEncryption()
160 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsGetPassword() local
163 return ((cg->password_cb)(prompt, NULL, NULL, NULL, cg->password_data)); in cupsGetPassword()
188 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsGetPassword2() local
194 return ((cg->password_cb)(prompt, http, method, resource, cg->password_data)); in cupsGetPassword2()
218 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsServer() local
221 if (!cg->server[0]) in cupsServer()
[all …]
H A Dglobals.c79 _cups_globals_t *cg; /* Pointer to global data */ in _cupsGlobals() local
94 if ((cg = (_cups_globals_t *)_cupsThreadGetData(cups_globals_key)) == NULL) in _cupsGlobals()
100 if ((cg = cups_globals_alloc()) != NULL) in _cupsGlobals()
101 _cupsThreadSetData(cups_globals_key, cg); in _cupsGlobals()
108 return (cg); in _cupsGlobals()
137 _cups_globals_t *cg; /* Global data */ in DllMain() local
153 if ((cg = (_cups_globals_t *)TlsGetValue(cups_globals_key)) != NULL) in DllMain()
154 cups_globals_free(cg); in DllMain()
158 if ((cg = (_cups_globals_t *)TlsGetValue(cups_globals_key)) != NULL) in DllMain()
159 cups_globals_free(cg); in DllMain()
[all …]
H A Dlangprintf.c31 _cups_globals_t *cg; /* Global data */ in _cupsLangPrintError() local
51 cg = _cupsGlobals(); in _cupsLangPrintError()
53 if (!cg->lang_default) in _cupsLangPrintError()
54 cg->lang_default = cupsLangDefault(); in _cupsLangPrintError()
70 _cupsLangString(cg->lang_default, _("%s: %s")), in _cupsLangPrintError()
71 _cupsLangString(cg->lang_default, message), strerror(last_errno)); in _cupsLangPrintError()
79 cg->lang_default->encoding); in _cupsLangPrintError()
102 _cups_globals_t *cg; /* Global data */ in _cupsLangPrintFilter() local
112 cg = _cupsGlobals(); in _cupsLangPrintFilter()
114 if (!cg->lang_default) in _cupsLangPrintFilter()
[all …]
H A Dadminutil.c31 static http_status_t get_cupsd_conf(http_t *http, _cups_globals_t *cg,
34 static void invalidate_cupsd_cache(_cups_globals_t *cg);
110 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in cupsAdminGetServerSettings() local
123 if (cg->http) in cupsAdminGetServerSettings()
131 if (strcmp(cg->http->hostname, cg->server) || in cupsAdminGetServerSettings()
132 cg->ipp_port != httpAddrPort(cg->http->hostaddr) || in cupsAdminGetServerSettings()
133 (cg->http->encryption != cg->encryption && in cupsAdminGetServerSettings()
134 cg->http->encryption == HTTP_ENCRYPTION_NEVER)) in cupsAdminGetServerSettings()
140 httpClose(cg->http); in cupsAdminGetServerSettings()
141 cg->http = NULL; in cupsAdminGetServerSettings()
[all …]
H A Dpwg-media.c569 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in pwgMediaForLegacy() local
583 if (!cg->leg_size_lut) in pwgMediaForLegacy()
588 cg->leg_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_legacy, in pwgMediaForLegacy()
596 cupsArrayAdd(cg->leg_size_lut, size); in pwgMediaForLegacy()
604 return ((pwg_media_t *)cupsArrayFind(cg->leg_size_lut, &key)); in pwgMediaForLegacy()
628 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in pwgMediaForPPD() local
642 if (!cg->ppd_size_lut) in pwgMediaForPPD()
646 cg->ppd_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_ppd, NULL); in pwgMediaForPPD()
653 cupsArrayAdd(cg->ppd_size_lut, size); in pwgMediaForPPD()
661 if ((size = (pwg_media_t *)cupsArrayFind(cg->ppd_size_lut, &key)) == NULL) in pwgMediaForPPD()
[all …]
H A Drequest.c324 _cups_globals_t *cg = _cupsGlobals(); in cupsGetResponse() local
327 if ((http = cg->http) == NULL) in cupsGetResponse()
543 _cups_globals_t *cg = _cupsGlobals(); in cupsReadResponseData() local
546 if ((http = cg->http) == NULL) in cupsReadResponseData()
915 _cups_globals_t *cg = _cupsGlobals(); in cupsWriteRequestData() local
918 if ((http = cg->http) == NULL) in cupsWriteRequestData()
986 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in _cupsConnect() local
993 if (cg->http) in _cupsConnect()
1001 if (strcmp(cg->http->hostname, cg->server) || in _cupsConnect()
1003 …(httpAddrFamily(cg->http->hostaddr) != AF_LOCAL && cg->ipp_port != httpAddrPort(cg->http->hostaddr… in _cupsConnect()
[all …]
H A Dhttp-addr.c320 _cups_globals_t *cg = _cupsGlobals(); in httpAddrLookup() local
369 if (cg->need_res_init) in httpAddrLookup()
373 cg->need_res_init = 0; in httpAddrLookup()
392 cg->need_res_init = 1; in httpAddrLookup()
418 cg->need_res_init = 1; in httpAddrLookup()
680 _cups_globals_t *cg = _cupsGlobals(); in httpGetHostByName() local
714 cg->hostent.h_name = (char *)name; in httpGetHostByName()
715 cg->hostent.h_aliases = NULL; in httpGetHostByName()
716 cg->hostent.h_addrtype = AF_LOCAL; in httpGetHostByName()
717 cg->hostent.h_length = (int)strlen(name) + 1; in httpGetHostByName()
[all …]
/aosp_15_r20/external/llvm/tools/lto/
H A Dlto.cpp146 static void lto_add_attrs(lto_code_gen_t cg) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
147 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
281 lto_code_gen_t cg) { in lto_module_create_in_codegen_context() argument
285 unwrap(cg)->getContext(), mem, length, Options, path); in lto_module_create_in_codegen_context()
316 void lto_codegen_set_diagnostic_handler(lto_code_gen_t cg, in lto_codegen_set_diagnostic_handler() argument
319 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt); in lto_codegen_set_diagnostic_handler()
342 void lto_codegen_dispose(lto_code_gen_t cg) { delete unwrap(cg); } in lto_codegen_dispose() argument
344 bool lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod) { in lto_codegen_add_module() argument
345 return !unwrap(cg)->addModule(unwrap(mod)); in lto_codegen_add_module()
348 void lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod) { in lto_codegen_set_module() argument
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
H A 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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm-c/
Dlto.h219 const char *path, lto_code_gen_t cg);
404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
424 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
433 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
450 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
458 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
469 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
479 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/llvm-c/
Dlto.h219 const char *path, lto_code_gen_t cg);
404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
424 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
433 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
450 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
458 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
469 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
479 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/llvm-c/
Dlto.h219 const char *path, lto_code_gen_t cg);
404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
424 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
433 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
450 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
458 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
469 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
479 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm-c/
H A Dlto.h219 const char *path, lto_code_gen_t cg);
404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
424 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
433 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
450 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
458 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
469 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
479 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm-c/
Dlto.h219 const char *path, lto_code_gen_t cg);
404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
424 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
433 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
450 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
458 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
469 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
479 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/aosp_15_r20/external/pytorch/torch/_dynamo/
H A Dside_effects.py407 def codegen_save_tempvars(self, cg: PyCodegen):
412 cg.add_push_null(
413 lambda: cg.load_import_from(utils.__name__, "make_cell")
415 cg.extend_output(create_call_function(0, False))
416 cg.add_cache(var)
418 … var.mutable_local.source = LocalSource(cg.tempvars[var]) # type: ignore[attr-defined]
422 cg.add_push_null(
423 lambda: cg.load_import_from(utils.__name__, "object_new")
425 cg(var.mutable_local.cls_source)
426 cg.extend_output(create_call_function(1, False))
[all …]
/aosp_15_r20/external/ltp/include/
H A Dtst_cgroup.h158 tst_cg_group_name(const struct tst_cg_group *const cg)
162 int tst_cg_group_unified_dir_fd(const struct tst_cg_group *const cg)
167 tst_cg_group_rm(struct tst_cg_group *const cg)
170 #define TST_CG_VER(cg, ctrl_name) \ argument
171 tst_cg_ver(__FILE__, __LINE__, (cg), (ctrl_name))
174 const struct tst_cg_group *const cg,
178 #define TST_CG_VER_IS_V1(cg, ctrl_name) \ argument
179 (TST_CG_VER((cg), (ctrl_name)) == TST_CG_V1)
181 #define SAFE_CG_HAS(cg, file_name) \ argument
182 safe_cg_has(__FILE__, __LINE__, (cg), (file_name))
[all …]
/aosp_15_r20/external/llvm/include/llvm-c/
H A 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 …]
/aosp_15_r20/external/pytorch/test/cpp/tensorexpr/
H A Dtest_llvm.cpp41 LLVMExprEval cg(a); \
43 ASSERT_NEAR(cg.value<Type>(), Val, 0.1); \
45 ASSERT_EQ(cg.value<Type>(), Val); \
56 LLVMExprEval cg(c); \
58 ASSERT_NEAR(cg.value<Type>(), Val * 3, 0.1); \
60 ASSERT_EQ(cg.value<Type>(), Val * 3); \
71 LLVMExprEval cg(c); \ in TEST_LLVM_SCALAR_TYPES()
73 ASSERT_NEAR(cg.value<Type>(), Val, 0.1); \ in TEST_LLVM_SCALAR_TYPES()
75 ASSERT_EQ(cg.value<Type>(), Val); \ in TEST_LLVM_SCALAR_TYPES()
86 LLVMExprEval cg(c); \
[all …]
H A Dtest_reductions.cpp44 SimpleIREvaluator cg(s, {b, c}); in TEST() local
46 cg.call({in, out}); in TEST()
65 SimpleIREvaluator cg(s, {b, c}); in TEST() local
67 cg.call({in, out}); in TEST()
87 SimpleIREvaluator cg(s, {b, c}); in TEST() local
89 cg.call({in, out}); in TEST()
116 SimpleIREvaluator cg(s, {b, c, n, m}); in TEST() local
118 cg.call({in, out, 5, 7}); in TEST()
145 SimpleIREvaluator cg(s, {b, c, m}); in TEST() local
158 cg.call({bData, cData, M}); in TEST()
[all …]
/aosp_15_r20/external/ltp/lib/
H A Dtst_cgroup.c320 #define for_each_dir(cg, ctrl, t) \ argument
321 for ((t) = (ctrl) ? (cg)->dirs_by_ctrl + (ctrl) : (cg)->dirs; \
323 (t) = (ctrl) ? (cg)->dirs + ROOTS_MAX : (t) + 1)
1087 struct tst_cg_group *const cg, in cgroup_group_add_dir() argument
1094 cg->dirs_by_ctrl[0] = dir; in cgroup_group_add_dir()
1100 cg->dirs_by_ctrl[ctrl->ctrl_indx] = dir; in cgroup_group_add_dir()
1111 for (i = 0; cg->dirs[i]; i++) in cgroup_group_add_dir()
1113 cg->dirs[i] = dir; in cgroup_group_add_dir()
1120 struct tst_cg_group *cg; in tst_cg_group_mk() local
1126 cg = SAFE_MALLOC(sizeof(*cg)); in tst_cg_group_mk()
[all …]
/aosp_15_r20/external/apache-commons-bcel/src/test/java/org/apache/bcel/
H A DElementValueGenTestCase.java48 final ClassGen cg = createClassGen("HelloWorld"); in testCreateIntegerElementValue() local
49 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateIntegerElementValue()
62 final ClassGen cg = createClassGen("HelloWorld"); in testCreateFloatElementValue() local
63 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateFloatElementValue()
76 final ClassGen cg = createClassGen("HelloWorld"); in testCreateDoubleElementValue() local
77 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateDoubleElementValue()
90 final ClassGen cg = createClassGen("HelloWorld"); in testCreateLongElementValue() local
91 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateLongElementValue()
104 final ClassGen cg = createClassGen("HelloWorld"); in testCreateCharElementValue() local
105 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateCharElementValue()
[all …]
/aosp_15_r20/external/ltp/scripts/coccinelle/
H A 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 …]
H A 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 …]
/aosp_15_r20/external/skia/src/core/
H A DSkTraceEventCommon.h234 #define TRACE_EVENT0(cg, n) TRACE_EMPTY(cg, n) argument
235 #define TRACE_EVENT1(cg, n, a1n, a1v) TRACE_EMPTY(cg, n, a1n, a1v) argument
236 #define TRACE_EVENT2(cg, n, a1n, a1v, a2n, a2v) TRACE_EMPTY(cg, n, a1n, a1v, a2n, a2v) argument
237 #define TRACE_EVENT0_ALWAYS(cg, n) TRACE_EMPTY(cg, n) argument
238 #define TRACE_EVENT1_ALWAYS(cg, n, a1n, a1v) TRACE_EMPTY(cg, n, a1n, a1v) argument
239 #define TRACE_EVENT2_ALWAYS(cg, n, a1n, a1v, a2n, a2v) TRACE_EMPTY(cg, n, a1n, a1v, a2n, a2v) argument
240 #define TRACE_EVENT_INSTANT0(cg, n, scope) TRACE_EMPTY(cg, n, scope) argument
241 #define TRACE_EVENT_INSTANT1(cg, n, scope, a1n, a1v) TRACE_EMPTY(cg, n, scope, a1n, a1v) argument
242 #define TRACE_EVENT_INSTANT2(cg, n, scope, a1n, a1v, a2n, a2v) \ argument
243 TRACE_EMPTY(cg, n, scope, a1n, a1v, a2n, a2v)
[all …]
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/cgroup/
H A Dtest_kmem.c55 char *cg = NULL; in test_kmem_basic() local
58 cg = cg_name(root, "kmem_basic_test"); in test_kmem_basic()
59 if (!cg) in test_kmem_basic()
62 if (cg_create(cg)) in test_kmem_basic()
65 if (cg_run(cg, alloc_dcache, (void *)100000)) in test_kmem_basic()
68 slab0 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic()
72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic()
73 slab1 = cg_read_key_long(cg, "memory.stat", "slab "); in test_kmem_basic()
77 current = cg_read_long(cg, "memory.current"); in test_kmem_basic()
84 cg_destroy(cg); in test_kmem_basic()
[all …]

12345678910>>...19