Home
last modified time | relevance | path

Searched refs:dst_size (Results 1 – 25 of 29) sorted by relevance

12

/linux/drivers/gpu/drm/tests/
H A Ddrm_format_helper_test.c646 size_t dst_size; in drm_test_fb_xrgb8888_to_gray8() local
656 dst_size = conversion_buf_size(DRM_FORMAT_R8, result->dst_pitch, in drm_test_fb_xrgb8888_to_gray8()
658 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_gray8()
660 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_gray8()
672 KUNIT_EXPECT_MEMEQ(test, buf, result->expected, dst_size); in drm_test_fb_xrgb8888_to_gray8()
679 size_t dst_size; in drm_test_fb_xrgb8888_to_rgb332() local
689 dst_size = conversion_buf_size(DRM_FORMAT_RGB332, result->dst_pitch, in drm_test_fb_xrgb8888_to_rgb332()
691 KUNIT_ASSERT_GT(test, dst_size, 0); in drm_test_fb_xrgb8888_to_rgb332()
693 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb332()
705 KUNIT_EXPECT_MEMEQ(test, buf, result->expected, dst_size); in drm_test_fb_xrgb8888_to_rgb332()
[all …]
/linux/tools/perf/util/
H A Dzstd.c31 ssize_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records() argument
60 dst_size -= size; in zstd_compress_stream_to_records()
61 output = (ZSTD_outBuffer){ dst, (dst_size > max_record_size) ? in zstd_compress_stream_to_records()
62 max_record_size : dst_size, 0 }; in zstd_compress_stream_to_records()
75 dst_size -= size; in zstd_compress_stream_to_records()
82 void *dst, size_t dst_size) in zstd_decompress_stream() argument
86 ZSTD_outBuffer output = { dst, dst_size, 0 }; in zstd_decompress_stream()
106 src_size, output.size, dst_size, ZSTD_getErrorName(ret)); in zstd_decompress_stream()
110 output.size = dst_size - output.pos; in zstd_decompress_stream()
H A Dcompress.h55 ssize_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records()
60 void *dst, size_t dst_size); in zstd_compress_stream_to_records()
75 void *dst __maybe_unused, size_t dst_size __maybe_unused,
85 size_t dst_size __maybe_unused)
/linux/tools/testing/selftests/landlock/
H A Daudit.h211 size_t dst_size) in regex_escape() argument
224 if (d >= dst + dst_size - 2) in regex_escape()
231 if (d >= dst + dst_size - 1) in regex_escape()
237 if (d >= dst + dst_size - 1) in regex_escape()
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_sspp.h362 u32 src_size, src_xy, dst_size, dst_xy; in dpu_hw_setup_rects_impl() local
371 dst_size = (drm_rect_height(&cfg->dst_rect) << 16) | in dpu_hw_setup_rects_impl()
377 DPU_REG_WRITE(c, out_size_off, dst_size); in dpu_hw_setup_rects_impl()
/linux/fs/pstore/
H A Dplatform.c306 size_t dst_size; in pstore_dump() local
320 dst_size = max_compressed_size ?: psinfo->bufsize; in pstore_dump()
323 header_size = snprintf(dst, dst_size, "%s#%d Part%u\n", why, in pstore_dump()
325 dst_size -= header_size; in pstore_dump()
329 dst_size, &dump_size)) in pstore_dump()
/linux/lib/
H A Ddecompress_unlzma.c226 uint64_t dst_size; member
344 } while (len != 0 && wr->buffer_pos < wr->header->dst_size); in copy_bytes()
609 ENDIAN_CONVERT(header.dst_size); in unlzma()
617 wr.bufsize = MIN(header.dst_size, header.dict_size); in unlzma()
633 while (get_pos(&wr) < header.dst_size) { in unlzma()
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dint-attributes.c304 int dst_size = *buffer_size / sizeof(u16); in hp_populate_integer_elements_from_buffer() local
308 dst = kcalloc(dst_size, sizeof(char), GFP_KERNEL); in hp_populate_integer_elements_from_buffer()
330 hp_get_string_from_buffer(&buffer_ptr, buffer_size, dst, dst_size); in hp_populate_integer_elements_from_buffer()
H A Dbioscfg.c54 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()
H A Dbioscfg.h473 int hp_get_string_from_buffer(u8 **buffer, u32 *buffer_size, char *dst, u32 dst_size);
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_devcaps.h39 void *dst, uint32_t dst_size);
H A Dvmwgfx_blit.c464 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()
/linux/include/uapi/rdma/
H A Drdma_user_cm.h138 __u16 dst_size; member
180 __u16 dst_size; member
/linux/fs/ecryptfs/
H A Dcrypto.c39 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()
1646 static void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size, in ecryptfs_encode_for_filename() argument
1655 (*dst_size) = 0; in ecryptfs_encode_for_filename()
1674 (*dst_size) = (num_blocks * 4); in ecryptfs_encode_for_filename()
1722 ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, in ecryptfs_decode_from_filename() argument
1730 (*dst_size) = ecryptfs_max_decoded_size(src_size); in ecryptfs_decode_from_filename()
1760 (*dst_size) = dst_byte_offset; in ecryptfs_decode_from_filename()
H A Decryptfs_kernel.h50 extern void ecryptfs_from_hex(char *dst, char *src, int dst_size);
/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-test.c561 size_t orig_size, dst_size; in pci_epf_test_write() local
566 orig_size = dst_size = le32_to_cpu(reg->size); in pci_epf_test_write()
568 dst_buf = kzalloc(dst_size, GFP_KERNEL); in pci_epf_test_write()
573 get_random_bytes(dst_buf, dst_size); in pci_epf_test_write()
574 reg->checksum = cpu_to_le32(crc32_le(~0, dst_buf, dst_size)); in pci_epf_test_write()
577 while (dst_size) { in pci_epf_test_write()
579 dst_addr, dst_size, &map); in pci_epf_test_write()
618 dst_size -= map_size; in pci_epf_test_write()
/linux/drivers/input/serio/
H A Di8042-acpipnpio.h1473 static void i8042_pnp_id_to_string(struct pnp_id *id, char *dst, int dst_size) in i8042_pnp_id_to_string() argument
1475 strscpy(dst, "PNP:", dst_size); in i8042_pnp_id_to_string()
1478 strlcat(dst, " ", dst_size); in i8042_pnp_id_to_string()
1479 strlcat(dst, id->id, dst_size); in i8042_pnp_id_to_string()
/linux/drivers/media/test-drivers/vicodec/
H A Dcodec-v4l2-fwht.c293 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()
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c1202 unsigned int dst_size; in s5p_mfc_run_enc_frame() local
1241 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1242 s5p_mfc_set_enc_stream_buffer_v5(ctx, dst_addr, dst_size); in s5p_mfc_run_enc_frame()
1273 unsigned int dst_size; in s5p_mfc_run_init_enc() local
1278 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_init_enc()
1279 s5p_mfc_set_enc_stream_buffer_v5(ctx, dst_addr, dst_size); in s5p_mfc_run_init_enc()
/linux/drivers/infiniband/core/
H A Ducma.c721 !cmd.dst_size || (cmd.dst_size != rdma_addr_size_kss(&cmd.dst_addr))) in ucma_resolve_addr()
928 resp.dst_size = rdma_addr_size(addr); in ucma_query_addr()
929 memcpy(&resp.dst_addr, addr, resp.dst_size); in ucma_query_addr()
1006 resp.dst_size = sizeof(*addr); in ucma_query_gid()
1008 memcpy(addr, &ctx->cm_id->route.addr.dst_addr, resp.dst_size); in ucma_query_gid()
/linux/sound/isa/wavefront/
H A Dwavefront_synth.c533 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()
/linux/include/linux/qed/
H A Dfcoe_common.h32 u8 dst_size; member
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c366 int dst_size, err; in otx2_forward_vf_mbox_msgs() local
378 dst_size = dst_mbox->mbox.tx_size - in otx2_forward_vf_mbox_msgs()
381 if (mbox_hdr->msg_size > dst_size || !mbox_hdr->msg_size) in otx2_forward_vf_mbox_msgs()
423 dst_size = dst_mbox->mbox_up.tx_size - in otx2_forward_vf_mbox_msgs()
426 if (mbox_hdr->msg_size > dst_size) in otx2_forward_vf_mbox_msgs()
/linux/drivers/gpu/drm/xe/
H A Dxe_migrate.c800 u64 dst_ofs, bool dst_is_indirect, u32 dst_size, in xe_migrate_ccs_copy() argument
819 ccs_src_ofs, src_is_indirect, dst_size); in xe_migrate_ccs_copy()
831 src_is_indirect, dst_size); in xe_migrate_ccs_copy()
/linux/fs/smb/client/
H A Dsmb2ops.c1026 move_smb2_ea_to_cifs(char *dst, size_t dst_size, in move_smb2_ea_to_cifs() argument
1033 size_t buf_size = dst_size; in move_smb2_ea_to_cifs()
1057 if (dst_size == 0) in move_smb2_ea_to_cifs()
1059 if (dst_size < value_len) { in move_smb2_ea_to_cifs()
1073 } else if (dst_size >= user_name_len) { in move_smb2_ea_to_cifs()
1074 dst_size -= user_name_len; in move_smb2_ea_to_cifs()

12