Home
last modified time | relevance | path

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

123456

/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/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/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/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/qcom/msm8998/json-c/
Djson_util.c67 struct json_object* json_object_from_file(const char *filename) in json_object_from_file() argument
74 if((fd = open(filename, O_RDONLY)) < 0) { in json_object_from_file()
76 filename, strerror(errno)); in json_object_from_file()
90 filename, strerror(errno)); in json_object_from_file()
101 int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags) in json_object_to_file_ext() argument
112 if((fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644)) < 0) { in json_object_to_file_ext()
114 filename, strerror(errno)); in json_object_to_file_ext()
129 filename, strerror(errno)); in json_object_to_file_ext()
143 int json_object_to_file(const char *filename, struct json_object *obj) in json_object_to_file() argument
145 return json_object_to_file_ext(filename, obj, JSON_C_TO_STRING_PLAIN); in json_object_to_file()
/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/qcom/sdm845/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/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/sdm845/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/sdm845/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/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/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/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/sdm845/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/sdm845/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/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/sdm845/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/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/qcom/sdm845/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/invensense/6515/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/interfaces/usb/1.0/default/
DUsb.cpp41 int32_t readFile(std::string filename, std::string& contents) { in readFile() argument
42 std::ifstream file(filename); in readFile()
87 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), in switchRole() local
89 std::ofstream file(filename); in switchRole()
92 ALOGI("filename write: %s role:%d", filename.c_str(), newRole.role); in switchRole()
97 if (!readFile(filename, written)) { in switchRole()
120 std::string filename; in getCurrentRoleHelper() local
124 filename = "/sys/class/dual_role_usb/" + in getCurrentRoleHelper()
128 filename = "/sys/class/dual_role_usb/" + in getCurrentRoleHelper()
132 filename = "/sys/class/dual_role_usb/" + in getCurrentRoleHelper()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/test/
Dmm_lib2d_test.c53 #define DUMP_TO_FILE(filename, p_addr, len) ({ \ argument
55 FILE *fp = fopen(filename, "w+"); \
61 printf(" ] open %s failed \n", __LINE__, filename); \
72 #define DUMP_TO_FILE2(filename, p_addr1, len1, p_addr2, len2) ({ \ argument
74 FILE *fp = fopen(filename, "w+"); \
81 printf(" ] open %s failed \n", __LINE__, filename); \
109 char filename[512]; member
349 const char *filename; in main() local
387 filename = argv[1]; in main()
405 filename = input_nv21[index].filename; in main()
[all …]

123456