Home | History | Annotate | Download | only in xz-embedded

Lines Matching full:buffers

42  * Input and output buffers. The input buffer is used as a temporary safe
49 * Structure to pass the input and output buffers to the XZ decoder.
52 static struct xz_buf buffers = {
75 buffers.in_pos = 0;
76 buffers.in_size = 0;
77 buffers.out_pos = 0;
120 while ((remaining > 0 || buffers.out_pos == buffers.out_size)
122 if (buffers.in_pos == buffers.in_size) {
123 buffers.in_pos = 0;
124 buffers.in_size = min(remaining, sizeof(buffer_in));
125 if (copy_from_user(buffer_in, buf, buffers.in_size))
128 buf += buffers.in_size;
129 remaining -= buffers.in_size;
132 buffers.out_pos = 0;
133 ret = xz_dec_run(state, &buffers);
134 crc = crc32(crc, buffer_out, buffers.out_pos);
145 return size - remaining - (buffers.in_size - buffers.in_pos);