Searched refs:to_copy (Results 26 - 41 of 41) sorted by relevance

12

/linux-master/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.c906 unsigned int to_copy; local
913 to_copy = min(space, SFP_PAGE_SIZE - offset);
933 to_copy);
935 return to_copy;
/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/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/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...]
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dsta.c1084 size_t to_copy; local
1105 to_copy = min_t(size_t, sizeof(sta_cmd.key.key), keyconf->keylen);
1106 memcpy(sta_cmd.key.key, keyconf->key, 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/hwtracing/coresight/
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/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/fs/ntfs3/
H A Dindex.c1793 u32 to_copy, used, used1; local
1865 to_copy = PtrOffset(de_t, sp);
1866 hdr_insert_head(hdr2, de_t, to_copy);
1869 used = used1 - to_copy - sp_size;
/linux-master/net/ceph/
H A Dosdmap.c1202 u32 to_copy; local
1219 to_copy = min(map->max_osd, max);
1221 memcpy(state, map->osd_state, to_copy * sizeof(*state));
1222 memcpy(weight, map->osd_weight, to_copy * sizeof(*weight));
1223 memcpy(addr, map->osd_addr, to_copy * sizeof(*addr));
1247 to_copy * sizeof(*affinity));
/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/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/kernel/trace/
H A Dbpf_trace.c1842 u32 to_copy; local
1859 to_copy = min_t(u32, br_stack->nr * br_entry_size, size);
1860 memcpy(buf, br_stack->entries, to_copy);
1862 return to_copy;
/linux-master/net/core/
H A Dskbuff.c6746 /* Extract to_copy bytes starting at off from skb, and return this in
6750 int to_copy, gfp_t gfp)
6758 pskb_trim(clone, to_copy)) {
6749 pskb_extract(struct sk_buff *skb, int off, int to_copy, gfp_t gfp) argument
/linux-master/include/linux/
H A Dskbuff.h4030 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,

Completed in 478 milliseconds

12