Lines Matching refs:ext
158 bool is_supported_compression(const char *ext) in is_supported_compression() argument
163 if (!strcmp(ext, compressions[i].fmt)) in is_supported_compression()
195 bool decompress_to_file(const char *ext, const char *filename, int output_fd) in decompress_to_file() argument
200 if (!strcmp(ext, compressions[i].fmt)) in decompress_to_file()
233 const char *ext = strrchr(path, '.'); in __kmod_path__parse() local
260 if ((ext == NULL) || is_simple_name) { in __kmod_path__parse()
268 if (is_supported_compression(ext + 1)) { in __kmod_path__parse()
270 ext -= 3; in __kmod_path__parse()
274 if (ext > name) in __kmod_path__parse()
275 m->kmod = !strncmp(ext, ".ko", 3); in __kmod_path__parse()
279 if (asprintf(&m->name, "[%.*s]", (int) (ext - name), name) == -1) in __kmod_path__parse()
290 m->ext = strdup(ext + 4); in __kmod_path__parse()
291 if (!m->ext) { in __kmod_path__parse()