/openbmc/libcper/ |
H A D | base64.c | 21 const UINT8 *in_pos; in base64_encode() local 41 in_pos = src; in base64_encode() 43 while (src_end - in_pos >= 3) { in base64_encode() 44 *out_pos++ = encode_table[in_pos[0] >> 2]; in base64_encode() 45 *out_pos++ = encode_table[((in_pos[0] & 0x03) << 4) | in base64_encode() 46 (in_pos[1] >> 4)]; in base64_encode() 47 *out_pos++ = encode_table[((in_pos[1] & 0x0f) << 2) | in base64_encode() 48 (in_pos[2] >> 6)]; in base64_encode() 49 *out_pos++ = encode_table[in_pos[2] & 0x3f]; in base64_encode() 50 in_pos += 3; in base64_encode() [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_dec_stream.c | 160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 163 b->in_pos += copy_size; in fill_temp() 176 size_t *in_pos, size_t in_size) in dec_vli() argument 183 while (*in_pos < in_size) { in dec_vli() 184 byte = in[*in_pos]; in dec_vli() 185 ++*in_pos; in dec_vli() 222 s->in_start = b->in_pos; in dec_block() 232 s->block.compressed += b->in_pos - s->in_start; in dec_block() 283 size_t in_used = b->in_pos - s->in_start; in index_update() [all …]
|
H A D | xz_dec_lzma2.c | 110 size_t in_pos; member 383 while (*left > 0 && b->in_pos < b->in_size in dict_uncompressed() 385 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed() 401 memmove(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed() 415 memmove(b->out + b->out_pos, b->in + b->in_pos, in dict_uncompressed() 422 b->in_pos += copy_size; in dict_uncompressed() 484 if (b->in_pos == b->in_size) in rc_read_init() 487 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init() 497 return rc->in_pos > rc->in_limit; in rc_limit_exceeded() 514 rc->code = (rc->code << RC_SHIFT_BITS) + rc->in[rc->in_pos++]; in rc_normalize() [all …]
|
H A D | xz_dec_test.c | 75 buffers.in_pos = 0; in xz_dec_test_open() 122 if (buffers.in_pos == buffers.in_size) { in xz_dec_test_write() 123 buffers.in_pos = 0; in xz_dec_test_write() 145 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()
|
/openbmc/linux/lib/ |
H A D | decompress_unzstd.c | 126 long out_len, long *in_pos, in decompress_single() argument 155 if (in_pos != NULL) in decompress_single() 156 *in_pos = in_len; in decompress_single() 169 long *in_pos, in __unzstd() argument 197 in_pos, error); in __unzstd() 283 if (in_pos != NULL) in __unzstd() 284 *in_pos = 0; in __unzstd() 291 if (in_pos != NULL) in __unzstd() 292 *in_pos += in.pos; in __unzstd() 318 if (in_pos != NULL) in __unzstd() [all …]
|
H A D | decompress_unxz.c | 297 b.in_pos = 0; in unxz() 305 if (b.in_pos == b.in_size && fill != NULL) { in unxz() 307 *in_used += b.in_pos; in unxz() 309 b.in_pos = 0; in unxz() 349 *in_used += b.in_pos; in unxz()
|
/openbmc/linux/init/ |
H A D | do_mounts_rd.c | 18 static loff_t in_pos, out_pos; variable 206 in_pos = rd_image_start * BLOCK_SIZE; in rd_load_image() 207 nblocks = identify_ramdisk_image(in_file, in_pos, &decompressor); in rd_load_image() 256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image() 291 long r = kernel_read(in_file, buf, len, &in_pos); in compr_fill()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | sh_pfc.c | 70 unsigned long in_pos) in gpio_read_bit() argument 74 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit() 84 unsigned long in_pos, unsigned long value) in gpio_write_bit() argument 88 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit() 104 unsigned long in_pos, in config_reg_helper() argument 119 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in config_reg_helper() 121 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in config_reg_helper() 123 for (k = 0; k <= in_pos; k++) in config_reg_helper()
|
/openbmc/linux/fs/squashfs/ |
H A D | xz_wrapper.c | 129 stream->buf.in_pos = 0; in squashfs_xz_uncompress() 142 if (stream->buf.in_pos == stream->buf.in_size) { in squashfs_xz_uncompress() 157 stream->buf.in_pos = 0; in squashfs_xz_uncompress()
|
/openbmc/linux/fs/erofs/ |
H A D | decompressor_lzma.c | 195 strm->buf.in_pos = 0; in z_erofs_lzma_decompress() 229 } else if (strm->buf.in_pos == strm->buf.in_size) { in z_erofs_lzma_decompress() 237 strm->buf.in_pos = 0; in z_erofs_lzma_decompress() 272 DBG_BUGON(strm->buf.in_pos > strm->buf.in_size); in z_erofs_lzma_decompress()
|
/openbmc/linux/sound/usb/caiaq/ |
H A D | audio.c | 212 int in_pos; in snd_usb_caiaq_pcm_prepare() local 216 in_pos = BYTES_PER_SAMPLE + 2; in snd_usb_caiaq_pcm_prepare() 219 in_pos = BYTES_PER_SAMPLE; in snd_usb_caiaq_pcm_prepare() 223 in_pos = 0; in snd_usb_caiaq_pcm_prepare() 227 cdev->period_in_count[index] = in_pos; in snd_usb_caiaq_pcm_prepare() 228 cdev->audio_in_buf_pos[index] = in_pos; in snd_usb_caiaq_pcm_prepare()
|
/openbmc/linux/include/linux/ |
H A D | xz.h | 138 size_t in_pos; member
|
/openbmc/u-boot/drivers/pinctrl/renesas/ |
H A D | pfc.c | 140 unsigned int in_pos, in sh_pfc_config_reg_helper() argument 150 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper() 152 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in sh_pfc_config_reg_helper() 154 for (k = 0; k <= in_pos; k++) in sh_pfc_config_reg_helper()
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | core.c | 201 unsigned int in_pos, in sh_pfc_config_reg_helper() argument 211 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper() 213 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in sh_pfc_config_reg_helper() 215 for (k = 0; k <= in_pos; k++) in sh_pfc_config_reg_helper()
|
/openbmc/linux/kernel/module/ |
H A D | decompress.c | 171 xz_buf.in_pos = 0; in module_xz_decompress()
|
/openbmc/qemu/ |
H A D | qemu-img.c | 5089 int64_t out_pos, in_pos; in img_dd() local 5282 in_pos = size; in img_dd() 5284 in_pos = in.offset * in.bsz; in img_dd() 5289 for (out_pos = 0; in_pos < size; ) { in img_dd() 5290 int bytes = (in_pos + in.bsz > size) ? size - in_pos : in.bsz; in img_dd() 5292 ret = blk_pread(blk1, in_pos, bytes, in.buf, 0); in img_dd() 5298 in_pos += bytes; in img_dd()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2.c | 440 dec_buf.in_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-image-convert.c | 546 unsigned int in_pos; in find_best_seam() local 563 in_pos = (out_pos * resize_coeff) << downsize_coeff; in find_best_seam() 568 in_pos_aligned = round_closest(in_pos, 8192U * in_align); in find_best_seam() 581 diff = abs_diff(in_pos, in_pos_aligned); in find_best_seam()
|
/openbmc/linux/drivers/base/firmware_loader/ |
H A D | main.c | 398 xz_buf.in_pos = 0; in fw_decompress_xz_single() 426 xz_buf.in_pos = 0; in fw_decompress_xz_pages()
|