Lines Matching refs:file
87 const struct clc_file *file;
100 clc->file = get_libclc_file(ptr_bit_size);
103 if (clc->file->static_data) {
110 if (clc->file->sys_path != NULL) {
111 int fd = open(clc->file->sys_path, O_RDONLY);
118 fprintf(stderr, "fstat failed on %s: %m\n", clc->file->sys_path);
125 _mesa_sha1_update(&ctx, clc->file->sys_path, strlen(clc->file->sys_path));
143 if (clc->file->static_data) {
146 ZSTD_getFrameContentSize(clc->file->static_data,
147 clc->file->static_data_size);
156 ZSTD_findFrameCompressedSize(clc->file->static_data,
157 clc->file->static_data_size);
166 size_t size = ZSTD_decompress(dest, cmp_size, clc->file->static_data,
178 clc->data = clc->file->static_data;
179 clc->size = clc->file->static_data_size;
185 if (clc->file->sys_path != NULL) {
209 if (clc->file->static_data) {
217 if (clc->file->sys_path != NULL) {
228 * depend on a dynamic libclc, this opens and tries to stat the file.