Lines Matching refs:huff
218 static const struct coda_memcpy_desc huff[8] = { in coda_jpeg_write_tables() local
231 for (i = 0; i < ARRAY_SIZE(huff); i++) in coda_jpeg_write_tables()
232 coda_memcpy_parabuf(ctx->parabuf.vaddr, huff + i); in coda_jpeg_write_tables()
590 } *huff; in coda9_jpeg_gen_enc_huff_tab() local
596 huff = kzalloc(sizeof(*huff), GFP_KERNEL); in coda9_jpeg_gen_enc_huff_tab()
597 if (!huff) in coda9_jpeg_gen_enc_huff_tab()
612 huff->size[k++] = i; in coda9_jpeg_gen_enc_huff_tab()
619 si = huff->size[0]; in coda9_jpeg_gen_enc_huff_tab()
621 while (huff->size[k] == si) { in coda9_jpeg_gen_enc_huff_tab()
622 huff->code[k++] = code; in coda9_jpeg_gen_enc_huff_tab()
636 ehufco[i] = huff->code[k]; in coda9_jpeg_gen_enc_huff_tab()
637 ehufsi[i] = huff->size[k]; in coda9_jpeg_gen_enc_huff_tab()
642 kfree(huff); in coda9_jpeg_gen_enc_huff_tab()
721 } *huff; in coda9_jpeg_load_huff_tab() local
726 huff = kzalloc(sizeof(*huff), GFP_KERNEL); in coda9_jpeg_load_huff_tab()
727 if (!huff) in coda9_jpeg_load_huff_tab()
732 ret = coda9_jpeg_gen_enc_huff_tab(ctx, i, huff->size[i], in coda9_jpeg_load_huff_tab()
733 huff->code[i]); in coda9_jpeg_load_huff_tab()
759 if (huff->size[t][i] == 0 && huff->code[t][i] == 0) in coda9_jpeg_load_huff_tab()
763 ((huff->size[t][i] - 1) << 16) | in coda9_jpeg_load_huff_tab()
764 huff->code[t][i]; in coda9_jpeg_load_huff_tab()
770 kfree(huff); in coda9_jpeg_load_huff_tab()