| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/ |
| H A D | mali_kbase_10969_workaround.c | 59 u32 copy_size; in kbasep_10969_workaround_clamp_coordinates() local 85 copy_size = MIN(PAGE_SIZE - offset, JOB_HEADER_SIZE); in kbasep_10969_workaround_clamp_coordinates() 94 copy_size, DMA_BIDIRECTIONAL); in kbasep_10969_workaround_clamp_coordinates() 96 memcpy(dst, page_1, copy_size); in kbasep_10969_workaround_clamp_coordinates() 100 if (copy_size < JOB_HEADER_SIZE) { in kbasep_10969_workaround_clamp_coordinates() 106 JOB_HEADER_SIZE - copy_size, DMA_BIDIRECTIONAL); in kbasep_10969_workaround_clamp_coordinates() 108 memcpy(dst + copy_size, page_2, JOB_HEADER_SIZE - copy_size); in kbasep_10969_workaround_clamp_coordinates() 183 memcpy(page_1, dst, copy_size); in kbasep_10969_workaround_clamp_coordinates() 188 copy_size, DMA_TO_DEVICE); in kbasep_10969_workaround_clamp_coordinates() 190 if (copy_size < JOB_HEADER_SIZE) { in kbasep_10969_workaround_clamp_coordinates() [all …]
|
| H A D | mali_kbase_softjobs.c | 1180 size_t copy_size; in kbase_ext_res_prepare() local 1204 copy_size = sizeof(*ext_res); in kbase_ext_res_prepare() 1205 copy_size += sizeof(struct base_external_resource) * (count - 1); in kbase_ext_res_prepare() 1206 ext_res = kzalloc(copy_size, GFP_KERNEL); in kbase_ext_res_prepare() 1212 if (copy_from_user(ext_res, user_ext_res, copy_size) != 0) { in kbase_ext_res_prepare()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/pcie/ |
| H A D | tx-gen2.c | 84 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local 92 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd() 103 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd() 104 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() 110 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 142 copy_size += cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd() 152 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_gen2_enqueue_hcmd() 154 iwl_get_cmd_string(trans, cmd->id), cmd->id, copy_size)) { in iwl_pcie_gen2_enqueue_hcmd() 194 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd() 210 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() [all …]
|
| H A D | tx.c | 1177 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local 1192 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() 1195 copy_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd() 1210 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd() 1211 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd() 1217 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1249 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd() 1260 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_enqueue_hcmd() 1263 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd() 1301 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() [all …]
|
| /OK3568_Linux_fs/buildroot/boot/grub2/ |
| H A D | 0081-video-fb-video_fb-Fix-multiple-integer-overflows.patch | 45 + grub_size_t copy_size; 48 + framebuffer.current_dirty.first_line, ©_size) || 49 + grub_mul (framebuffer.back_target->mode_info.pitch, copy_size, ©_size)) 59 + copy_size); 84 + grub_size_t copy_size; 86 + if (grub_sub (last_line, first_line, ©_size) || 87 + grub_mul (framebuffer.back_target->mode_info.pitch, copy_size, ©_size)) 97 + copy_size);
|
| H A D | 0030-efi-Return-grub_efi_status_t-from-grub_efi_get_varia.patch | 128 copy_size = datasize - 16;
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_blit.c | 365 u32 copy_size = bytes_to_copy; in vmw_bo_cpu_blit_line() local 374 copy_size = min_t(u32, copy_size, PAGE_SIZE - dst_page_offset); in vmw_bo_cpu_blit_line() 375 copy_size = min_t(u32, copy_size, PAGE_SIZE - src_page_offset); in vmw_bo_cpu_blit_line() 413 d->src_addr + src_page_offset, copy_size); in vmw_bo_cpu_blit_line() 415 bytes_to_copy -= copy_size; in vmw_bo_cpu_blit_line() 416 dst_offset += copy_size; in vmw_bo_cpu_blit_line() 417 src_offset += copy_size; in vmw_bo_cpu_blit_line()
|
| /OK3568_Linux_fs/kernel/fs/reiserfs/ |
| H A D | resize.c | 36 int copy_size; in reiserfs_resize() local 100 copy_size = bmap_nr_new < bmap_nr ? bmap_nr_new : bmap_nr; in reiserfs_resize() 101 copy_size = in reiserfs_resize() 102 copy_size * sizeof(struct reiserfs_list_bitmap_node *); in reiserfs_resize() 106 memcpy(jbitmap[i].bitmaps, jb->bitmaps, copy_size); in reiserfs_resize()
|
| /OK3568_Linux_fs/kernel/lib/xz/ |
| H A D | xz_dec_lzma2.c | 377 size_t copy_size; in dict_uncompressed() local 381 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed() 383 if (copy_size > dict->end - dict->pos) in dict_uncompressed() 384 copy_size = dict->end - dict->pos; in dict_uncompressed() 385 if (copy_size > *left) in dict_uncompressed() 386 copy_size = *left; in dict_uncompressed() 388 *left -= copy_size; in dict_uncompressed() 397 memmove(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed() 398 dict->pos += copy_size; in dict_uncompressed() 412 copy_size); in dict_uncompressed() [all …]
|
| H A D | xz_dec_bcj.c | 401 size_t copy_size; in bcj_flush() local 403 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush() 404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush() 405 b->out_pos += copy_size; in bcj_flush() 407 s->temp.filtered -= copy_size; in bcj_flush() 408 s->temp.size -= copy_size; in bcj_flush() 409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush()
|
| H A D | xz_dec_stream.c | 159 size_t copy_size = min_t(size_t, in fill_temp() local 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() 164 s->temp.pos += copy_size; in fill_temp()
|
| /OK3568_Linux_fs/kernel/drivers/char/ |
| H A D | lp.c | 307 size_t copy_size = count; in lp_write() local 319 if (copy_size > LP_BUFFER_SIZE) in lp_write() 320 copy_size = LP_BUFFER_SIZE; in lp_write() 325 if (copy_from_user(kbuf, buf, copy_size)) { in lp_write() 344 written = parport_write(port, kbuf, copy_size); in lp_write() 346 copy_size -= written; in lp_write() 359 if (copy_size > 0) { in lp_write() 388 copy_size = count; in lp_write() 389 if (copy_size > LP_BUFFER_SIZE) in lp_write() 390 copy_size = LP_BUFFER_SIZE; in lp_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/tl/ |
| H A D | mali_kbase_timeline_io.c | 173 const size_t copy_size = MIN(size - *copy_len, *hdr_btc); in copy_stream_header() local 181 if (copy_to_user(&buffer[*copy_len], &hdr[offset], copy_size)) in copy_stream_header() 184 *hdr_btc -= copy_size; in copy_stream_header() 185 *copy_len += copy_size; in copy_stream_header()
|
| /OK3568_Linux_fs/kernel/net/bpf/ |
| H A D | test_run.c | 135 u32 copy_size = size; in bpf_test_finish() local 141 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 142 copy_size = kattr->test.data_size_out; in bpf_test_finish() 146 if (data_out && copy_to_user(data_out, data, copy_size)) in bpf_test_finish() 407 u32 copy_size = size; in bpf_ctx_finish() local 412 if (copy_size > kattr->test.ctx_size_out) { in bpf_ctx_finish() 413 copy_size = kattr->test.ctx_size_out; in bpf_ctx_finish() 417 if (copy_to_user(data_out, data, copy_size)) in bpf_ctx_finish()
|
| /OK3568_Linux_fs/kernel/drivers/dma/sh/ |
| H A D | shdma-base.c | 508 size_t copy_size = *len; in shdma_add_desc() local 510 if (!copy_size) in shdma_add_desc() 520 ops->desc_setup(schan, new, *src, *dst, ©_size); in shdma_add_desc() 533 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc() 541 *len -= copy_size; in shdma_add_desc() 543 *src += copy_size; in shdma_add_desc() 545 *dst += copy_size; in shdma_add_desc()
|
| /OK3568_Linux_fs/kernel/drivers/visorbus/ |
| H A D | visorchannel.c | 125 size_t copy_size; in visorchannel_write() local 131 copy_size = min(chdr_size - offset, nbytes); in visorchannel_write() 133 dest, copy_size); in visorchannel_write()
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A D | utcopy.c | 646 acpi_size copy_size; in acpi_ut_copy_simple_object() local 657 copy_size = sizeof(union acpi_operand_object); in acpi_ut_copy_simple_object() 659 copy_size = sizeof(struct acpi_namespace_node); in acpi_ut_copy_simple_object() 663 ACPI_CAST_PTR(char, source_desc), copy_size); in acpi_ut_copy_simple_object()
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/ |
| H A D | debug.c | 474 size_t copy_size; in debug_output() local 479 copy_size = min(user_buf_residue, formatted_line_residue); in debug_output() 480 if (copy_size) { in debug_output() 482 + entry_offset, copy_size)) in debug_output() 484 count += copy_size; in debug_output() 485 entry_offset += copy_size; in debug_output() 487 if (copy_size == formatted_line_residue) { in debug_output()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/sec2/ |
| H A D | sec_crypto.c | 692 int copy_size, pbuf_length; in GEN_SEC_SETKEY_FUNC() local 696 copy_size = aead_req->cryptlen + aead_req->assoclen; in GEN_SEC_SETKEY_FUNC() 698 copy_size = c_req->c_len; in GEN_SEC_SETKEY_FUNC() 702 copy_size); in GEN_SEC_SETKEY_FUNC() 703 if (unlikely(pbuf_length != copy_size)) { in GEN_SEC_SETKEY_FUNC() 727 int copy_size, pbuf_length; in sec_cipher_pbuf_unmap() local 731 copy_size = c_req->c_len + aead_req->assoclen; in sec_cipher_pbuf_unmap() 733 copy_size = c_req->c_len; in sec_cipher_pbuf_unmap() 737 copy_size); in sec_cipher_pbuf_unmap() 738 if (unlikely(pbuf_length != copy_size)) in sec_cipher_pbuf_unmap()
|
| /OK3568_Linux_fs/kernel/drivers/net/vmxnet3/ |
| H A D | vmxnet3_drv.c | 686 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt() 695 if (ctx->copy_size) { in vmxnet3_map_pkt() 699 ctx->sop_txd->dword[2] = cpu_to_le32(dw2 | ctx->copy_size); in vmxnet3_map_pkt() 717 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt() 718 buf_offset = ctx->copy_size; in vmxnet3_map_pkt() 850 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr() 854 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr() 902 ctx->copy_size = min(ctx->l4_offset + in vmxnet3_parse_hdr() 908 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr() 914 ctx->copy_size = skb->len; in vmxnet3_parse_hdr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/ |
| H A D | ice_controlq.c | 1026 u16 copy_size = le16_to_cpu(desc->datalen); in ice_sq_send_cmd() local 1028 if (copy_size > buf_size) { in ice_sq_send_cmd() 1031 copy_size, buf_size); in ice_sq_send_cmd() 1034 memcpy(buf, dma_buf->va, copy_size); in ice_sq_send_cmd()
|
| /OK3568_Linux_fs/kernel/fs/jfs/ |
| H A D | namei.c | 989 int copy_size = min(ssize, PSIZE); in jfs_symlink() local 999 memcpy(mp->data, name, copy_size); in jfs_symlink() 1001 ssize -= copy_size; in jfs_symlink() 1002 name += copy_size; in jfs_symlink()
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | smb2pdu.c | 2500 int copy_size; in smb311_posix_mkdir() local 2558 rc = alloc_path_with_tree_prefix(©_path, ©_size, in smb311_posix_mkdir() 2565 uni_path_len = copy_size; in smb311_posix_mkdir() 2574 copy_size = roundup(uni_path_len, 8); in smb311_posix_mkdir() 2575 copy_path = kzalloc(copy_size, GFP_KERNEL); in smb311_posix_mkdir() 2582 uni_path_len = copy_size; in smb311_posix_mkdir() 2647 int copy_size; in SMB2_open_init() local 2690 rc = alloc_path_with_tree_prefix(©_path, ©_size, in SMB2_open_init() 2696 uni_path_len = copy_size; in SMB2_open_init() 2702 copy_size = uni_path_len; in SMB2_open_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/s390/block/ |
| H A D | dasd_ioctl.c | 516 size_t copy_size) in dasd_ioctl_information() argument 526 if (!error && copy_to_user(argp, dasd_info, copy_size)) in dasd_ioctl_information()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/ |
| H A D | mali_kbase_softjobs.c | 1406 size_t copy_size; in kbase_ext_res_prepare() local 1423 copy_size = sizeof(*ext_res); in kbase_ext_res_prepare() 1424 copy_size += sizeof(struct base_external_resource) * (count - 1); in kbase_ext_res_prepare() 1425 ext_res = memdup_user(user_ext_res, copy_size); in kbase_ext_res_prepare()
|