Lines Matching refs:path
69 const char *path, in load() argument
81 handle = dlopen(path, RTLD_NOW); in load()
84 ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown"); in load()
119 id, path, *pHmi, handle); in load()
131 static int hw_module_exists(char *path, size_t path_len, const char *name, in hw_module_exists() argument
134 snprintf(path, path_len, "%s/%s.%s.so", in hw_module_exists()
136 if (access(path, R_OK) == 0) in hw_module_exists()
139 snprintf(path, path_len, "%s/%s.%s.so", in hw_module_exists()
141 if (access(path, R_OK) == 0) in hw_module_exists()
144 snprintf(path, path_len, "%s/%s.%s.so", in hw_module_exists()
146 if (access(path, R_OK) == 0) in hw_module_exists()
157 char path[PATH_MAX] = {0}; in hw_get_module_by_class() local
177 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
187 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
193 if (hw_module_exists(path, sizeof(path), name, "default") == 0) { in hw_get_module_by_class()
202 return load(class_id, path, module); in hw_get_module_by_class()