Lines Matching refs:ext
162 bool is_supported_compression(const char *ext) in is_supported_compression() argument
167 if (!strcmp(ext, compressions[i].fmt)) in is_supported_compression()
199 bool decompress_to_file(const char *ext, const char *filename, int output_fd) in decompress_to_file() argument
204 if (!strcmp(ext, compressions[i].fmt)) in decompress_to_file()
237 const char *ext = strrchr(path, '.'); in __kmod_path__parse() local
264 if ((ext == NULL) || is_simple_name) { in __kmod_path__parse()
272 if (is_supported_compression(ext + 1)) { in __kmod_path__parse()
274 ext -= 3; in __kmod_path__parse()
278 if (ext > name) in __kmod_path__parse()
279 m->kmod = !strncmp(ext, ".ko", 3); in __kmod_path__parse()
283 if (asprintf(&m->name, "[%.*s]", (int) (ext - name), name) == -1) in __kmod_path__parse()
294 m->ext = strdup(ext + 4); in __kmod_path__parse()
295 if (!m->ext) { in __kmod_path__parse()