/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | tx-gen2.c | 37 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local 45 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd() 56 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd() 57 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() 63 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 95 copy_size += cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd() 105 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_gen2_enqueue_hcmd() 107 iwl_get_cmd_string(trans, cmd->id), cmd->id, copy_size)) { in iwl_pcie_gen2_enqueue_hcmd() 147 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd() 163 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() [all …]
|
D | tx.c | 910 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local 925 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() 928 copy_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd() 943 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd() 944 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd() 950 copy_size += copy; in iwl_pcie_enqueue_hcmd() 982 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd() 993 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_enqueue_hcmd() 996 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd() 1034 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() [all …]
|
/linux-6.1.9/drivers/firmware/broadcom/ |
D | bcm47xx_nvram.c | 51 size_t copy_size; in bcm47xx_nvram_copy() local 53 copy_size = header->len; in bcm47xx_nvram_copy() 54 if (copy_size > res_size) { in bcm47xx_nvram_copy() 56 copy_size = res_size; in bcm47xx_nvram_copy() 58 if (copy_size >= NVRAM_SPACE) { in bcm47xx_nvram_copy() 60 copy_size, NVRAM_SPACE - 1); in bcm47xx_nvram_copy() 61 copy_size = NVRAM_SPACE - 1; in bcm47xx_nvram_copy() 64 __ioread32_copy(nvram_buf, nvram_start, DIV_ROUND_UP(copy_size, 4)); in bcm47xx_nvram_copy() 66 nvram_len = copy_size; in bcm47xx_nvram_copy()
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
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()
|
/linux-6.1.9/drivers/bus/mhi/ep/ |
D | ring.c | 33 size_t start, copy_size; in __mhi_ep_cache_ring() local 46 copy_size = (end - start) * sizeof(struct mhi_ring_element); in __mhi_ep_cache_ring() 49 &ring->ring_cache[start], copy_size); in __mhi_ep_cache_ring() 53 copy_size = (ring->ring_size - start) * sizeof(struct mhi_ring_element); in __mhi_ep_cache_ring() 56 &ring->ring_cache[start], copy_size); in __mhi_ep_cache_ring() 69 dev_dbg(dev, "Cached ring: start %zu end %zu size %zu\n", start, end, copy_size); in __mhi_ep_cache_ring()
|
/linux-6.1.9/fs/reiserfs/ |
D | resize.c | 36 int copy_size; in reiserfs_resize() local 100 copy_size = min(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()
|
/linux-6.1.9/lib/xz/ |
D | xz_dec_lzma2.c | 381 size_t copy_size; in dict_uncompressed() local 385 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed() 387 if (copy_size > dict->end - dict->pos) in dict_uncompressed() 388 copy_size = dict->end - dict->pos; in dict_uncompressed() 389 if (copy_size > *left) in dict_uncompressed() 390 copy_size = *left; in dict_uncompressed() 392 *left -= copy_size; in dict_uncompressed() 401 memmove(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed() 402 dict->pos += copy_size; in dict_uncompressed() 416 copy_size); in dict_uncompressed() [all …]
|
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()
|
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()
|
/linux-6.1.9/drivers/char/ |
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 …]
|
/linux-6.1.9/drivers/infiniband/hw/erdma/ |
D | erdma_qp.c | 208 u32 remain_size, copy_size, data_off, bytes = 0; in fill_inline_data() local 226 copy_size = min(remain_size, SQEBB_SIZE - sgl_offset); in fill_inline_data() 231 copy_size); in fill_inline_data() 232 remain_size -= copy_size; in fill_inline_data() 233 data_off += copy_size; in fill_inline_data() 234 sgl_offset += copy_size; in fill_inline_data()
|
/linux-6.1.9/drivers/dma/sh/ |
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()
|
/linux-6.1.9/net/bpf/ |
D | test_run.c | 420 u32 copy_size = size; in bpf_test_finish() local 426 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 427 copy_size = kattr->test.data_size_out; in bpf_test_finish() 432 int len = sinfo ? copy_size - sinfo->xdp_frags_size : copy_size; in bpf_test_finish() 449 if (offset >= copy_size) { in bpf_test_finish() 454 data_len = min_t(u32, copy_size - offset, in bpf_test_finish() 945 u32 copy_size = size; in bpf_ctx_finish() local 950 if (copy_size > kattr->test.ctx_size_out) { in bpf_ctx_finish() 951 copy_size = kattr->test.ctx_size_out; in bpf_ctx_finish() 955 if (copy_to_user(data_out, data, copy_size)) in bpf_ctx_finish()
|
/linux-6.1.9/drivers/acpi/acpica/ |
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()
|
/linux-6.1.9/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 899 int copy_size, pbuf_length; in GEN_SEC_SETKEY_FUNC() local 906 copy_size = aead_req->cryptlen + aead_req->assoclen; in GEN_SEC_SETKEY_FUNC() 908 copy_size = c_req->c_len; in GEN_SEC_SETKEY_FUNC() 911 qp_ctx->res[req_id].pbuf, copy_size); in GEN_SEC_SETKEY_FUNC() 912 if (unlikely(pbuf_length != copy_size)) { in GEN_SEC_SETKEY_FUNC() 919 mac_offset = qp_ctx->res[req_id].pbuf + copy_size - authsize; in GEN_SEC_SETKEY_FUNC() 935 int copy_size, pbuf_length; in sec_cipher_pbuf_unmap() local 939 copy_size = c_req->c_len + aead_req->assoclen; in sec_cipher_pbuf_unmap() 941 copy_size = c_req->c_len; in sec_cipher_pbuf_unmap() 944 qp_ctx->res[req_id].pbuf, copy_size); in sec_cipher_pbuf_unmap() [all …]
|
/linux-6.1.9/arch/s390/kernel/ |
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()
|
/linux-6.1.9/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 709 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt() 718 if (ctx->copy_size) { in vmxnet3_map_pkt() 722 ctx->sop_txd->dword[2] = cpu_to_le32(dw2 | ctx->copy_size); in vmxnet3_map_pkt() 740 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt() 741 buf_offset = ctx->copy_size; in vmxnet3_map_pkt() 873 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr() 877 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr() 925 ctx->copy_size = min(ctx->l4_offset + in vmxnet3_parse_hdr() 931 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr() 937 ctx->copy_size = skb->len; in vmxnet3_parse_hdr() [all …]
|
D | vmxnet3_int.h | 236 u32 copy_size; /* # of bytes copied into the data ring */ member
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_controlq.c | 1076 u16 copy_size = le16_to_cpu(desc->datalen); in ice_sq_send_cmd() local 1078 if (copy_size > buf_size) { in ice_sq_send_cmd() 1080 copy_size, buf_size); in ice_sq_send_cmd() 1083 memcpy(buf, dma_buf->va, copy_size); in ice_sq_send_cmd()
|
/linux-6.1.9/fs/jfs/ |
D | namei.c | 990 int copy_size = min(ssize, PSIZE); in jfs_symlink() local 1000 memcpy(mp->data, name, copy_size); in jfs_symlink() 1002 ssize -= copy_size; in jfs_symlink() 1003 name += copy_size; in jfs_symlink()
|
/linux-6.1.9/drivers/s390/block/ |
D | dasd_ioctl.c | 563 size_t copy_size) in dasd_ioctl_information() argument 573 if (!error && copy_to_user(argp, dasd_info, copy_size)) in dasd_ioctl_information()
|
/linux-6.1.9/fs/cifs/ |
D | smb2pdu.c | 2633 int copy_size; in smb311_posix_mkdir() local 2691 rc = alloc_path_with_tree_prefix(©_path, ©_size, in smb311_posix_mkdir() 2698 uni_path_len = copy_size; in smb311_posix_mkdir() 2707 copy_size = roundup(uni_path_len, 8); in smb311_posix_mkdir() 2708 copy_path = kzalloc(copy_size, GFP_KERNEL); in smb311_posix_mkdir() 2715 uni_path_len = copy_size; in smb311_posix_mkdir() 2790 int copy_size; in SMB2_open_init() local 2833 rc = alloc_path_with_tree_prefix(©_path, ©_size, in SMB2_open_init() 2839 uni_path_len = copy_size; in SMB2_open_init() 2845 copy_size = round_up(uni_path_len, 8); in SMB2_open_init() [all …]
|
/linux-6.1.9/drivers/usb/class/ |
D | cdc-acm.c | 365 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local 415 copy_size = min(current_size, in acm_ctrl_irq() 419 urb->transfer_buffer, copy_size); in acm_ctrl_irq() 420 acm->nb_index += copy_size; in acm_ctrl_irq()
|
/linux-6.1.9/drivers/platform/x86/ |
D | think-lmi.c | 291 int copy_size; in tlmi_get_pwd_settings() local 320 copy_size = obj->buffer.length < sizeof(struct tlmi_pwdcfg) ? in tlmi_get_pwd_settings() 322 memcpy(pwdcfg, obj->buffer.pointer, copy_size); in tlmi_get_pwd_settings()
|
/linux-6.1.9/drivers/media/usb/s2255/ |
D | s2255drv.c | 1696 unsigned long copy_size; in save_frame() local 1816 copy_size = (pipe_info->cur_transfer_size - offset); in save_frame() 1821 if ((copy_size + frm->cur_size) < vc->req_image_size) in save_frame() 1822 memcpy(pdest, psrc, copy_size); in save_frame() 1824 frm->cur_size += copy_size; in save_frame()
|