Home
last modified time | relevance | path

Searched refs:copy_size (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/firmware/broadcom/
H A Dbcm47xx_nvram.c51 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/drivers/dma/idxd/
H A Dirq.c234 int copied, copy_size; in idxd_evl_fault_work() local
242 copy_size = cr_size; in idxd_evl_fault_work()
248 copy_size = entry_head->rcr || *bf ? cr_size : 0; in idxd_evl_fault_work()
258 copy_size = cr_size; in idxd_evl_fault_work()
261 copy_size = 0; in idxd_evl_fault_work()
266 if (copy_size == 0) in idxd_evl_fault_work()
274 cr, copy_size); in idxd_evl_fault_work()
286 if (copied != copy_size) { in idxd_evl_fault_work()
289 copy_size, copied); in idxd_evl_fault_work()
295 if (copied != copy_size) { in idxd_evl_fault_work()
[all …]
/linux/lib/xz/
H A Dxz_dec_lzma2.c380 size_t copy_size; in dict_uncompressed() local
384 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed()
386 if (copy_size > dict->end - dict->pos) in dict_uncompressed()
387 copy_size = dict->end - dict->pos; in dict_uncompressed()
388 if (copy_size > *left) in dict_uncompressed()
389 copy_size = *left; in dict_uncompressed()
391 *left -= copy_size; in dict_uncompressed()
400 memmove(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed()
401 dict->pos += copy_size; in dict_uncompressed()
415 copy_size); in dict_uncompressed()
[all …]
H A Dxz_dec_bcj.c559 size_t copy_size; in bcj_flush() local
561 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush()
562 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush()
563 b->out_pos += copy_size; in bcj_flush()
565 s->temp.filtered -= copy_size; in bcj_flush()
566 s->temp.size -= copy_size; in bcj_flush()
567 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush()
H A Dxz_dec_stream.c158 size_t copy_size = min_t(size_t, in fill_temp() local
161 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
162 b->in_pos += copy_size; in fill_temp()
163 s->temp.pos += copy_size; in fill_temp()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c367 u32 copy_size = bytes_to_copy; in vmw_bo_cpu_blit_line() local
376 copy_size = min_t(u32, copy_size, PAGE_SIZE - dst_page_offset); in vmw_bo_cpu_blit_line()
377 copy_size = min_t(u32, copy_size, PAGE_SIZE - src_page_offset); in vmw_bo_cpu_blit_line()
415 d->src_addr + src_page_offset, copy_size); in vmw_bo_cpu_blit_line()
417 bytes_to_copy -= copy_size; in vmw_bo_cpu_blit_line()
418 dst_offset += copy_size; in vmw_bo_cpu_blit_line()
419 src_offset += copy_size; in vmw_bo_cpu_blit_line()
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtx-gen2.c1213 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local
1224 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd()
1235 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd()
1236 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd()
1242 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
1274 copy_size += cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
1284 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_gen2_enqueue_hcmd()
1286 iwl_get_cmd_string(trans, cmd->id), cmd->id, copy_size)) { in iwl_pcie_gen2_enqueue_hcmd()
1326 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd()
1342 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
[all …]
H A Dtx.c1355 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local
1370 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
1373 copy_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd()
1388 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd()
1389 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd()
1395 copy_size += copy; in iwl_pcie_enqueue_hcmd()
1427 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd()
1438 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_enqueue_hcmd()
1441 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd()
1480 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
[all …]
/linux/drivers/char/
H A Dlp.c309 size_t copy_size = count; in lp_write() local
321 if (copy_size > LP_BUFFER_SIZE) in lp_write()
322 copy_size = LP_BUFFER_SIZE; in lp_write()
327 if (copy_from_user(kbuf, buf, copy_size)) { in lp_write()
346 written = parport_write(port, kbuf, copy_size); in lp_write()
348 copy_size -= written; in lp_write()
361 if (copy_size > 0) { in lp_write()
390 copy_size = count; in lp_write()
391 if (copy_size > LP_BUFFER_SIZE) in lp_write()
392 copy_size = LP_BUFFER_SIZE; in lp_write()
[all …]
/linux/drivers/infiniband/hw/erdma/
H A Derdma_qp.c211 u32 remain_size, copy_size, data_off, bytes = 0; in fill_inline_data() local
229 copy_size = min(remain_size, SQEBB_SIZE - sgl_offset); in fill_inline_data()
234 copy_size); in fill_inline_data()
235 remain_size -= copy_size; in fill_inline_data()
236 data_off += copy_size; in fill_inline_data()
237 sgl_offset += copy_size; in fill_inline_data()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_debug.c755 uint32_t copy_size; in kfd_dbg_trap_enable() local
773 copy_size = min((size_t)(*runtime_size), sizeof(target->runtime_info)); in kfd_dbg_trap_enable()
796 if (copy_to_user(runtime_info, (void *)&target->runtime_info, copy_size)) { in kfd_dbg_trap_enable()
916 uint32_t copy_size, actual_info_size = 0; in kfd_dbg_trap_query_exception_info() local
980 copy_size = min((size_t)(*info_size), pdd->vm_fault_exc_data_size); in kfd_dbg_trap_query_exception_info()
982 if (copy_to_user(info, pdd->vm_fault_exc_data, copy_size)) { in kfd_dbg_trap_query_exception_info()
1002 copy_size = min((size_t)(*info_size), sizeof(target->runtime_info)); in kfd_dbg_trap_query_exception_info()
1004 if (copy_to_user(info, (void *)&target->runtime_info, copy_size)) { in kfd_dbg_trap_query_exception_info()
/linux/net/bpf/
H A Dtest_run.c455 u32 copy_size = size; in bpf_test_finish() local
461 copy_size > kattr->test.data_size_out) { in bpf_test_finish()
462 copy_size = kattr->test.data_size_out; in bpf_test_finish()
467 int len = sinfo ? copy_size - sinfo->xdp_frags_size : copy_size; in bpf_test_finish()
484 if (offset >= copy_size) { in bpf_test_finish()
489 data_len = min_t(u32, copy_size - offset, in bpf_test_finish()
848 u32 copy_size = size; in bpf_ctx_finish() local
853 if (copy_size > kattr->test.ctx_size_out) { in bpf_ctx_finish()
854 copy_size = kattr->test.ctx_size_out; in bpf_ctx_finish()
858 if (copy_to_user(data_out, data, copy_size)) in bpf_ctx_finish()
/linux/drivers/acpi/acpica/
H A Dutcopy.c646 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/drivers/net/ethernet/intel/ice/
H A Dice_controlq.c1095 u16 copy_size = le16_to_cpu(desc->datalen); in ice_sq_send_cmd() local
1097 if (copy_size > buf_size) { in ice_sq_send_cmd()
1099 copy_size, buf_size); in ice_sq_send_cmd()
1102 memcpy(buf, dma_buf->va, copy_size); in ice_sq_send_cmd()
/linux/fs/jfs/
H A Dnamei.c996 u32 copy_size = min_t(u32, ssize, PSIZE); in jfs_symlink() local
1006 memcpy(mp->data, name, copy_size); in jfs_symlink()
1008 ssize -= copy_size; in jfs_symlink()
1009 name += copy_size; in jfs_symlink()
/linux/drivers/net/vmxnet3/
H A Dvmxnet3_int.h250 u32 copy_size; /* # of bytes copied into the data ring */ member
/linux/fs/smb/client/
H A Dsmb2pdu.c2834 int copy_size; in smb311_posix_mkdir() local
2899 rc = alloc_path_with_tree_prefix(&copy_path, &copy_size, in smb311_posix_mkdir()
2906 uni_path_len = copy_size; in smb311_posix_mkdir()
2915 copy_size = roundup(uni_path_len, 8); in smb311_posix_mkdir()
2916 copy_path = kzalloc(copy_size, GFP_KERNEL); in smb311_posix_mkdir()
2923 uni_path_len = copy_size; in smb311_posix_mkdir()
3010 int copy_size; in SMB2_open_init() local
3053 rc = alloc_path_with_tree_prefix(&copy_path, &copy_size, in SMB2_open_init()
3059 uni_path_len = copy_size; in SMB2_open_init()
3065 copy_size = round_up(uni_path_len, 8); in SMB2_open_init()
[all …]
/linux/drivers/usb/class/
H A Dcdc-acm.c376 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local
426 copy_size = min(current_size, in acm_ctrl_irq()
430 urb->transfer_buffer, copy_size); in acm_ctrl_irq()
431 acm->nb_index += copy_size; in acm_ctrl_irq()
/linux/security/apparmor/
H A Dapparmorfs.c380 * @alloc_size: size of user buffer (REQUIRES: @alloc_size >= @copy_size)
381 * @copy_size: size of data to copy from user buffer
389 size_t copy_size, in aa_simple_write_to_buffer() argument
394 AA_BUG(copy_size > alloc_size); in aa_simple_write_to_buffer()
405 data->size = copy_size; in aa_simple_write_to_buffer()
406 if (copy_from_user(data->data, userbuf, copy_size)) { in aa_simple_write_to_buffer()
/linux/net/ethtool/
H A Dioctl.c90 u32 copy_size; in ethtool_get_features() local
105 if (get_user(copy_size, sizeaddr)) in ethtool_get_features()
108 if (copy_size > ETHTOOL_DEV_FEATURE_WORDS) in ethtool_get_features()
109 copy_size = ETHTOOL_DEV_FEATURE_WORDS; in ethtool_get_features()
115 array_size(copy_size, sizeof(*features)))) in ethtool_get_features()
/linux/sound/usb/
H A Dmixer_scarlett2.c9629 size_t copy_size = min_t(size_t, count, read_size - offset); in scarlett2_devmap_read() local
9640 if (copy_to_user(buf, resp_buf + offset, copy_size)) { in scarlett2_devmap_read()
9645 buf += copy_size; in scarlett2_devmap_read()
9646 pos += copy_size; in scarlett2_devmap_read()
9647 copied += copy_size; in scarlett2_devmap_read()
9648 count -= copy_size; in scarlett2_devmap_read()
/linux/fs/btrfs/
H A Dinode.c6763 size_t copy_size; in read_inline_extent() local
6775 copy_size = min_t(u64, PAGE_SIZE, in read_inline_extent()
6779 btrfs_file_extent_inline_start(fi), copy_size); in read_inline_extent()
6781 if (copy_size < PAGE_SIZE) in read_inline_extent()
6782 folio_zero_range(folio, copy_size, PAGE_SIZE - copy_size); in read_inline_extent()
/linux/lib/
H A Dmaple_tree.c3820 unsigned char copy_size, node_pivots = mt_pivots[wr_mas->type]; in mas_wr_node_store() local
3863 copy_size = mas->end - offset_end + 1; in mas_wr_node_store()
3865 sizeof(void *) * copy_size); in mas_wr_node_store()
3867 sizeof(unsigned long) * (copy_size - 1)); in mas_wr_node_store()
/linux/drivers/accel/habanalabs/common/
H A Dfirmware_if.c2384 fw_loader->boot_fit_img.copy_size); in hl_fw_dynamic_copy_image()
H A Dhabanalabs.h1464 u32 copy_size; member

12