Searched refs:to_copy (Results 1 - 25 of 41) sorted by last modified time

12

/linux-master/include/linux/
H A Dskbuff.h4118 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
/linux-master/net/core/
H A Dskbuff.c6757 /* Extract to_copy bytes starting at off from skb, and return this in
6761 int to_copy, gfp_t gfp)
6769 pskb_trim(clone, to_copy)) {
6760 pskb_extract(struct sk_buff *skb, int off, int to_copy, gfp_t gfp) argument
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c3599 size_t to_copy = log_ctx.pos - *pos; local
3601 to_copy = min(to_copy, size);
3603 if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) {
3604 *pos += to_copy;
3605 result = to_copy;
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c122 size_t to_copy = size & ~(sizeof(_type) - 1); \
125 ((_type *) dst, (_type *) src, to_copy); \
195 size_t to_copy = round_down(size, sizeof(_type)); \
198 ((_type *) dst, (_type *) src, to_copy); \
199 location = size - to_copy + diff_offs - sizeof(_type); \
203 dst -= to_copy - diff_offs; \
204 src -= to_copy - diff_offs; \
205 size -= to_copy - diff_offs; \
/linux-master/net/xdp/
H A Dxsk.c1521 void *to_copy; local
1550 to_copy = &off;
1558 to_copy = &off_v1;
1561 if (copy_to_user(optval, to_copy, len))
/linux-master/kernel/trace/
H A Dbpf_trace.c1833 u32 to_copy; local
1850 to_copy = min_t(u32, br_stack->nr * br_entry_size, size);
1851 memcpy(buf, br_stack->entries, to_copy);
1853 return to_copy;
/linux-master/drivers/md/
H A Ddm-integrity.c1416 unsigned int to_copy; local
1427 to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size);
1430 memcpy(tag, dp, to_copy);
1432 if (memcmp(dp, tag, to_copy)) {
1433 memcpy(dp, tag, to_copy);
1434 dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy);
1440 if (unlikely(memcmp(dp, tag, to_copy)))
1442 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) {
1450 for (i = 0; i < to_copy; i++, ts--) {
1469 tag += to_copy;
[all...]
H A Ddm-flakey.c440 unsigned size_to_add, to_copy; local
458 to_copy = size_to_add;
461 unsigned this_step = min(bvec.bv_len, to_copy);
467 to_copy -= this_step;
469 } while (to_copy);
/linux-master/drivers/hwtracing/coresight/
H A Dultrasoc-smb.c122 ssize_t to_copy = 0; local
130 to_copy = min(sdb->data_size, len);
133 if (sdb->buf_rdptr + to_copy > sdb->buf_size)
134 to_copy = sdb->buf_size - sdb->buf_rdptr;
136 if (copy_to_user(data, sdb->buf_base + sdb->buf_rdptr, to_copy)) {
141 *ppos += to_copy;
142 smb_update_read_ptr(drvdata, to_copy);
146 dev_dbg(dev, "%zu bytes copied\n", to_copy);
147 return to_copy;
339 unsigned long to_copy; local
[all...]
H A Dcoresight-tmc-etr.c1501 unsigned long to_copy)
1513 while (to_copy > 0) {
1524 bytes = tmc_etr_buf_get_data(etr_buf, src_offset, to_copy,
1532 to_copy -= bytes;
1498 tmc_etr_sync_perf_buffer(struct etr_perf_buffer *etr_perf, unsigned long head, unsigned long src_offset, unsigned long to_copy) argument
/linux-master/drivers/vfio/pci/mlx5/
H A Dmain.c743 size_t copy_len, to_copy; local
746 to_copy = min_t(size_t, *len, image_size - vhca_buf->length);
747 copy_len = to_copy;
748 while (to_copy) {
749 ret = mlx5vf_append_page_to_mig_buf(vhca_buf, buf, &to_copy, pos,
771 size_t copy_len, to_copy; local
777 to_copy = min_t(size_t, *len, required_data);
778 copy_len = to_copy;
779 while (to_copy) {
780 ret = mlx5vf_append_page_to_mig_buf(vhca_buf, buf, &to_copy, po
[all...]
/linux-master/mm/kmsan/
H A Dhooks.c250 void kmsan_copy_to_user(void __user *to, const void *from, size_t to_copy, argument
263 if (!to_copy)
266 if (to_copy <= left)
272 kmsan_internal_check_memory((void *)from, to_copy - left, to,
282 to_copy - left);
/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.c84 size_t to_copy; local
97 to_copy = kfifo_len(&client->fifo);
98 if (!to_copy) {
103 to_copy = min(size, to_copy);
104 ret = kfifo_out(&client->fifo, buf, to_copy);
111 ret = copy_to_user(user, buf, to_copy);
118 return to_copy;
/linux-master/fs/btrfs/
H A Dzstd.c630 unsigned long to_copy = 0; local
657 to_copy = workspace->out_buf.pos;
658 memcpy_to_page(dest_page, dest_pgoff, workspace->out_buf.dst, to_copy);
661 if (unlikely(to_copy < destlen)) {
663 memzero_page(dest_page, dest_pgoff + to_copy, destlen - to_copy);
H A Dzlib.c363 unsigned long to_copy; local
393 to_copy = min(workspace->strm.total_out, destlen);
397 memcpy_to_page(dest_page, dest_pgoff, workspace->buf, to_copy);
400 if (unlikely(to_copy != destlen)) {
402 to_copy, destlen);
410 if (unlikely(to_copy < destlen))
411 memzero_page(dest_page, dest_pgoff + to_copy, destlen - to_copy);
/linux-master/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c3423 int to_copy = 0, hlen = 0; local
3457 to_copy = 1;
3471 to_copy = 1;
3480 to_copy = 1;
3485 if (unlikely(to_copy))
3491 return to_copy;
/linux-master/fs/ntfs3/
H A Dindex.c1792 u32 to_copy, used, used1; local
1864 to_copy = PtrOffset(de_t, sp);
1865 hdr_insert_head(hdr2, de_t, to_copy);
1868 used = used1 - to_copy - sp_size;
/linux-master/fs/smb/server/
H A Dtransport_rdma.c677 int to_copy, to_read, data_read, offset; local
737 to_copy = min_t(int, data_length - offset, to_read);
739 to_copy);
742 if (to_copy == data_length - offset) {
759 offset += to_copy;
762 to_read -= to_copy;
763 data_read += to_copy;
/linux-master/net/vmw_vsock/
H A Dvirtio_transport_common.c142 size_t to_copy; local
151 to_copy = min_t(size_t, len, skb->len);
154 &iov_iter, to_copy);
/linux-master/drivers/media/usb/dvb-usb/
H A Dcxusb-analog.c153 unsigned int to_copy; local
155 to_copy = urb->iso_frame_desc[i].actual_length;
158 urb->iso_frame_desc[i].offset, to_copy);
160 auxbuf->paylen += to_copy;
/linux-master/drivers/infiniband/sw/siw/
H A Dsiw_qp_rx.c886 u16 to_copy = sizeof(struct iwarp_ctrl); local
915 skb_copy_bits(skb, srx->skb_offset, infop, to_copy);
921 infop += to_copy;
922 siw_update_skb_rcvd(srx, to_copy);
923 srx->fpdu_part_rcvd += to_copy;
924 srx->fpdu_part_rem -= to_copy;
926 to_copy = iwarp_pktinfo[op].hdr_len - to_copy;
929 if (to_copy + MPA_CRC_SIZE > srx->skb_new)
932 skb_copy_bits(skb, srx->skb_offset, infop, to_copy);
[all...]
/linux-master/fs/smb/client/
H A Dsmbdirect.c1740 int to_copy, to_read, data_read, offset; local
1796 to_copy = min_t(int, data_length - offset, to_read);
1800 to_copy);
1803 if (to_copy == data_length - offset) {
1825 offset += to_copy;
1827 to_read -= to_copy;
1828 data_read += to_copy;
1831 to_copy, data_length - offset,
/linux-master/drivers/crypto/amcc/
H A Dcrypto4xx_core.c455 unsigned int to_copy; local
474 to_copy = min(nbytes, PPC4XX_SD_BUFFER_SIZE *
476 scatterwalk_map_and_copy(buf, dst, dst_start, to_copy, 1);
477 nbytes -= to_copy;
482 dst_start += to_copy;
/linux-master/drivers/nvmem/
H A Dbrcm_nvram.c53 size_t to_copy; local
56 to_copy = max_t(ssize_t, (ssize_t)priv->data_len - offset, 0);
58 to_copy = bytes;
60 memcpy(val, priv->data + offset, to_copy);
62 memset((uint8_t *)val + to_copy, priv->padding_byte, bytes - to_copy);
/linux-master/drivers/xen/
H A Dxen-front-pgdir-shbuf.c276 int to_copy = XEN_NUM_GREFS_PER_PAGE; local
278 if (to_copy > grefs_left)
279 to_copy = grefs_left;
281 for (cur_gref = 0; cur_gref < to_copy; cur_gref++) {
292 grefs_left -= to_copy;
362 int cur_gref, grefs_left, to_copy, i, num_pages_dir; local
378 to_copy = grefs_left;
381 to_copy = XEN_NUM_GREFS_PER_PAGE;
385 to_copy * sizeof(grant_ref_t));
387 grefs_left -= to_copy;
[all...]

Completed in 426 milliseconds

12