Home
last modified time | relevance | path

Searched refs:file_buffer (Results 1 – 7 of 7) sorted by relevance

/external/squashfs-tools/squashfs-tools/
Dprocess_fragments.c60 static int checksum_sparse(struct file_buffer *file_buffer) in checksum_sparse() argument
62 unsigned char *b = (unsigned char *) file_buffer->data; in checksum_sparse()
64 int bytes = file_buffer->size, sparse = TRUE, value; in checksum_sparse()
75 file_buffer->checksum = chksum; in checksum_sparse()
100 static struct file_buffer *get_fragment(struct fragment *fragment, in get_fragment()
104 struct file_buffer *buffer, *compressed_buffer; in get_fragment()
219 struct file_buffer *get_fragment_cksum(struct file_info *file, in get_fragment_cksum()
222 struct file_buffer *frag_buffer; in get_fragment_cksum()
274 struct file_buffer *file_buffer = queue_get(to_process_frag); in frag_thrd() local
275 struct file_buffer *buffer; in frag_thrd()
[all …]
Dcaches-queues-lists.h58 void insert_##NAME##_hash_table(TYPE *container, struct file_buffer *entry) \
71 void remove_##NAME##_hash_table(TYPE *container, struct file_buffer *entry) \
89 struct file_buffer { struct
102 struct file_buffer *hash_next; argument
106 struct file_buffer *hash_prev; argument
110 struct file_buffer *free_next; argument
111 struct file_buffer *free_prev;
114 struct file_buffer *seq_next;
115 struct file_buffer *seq_prev;
149 struct file_buffer *hash_table[HASH_SIZE]; argument
[all …]
Dcaches-queues-lists.c169 void seq_queue_put(struct seq_queue *queue, struct file_buffer *entry) in seq_queue_put()
188 struct file_buffer *seq_queue_get(struct seq_queue *queue) in seq_queue_get()
195 struct file_buffer *entry; in seq_queue_get()
277 INSERT_LIST(free, struct file_buffer) in INSERT_LIST() argument
280 REMOVE_LIST(free, struct file_buffer) in INSERT_LIST()
322 memset(cache->hash_table, 0, sizeof(struct file_buffer *) * 65536); in INSERT_LIST()
331 struct file_buffer *cache_lookup(struct cache *cache, long long index) in cache_lookup()
336 struct file_buffer *entry; in cache_lookup()
362 static struct file_buffer *cache_freelist(struct cache *cache) in cache_freelist()
364 struct file_buffer *entry = cache->free_list; in cache_freelist()
[all …]
Dmksquashfs.c311 struct file_buffer *file_buffer, int blocks, unsigned short checksum,
1370 static struct file_buffer *get_fragment(struct fragment *fragment) in get_fragment()
1373 struct file_buffer *buffer, *compressed_buffer; in get_fragment()
1493 struct file_buffer *frag_buffer; in get_fragment_checksum()
1548 struct file_buffer *write_buffer; in unlock_fragments()
1576 void add_pending_fragment(struct file_buffer *write_buffer, int c_byte, in add_pending_fragment()
1586 void write_fragment(struct file_buffer *fragment) in write_fragment()
1600 struct file_buffer *allocate_fragment() in allocate_fragment()
1602 struct file_buffer *fragment = cache_get(fragment_buffer, fragments); in allocate_fragment()
1634 struct fragment *get_and_fill_fragment(struct file_buffer *file_buffer, in get_and_fill_fragment() argument
[all …]
Daction.c70 static struct file_buffer *def_fragment = NULL;
/external/vboot_reference/host/arch/x86_64/lib/
Dcrossystem_arch.c229 char* file_buffer = NULL; in VbGetBuffer() local
251 file_buffer = malloc(fs.st_size + 1); in VbGetBuffer()
252 if (!file_buffer) in VbGetBuffer()
255 real_size = fread(file_buffer, 1, fs.st_size, f); in VbGetBuffer()
258 file_buffer[real_size] = '\0'; in VbGetBuffer()
272 base = file_buffer + i; in VbGetBuffer()
299 if (file_buffer) in VbGetBuffer()
300 free(file_buffer); in VbGetBuffer()
/external/vboot_reference/host/arch/x86/lib/
Dcrossystem_arch.c229 char* file_buffer = NULL; in VbGetBuffer() local
251 file_buffer = malloc(fs.st_size + 1); in VbGetBuffer()
252 if (!file_buffer) in VbGetBuffer()
255 real_size = fread(file_buffer, 1, fs.st_size, f); in VbGetBuffer()
258 file_buffer[real_size] = '\0'; in VbGetBuffer()
272 base = file_buffer + i; in VbGetBuffer()
299 if (file_buffer) in VbGetBuffer()
300 free(file_buffer); in VbGetBuffer()