Lines Matching refs:outpos
37 int outpos = 0; in jffs2_rtime_compress() local
45 while (pos < (*sourcelen) && outpos <= (*dstlen)-2) { in jffs2_rtime_compress()
51 cpage_out[outpos++] = data_in[pos++]; in jffs2_rtime_compress()
61 cpage_out[outpos++] = runlen; in jffs2_rtime_compress()
64 if (outpos >= pos) { in jffs2_rtime_compress()
71 *dstlen = outpos; in jffs2_rtime_compress()
81 int outpos = 0; in jffs2_rtime_decompress() local
86 while (outpos<destlen) { in jffs2_rtime_decompress()
92 cpage_out[outpos++] = value; /* first the verbatim copied byte */ in jffs2_rtime_decompress()
96 positions[value]=outpos; in jffs2_rtime_decompress()
98 if (backoffs + repeat >= outpos) { in jffs2_rtime_decompress()
100 cpage_out[outpos++] = cpage_out[backoffs++]; in jffs2_rtime_decompress()
104 memcpy(&cpage_out[outpos],&cpage_out[backoffs],repeat); in jffs2_rtime_decompress()
105 outpos+=repeat; in jffs2_rtime_decompress()