/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_format_helper_test.c | 511 size_t dst_size; in drm_test_fb_xrgb8888_to_gray8() local 521 dst_size = conversion_buf_size(DRM_FORMAT_R8, result->dst_pitch, in drm_test_fb_xrgb8888_to_gray8() 523 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_gray8() 525 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_gray8() 534 KUNIT_EXPECT_MEMEQ(test, buf, result->expected, dst_size); in drm_test_fb_xrgb8888_to_gray8() 541 size_t dst_size; in drm_test_fb_xrgb8888_to_rgb332() local 551 dst_size = conversion_buf_size(DRM_FORMAT_RGB332, result->dst_pitch, in drm_test_fb_xrgb8888_to_rgb332() 553 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_rgb332() 555 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb332() 564 KUNIT_EXPECT_MEMEQ(test, buf, result->expected, dst_size); in drm_test_fb_xrgb8888_to_rgb332() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | zstd.c | 57 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records() argument 71 dst_size -= size; in zstd_compress_stream_to_records() 72 output = (ZSTD_outBuffer){ dst, (dst_size > max_record_size) ? in zstd_compress_stream_to_records() 73 max_record_size : dst_size, 0 }; in zstd_compress_stream_to_records() 86 dst_size -= size; in zstd_compress_stream_to_records() 93 void *dst, size_t dst_size) in zstd_decompress_stream() argument 97 ZSTD_outBuffer output = { dst, dst_size, 0 }; in zstd_decompress_stream() 103 src_size, output.size, dst_size, ZSTD_getErrorName(ret)); in zstd_decompress_stream() 107 output.size = dst_size - output.pos; in zstd_decompress_stream()
|
H A D | compress.h | 32 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, 37 void *dst, size_t dst_size); 52 void *dst __maybe_unused, size_t dst_size __maybe_unused, in zstd_compress_stream_to_records() 62 size_t dst_size __maybe_unused) in zstd_decompress_stream()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_devcaps.c | 126 void *dst, uint32_t dst_size) in vmw_devcaps_copy() argument 131 memcpy(dst, vmw->devcaps, dst_size); in vmw_devcaps_copy() 133 ret = vmw_fill_compat_cap(vmw, dst, dst_size); in vmw_devcaps_copy() 138 memcpy(dst, &fifo_mem[SVGA_FIFO_3D_CAPS], dst_size); in vmw_devcaps_copy()
|
H A D | vmwgfx_devcaps.h | 39 void *dst, uint32_t dst_size);
|
H A D | vmwgfx_blit.c | 464 size_t dst_size = dst->tbo.resource->size; in vmw_external_bo_copy() local 490 dst_size -= dst_offset; in vmw_external_bo_copy() 493 min(dst_stride * height, min(dst_size, src_size))); in vmw_external_bo_copy()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 125 | 176 for dst_size in 96k 128k; do 178 echo "--- Resizing image from $orig_size to $dst_size (preallocation=$prealloc) ---" 180 $QEMU_IMG resize -f "$IMGFMT" --preallocation="$prealloc" "$TEST_IMG" "$dst_size"
|
/openbmc/qemu/hw/dma/ |
H A D | xlnx-zdma.c | 387 uint32_t dst_size, dlen; in zdma_write_dst() local 400 dst_size = FIELD_EX32(s->dsc_dst.words[2], ZDMA_CH_DST_DSCR_WORD2, in zdma_write_dst() 402 if (dst_size == 0 && ptype == PT_MEM) { in zdma_write_dst() 404 dst_size = FIELD_EX32(s->dsc_dst.words[2], ZDMA_CH_DST_DSCR_WORD2, in zdma_write_dst() 411 dst_size = len; in zdma_write_dst() 417 dlen = len > dst_size ? dst_size : len; in zdma_write_dst() 428 dst_size -= dlen; in zdma_write_dst() 432 if (dst_size == 0 && dst_intr) { in zdma_write_dst() 440 dst_size); in zdma_write_dst()
|
/openbmc/linux/fs/pstore/ |
H A D | platform.c | 305 size_t dst_size; in pstore_dump() local 319 dst_size = max_compressed_size ?: psinfo->bufsize; in pstore_dump() 322 header_size = snprintf(dst, dst_size, "%s#%d Part%u\n", why, in pstore_dump() 324 dst_size -= header_size; in pstore_dump() 328 dst_size, &dump_size)) in pstore_dump()
|
/openbmc/linux/lib/ |
H A D | decompress_unlzma.c | 224 uint64_t dst_size; member 342 } while (len != 0 && wr->buffer_pos < wr->header->dst_size); in copy_bytes() 607 ENDIAN_CONVERT(header.dst_size); in unlzma() 615 wr.bufsize = MIN(header.dst_size, header.dict_size); in unlzma() 631 while (get_pos(&wr) < header.dst_size) { in unlzma()
|
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | int-attributes.c | 307 int dst_size = *buffer_size / sizeof(u16); in hp_populate_integer_elements_from_buffer() local 311 dst = kcalloc(dst_size, sizeof(char), GFP_KERNEL); in hp_populate_integer_elements_from_buffer() 333 hp_get_string_from_buffer(&buffer_ptr, buffer_size, dst, dst_size); in hp_populate_integer_elements_from_buffer()
|
H A D | bioscfg.c | 54 int hp_get_string_from_buffer(u8 **buffer, u32 *buffer_size, char *dst, u32 dst_size) in hp_get_string_from_buffer() argument 88 if (size > dst_size) in hp_get_string_from_buffer() 89 conv_dst_size = dst_size - 1; in hp_get_string_from_buffer()
|
/openbmc/linux/include/uapi/rdma/ |
H A D | rdma_user_cm.h | 136 __u16 dst_size; member 177 __u16 dst_size; member
|
/openbmc/qemu/linux-user/ |
H A D | thunk.c | 222 int array_length, i, dst_size, src_size; in thunk_convert() local 227 dst_size = thunk_type_size(type_ptr, to_host); in thunk_convert() 233 d += dst_size; in thunk_convert()
|
/openbmc/linux/fs/ecryptfs/ |
H A D | crypto.c | 39 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 44 for (x = 0; x < dst_size; x++) { in ecryptfs_from_hex() 1729 static void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size, in ecryptfs_encode_for_filename() argument 1738 (*dst_size) = 0; in ecryptfs_encode_for_filename() 1757 (*dst_size) = (num_blocks * 4); in ecryptfs_encode_for_filename() 1805 ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, in ecryptfs_decode_from_filename() argument 1813 (*dst_size) = ecryptfs_max_decoded_size(src_size); in ecryptfs_decode_from_filename() 1843 (*dst_size) = dst_byte_offset; in ecryptfs_decode_from_filename()
|
/openbmc/qemu/net/ |
H A D | l2tpv3.c | 83 uint32_t dst_size; member 237 message.msg_namelen = s->dst_size; in net_l2tpv3_receive_dgram_iov() 280 message.msg_namelen = s->dst_size; in net_l2tpv3_receive_dgram() 679 s->dst_size = result->ai_addrlen; in net_init_l2tpv3()
|
/openbmc/linux/drivers/crypto/chelsio/ |
H A D | chcr_algo.c | 810 unsigned int temp = 0, transhdr_len, dst_size; in create_cipher_wr() local 822 dst_size = get_space_for_phys_dsgl(nents); in create_cipher_wr() 824 transhdr_len = CIPHER_TRANSHDR_SIZE(kctx_len, dst_size); in create_cipher_wr() 850 0, 1, dst_size); in create_cipher_wr() 875 ulptx = (struct ulptx_sgl *)((u8 *)(phys_cpl + 1) + dst_size); in create_cipher_wr() 880 temp = sizeof(struct cpl_rx_phys_dsgl) + dst_size + kctx_len + IV in create_cipher_wr() 2448 unsigned int dst_size = 0, temp, subtype = get_aead_subtype(tfm); in create_authenc_wr() local 2477 dst_size = get_space_for_phys_dsgl(dnents); in create_authenc_wr() 2480 transhdr_len = CIPHER_TRANSHDR_SIZE(kctx_len, dst_size); in create_authenc_wr() 2532 0, 0, dst_size); in create_authenc_wr() [all …]
|
/openbmc/linux/include/net/bluetooth/ |
H A D | bluetooth.h | 590 static inline int bt_copy_from_sockptr(void *dst, size_t dst_size, in bt_copy_from_sockptr() argument 593 if (dst_size > src_size) in bt_copy_from_sockptr() 596 return copy_from_sockptr(dst, src, dst_size); in bt_copy_from_sockptr()
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | filemap.py | 540 dst_size = length + seek 542 dst_size = os.path.getsize(src_fname) + seek - skip 543 dst_file.truncate(dst_size)
|
/openbmc/linux/drivers/input/serio/ |
H A D | i8042-acpipnpio.h | 1435 static void i8042_pnp_id_to_string(struct pnp_id *id, char *dst, int dst_size) in i8042_pnp_id_to_string() argument 1437 strscpy(dst, "PNP:", dst_size); in i8042_pnp_id_to_string() 1440 strlcat(dst, " ", dst_size); in i8042_pnp_id_to_string() 1441 strlcat(dst, id->id, dst_size); in i8042_pnp_id_to_string()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_sspp.c | 414 u32 src_size, src_xy, dst_size, dst_xy; in dpu_hw_sspp_setup_rects() local 441 dst_size = (drm_rect_height(&cfg->dst_rect) << 16) | in dpu_hw_sspp_setup_rects() 447 DPU_REG_WRITE(c, out_size_off, dst_size); in dpu_hw_sspp_setup_rects()
|
/openbmc/linux/drivers/media/test-drivers/vicodec/ |
H A D | codec-v4l2-fwht.c | 293 unsigned int dst_size = state->stride * state->coded_height; in v4l2_fwht_decode() local 342 if (prepare_raw_frame(&dst_rf, info, p_out, dst_size)) in v4l2_fwht_decode()
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr_v5.c | 1200 unsigned int dst_size; in s5p_mfc_run_enc_frame() local 1239 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame() 1240 s5p_mfc_set_enc_stream_buffer_v5(ctx, dst_addr, dst_size); in s5p_mfc_run_enc_frame() 1271 unsigned int dst_size; in s5p_mfc_run_init_enc() local 1276 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_init_enc() 1277 s5p_mfc_set_enc_stream_buffer_v5(ctx, dst_addr, dst_size); in s5p_mfc_run_init_enc()
|
/openbmc/linux/sound/isa/wavefront/ |
H A D | wavefront_synth.c | 533 unsigned int dst_size) in munge_int32() argument 537 for (i = 0; i < dst_size; i++) { in munge_int32() 563 munge_buf (unsigned char *src, unsigned char *dst, unsigned int dst_size) in munge_buf() argument 567 unsigned int last = dst_size / 2; in munge_buf()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | ucma.c | 715 !cmd.dst_size || (cmd.dst_size != rdma_addr_size_kss(&cmd.dst_addr))) in ucma_resolve_addr() 900 resp.dst_size = rdma_addr_size(addr); in ucma_query_addr() 901 memcpy(&resp.dst_addr, addr, resp.dst_size); in ucma_query_addr() 978 resp.dst_size = sizeof(*addr); in ucma_query_gid() 980 memcpy(addr, &ctx->cm_id->route.addr.dst_addr, resp.dst_size); in ucma_query_gid()
|