Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 239) sorted by relevance

12345678910

/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Diio_utils.h106 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local
139 ret = asprintf(&filename, in iioutils_get_type()
145 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
147 printf("failed to open %s\n", filename); in iioutils_get_type()
173 free(filename); in iioutils_get_type()
175 filename = 0; in iioutils_get_type()
178 if (filename) in iioutils_get_type()
179 free(filename); in iioutils_get_type()
202 char *filename = NULL; in iioutils_get_param_float() local
224 ret = asprintf(&filename, in iioutils_get_param_float()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h108 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local
141 ret = asprintf(&filename, in iioutils_get_type()
147 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
149 printf("failed to open %s\n", filename); in iioutils_get_type()
175 free(filename); in iioutils_get_type()
177 filename = 0; in iioutils_get_type()
180 if (filename) in iioutils_get_type()
181 free(filename); in iioutils_get_type()
204 char *filename = NULL; in iioutils_get_param_float() local
226 ret = asprintf(&filename, in iioutils_get_param_float()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h108 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local
141 ret = asprintf(&filename, in iioutils_get_type()
147 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
149 printf("failed to open %s\n", filename); in iioutils_get_type()
175 free(filename); in iioutils_get_type()
177 filename = 0; in iioutils_get_type()
180 if (filename) in iioutils_get_type()
181 free(filename); in iioutils_get_type()
204 char *filename = NULL; in iioutils_get_param_float() local
226 ret = asprintf(&filename, in iioutils_get_param_float()
[all …]
/hardware/google/graphics/common/libv4l2/
Dexynos_subdev.c47 static int __subdev_open(const char *filename, int oflag, va_list ap) in __subdev_open() argument
55 fd = open(filename, oflag, mode); in __subdev_open()
60 int exynos_subdev_open(const char *filename, int oflag, ...) in exynos_subdev_open() argument
66 fd = __subdev_open(filename, oflag, ap); in exynos_subdev_open()
78 char filename[64], name[64]; in exynos_subdev_get_node_num() local
86 snprintf(filename, sizeof(filename), "/dev/v4l-subdev%d", i); in exynos_subdev_get_node_num()
89 if ((lstat(filename, &s) == 0) && S_ISCHR(s.st_mode) && in exynos_subdev_get_node_num()
91 ALOGD("try node: %s", filename); in exynos_subdev_get_node_num()
93 snprintf(filename, sizeof(filename), "/sys/class/video4linux/v4l-subdev%d/name", i); in exynos_subdev_get_node_num()
98 stream_fd = fopen(filename, "r"); in exynos_subdev_get_node_num()
[all …]
/hardware/google/graphics/common/libgscaler/
Dexynos_subdev.c50 static int __subdev_open(const char *filename, int oflag, va_list ap) in __subdev_open() argument
58 fd = open(filename, oflag, mode); in __subdev_open()
63 int exynos_subdev_open(const char *filename, int oflag, ...) in exynos_subdev_open() argument
69 fd = __subdev_open(filename, oflag, ap); in exynos_subdev_open()
81 char filename[64], name[64]; in exynos_subdev_get_node_num() local
89 snprintf(filename, sizeof(filename), "/dev/v4l-subdev%d", i); in exynos_subdev_get_node_num()
92 if ((lstat(filename, &s) == 0) && S_ISCHR(s.st_mode) && in exynos_subdev_get_node_num()
94 ALOGD("try node: %s", filename); in exynos_subdev_get_node_num()
96 snprintf(filename, sizeof(filename), "/sys/class/video4linux/v4l-subdev%d/name", i); in exynos_subdev_get_node_num()
101 stream_fd = fopen(filename, "r"); in exynos_subdev_get_node_num()
[all …]
/hardware/google/gfxstream/codegen/generic-apigen/
DApiGen.h36 int readSpec(const std::string & filename);
69 int genOpcodes(const std::string &filename);
70 int genAttributesTemplate(const std::string &filename);
71 int genProcTypes(const std::string &filename, SideType side);
72 int genFuncTable(const std::string &filename, SideType side);
74 int genContext(const std::string &filename, SideType side);
75 int genContextImpl(const std::string &filename, SideType side);
77 int genEntryPoints(const std::string &filename, SideType side);
79 int genEncoderHeader(const std::string &filename);
80 int genEncoderImpl(const std::string &filename);
[all …]
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenccli_internal.h110 const char* filename,
126 const char* filename,
142 const char* filename,
157 const char* filename);
204 const char* filename,
217 const char* filename);
229 const char* filename,
244 const char* filename,
Dastcenccli_image_load_store.cpp50 const char* filename, in load_image_with_tinyexr() argument
59 int load_res = LoadEXR(&image, &dim_x, &dim_y, filename, &err); in load_image_with_tinyexr()
62 printf("ERROR: Failed to load image %s (%s)\n", filename, err); in load_image_with_tinyexr()
86 const char* filename, in load_image_with_stb() argument
93 if (stbi_is_hdr(filename)) in load_image_with_stb()
95 float* data = stbi_loadf(filename, &dim_x, &dim_y, nullptr, STBI_rgb_alpha); in load_image_with_stb()
107 uint8_t* data = stbi_load(filename, &dim_x, &dim_y, nullptr, STBI_rgb_alpha); in load_image_with_stb()
118 printf("ERROR: Failed to load image %s (%s)\n", filename, stbi_failure_reason()); in load_image_with_stb()
133 const char* filename, in store_exr_image_with_tinyexr() argument
137 int res = SaveEXR(buf, img->dim_x, img->dim_y, 4, 1, filename, nullptr); in store_exr_image_with_tinyexr()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c65 char *filename; in find_type_by_name() local
85 filename = malloc(strlen(iio_dir) in find_type_by_name()
89 if (filename == NULL) in find_type_by_name()
91 sprintf(filename, "%s%s%d/name", in find_type_by_name()
95 nameFile = fopen(filename, "r"); in find_type_by_name()
98 free(filename); in find_type_by_name()
309 char *filename; in find_name_by_sensor_type() local
329 filename = malloc(strlen(iio_dir) in find_name_by_sensor_type()
334 if (filename == NULL) in find_name_by_sensor_type()
336 sprintf(filename, "%s%s%d/%s", in find_name_by_sensor_type()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c73 char *filename; in find_type_by_name() local
93 filename = malloc(strlen(iio_dir) in find_type_by_name()
97 if (filename == NULL) in find_type_by_name()
99 sprintf(filename, "%s%s%d/name", in find_type_by_name()
103 nameFile = fopen(filename, "r"); in find_type_by_name()
106 free(filename); in find_type_by_name()
317 char *filename; in find_name_by_sensor_type() local
337 filename = malloc(strlen(iio_dir) in find_name_by_sensor_type()
342 if (filename == NULL) in find_name_by_sensor_type()
344 sprintf(filename, "%s%s%d/%s", in find_name_by_sensor_type()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/spec_tools/
Dhtml_printer.py43 def __init__(self, filename): argument
45 self.f = open(filename, 'w', encoding='utf-8')
149 self.fileLines[fileChecker.filename] = fileChecker.lines
163 …keIdentifierFromFilename(fileChecker.filename), relativefn=html.escape(self.getRelativeFilename(fi…
182 """.format(id=self.makeIdentifierFromFilename(fileChecker.filename)))
319 fn = checker.findEntity(entity).filename
325 """.format(filename=fn, anchor=anchor))
328 def outputFileExcerpt(self, filename): argument
339 … """.format(id=self.makeIdentifierFromFilename(filename), fn=self.getRelativeFilename(filename)))
340 lines = self.fileLines[filename]
[all …]
Dfile_process.py24 def filename(self): member in LinewiseFileProcessor
31 return self.filename.relative_to(Path('.').resolve())
108 def process_file(self, filename, file_handle=None): argument
110 if isinstance(filename, str):
111 filename = Path(filename).resolve()
113 self._filename = filename
Dmacro_checker.py141 def processFile(self, filename): argument
144 def __init__(self, filename): argument
145 self.filename = filename
148 return open(self.filename, 'r', encoding='utf-8')
150 f = self.macro_checker_file_type(self, filename, self.enabled_messages,
151 FileStreamMaker(filename))
165 filename = "string{}\n****START OF STRING****\n{}\n****END OF STRING****\n".format(
169 filename = "string{}: {}".format(
179 f = self.macro_checker_file_type(self, filename, self.enabled_messages,
/hardware/qcom/gps/msm8960/utils/
Dloc_cfg.h39 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
40 loc_read_conf((filename), NULL, 0);
42 #define UTIL_READ_CONF(filename, config_table) \ argument
43 … loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/invensense/65xx/libsensors_iio/
DMPLSupport.cpp146 int read_sysfs_int(char *filename, int *var) in read_sysfs_int() argument
151 sysfsfp = fopen(filename, "r"); in read_sysfs_int()
155 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int()
161 int read_sysfs_int64(char *filename, int64_t *var) in read_sysfs_int64() argument
166 sysfsfp = fopen(filename, "r"); in read_sysfs_int64()
170 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int64()
189 int write_sysfs_int(char *filename, int var) in write_sysfs_int() argument
194 sysfsfp = fopen(filename, "w"); in write_sysfs_int()
198 LOGE("HAL:ERR open file %s to write with error %d", filename, res); in write_sysfs_int()
204 int write_sysfs_longlong(char *filename, int64_t var) in write_sysfs_longlong() argument
[all …]
/hardware/qcom/gps/msm8909w_3100/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/qcom/gps/msm8998/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/qcom/gps/msm8996/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/qcom/gps/msm8084/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/qcom/gps/msm8909/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/qcom/sm8150/gps/utils/
Dloc_cfg.h62 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
63 loc_read_conf((filename), NULL, 0);
65 #define UTIL_READ_CONF(filename, config_table) \ argument
66 loc_read_conf((filename), (&config_table[0]), sizeof(config_table) / sizeof(config_table[0]))
68 #define UTIL_READ_CONF_LONG(filename, config_table, rec_len) \ argument
69 loc_read_conf_long((filename), (&config_table[0]), \
/hardware/qcom/sm7250/gps/utils/
Dloc_cfg.h62 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
63 loc_read_conf((filename), NULL, 0);
65 #define UTIL_READ_CONF(filename, config_table) \ argument
66 loc_read_conf((filename), (&config_table[0]), sizeof(config_table) / sizeof(config_table[0]))
68 #define UTIL_READ_CONF_LONG(filename, config_table, rec_len) \ argument
69 loc_read_conf_long((filename), (&config_table[0]), \
/hardware/qcom/gps/msm8994/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/qcom/gps/utils/
Dloc_cfg.h44 #define UTIL_READ_CONF_DEFAULT(filename) \ argument
45 loc_read_conf((filename), NULL, 0);
47 #define UTIL_READ_CONF(filename, config_table) \ argument
48 loc_read_conf((filename), (config_table), sizeof(config_table) / sizeof(config_table[0]))
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/
Ddeperiodize_vuids.py15 def deperiodizeFile(filename): argument
16 print(' Deperiodizing = %s' % filename)
18 with open(filename, 'r', encoding='utf8', newline='\n') as f:
24 with open(filename, 'w', encoding='utf8', newline='\n') as f:

12345678910