Lines Matching refs:dc_job
596 create_cache_item_header_and_blob(struct disk_cache_put_job *dc_job, in create_cache_item_header_and_blob() argument
601 size_t max_buf = util_compress_max_compressed_len(dc_job->size); in create_cache_item_header_and_blob()
607 util_compress_deflate(dc_job->data, dc_job->size, in create_cache_item_header_and_blob()
616 if (!blob_write_bytes(cache_blob, dc_job->cache->driver_keys_blob, in create_cache_item_header_and_blob()
617 dc_job->cache->driver_keys_blob_size)) in create_cache_item_header_and_blob()
624 if (!blob_write_uint32(cache_blob, dc_job->cache_item_metadata.type)) in create_cache_item_header_and_blob()
627 if (dc_job->cache_item_metadata.type == CACHE_ITEM_TYPE_GLSL) { in create_cache_item_header_and_blob()
628 if (!blob_write_uint32(cache_blob, dc_job->cache_item_metadata.num_keys)) in create_cache_item_header_and_blob()
632 dc_job->cache_item_metadata.num_keys * sizeof(cache_key); in create_cache_item_header_and_blob()
633 if (!blob_write_bytes(cache_blob, dc_job->cache_item_metadata.keys[0], in create_cache_item_header_and_blob()
643 cf_data.uncompressed_size = dc_job->size; in create_cache_item_header_and_blob()
661 disk_cache_write_item_to_disk(struct disk_cache_put_job *dc_job, in disk_cache_write_item_to_disk() argument
683 make_cache_file_directory(dc_job->cache, dc_job->key); in disk_cache_write_item_to_disk()
725 if (!create_cache_item_header_and_blob(dc_job, &cache_blob)) { in disk_cache_write_item_to_disk()
753 p_atomic_add(dc_job->cache->size, sb.st_blocks * 512); in disk_cache_write_item_to_disk()
888 disk_cache_write_item_to_disk_foz(struct disk_cache_put_job *dc_job) in disk_cache_write_item_to_disk_foz() argument
893 if (!create_cache_item_header_and_blob(dc_job, &cache_blob)) in disk_cache_write_item_to_disk_foz()
896 bool r = foz_write_entry(&dc_job->cache->foz_db, dc_job->key, in disk_cache_write_item_to_disk_foz()