Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 185) sorted by relevance

12345678

/hardware/google/gfxstream/codegen/generic-apigen/
DApiGen.cpp63 void ApiGen::printHeader(FILE *fp) const in printHeader()
65 fprintf(fp, "// Generated Code - DO NOT EDIT !!\n"); in printHeader()
66 fprintf(fp, "// generated by 'emugen'\n"); in printHeader()
71 FILE *fp = fopen(filename.c_str(), "wt"); in genProcTypes() local
72 if (fp == NULL) { in genProcTypes()
76 printHeader(fp); in genProcTypes()
80 fprintf(fp, "#ifndef __%s_%s_proc_t_h\n", basename, sideString(side)); in genProcTypes()
81 fprintf(fp, "#define __%s_%s_proc_t_h\n", basename, sideString(side)); in genProcTypes()
82 fprintf(fp, "\n\n"); in genProcTypes()
83 fprintf(fp, "\n#include \"%s_types.h\"\n",basename); in genProcTypes()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/
Dinterfacedocgenerator.py42 def writeNewInterfaces(self, feature, key, title, markup, fp): argument
50 write('=== ' + title, file=fp)
51 write('',file=fp)
69 write('ifdef::' + required + '[]', file=fp)
70 write(f'If {requiredlink} is supported:', file=fp)
71 write('',file=fp)
76 write(' * ' + markup + api, file=fp)
84 write(' * Extending ' + parentstring + ':', file=fp)
86 write(' ** ' + markup + api, file=fp)
89 write(' * ' + markup + api, file=fp)
[all …]
Dpromote.py27 def printanchor(fp): argument
31 print('[[' + anchorname(anchor) + ']]', file=fp)
32 print('This anchor:', anchorname(anchor), file=fp)
33 print('<<' + anchorname(anchor+1) + ', OINK>>', file=fp)
42 def promote(line, type, name, extension, fp): argument
45 print('ifdef::VK_VERSION_1_1[]', file=fp)
46 print(line, file=fp, end='')
47 print('endif::VK_VERSION_1_1[]', file=fp)
48 print('', file=fp)
50 '[or the equivalent command]', file=fp)
[all …]
DgenRef.py77 def printCopyrightSourceComments(fp): argument
82 print('// Copyright 2014-2023 The Khronos Group Inc.', file=fp)
83 print('//', file=fp)
85 print('// SPDX' + '-License-Identifier: CC-BY-4.0', file=fp)
86 print('', file=fp)
89 def printFooter(fp, leveloffset=0): argument
112 sep='\n', file=fp)
222 def refPageShell(pageName, pageDesc, fp, head_content = None, sections=None, tail_content=None, man… argument
233 printCopyrightSourceComments(fp)
240 sep='\n', file=fp)
[all …]
Ddocgenerator.py241 fp = open(filename, 'w', encoding='utf-8')
244 write(self.genOpts.conventions.warning_comment, file=fp)
245 write('[[{0}]]'.format(basename), file=fp)
256 write('indexterm:[{}]'.format(index_term), file=fp)
258 write('[source,c++]', file=fp)
259 write('----', file=fp)
260 write(contents, file=fp)
261 write('----', file=fp)
262 fp.close()
268 fp = open(filename, 'w', encoding='utf-8')
[all …]
/hardware/qcom/sm7250/display/libmemtrack/
Dkgsl.c51 FILE *fp; in kgsl_memtrack_get_memory() local
68 fp = fopen(syspath, "r"); in kgsl_memtrack_get_memory()
69 if (fp == NULL) in kgsl_memtrack_get_memory()
72 ret = fscanf(fp, "%zu", &accounted_size); in kgsl_memtrack_get_memory()
74 fclose(fp); in kgsl_memtrack_get_memory()
77 fclose(fp); in kgsl_memtrack_get_memory()
82 fp = fopen(syspath, "r"); in kgsl_memtrack_get_memory()
83 if (fp == NULL) { in kgsl_memtrack_get_memory()
87 ret = fscanf(fp, "%zu", &unaccounted_size); in kgsl_memtrack_get_memory()
89 fclose(fp); in kgsl_memtrack_get_memory()
[all …]
/hardware/qcom/sm8150/display/libmemtrack/
Dkgsl.c51 FILE *fp; in kgsl_memtrack_get_memory() local
68 fp = fopen(syspath, "r"); in kgsl_memtrack_get_memory()
69 if (fp == NULL) in kgsl_memtrack_get_memory()
72 ret = fscanf(fp, "%zu", &accounted_size); in kgsl_memtrack_get_memory()
74 fclose(fp); in kgsl_memtrack_get_memory()
77 fclose(fp); in kgsl_memtrack_get_memory()
82 fp = fopen(syspath, "r"); in kgsl_memtrack_get_memory()
83 if (fp == NULL) { in kgsl_memtrack_get_memory()
87 ret = fscanf(fp, "%zu", &unaccounted_size); in kgsl_memtrack_get_memory()
89 fclose(fp); in kgsl_memtrack_get_memory()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
Dinv_gesture_test.c117 FILE *fp; in read_sysfs_int() local
119 fp = fopen(filename, "r"); in read_sysfs_int()
120 if (fp!=NULL) { in read_sysfs_int()
121 fscanf(fp, "%d\n", var); in read_sysfs_int()
122 fclose(fp); in read_sysfs_int()
133 FILE *fp; in write_sysfs_int() local
139 fp = fopen(filename, "w"); in write_sysfs_int()
140 if (fp != NULL) { in write_sysfs_int()
141 fprintf(fp, "%d\n", data); in write_sysfs_int()
142 fclose(fp); in write_sysfs_int()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_load_dmp.c254 FILE *fp; in read_dmp_img() local
259 if ((fp = fopen(dmp_path, "rb")) < 0) { in read_dmp_img()
262 i = fread(dmp_img, 1, dmpSize, fp); in read_dmp_img()
264 fclose(fp); in read_dmp_img()
265 fp = fopen(out_file, "wt"); in read_dmp_img()
266 if(fp == NULL) { in read_dmp_img()
270 fprintf(fp, "char rec[]={\n"); in read_dmp_img()
272 fprintf(fp, "0x%02x, ", dmp_img[i]); in read_dmp_img()
274 fprintf(fp, "\n"); in read_dmp_img()
277 fprintf(fp, "};\n "); in read_dmp_img()
[all …]
Dml_stored_data.c46 FILE *fp; in inv_read_cal() local
50 fp = fopen(MLCAL_FILE,"rb"); in inv_read_cal()
51 if (fp == NULL) { in inv_read_cal()
57 fseek (fp, 0 , SEEK_END); in inv_read_cal()
58 fsize = ftell (fp); in inv_read_cal()
59 rewind (fp); in inv_read_cal()
65 fclose(fp); in inv_read_cal()
69 *bytesRead = fread(*calData, 1, fsize, fp); in inv_read_cal()
80 fclose(fp); in inv_read_cal()
86 FILE *fp; in inv_write_cal() local
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_load_dmp.c289 FILE *fp; in read_dmp_img() local
294 if ((fp = fopen(dmp_path, "rb")) < 0) { in read_dmp_img()
297 i = fread(dmp_img, 1, dmpSize, fp); in read_dmp_img()
299 fclose(fp); in read_dmp_img()
300 fp = fopen(out_file, "wt"); in read_dmp_img()
301 if(fp == NULL) { in read_dmp_img()
305 fprintf(fp, "char rec[]={\n"); in read_dmp_img()
307 fprintf(fp, "0x%02x, ", dmp_img[i]); in read_dmp_img()
309 fprintf(fp, "\n"); in read_dmp_img()
312 fprintf(fp, "};\n "); in read_dmp_img()
[all …]
Dml_stored_data.c46 FILE *fp; in inv_read_cal() local
50 fp = fopen(MLCAL_FILE,"rb"); in inv_read_cal()
51 if (fp == NULL) { in inv_read_cal()
57 fseek (fp, 0 , SEEK_END); in inv_read_cal()
58 fsize = ftell (fp); in inv_read_cal()
59 rewind (fp); in inv_read_cal()
65 fclose(fp); in inv_read_cal()
69 *bytesRead = fread(*calData, 1, fsize, fp); in inv_read_cal()
80 fclose(fp); in inv_read_cal()
86 FILE *fp; in inv_write_cal() local
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Du_hexdump.h13 u_hexdump(FILE *fp, const uint8_t *hex, size_t cnt, bool with_strings) in u_hexdump() argument
17 fprintf(fp, "%06X ", i); in u_hexdump()
33 fprintf(fp, "*\n"); in u_hexdump()
39 fprintf(fp, "%02X ", hex[i]); in u_hexdump()
41 fprintf(fp, " | "); in u_hexdump()
44 fputc((c < 32 || c > 128) ? '.' : c, fp); in u_hexdump()
49 fprintf(fp, "\n"); in u_hexdump()
52 fprintf(fp, "\n"); in u_hexdump()
/hardware/qcom/display/msm8960/libmemtrack/
Dkgsl.c48 FILE *fp; in kgsl_memtrack_get_memory() local
63 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
64 if (fp != NULL) { in kgsl_memtrack_get_memory()
65 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory()
69 fclose(fp); in kgsl_memtrack_get_memory()
76 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
77 if (fp == NULL) { in kgsl_memtrack_get_memory()
92 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
125 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8084/libmemtrack/
Dkgsl.c49 FILE *fp; in kgsl_memtrack_get_memory() local
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
66 if (fp != NULL) { in kgsl_memtrack_get_memory()
67 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory()
71 fclose(fp); in kgsl_memtrack_get_memory()
78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
79 if (fp == NULL) { in kgsl_memtrack_get_memory()
94 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
129 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8994/libmemtrack/
Dkgsl.c49 FILE *fp; in kgsl_memtrack_get_memory() local
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
66 if (fp != NULL) { in kgsl_memtrack_get_memory()
67 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory()
71 fclose(fp); in kgsl_memtrack_get_memory()
78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
79 if (fp == NULL) { in kgsl_memtrack_get_memory()
94 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
131 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8996/libmemtrack/
Dkgsl.c48 FILE *fp; in kgsl_memtrack_get_memory() local
63 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
64 if (fp != NULL) { in kgsl_memtrack_get_memory()
65 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory()
69 fclose(fp); in kgsl_memtrack_get_memory()
76 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
77 if (fp == NULL) { in kgsl_memtrack_get_memory()
92 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
128 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8226/libmemtrack/
Dkgsl.c49 FILE *fp; in kgsl_memtrack_get_memory() local
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
66 if (fp != NULL) { in kgsl_memtrack_get_memory()
67 if (fgets(line, sizeof(line), fp)) { in kgsl_memtrack_get_memory()
71 fclose(fp); in kgsl_memtrack_get_memory()
78 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
79 if (fp == NULL) { in kgsl_memtrack_get_memory()
94 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
129 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/Retired/
DfixupRef.py28 def openBlock(pi, fp): argument
34 file=fp)
39 file=fp)
40 print('--', file=fp)
43 def closeBlock(pi, fp): argument
44 print('--', file=fp)
132 fp = open(pageName, 'w', encoding='utf-8')
146 openBlock(pi, fp)
148 print(text, file=fp, end='')
151 print(text, file=fp, end='')
[all …]
/hardware/qcom/display/msm8909w_3100/libmemtrack/
Dkgsl.c48 FILE *fp; in kgsl_memtrack_get_memory() local
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
66 if (fp == NULL) { in kgsl_memtrack_get_memory()
81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
97 fclose(fp); in kgsl_memtrack_get_memory()
102 fclose(fp); in kgsl_memtrack_get_memory()
110 fclose(fp); in kgsl_memtrack_get_memory()
117 fclose(fp); in kgsl_memtrack_get_memory()
141 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8998/libmemtrack/
Dkgsl.c48 FILE *fp; in kgsl_memtrack_get_memory() local
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
66 if (fp == NULL) { in kgsl_memtrack_get_memory()
81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
97 fclose(fp); in kgsl_memtrack_get_memory()
102 fclose(fp); in kgsl_memtrack_get_memory()
110 fclose(fp); in kgsl_memtrack_get_memory()
117 fclose(fp); in kgsl_memtrack_get_memory()
141 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/qcom/display/msm8909/libmemtrack/
Dkgsl.c48 FILE *fp; in kgsl_memtrack_get_memory() local
65 fp = fopen(tmp, "r"); in kgsl_memtrack_get_memory()
66 if (fp == NULL) { in kgsl_memtrack_get_memory()
81 if (fgets(line, sizeof(line), fp) == NULL) { in kgsl_memtrack_get_memory()
97 fclose(fp); in kgsl_memtrack_get_memory()
102 fclose(fp); in kgsl_memtrack_get_memory()
110 fclose(fp); in kgsl_memtrack_get_memory()
117 fclose(fp); in kgsl_memtrack_get_memory()
141 fclose(fp); in kgsl_memtrack_get_memory()
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dspi_reliability_test.c44 FILE *fp = NULL; in main() local
53 if ((fp = fopen(RANDOM_BYTES_FILE, "rb")) == NULL) { in main()
58 fseek(fp, 0, SEEK_END); in main()
59 len = ftell(fp); in main()
60 fseek(fp, 0, SEEK_SET); in main()
76 fread(buf, 1, len, fp); in main()
77 fclose(fp); in main()
144 fp = fopen("/data/data/getbuf.bin", "wb"); in main()
145 fwrite(read_buf, 1, len, fp); in main()
146 fclose(fp); in main()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Du_debug_stack_test.cpp87 FILE *fp; in TEST() local
99 fp = open_memstream(&bt1, &size); in TEST()
100 debug_backtrace_print(fp, backtrace1, 16); in TEST()
101 fclose(fp); in TEST()
103 fp = open_memstream(&bt2, &size); in TEST()
104 debug_backtrace_print(fp, backtrace2, 16); in TEST()
105 fclose(fp); in TEST()
/hardware/qcom/display/msm8960/liboverlay/
DoverlayUtils.cpp43 IOFile(const char* s, const char* mode) : fp(0) { in IOFile()
44 fp = ::fopen(s, mode); in IOFile()
45 if(!fp) { in IOFile()
51 if(fp) { in read()
52 return ::fread(&r, sizeof(T), elem, fp); in read()
57 if(fp) { in write()
58 return ::fprintf(fp, s, val); in write()
62 bool valid() const { return fp != 0; } in valid()
64 if(fp) ::fclose(fp); in ~IOFile()
65 fp=0; in ~IOFile()
[all …]

12345678