Home
last modified time | relevance | path

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

12345678910>>...13

/external/libcups/cups/
Dglobals.c81 _cups_globals_t *cg; /* Pointer to global data */ in _cupsGlobals() local
96 if ((cg = (_cups_globals_t *)_cupsThreadGetData(cups_globals_key)) == NULL) in _cupsGlobals()
102 if ((cg = cups_globals_alloc()) != NULL) in _cupsGlobals()
103 _cupsThreadSetData(cups_globals_key, cg); in _cupsGlobals()
110 return (cg); in _cupsGlobals()
139 _cups_globals_t *cg; /* Global data */ in DllMain() local
155 if ((cg = (_cups_globals_t *)TlsGetValue(cups_globals_key)) != NULL) in DllMain()
156 cups_globals_free(cg); in DllMain()
160 if ((cg = (_cups_globals_t *)TlsGetValue(cups_globals_key)) != NULL) in DllMain()
161 cups_globals_free(cg); in DllMain()
[all …]
Dusersys.c86 static void cups_set_default_ipp_port(_cups_globals_t *cg);
115 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsEncryption() local
118 if (cg->encryption == (http_encryption_t)-1) in cupsEncryption()
121 return (cg->encryption); in cupsEncryption()
142 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsGetPassword() local
145 return ((cg->password_cb)(prompt, NULL, NULL, NULL, cg->password_data)); in cupsGetPassword()
170 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsGetPassword2() local
176 return ((cg->password_cb)(prompt, http, method, resource, cg->password_data)); in cupsGetPassword2()
200 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsServer() local
203 if (!cg->server[0]) in cupsServer()
[all …]
Dlangprintf.c36 _cups_globals_t *cg; /* Global data */ in _cupsLangPrintError() local
56 cg = _cupsGlobals(); in _cupsLangPrintError()
58 if (!cg->lang_default) in _cupsLangPrintError()
59 cg->lang_default = cupsLangDefault(); in _cupsLangPrintError()
75 _cupsLangString(cg->lang_default, _("%s: %s")), in _cupsLangPrintError()
76 _cupsLangString(cg->lang_default, message), strerror(last_errno)); in _cupsLangPrintError()
84 cg->lang_default->encoding); in _cupsLangPrintError()
107 _cups_globals_t *cg; /* Global data */ in _cupsLangPrintFilter() local
117 cg = _cupsGlobals(); in _cupsLangPrintFilter()
119 if (!cg->lang_default) in _cupsLangPrintFilter()
[all …]
Dadminutil.c41 static http_status_t get_cupsd_conf(http_t *http, _cups_globals_t *cg,
44 static void invalidate_cupsd_cache(_cups_globals_t *cg);
405 _cups_globals_t *cg = _cupsGlobals(); in cupsAdminExportSamba() local
448 snprintf(file, sizeof(file), "%s/drivers/pscript5.dll", cg->cups_datadir); in cupsAdminExportSamba()
467 ppd, dest, cg->cups_datadir, cg->cups_datadir, in cupsAdminExportSamba()
468 cg->cups_datadir, cg->cups_datadir); in cupsAdminExportSamba()
492 snprintf(file, sizeof(file), "%s/drivers/cupsps6.dll", cg->cups_datadir); in cupsAdminExportSamba()
503 cg->cups_datadir, cg->cups_datadir, cg->cups_datadir); in cupsAdminExportSamba()
571 snprintf(file, sizeof(file), "%s/drivers/ADOBEPS4.DRV", cg->cups_datadir); in cupsAdminExportSamba()
590 ppd, dest, cg->cups_datadir, cg->cups_datadir, in cupsAdminExportSamba()
[all …]
Dpwg-media.c572 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in pwgMediaForLegacy() local
586 if (!cg->leg_size_lut) in pwgMediaForLegacy()
591 cg->leg_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_legacy, in pwgMediaForLegacy()
599 cupsArrayAdd(cg->leg_size_lut, size); in pwgMediaForLegacy()
607 return ((pwg_media_t *)cupsArrayFind(cg->leg_size_lut, &key)); in pwgMediaForLegacy()
631 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in pwgMediaForPPD() local
645 if (!cg->ppd_size_lut) in pwgMediaForPPD()
649 cg->ppd_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_ppd, NULL); in pwgMediaForPPD()
656 cupsArrayAdd(cg->ppd_size_lut, size); in pwgMediaForPPD()
664 if ((size = (pwg_media_t *)cupsArrayFind(cg->ppd_size_lut, &key)) == NULL) in pwgMediaForPPD()
[all …]
Drequest.c329 _cups_globals_t *cg = _cupsGlobals(); in cupsGetResponse() local
332 if ((http = cg->http) == NULL) in cupsGetResponse()
548 _cups_globals_t *cg = _cupsGlobals(); in cupsReadResponseData() local
551 if ((http = cg->http) == NULL) in cupsReadResponseData()
908 _cups_globals_t *cg = _cupsGlobals(); in cupsWriteRequestData() local
911 if ((http = cg->http) == NULL) in cupsWriteRequestData()
979 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in _cupsConnect() local
986 if (cg->http) in _cupsConnect()
994 if (strcmp(cg->http->hostname, cg->server) || in _cupsConnect()
996 …(httpAddrFamily(cg->http->hostaddr) != AF_LOCAL && cg->ipp_port != httpAddrPort(cg->http->hostaddr… in _cupsConnect()
[all …]
Dhttp-addr.c322 _cups_globals_t *cg = _cupsGlobals(); in httpAddrLookup() local
371 if (cg->need_res_init) in httpAddrLookup()
375 cg->need_res_init = 0; in httpAddrLookup()
394 cg->need_res_init = 1; in httpAddrLookup()
420 cg->need_res_init = 1; in httpAddrLookup()
682 _cups_globals_t *cg = _cupsGlobals(); in httpGetHostByName() local
716 cg->hostent.h_name = (char *)name; in httpGetHostByName()
717 cg->hostent.h_aliases = NULL; in httpGetHostByName()
718 cg->hostent.h_addrtype = AF_LOCAL; in httpGetHostByName()
719 cg->hostent.h_length = (int)strlen(name) + 1; in httpGetHostByName()
[all …]
Dutil.c350 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsGetDefault2() local
357 if (_cupsUserDefault(cg->def_printer, sizeof(cg->def_printer))) in cupsGetDefault2()
358 return (cg->def_printer); in cupsGetDefault2()
387 strlcpy(cg->def_printer, attr->values[0].string.text, in cupsGetDefault2()
388 sizeof(cg->def_printer)); in cupsGetDefault2()
390 return (cg->def_printer); in cupsGetDefault2()
461 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in cupsGetJobs2() local
691 if (n == 0 && cg->last_error >= IPP_STATUS_ERROR_BAD_REQUEST) in cupsGetJobs2()
812 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in cupsPrintFiles2() local
897 cancel_status = cg->last_error; in cupsPrintFiles2()
[all …]
Dlanguage.c1251 _cups_globals_t *cg = _cupsGlobals(); in appleLangDefault() local
1261 if (!cg->language[0]) in appleLangDefault()
1266 strlcpy(cg->language, lang, sizeof(cg->language)); in appleLangDefault()
1267 return (cg->language); in appleLangDefault()
1334 if (_cupsAppleLocale(languageName, cg->language, sizeof(cg->language))) in appleLangDefault()
1336 cg->language)); in appleLangDefault()
1349 if (!cg->language[0]) in appleLangDefault()
1352 strlcpy(cg->language, "en_US.UTF-8", sizeof(cg->language)); in appleLangDefault()
1356 DEBUG_printf(("3appleLangDefault: Using previous locale \"%s\".", cg->language)); in appleLangDefault()
1362 return (cg->language); in appleLangDefault()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/lto/
Dlto.cpp154 static void lto_add_attrs(lto_code_gen_t cg) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
155 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
294 lto_code_gen_t cg) { in lto_module_create_in_codegen_context() argument
298 unwrap(cg)->getContext(), mem, length, Options, StringRef(path)); in lto_module_create_in_codegen_context()
329 void lto_codegen_set_diagnostic_handler(lto_code_gen_t cg, in lto_codegen_set_diagnostic_handler() argument
332 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt); in lto_codegen_set_diagnostic_handler()
355 void lto_codegen_dispose(lto_code_gen_t cg) { delete unwrap(cg); } in lto_codegen_dispose() argument
357 bool lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod) { in lto_codegen_add_module() argument
358 return !unwrap(cg)->addModule(unwrap(mod)); in lto_codegen_add_module()
361 void lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod) { in lto_codegen_set_module() argument
[all …]
/external/llvm/tools/lto/
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 …]
/external/swiftshader/third_party/llvm-7.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 …]
/external/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 …]
/external/swiftshader/third_party/LLVM/tools/lto/
Dlto.cpp198 void lto_codegen_dispose(lto_code_gen_t cg) in lto_codegen_dispose() argument
200 delete cg; in lto_codegen_dispose()
209 bool lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod) in lto_codegen_add_module() argument
211 return cg->addModule(mod, sLastErrorString); in lto_codegen_add_module()
219 bool lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model debug) in lto_codegen_set_debug_model() argument
221 return cg->setDebugInfo(debug, sLastErrorString); in lto_codegen_set_debug_model()
229 bool lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model model) in lto_codegen_set_pic_model() argument
231 return cg->setCodePICModel(model, sLastErrorString); in lto_codegen_set_pic_model()
237 void lto_codegen_set_cpu(lto_code_gen_t cg, const char* cpu) in lto_codegen_set_cpu() argument
239 return cg->setCpu(cpu); in lto_codegen_set_cpu()
[all …]
/external/apache-commons-bcel/src/test/java/org/apache/bcel/
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 …]
/external/swiftshader/third_party/LLVM/include/llvm-c/
Dlto.h205 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
214 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
222 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
229 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
237 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
243 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
252 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
261 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
273 lto_codegen_compile(lto_code_gen_t cg, size_t* length);
280 lto_codegen_compile_to_file(lto_code_gen_t cg, const char** name);
[all …]
/external/skia/samplecode/
DSampleBigGradient.cpp93 CGContextRef cg = (CGContextRef)fCanvas->accessTopRasterHandle(); in drawRect() local
100 CGContextSetFillColorWithColor(cg, color); in drawRect()
101 CGContextFillRect(cg, CGRectMake(r.x(), r.y(), r.width(), r.height())); in drawRect()
105 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { in matrix_to_transform() argument
108 matrix.postTranslate(0, SkIntToScalar(CGBitmapContextGetHeight(cg))); in matrix_to_transform()
125 CGContextRef cg = SkCreateCGContext(SkPixmap(info, nullptr, 0)); in allocHandle() local
126 if (!cg) { in allocHandle()
130 rec->fReleaseCtx = cg; in allocHandle()
131 rec->fPixels = CGBitmapContextGetData(cg); in allocHandle()
132 rec->fRowBytes = CGBitmapContextGetBytesPerRow(cg); in allocHandle()
[all …]
/external/skqp/samplecode/
DSampleBigGradient.cpp93 CGContextRef cg = (CGContextRef)fCanvas->accessTopRasterHandle(); in drawRect() local
100 CGContextSetFillColorWithColor(cg, color); in drawRect()
101 CGContextFillRect(cg, CGRectMake(r.x(), r.y(), r.width(), r.height())); in drawRect()
105 static CGAffineTransform matrix_to_transform(CGContextRef cg, const SkMatrix& ctm) { in matrix_to_transform() argument
108 matrix.postTranslate(0, SkIntToScalar(CGBitmapContextGetHeight(cg))); in matrix_to_transform()
125 CGContextRef cg = SkCreateCGContext(SkPixmap(info, nullptr, 0)); in allocHandle() local
126 if (!cg) { in allocHandle()
130 rec->fReleaseCtx = cg; in allocHandle()
131 rec->fPixels = CGBitmapContextGetData(cg); in allocHandle()
132 rec->fRowBytes = CGBitmapContextGetBytesPerRow(cg); in allocHandle()
[all …]
/external/skqp/src/utils/mac/
DSkCreateCGImageRef.cpp161 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap() argument
167 CGContextSaveGState(cg); in SkCGDrawBitmap()
168 CGContextTranslateCTM(cg, x, r.size.height + y); in SkCGDrawBitmap()
169 CGContextScaleCTM(cg, 1, -1); in SkCGDrawBitmap()
171 CGContextDrawImage(cg, r, img); in SkCGDrawBitmap()
173 CGContextRestoreGState(cg); in SkCGDrawBitmap()
199 CGContextRef cg = CGBitmapContextCreate(pmap.writable_addr(), pmap.width(), pmap.height(), in SkCreateCGContext() local
202 return cg; in SkCreateCGContext()
223 CGContextRef cg = CGBitmapContextCreate(pixels, info.width(), info.height(), bitsPerComponent, in SkCopyPixelsFromCGImage() local
226 if (nullptr == cg) { in SkCopyPixelsFromCGImage()
[all …]
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp161 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) { in SkCGDrawBitmap() argument
167 CGContextSaveGState(cg); in SkCGDrawBitmap()
168 CGContextTranslateCTM(cg, x, r.size.height + y); in SkCGDrawBitmap()
169 CGContextScaleCTM(cg, 1, -1); in SkCGDrawBitmap()
171 CGContextDrawImage(cg, r, img); in SkCGDrawBitmap()
173 CGContextRestoreGState(cg); in SkCGDrawBitmap()
199 CGContextRef cg = CGBitmapContextCreate(pmap.writable_addr(), pmap.width(), pmap.height(), in SkCreateCGContext() local
202 return cg; in SkCreateCGContext()
223 CGContextRef cg = CGBitmapContextCreate(pixels, info.width(), info.height(), bitsPerComponent, in SkCopyPixelsFromCGImage() local
226 if (nullptr == cg) { in SkCopyPixelsFromCGImage()
[all …]
/external/apache-commons-bcel/src/examples/
Did.java52 ClassGen cg = new ClassGen(clazz); in main() local
55 MethodGen mg = new MethodGen(method, cg.getClassName(), cg.getConstantPool()); in main()
56 cg.replaceMethod(method, mg.getMethod()); in main()
60 FieldGen fg = new FieldGen(field, cg.getConstantPool()); in main()
61 cg.replaceField(field, fg.getField()); in main()
64 cg.getJavaClass().dump(clazz.getClassName() + ".clazz"); in main()
DProxyCreator.java81 ClassGen cg = new ClassGen("foo", "java.lang.Object", "", Constants.ACC_PUBLIC, in main() local
85 cg.addEmptyConstructor(Constants.ACC_PUBLIC); in main()
88 ConstantPoolGen cp = cg.getConstantPool(); in main()
89 InstructionFactory factory = new InstructionFactory(cg); in main()
116 cg.addMethod(mg.getMethod()); in main()
118 byte[] bytes = cg.getJavaClass().getBytes(); in main()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DGeneratingAnnotatedClassesTestCase.java76 final ClassGen cg = createClassGen("HelloWorld"); in testGenerateClassLevelAnnotations() local
77 cg.setMajor(49); in testGenerateClassLevelAnnotations()
78 cg.setMinor(0); in testGenerateClassLevelAnnotations()
79 final ConstantPoolGen cp = cg.getConstantPool(); in testGenerateClassLevelAnnotations()
81 cg.addAnnotationEntry(createSimpleVisibleAnnotation(cp)); in testGenerateClassLevelAnnotations()
82 cg.addAnnotationEntry(createSimpleInvisibleAnnotation(cp)); in testGenerateClassLevelAnnotations()
83 buildClassContents(cg, cp, il); in testGenerateClassLevelAnnotations()
85 dumpClass(cg, "HelloWorld.class"); in testGenerateClassLevelAnnotations()
121 final ClassGen cg = createClassGen("HelloWorld"); in testGenerateMethodLevelAnnotations1() local
122 final ConstantPoolGen cp = cg.getConstantPool(); in testGenerateMethodLevelAnnotations1()
[all …]
/external/autotest/client/tests/npb/
Dcontrol15 # cg.A cg.B cg.C cg.S cg.W
/external/mesa3d/src/gallium/drivers/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 …]

12345678910>>...13