Lines Matching refs:name
148 static int hw_module_exists(char *path, size_t path_len, const char *name, in hw_module_exists() argument
152 HAL_LIBRARY_PATH3, name, subname); in hw_module_exists()
157 HAL_LIBRARY_PATH2, name, subname); in hw_module_exists()
163 HAL_LIBRARY_PATH1, name, subname); in hw_module_exists()
177 char name[PATH_MAX] = {0}; in hw_get_module_by_class() local
182 snprintf(name, PATH_MAX, "%s.%s", class_id, inst); in hw_get_module_by_class()
184 strlcpy(name, class_id, PATH_MAX); in hw_get_module_by_class()
194 snprintf(prop_name, sizeof(prop_name), "ro.hardware.%s", name); in hw_get_module_by_class()
196 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
206 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
212 if (hw_module_exists(path, sizeof(path), name, "default") == 0) { in hw_get_module_by_class()