Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 167) sorted by relevance

1234567

/drivers/misc/mic/scif/
Dscif_fd.c356 struct scifioctl_copy copy; in scif_fdioctl() local
358 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
362 err = scif_readfrom(priv, copy.loffset, copy.len, copy.roffset, in scif_fdioctl()
363 copy.flags); in scif_fdioctl()
371 struct scifioctl_copy copy; in scif_fdioctl() local
373 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
377 err = scif_writeto(priv, copy.loffset, copy.len, copy.roffset, in scif_fdioctl()
378 copy.flags); in scif_fdioctl()
386 struct scifioctl_copy copy; in scif_fdioctl() local
388 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
[all …]
/drivers/block/
Dbrd.c186 size_t copy; in copy_to_brd_setup() local
188 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd_setup()
191 if (copy < n) { in copy_to_brd_setup()
192 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup()
208 size_t copy; in copy_to_brd() local
210 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd()
215 memcpy(dst + offset, src, copy); in copy_to_brd()
218 if (copy < n) { in copy_to_brd()
219 src += copy; in copy_to_brd()
220 sector += copy >> SECTOR_SHIFT; in copy_to_brd()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_draw.c228 drawable->u.copy.src_area.top = 0; in qxl_draw_opaque_fb()
229 drawable->u.copy.src_area.bottom = height; in qxl_draw_opaque_fb()
230 drawable->u.copy.src_area.left = 0; in qxl_draw_opaque_fb()
231 drawable->u.copy.src_area.right = width; in qxl_draw_opaque_fb()
233 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; in qxl_draw_opaque_fb()
234 drawable->u.copy.scale_mode = 0; in qxl_draw_opaque_fb()
235 drawable->u.copy.mask.flags = 0; in qxl_draw_opaque_fb()
236 drawable->u.copy.mask.pos.x = 0; in qxl_draw_opaque_fb()
237 drawable->u.copy.mask.pos.y = 0; in qxl_draw_opaque_fb()
238 drawable->u.copy.mask.bitmap = 0; in qxl_draw_opaque_fb()
[all …]
/drivers/staging/lustre/lustre/llite/
Ddir.c701 static int ll_ioc_copy_start(struct super_block *sb, struct hsm_copy *copy) in ll_ioc_copy_start() argument
708 hpk.hpk_fid = copy->hc_hai.hai_fid; in ll_ioc_copy_start()
709 hpk.hpk_cookie = copy->hc_hai.hai_cookie; in ll_ioc_copy_start()
710 hpk.hpk_extent.offset = copy->hc_hai.hai_extent.offset; in ll_ioc_copy_start()
717 if (copy->hc_hai.hai_action == HSMA_ARCHIVE) { in ll_ioc_copy_start()
722 inode = search_inode_for_lustre(sb, &copy->hc_hai.hai_fid); in ll_ioc_copy_start()
737 PFID(&copy->hc_hai.hai_fid), rc, in ll_ioc_copy_start()
738 copy->hc_hai.hai_cookie); in ll_ioc_copy_start()
748 copy->hc_data_version = data_version; in ll_ioc_copy_start()
776 static int ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy) in ll_ioc_copy_end() argument
[all …]
/drivers/w1/slaves/
Dw1_ds2805.c210 int copy; in w1_f0d_write_bin() local
235 copy = W1_F0D_SCRATCH_SIZE - in w1_f0d_write_bin()
238 if (copy > len) in w1_f0d_write_bin()
239 copy = len; in w1_f0d_write_bin()
241 memcpy(&tmp[addr & W1_F0D_SCRATCH_MASK], buf, copy); in w1_f0d_write_bin()
249 copy = W1_F0D_SCRATCH_SIZE; in w1_f0d_write_bin()
250 if (w1_f0d_write(sl, addr, copy, buf) < 0) { in w1_f0d_write_bin()
255 buf += copy; in w1_f0d_write_bin()
256 addr += copy; in w1_f0d_write_bin()
257 len -= copy; in w1_f0d_write_bin()
Dw1_ds2431.c211 int copy; in eeprom_write() local
236 copy = W1_F2D_SCRATCH_SIZE - in eeprom_write()
239 if (copy > len) in eeprom_write()
240 copy = len; in eeprom_write()
242 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy); in eeprom_write()
250 copy = W1_F2D_SCRATCH_SIZE; in eeprom_write()
251 if (w1_f2d_write(sl, addr, copy, buf) < 0) { in eeprom_write()
256 buf += copy; in eeprom_write()
257 addr += copy; in eeprom_write()
258 len -= copy; in eeprom_write()
/drivers/net/ethernet/sfc/
Dsiena_sriov.c406 struct efx_memcpy_req copy[4]; in __efx_siena_sriov_push_vf_status() local
418 memset(copy, '\0', sizeof(copy)); in __efx_siena_sriov_push_vf_status()
420 copy[0].from_buf = &status->generation_start; in __efx_siena_sriov_push_vf_status()
421 copy[0].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status()
422 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status, in __efx_siena_sriov_push_vf_status()
424 copy[0].length = sizeof(status->generation_start); in __efx_siena_sriov_push_vf_status()
430 copy[1].from_rid = efx->pci_dev->devfn; in __efx_siena_sriov_push_vf_status()
431 copy[1].from_addr = nic_data->vfdi_status.dma_addr + data_offset; in __efx_siena_sriov_push_vf_status()
432 copy[1].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status()
433 copy[1].to_addr = vf->status_addr + data_offset; in __efx_siena_sriov_push_vf_status()
[all …]
/drivers/staging/goldfish/
Dgoldfish_audio.c160 ssize_t copy = count; in goldfish_audio_write() local
162 if (copy > WRITE_BUFFER_SIZE) in goldfish_audio_write()
163 copy = WRITE_BUFFER_SIZE; in goldfish_audio_write()
174 if (copy_from_user(kbuf, buf, copy)) { in goldfish_audio_write()
186 AUDIO_WRITE(data, AUDIO_WRITE_BUFFER_1, copy); in goldfish_audio_write()
189 AUDIO_WRITE(data, AUDIO_WRITE_BUFFER_2, copy); in goldfish_audio_write()
193 buf += copy; in goldfish_audio_write()
194 result += copy; in goldfish_audio_write()
195 count -= copy; in goldfish_audio_write()
/drivers/gpu/drm/radeon/
Dradeon_asic.c226 .copy = {
231 .copy = &r100_copy_blit,
294 .copy = {
299 .copy = &r100_copy_blit,
390 .copy = {
395 .copy = &r100_copy_blit,
458 .copy = {
463 .copy = &r100_copy_blit,
526 .copy = {
531 .copy = &r100_copy_blit,
[all …]
Dni_dma.c161 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) || in cayman_dma_stop()
162 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX)) in cayman_dma_stop()
257 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) || in cayman_dma_resume()
258 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX)) in cayman_dma_resume()
/drivers/misc/mic/vop/
Dvop_vringh.c747 static int _vop_virtio_copy(struct vop_vdev *vdev, struct mic_copy_desc *copy) in _vop_virtio_copy() argument
750 u32 iovcnt = copy->iovcnt; in _vop_virtio_copy()
752 struct iovec __user *u_iov = copy->iov; in _vop_virtio_copy()
754 struct vop_vringh *vvr = &vdev->vvr[copy->vr_idx]; in _vop_virtio_copy()
762 copy->out_len = 0; in _vop_virtio_copy()
786 MIC_VRINGH_READ, copy->vr_idx, &out_len); in _vop_virtio_copy()
794 copy->out_len += out_len; in _vop_virtio_copy()
797 !MIC_VRINGH_READ, copy->vr_idx, &out_len); in _vop_virtio_copy()
805 copy->out_len += out_len; in _vop_virtio_copy()
819 if (*head != USHRT_MAX && copy->out_len && copy->update_used) { in _vop_virtio_copy()
[all …]
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx-gen2.c577 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() local
579 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd()
580 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
581 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd()
582 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd()
583 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
667 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
675 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
677 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_gen2_enqueue_hcmd()
678 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
[all …]
/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c44 struct nfp_eth_table_port *copy) in nfp_devlink_fill_eth_port() argument
52 memcpy(copy, eth_port, sizeof(*eth_port)); in nfp_devlink_fill_eth_port()
59 struct nfp_eth_table_port *copy) in nfp_devlink_fill_eth_port_from_id() argument
65 return nfp_devlink_fill_eth_port(port, copy); in nfp_devlink_fill_eth_port_from_id()
/drivers/gpu/drm/exynos/
Dexynos_drm_plane.c152 struct exynos_drm_plane_state *copy; in exynos_drm_plane_duplicate_state() local
155 copy = kzalloc(sizeof(*exynos_state), GFP_KERNEL); in exynos_drm_plane_duplicate_state()
156 if (!copy) in exynos_drm_plane_duplicate_state()
159 __drm_atomic_helper_plane_duplicate_state(plane, &copy->base); in exynos_drm_plane_duplicate_state()
160 return &copy->base; in exynos_drm_plane_duplicate_state()
/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1044 int copy; in mlx5_copy_to_msg() local
1049 copy = min_t(int, size, sizeof(to->first.data)); in mlx5_copy_to_msg()
1050 memcpy(to->first.data, from, copy); in mlx5_copy_to_msg()
1051 size -= copy; in mlx5_copy_to_msg()
1052 from += copy; in mlx5_copy_to_msg()
1061 copy = min_t(int, size, MLX5_CMD_DATA_BLOCK_SIZE); in mlx5_copy_to_msg()
1063 memcpy(block->data, from, copy); in mlx5_copy_to_msg()
1064 from += copy; in mlx5_copy_to_msg()
1065 size -= copy; in mlx5_copy_to_msg()
1077 int copy; in mlx5_copy_from_msg() local
[all …]
/drivers/block/paride/
Dpg.c629 int copy; in pg_read() local
645 copy = 0; in pg_read()
649 copy = hdr.dlen; in pg_read()
650 if (copy > (count - hs)) in pg_read()
651 copy = count - hs; in pg_read()
659 if (copy > 0) in pg_read()
660 if (copy_to_user(buf + hs, dev->bufptr, copy)) in pg_read()
662 return copy + hs; in pg_read()
/drivers/net/wireless/intersil/hostap/
Dhostap_proc.c309 int start_bytes, left, copy, copied; in prism2_io_debug_proc_read() local
323 copy = start_bytes - off; in prism2_io_debug_proc_read()
324 if (copy > count) in prism2_io_debug_proc_read()
325 copy = count; in prism2_io_debug_proc_read()
326 memcpy(page, ((u8 *) &local->io_debug[head]) + off, copy); in prism2_io_debug_proc_read()
327 left -= copy; in prism2_io_debug_proc_read()
329 memcpy(&page[copy], local->io_debug, left); in prism2_io_debug_proc_read()
/drivers/staging/media/davinci_vpfe/
DTODO30 - copy vpfe.h from drivers/staging/media/davinci_vpfe/ to
32 - copy davinci_vpfe_user.h from drivers/staging/media/davinci_vpfe/ to
35 - copy dm365_ipipeif_user.h from drivers/staging/media/davinci_vpfe/ to
/drivers/staging/rtl8192u/
Dcopying6 Everyone is permitted to copy and distribute verbatim copies
40 (2) offer you this license which gives you legal permission to copy,
79 1. You may copy and distribute verbatim copies of the Program's
81 conspicuously and appropriately publish on each copy an appropriate
84 and give any other recipients of the Program a copy of this License
87 You may charge a fee for the physical act of transferring a copy, and
90 2. You may modify your copy or copies of the Program or any portion
91 of it, thus forming a work based on the Program, and copy and
109 these conditions, and telling the user how to view a copy of this
134 3. You may copy and distribute the Program (or a work based on it,
[all …]
/drivers/staging/rtl8192e/
Dlicense13 Everyone is permitted to copy and distribute verbatim copies of this license
45 offer you this license which gives you legal permission to copy, distribute
83 1. You may copy and distribute verbatim copies of the Program's source code
85 appropriately publish on each copy an appropriate copyright notice and
88 of the Program a copy of this License along with the Program.
90 You may charge a fee for the physical act of transferring a copy, and you
93 2. You may modify your copy or copies of the Program or any portion of it,
94 thus forming a work based on the Program, and copy and distribute such
112 telling the user how to view a copy of this License. (Exception: if
137 3. You may copy and distribute the Program (or a work based on it, under
[all …]
/drivers/usb/usbip/
Dstub_tx.c255 unsigned int copy = urb->actual_length; in stub_send_ret_submit() local
259 if (copy == 0) in stub_send_ret_submit()
262 if (copy < sg->length) in stub_send_ret_submit()
263 size = copy; in stub_send_ret_submit()
271 copy -= size; in stub_send_ret_submit()
/drivers/gpu/drm/tegra/
Ddc.c454 struct tegra_plane_state *copy; in tegra_plane_atomic_duplicate_state() local
456 copy = kmalloc(sizeof(*copy), GFP_KERNEL); in tegra_plane_atomic_duplicate_state()
457 if (!copy) in tegra_plane_atomic_duplicate_state()
460 __drm_atomic_helper_plane_duplicate_state(plane, &copy->base); in tegra_plane_atomic_duplicate_state()
461 copy->tiling = state->tiling; in tegra_plane_atomic_duplicate_state()
462 copy->format = state->format; in tegra_plane_atomic_duplicate_state()
463 copy->swap = state->swap; in tegra_plane_atomic_duplicate_state()
465 return &copy->base; in tegra_plane_atomic_duplicate_state()
1039 struct tegra_dc_state *copy; in tegra_crtc_atomic_duplicate_state() local
1041 copy = kmalloc(sizeof(*copy), GFP_KERNEL); in tegra_crtc_atomic_duplicate_state()
[all …]
/drivers/gpu/drm/rcar-du/
Drcar_du_vsp.c319 struct rcar_du_vsp_plane_state *copy; in rcar_du_vsp_plane_atomic_duplicate_state() local
325 copy = kmemdup(state, sizeof(*state), GFP_KERNEL); in rcar_du_vsp_plane_atomic_duplicate_state()
326 if (copy == NULL) in rcar_du_vsp_plane_atomic_duplicate_state()
329 __drm_atomic_helper_plane_duplicate_state(plane, &copy->state); in rcar_du_vsp_plane_atomic_duplicate_state()
331 return &copy->state; in rcar_du_vsp_plane_atomic_duplicate_state()
/drivers/nvdimm/
Dbus.c976 u32 in_size, copy; in __nd_ioctl() local
985 copy = min_t(u32, sizeof(in_env) - in_len, in_size); in __nd_ioctl()
987 copy = 0; in __nd_ioctl()
988 if (copy && copy_from_user(&in_env[in_len], p + in_len, copy)) in __nd_ioctl()
1004 u32 copy; in __nd_ioctl() local
1012 copy = min_t(u32, sizeof(out_env) - out_len, out_size); in __nd_ioctl()
1014 copy = 0; in __nd_ioctl()
1015 if (copy && copy_from_user(&out_env[out_len], in __nd_ioctl()
1016 p + in_len + out_len, copy)) in __nd_ioctl()
/drivers/atm/
Dnicstarmac.copyright24 * Implementing minimal-copy of received data:
30 * copy small buffer contents to head of large buffer.
54 * You should have received a copy of the GNU General Public License

1234567