/openbmc/libcper/ |
H A D | base64.c | 19 CHAR8 *out_pos; in base64_encode() local 42 out_pos = out; 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() 47 *out_pos++ = encode_table[((in_pos[1] & 0x0f) << 2) | in base64_encode() 49 *out_pos++ = encode_table[in_pos[2] & 0x3f]; in base64_encode() 54 *out_pos++ = encode_table[in_pos[0] >> 2]; in base64_encode() 56 *out_pos++ = encode_table[(in_pos[0] & 0x03) << 4]; in base64_encode() 57 *out_pos++ = '='; in base64_encode() 61 *out_pos++ = encode_table[(in_pos[1] & 0x0f) << 2]; in base64_encode() [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-msglog.c | 25 __be32 out_pos; member 39 uint32_t out_pos, avail; in memcons_copy() local 44 out_pos = be32_to_cpu(READ_ONCE(mc->out_pos)); in memcons_copy() 55 if (out_pos & MEMCONS_OUT_POS_WRAP) { in memcons_copy() 57 out_pos &= MEMCONS_OUT_POS_MASK; in memcons_copy() 58 avail = be32_to_cpu(mc->obuf_size) - out_pos; in memcons_copy() 61 conbuf + out_pos, avail); in memcons_copy() 76 if (out_pos > be32_to_cpu(mc->obuf_size)) { in memcons_copy() 81 ret = memory_read_from_buffer(to, count, &pos, conbuf, out_pos); in memcons_copy()
|
/openbmc/linux/lib/xz/ |
H A D | xz_dec_bcj.c | 52 size_t out_pos; member 405 b->out_pos += copy_size; in bcj_flush() 450 out_start = b->out_pos; in xz_dec_bcj_run() 452 b->out_pos += s->temp.size; in xz_dec_bcj_run() 469 s->temp.size = b->out_pos - out_start; in xz_dec_bcj_run() 470 b->out_pos -= s->temp.size; in xz_dec_bcj_run() 490 if (b->out_pos < b->out_size) { in xz_dec_bcj_run() 493 s->out_pos = b->out_pos; in xz_dec_bcj_run() 496 b->out_pos = s->temp.size; in xz_dec_bcj_run() 501 s->temp.size = b->out_pos; in xz_dec_bcj_run() [all …]
|
H A D | xz_dec_test.c | 77 buffers.out_pos = 0; in xz_dec_test_open() 120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write() 132 buffers.out_pos = 0; in xz_dec_test_write() 134 crc = crc32(crc, buffer_out, buffers.out_pos); in xz_dec_test_write()
|
H A D | xz_dec_lzma2.c | 293 dict->buf = b->out + b->out_pos; in dict_reset() 294 dict->end = b->out_size - b->out_pos; in dict_reset() 384 && b->out_pos < b->out_size) { in dict_uncompressed() 386 b->out_size - b->out_pos); in dict_uncompressed() 415 memmove(b->out + b->out_pos, b->in + b->in_pos, in dict_uncompressed() 421 b->out_pos += copy_size; in dict_uncompressed() 461 b->out_pos += copy_size; in dict_flush() 1104 b->out_size - b->out_pos, in xz_dec_lzma2_run() 1119 } else if (b->out_pos == b->out_size in xz_dec_lzma2_run() 1263 s->dict.end = b->out_size - b->out_pos; in xz_dec_microlzma_run() [all …]
|
H A D | xz_dec_stream.c | 223 s->out_start = b->out_pos; in dec_block() 233 s->block.uncompressed += b->out_pos - s->out_start; in dec_block() 246 b->out_pos - s->out_start, s->crc32); in dec_block() 760 out_start = b->out_pos; in xz_dec_run() 770 b->out_pos = out_start; in xz_dec_run() 774 && out_start == b->out_pos) { in xz_dec_run()
|
/openbmc/linux/lib/ |
H A D | decompress_unxz.c | 299 b.out_pos = 0; in unxz() 327 if (flush != NULL && (b.out_pos == b.out_size in unxz() 328 || (ret != XZ_OK && b.out_pos > 0))) { in unxz() 334 if (flush(b.out, b.out_pos) != (long)b.out_pos) in unxz() 337 b.out_pos = 0; in unxz()
|
/openbmc/qemu/hw/usb/ |
H A D | canokey.c | 195 uint32_t out_pos; in canokey_handle_data() local 201 out_pos = 0; in canokey_handle_data() 202 while (out_pos != p->iov.size) { in canokey_handle_data() 209 out_len = MIN(p->iov.size - out_pos, key->ep_out_size[ep_out]); in canokey_handle_data() 211 key->ep_out_buffer[ep_out] + out_pos, out_len); in canokey_handle_data() 212 out_pos += out_len; in canokey_handle_data()
|
/openbmc/linux/fs/squashfs/ |
H A D | xz_wrapper.c | 131 stream->buf.out_pos = 0; in squashfs_xz_uncompress() 161 if (stream->buf.out_pos == stream->buf.out_size) { in squashfs_xz_uncompress() 167 stream->buf.out_pos = 0; in squashfs_xz_uncompress() 184 return error ? error : total + stream->buf.out_pos; in squashfs_xz_uncompress()
|
/openbmc/linux/fs/erofs/ |
H A D | decompressor_lzma.c | 199 strm->buf.out_pos = 0; in z_erofs_lzma_decompress() 205 if (strm->buf.out_pos == strm->buf.out_size) { in z_erofs_lzma_decompress() 216 strm->buf.out_pos = 0; in z_erofs_lzma_decompress() 271 DBG_BUGON(strm->buf.out_pos > strm->buf.out_size); in z_erofs_lzma_decompress()
|
/openbmc/linux/init/ |
H A D | do_mounts_rd.c | 18 static loff_t in_pos, out_pos; variable 257 kernel_write(out_file, buf, BLOCK_SIZE, &out_pos); in rd_load_image() 301 long written = kernel_write(out_file, window, outcnt, &out_pos); in compr_flush()
|
/openbmc/linux/kernel/module/ |
H A D | decompress.c | 182 xz_buf.out_pos = 0; in module_xz_decompress() 187 new_size += xz_buf.out_pos; in module_xz_decompress() 188 } while (xz_buf.out_pos == PAGE_SIZE && xz_ret == XZ_OK); in module_xz_decompress()
|
/openbmc/linux/include/linux/ |
H A D | xz.h | 142 size_t out_pos; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2.c | 445 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz() 458 curr_off += dec_buf.out_pos; in mlxfw_mfa2_file_cb_offset_xz() 462 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
|
/openbmc/linux/sound/usb/caiaq/ |
H A D | audio.c | 196 int out_pos; in snd_usb_caiaq_pcm_prepare() local 201 out_pos = BYTES_PER_SAMPLE + 1; in snd_usb_caiaq_pcm_prepare() 205 out_pos = 0; in snd_usb_caiaq_pcm_prepare() 209 cdev->period_out_count[index] = out_pos; in snd_usb_caiaq_pcm_prepare() 210 cdev->audio_out_buf_pos[index] = out_pos; in snd_usb_caiaq_pcm_prepare()
|
/openbmc/linux/drivers/base/firmware_loader/ |
H A D | main.c | 401 xz_buf.out_pos = 0; in fw_decompress_xz_single() 406 fw_priv->size = xz_buf.out_pos; in fw_decompress_xz_single() 439 xz_buf.out_pos = 0; in fw_decompress_xz_pages() 443 fw_priv->size += xz_buf.out_pos; in fw_decompress_xz_pages() 445 if (xz_buf.out_pos != PAGE_SIZE) in fw_decompress_xz_pages()
|
/openbmc/linux/fs/ |
H A D | read_write.c | 1187 loff_t out_pos; in do_sendfile() local 1225 out_pos = out.file->f_pos; in do_sendfile() 1250 retval = rw_verify_area(WRITE, out.file, &out_pos, count); in do_sendfile() 1254 retval = do_splice_direct(in.file, &pos, out.file, &out_pos, in do_sendfile() 1269 out.file->f_pos = out_pos; in do_sendfile()
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-image-convert.c | 515 unsigned int out_pos; in find_best_seam() local 545 for (out_pos = out_start; out_pos < out_end; out_pos += out_align) { in find_best_seam() 556 if ((out_burst > 1) && (out_edge - out_pos) % out_burst) in find_best_seam() 563 in_pos = (out_pos * resize_coeff) << downsize_coeff; in find_best_seam() 584 out_seam = out_pos; in find_best_seam()
|
/openbmc/linux/drivers/misc/ocxl/ |
H A D | config.c | 209 int *out_pos) in get_dvsec_vendor0() argument 226 *out_pos = pos; in get_dvsec_vendor0()
|
/openbmc/qemu/ |
H A D | qemu-img.c | 5089 int64_t out_pos, in_pos; in img_dd() local 5289 for (out_pos = 0; in_pos < size; ) { in img_dd() 5300 ret = blk_pwrite(blk2, out_pos, bytes, in.buf, 0); in img_dd() 5306 out_pos += bytes; in img_dd()
|