Lines Matching refs:i
141 int i; in end_rubin() local
143 for (i = 0; i < RUBIN_REG_SIZE; i++) { in end_rubin()
232 int i, ret; in out_byte() local
236 for (i=0; i<8; i++) { in out_byte()
237 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte()
238 rs->bits[i], byte & 1); in out_byte()
251 int i, result = 0, bit_divider = rs->bit_divider; in in_byte() local
253 for (i = 0; i < 8; i++) in in_byte()
254 result |= decode(rs, bit_divider - rs->bits[i], in in_byte()
255 rs->bits[i]) << i; in in_byte()
310 int i; in jffs2_dynrubin_compress() local
321 for (i=0; i<mysrclen; i++) in jffs2_dynrubin_compress()
322 histo[data_in[i]]++; in jffs2_dynrubin_compress()
324 for (i=0; i<256; i++) { in jffs2_dynrubin_compress()
325 if (i&128) in jffs2_dynrubin_compress()
326 bits[7] += histo[i]; in jffs2_dynrubin_compress()
327 if (i&64) in jffs2_dynrubin_compress()
328 bits[6] += histo[i]; in jffs2_dynrubin_compress()
329 if (i&32) in jffs2_dynrubin_compress()
330 bits[5] += histo[i]; in jffs2_dynrubin_compress()
331 if (i&16) in jffs2_dynrubin_compress()
332 bits[4] += histo[i]; in jffs2_dynrubin_compress()
333 if (i&8) in jffs2_dynrubin_compress()
334 bits[3] += histo[i]; in jffs2_dynrubin_compress()
335 if (i&4) in jffs2_dynrubin_compress()
336 bits[2] += histo[i]; in jffs2_dynrubin_compress()
337 if (i&2) in jffs2_dynrubin_compress()
338 bits[1] += histo[i]; in jffs2_dynrubin_compress()
339 if (i&1) in jffs2_dynrubin_compress()
340 bits[0] += histo[i]; in jffs2_dynrubin_compress()
343 for (i=0; i<8; i++) { in jffs2_dynrubin_compress()
344 bits[i] = (bits[i] * 256) / mysrclen; in jffs2_dynrubin_compress()
345 if (!bits[i]) bits[i] = 1; in jffs2_dynrubin_compress()
346 if (bits[i] > 255) bits[i] = 255; in jffs2_dynrubin_compress()
347 cpage_out[i] = bits[i]; in jffs2_dynrubin_compress()