Searched refs:in_pos (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/lib/xz/
H A Dxz_dec_stream.c41 /* Saved in_pos and out_pos */
152 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller
160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); fill_temp()
162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); fill_temp()
163 b->in_pos += copy_size; fill_temp()
176 size_t *in_pos, size_t in_size) dec_vli()
183 while (*in_pos < in_size) { dec_vli()
184 byte = in[*in_pos]; dec_vli()
185 ++*in_pos; dec_vli()
222 s->in_start = b->in_pos; dec_block()
232 s->block.compressed += b->in_pos - s->in_start; dec_block()
283 size_t in_used = b->in_pos - s->in_start; index_update()
301 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); dec_index()
349 if (b->in_pos == b->in_size) crc32_validate()
352 if (((s->crc32 >> s->pos) & 0xFF) != b->in[b->in_pos++]) crc32_validate()
373 if (b->in_pos == b->in_size) check_skip()
376 ++b->in_pos; check_skip()
557 s->in_start = b->in_pos; dec_main()
588 if (b->in_pos == b->in_size) dec_main()
592 if (b->in[b->in_pos] == 0) { dec_main()
593 s->in_start = b->in_pos++; dec_main()
603 = ((uint32_t)b->in[b->in_pos] + 1) * 4; dec_main()
635 if (b->in_pos == b->in_size) dec_main()
638 if (b->in[b->in_pos++] != 0) dec_main()
669 while ((s->index.size + (b->in_pos - s->in_start)) dec_main()
671 if (b->in_pos == b->in_size) { dec_main()
676 if (b->in[b->in_pos++] != 0) dec_main()
728 * If single-call decoding fails, we reset b->in_pos and b->out_pos back to
743 in_start = b->in_pos; xz_dec_run()
749 ret = b->in_pos == b->in_size xz_dec_run()
753 b->in_pos = in_start; xz_dec_run()
757 } else if (ret == XZ_OK && in_start == b->in_pos xz_dec_run()
175 dec_vli(struct xz_dec *s, const uint8_t *in, size_t *in_pos, size_t in_size) dec_vli() argument
H A Dxz_dec_lzma2.c110 size_t in_pos; member in struct:rc_dec
379 while (*left > 0 && b->in_pos < b->in_size dict_uncompressed()
381 copy_size = min(b->in_size - b->in_pos, dict_uncompressed()
390 memcpy(dict->buf + dict->pos, b->in + b->in_pos, copy_size); dict_uncompressed()
400 memcpy(b->out + b->out_pos, b->in + b->in_pos, dict_uncompressed()
407 b->in_pos += copy_size; dict_uncompressed()
452 if (b->in_pos == b->in_size) rc_read_init()
455 rc->code = (rc->code << 8) + b->in[b->in_pos++]; rc_read_init()
465 return rc->in_pos > rc->in_limit; rc_limit_exceeded()
482 rc->code = (rc->code << RC_SHIFT_BITS) + rc->in[rc->in_pos++]; rc_normalize()
851 in_avail = b->in_size - b->in_pos; lzma2_lzma()
859 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); lzma2_lzma()
868 b->in_pos += tmp; lzma2_lzma()
875 s->rc.in_pos = 0; lzma2_lzma()
877 if (!lzma_main(s) || s->rc.in_pos > s->temp.size + tmp) lzma2_lzma()
880 s->lzma2.compressed -= s->rc.in_pos; lzma2_lzma()
882 if (s->rc.in_pos < s->temp.size) { lzma2_lzma()
883 s->temp.size -= s->rc.in_pos; lzma2_lzma()
884 memmove(s->temp.buf, s->temp.buf + s->rc.in_pos, lzma2_lzma()
889 b->in_pos += s->rc.in_pos - s->temp.size; lzma2_lzma()
893 in_avail = b->in_size - b->in_pos; lzma2_lzma()
896 s->rc.in_pos = b->in_pos; lzma2_lzma()
899 s->rc.in_limit = b->in_pos + s->lzma2.compressed; lzma2_lzma()
906 in_avail = s->rc.in_pos - b->in_pos; lzma2_lzma()
911 b->in_pos = s->rc.in_pos; lzma2_lzma()
914 in_avail = b->in_size - b->in_pos; lzma2_lzma()
919 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); lzma2_lzma()
921 b->in_pos += in_avail; lzma2_lzma()
936 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { xz_dec_lzma2_run()
970 tmp = b->in[b->in_pos++]; xz_dec_lzma2_run()
1018 += (uint32_t)b->in[b->in_pos++] << 8; xz_dec_lzma2_run()
1024 += (uint32_t)b->in[b->in_pos++] + 1; xz_dec_lzma2_run()
1030 = (uint32_t)b->in[b->in_pos++] << 8; xz_dec_lzma2_run()
1036 += (uint32_t)b->in[b->in_pos++] + 1; xz_dec_lzma2_run()
1041 if (!lzma_props(s, b->in[b->in_pos++])) xz_dec_lzma2_run()
1087 || (b->in_pos == b->in_size xz_dec_lzma2_run()
H A Dxz_dec_test.c75 buffers.in_pos = 0; xz_dec_test_open()
122 if (buffers.in_pos == buffers.in_size) { xz_dec_test_write()
123 buffers.in_pos = 0; xz_dec_test_write()
145 return size - remaining - (buffers.in_size - buffers.in_pos); xz_dec_test_write()
/linux-4.1.27/fs/squashfs/
H A Dxz_wrapper.c141 stream->buf.in_pos = 0; squashfs_xz_uncompress()
148 if (stream->buf.in_pos == stream->buf.in_size && k < b) { squashfs_xz_uncompress()
153 stream->buf.in_pos = 0; squashfs_xz_uncompress()
167 if (stream->buf.in_pos == stream->buf.in_size && k < b) squashfs_xz_uncompress()
/linux-4.1.27/include/linux/
H A Dxz.h123 * if in_pos is equal to in_size.
124 * @in_pos: Current position in the input buffer. This must not exceed
134 * the variables in_pos and out_pos are modified by the XZ code.
138 size_t in_pos; member in struct:xz_buf
205 * XZ_STREAM_END), b->in_pos and b->out_pos are not modified and the
/linux-4.1.27/lib/
H A Ddecompress_unxz.c295 b.in_pos = 0; unxz()
303 if (b.in_pos == b.in_size && fill != NULL) { unxz()
305 *in_used += b.in_pos; unxz()
307 b.in_pos = 0; unxz()
347 *in_used += b.in_pos; unxz()
/linux-4.1.27/sound/usb/caiaq/
H A Daudio.c232 int in_pos; snd_usb_caiaq_pcm_prepare() local
236 in_pos = BYTES_PER_SAMPLE + 2; snd_usb_caiaq_pcm_prepare()
239 in_pos = BYTES_PER_SAMPLE; snd_usb_caiaq_pcm_prepare()
243 in_pos = 0; snd_usb_caiaq_pcm_prepare()
247 cdev->period_in_count[index] = in_pos; snd_usb_caiaq_pcm_prepare()
248 cdev->audio_in_buf_pos[index] = in_pos; snd_usb_caiaq_pcm_prepare()
/linux-4.1.27/drivers/pinctrl/sh-pfc/
H A Dcore.c182 unsigned int in_pos, sh_pfc_config_reg_helper()
192 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); sh_pfc_config_reg_helper()
194 *maskp = (1 << crp->var_field_width[in_pos]) - 1; sh_pfc_config_reg_helper()
196 for (k = 0; k <= in_pos; k++) sh_pfc_config_reg_helper()
180 sh_pfc_config_reg_helper(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int in_pos, void __iomem **mapped_regp, u32 *maskp, unsigned int *posp) sh_pfc_config_reg_helper() argument

Completed in 354 milliseconds