Lines Matching refs:lengths
39 stream->codes.lengths = stream->code_lengths; in init_stream()
45 stream->lengths.bits = 16; in init_stream()
46 stream->lengths.num_symbols = 288; in init_stream()
47 stream->lengths.lengths = stream->length_lengths; in init_stream()
48 stream->lengths.symbols = stream->length_symbols; in init_stream()
49 stream->lengths.count = stream->length_count; in init_stream()
50 stream->lengths.first = stream->length_first; in init_stream()
51 stream->lengths.pos = stream->length_pos; in init_stream()
55 stream->distance.lengths = stream->distance_lengths; in init_stream()
141 struct huffman_set *lengths = &(stream->lengths); in decompress_huffman() local
147 if ((symbol = read_symbol(stream, lengths)) < 0) return; in decompress_huffman()
196 if ((length = set->lengths[i])) in fill_code_tables()
206 cramfs_memset(set->lengths, 0, set->num_symbols); in init_code_tables()
225 struct huffman_set *lengths = &(stream->lengths); in decompress_dynamic() local
236 init_code_tables(lengths); in decompress_dynamic()
243 codes->lengths[huffman_order[i]] = length; in decompress_dynamic()
258 lengths->lengths[curr_code] = last_code = symbol; in decompress_dynamic()
259 lengths->count[symbol]++; in decompress_dynamic()
266 lengths->lengths[curr_code] = in decompress_dynamic()
268 lengths->count[last_code]++; in decompress_dynamic()
270 distance->lengths[curr_code - hlit] = in decompress_dynamic()
282 fill_code_tables(lengths); in decompress_dynamic()
293 distance->lengths[curr_code] = last_code = symbol; in decompress_dynamic()
299 distance->lengths[curr_code] = in decompress_dynamic()
321 struct huffman_set *lengths = &(stream->lengths); in decompress_fixed() local
324 cramfs_memset(lengths->count, 0, 16); in decompress_fixed()
325 cramfs_memset(lengths->first, 0, 16); in decompress_fixed()
326 cramfs_memset(lengths->lengths, 8, 144); in decompress_fixed()
327 cramfs_memset(lengths->lengths + 144, 9, 112); in decompress_fixed()
328 cramfs_memset(lengths->lengths + 256, 7, 24); in decompress_fixed()
329 cramfs_memset(lengths->lengths + 280, 8, 8); in decompress_fixed()
330 lengths->count[7] = 24; in decompress_fixed()
331 lengths->count[8] = 152; in decompress_fixed()
332 lengths->count[9] = 112; in decompress_fixed()
336 cramfs_memset(distance->lengths, 5, 32); in decompress_fixed()
340 fill_code_tables(lengths); in decompress_fixed()