Lines Matching refs:ext
157 bool is_supported_compression(const char *ext) in is_supported_compression() argument
162 if (!strcmp(ext, compressions[i].fmt)) in is_supported_compression()
178 bool decompress_to_file(const char *ext, const char *filename, int output_fd) in decompress_to_file() argument
183 if (!strcmp(ext, compressions[i].fmt)) in decompress_to_file()
216 const char *ext = strrchr(path, '.'); in __kmod_path__parse() local
222 if (ext == NULL) { in __kmod_path__parse()
230 if (is_supported_compression(ext + 1)) { in __kmod_path__parse()
232 ext -= 3; in __kmod_path__parse()
236 if (ext > name) in __kmod_path__parse()
237 m->kmod = !strncmp(ext, ".ko", 3); in __kmod_path__parse()
241 if (asprintf(&m->name, "[%.*s]", (int) (ext - name), name) == -1) in __kmod_path__parse()
252 m->ext = strdup(ext + 4); in __kmod_path__parse()
253 if (!m->ext) { in __kmod_path__parse()