Lines Matching refs:cc
29 decomp_nextvcn (struct grub_ntfs_comp *cc)
31 if (cc->comp_head >= cc->comp_tail)
34 (cc->disk,
35 (cc->comp_table[cc->comp_head][1] -
36 (cc->comp_table[cc->comp_head][0] - cc->cbuf_vcn)) * cc->spc, 0,
37 cc->spc << GRUB_NTFS_BLK_SHR, cc->cbuf))
39 cc->cbuf_vcn++;
40 if ((cc->cbuf_vcn >= cc->comp_table[cc->comp_head][0]))
41 cc->comp_head++;
42 cc->cbuf_ofs = 0;
47 decomp_getch (struct grub_ntfs_comp *cc, unsigned char *res)
49 if (cc->cbuf_ofs >= (cc->spc << GRUB_NTFS_BLK_SHR))
51 if (decomp_nextvcn (cc))
54 *res = (unsigned char) cc->cbuf[cc->cbuf_ofs++];
59 decomp_get16 (struct grub_ntfs_comp *cc, grub_uint16_t * res)
63 if ((decomp_getch (cc, &c1)) || (decomp_getch (cc, &c2)))
71 decomp_block (struct grub_ntfs_comp *cc, char *dest)
75 if (decomp_get16 (cc, &flg))
95 if (decomp_getch (cc, &tag))
108 if (decomp_get16 (cc, &word))
140 if (decomp_getch (cc, &ch))
162 n = (cc->spc << GRUB_NTFS_BLK_SHR) - cc->cbuf_ofs;
167 grub_memcpy (dest, &cc->cbuf[cc->cbuf_ofs], n);
171 cc->cbuf_ofs += n;
172 if ((cnt) && (decomp_nextvcn (cc)))