Lines Matching refs:path
67 const char *path, in load() argument
79 handle = dlopen(path, RTLD_NOW); in load()
82 ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown"); in load()
117 id, path, *pHmi, handle); in load()
129 static int hw_module_exists(char *path, size_t path_len, const char *name, in hw_module_exists() argument
132 snprintf(path, path_len, "%s/%s.%s.so", in hw_module_exists()
134 if (access(path, R_OK) == 0) in hw_module_exists()
137 snprintf(path, path_len, "%s/%s.%s.so", in hw_module_exists()
139 if (access(path, R_OK) == 0) in hw_module_exists()
150 char path[PATH_MAX] = {0}; in hw_get_module_by_class() local
170 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
180 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
186 if (hw_module_exists(path, sizeof(path), name, "default") == 0) { in hw_get_module_by_class()
195 return load(class_id, path, module); in hw_get_module_by_class()