Home
last modified time | relevance | path

Searched refs:tocopy (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/arch/arm/lib/
Duaccess_with_memcpy.c107 int tocopy; in __copy_to_user_memcpy() local
118 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
119 if (tocopy > n) in __copy_to_user_memcpy()
120 tocopy = n; in __copy_to_user_memcpy()
123 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
125 to += tocopy; in __copy_to_user_memcpy()
126 from += tocopy; in __copy_to_user_memcpy()
127 n -= tocopy; in __copy_to_user_memcpy()
175 int tocopy; in __clear_user_memset() local
184 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
[all …]
/linux-4.4.14/arch/alpha/boot/tools/
Dobjstrip.c54 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; in main() local
237 tocopy = fil_size; in main()
238 while (tocopy > 0) { in main()
239 n = tocopy; in main()
243 tocopy -= n; in main()
262 tocopy = mem_size - fil_size; in main()
263 if (tocopy > 0) { in main()
266 prog_name, pad, (unsigned long) tocopy); in main()
270 n = tocopy; in main()
279 tocopy -= nwritten; in main()
[all …]
/linux-4.4.14/kernel/
Dcapability.c81 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument
91 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic()
99 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic()
153 unsigned tocopy; in SYSCALL_DEFINE2() local
156 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2()
171 for (i = 0; i < tocopy; i++) { in SYSCALL_DEFINE2()
196 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2()
226 unsigned i, tocopy, copybytes; in SYSCALL_DEFINE2() local
232 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2()
243 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2()
[all …]
/linux-4.4.14/drivers/misc/genwqe/
Dcard_dev.c513 size_t tocopy = 0; in do_flash_update() local
556 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_update()
558 rc = copy_from_user(xbuf, buf, tocopy); in do_flash_update()
563 crc = genwqe_crc32(xbuf, tocopy, 0xffffffff); in do_flash_update()
567 __func__, (unsigned long)dma_addr, crc, tocopy, in do_flash_update()
583 *(__be64 *)&req->__asiv[8] = cpu_to_be64(tocopy); in do_flash_update()
595 *(__be32 *)&req->asiv[8] = cpu_to_be32(tocopy); in do_flash_update()
631 load->size -= tocopy; in do_flash_update()
632 flash += tocopy; in do_flash_update()
633 buf += tocopy; in do_flash_update()
[all …]
/linux-4.4.14/crypto/
Djitterentropy.c593 unsigned int tocopy; in jent_read_entropy() local
598 tocopy = (DATA_SIZE_BITS / 8); in jent_read_entropy()
600 tocopy = len; in jent_read_entropy()
601 jent_memcpy(p, &ec->data, tocopy); in jent_read_entropy()
603 len -= tocopy; in jent_read_entropy()
604 p += tocopy; in jent_read_entropy()
/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c394 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local
412 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate()
416 if (!tocopy) in msc_buffer_iterate()
419 tocopy -= iter->block_off; in msc_buffer_iterate()
422 if (len < tocopy) { in msc_buffer_iterate()
423 tocopy = len; in msc_buffer_iterate()
427 remaining = fn(data, src, tocopy); in msc_buffer_iterate()
432 copied = tocopy - remaining; in msc_buffer_iterate()
1060 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1065 tocopy = min(rem, size - start); in msc_single_to_user()
[all …]
/linux-4.4.14/fs/jfs/
Dsuper.c745 int tocopy; in jfs_quota_read() local
757 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
766 memset(data, 0, tocopy); in jfs_quota_read()
771 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read()
775 toread -= tocopy; in jfs_quota_read()
776 data += tocopy; in jfs_quota_read()
790 int tocopy; in jfs_quota_write() local
797 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write()
805 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
814 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write()
[all …]
/linux-4.4.14/sound/usb/bcd2000/
Dbcd2000.c108 unsigned int payload_length, tocopy; in bcd2000_midi_handle_input() local
126 tocopy = min(payload_length, buf_len-1); in bcd2000_midi_handle_input()
129 &buf[1], tocopy); in bcd2000_midi_handle_input()
132 &buf[1], tocopy); in bcd2000_midi_handle_input()
/linux-4.4.14/sound/pci/asihpi/
Dhpicmn.c482 unsigned int tocopy; in hpi_check_control_cache_single() local
505 tocopy = pad_string_len - offset; in hpi_check_control_cache_single()
506 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single()
507 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single()
511 &pad_string[offset], tocopy); in hpi_check_control_cache_single()
514 pad_string_len - offset - tocopy; in hpi_check_control_cache_single()
/linux-4.4.14/fs/ext2/
Dsuper.c1455 int tocopy; in ext2_quota_read() local
1467 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1476 memset(data, 0, tocopy); in ext2_quota_read()
1481 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read()
1485 toread -= tocopy; in ext2_quota_read()
1486 data += tocopy; in ext2_quota_read()
1500 int tocopy; in ext2_quota_write() local
1506 tocopy = sb->s_blocksize - offset < towrite ? in ext2_quota_write()
1514 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write()
1523 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write()
[all …]
/linux-4.4.14/fs/reiserfs/
Dsuper.c2408 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_read() local
2419 tocopy = in reiserfs_quota_read()
2433 memset(data, 0, tocopy); in reiserfs_quota_read()
2438 memcpy(data, bh->b_data + offset, tocopy); in reiserfs_quota_read()
2442 toread -= tocopy; in reiserfs_quota_read()
2443 data += tocopy; in reiserfs_quota_read()
2458 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_write() local
2469 tocopy = sb->s_blocksize - offset < towrite ? in reiserfs_quota_write()
2477 if (offset || tocopy != sb->s_blocksize) in reiserfs_quota_write()
2486 memcpy(bh->b_data + offset, data, tocopy); in reiserfs_quota_write()
[all …]
/linux-4.4.14/security/
Dcommoncap.c391 unsigned tocopy, i; in get_vfs_caps_from_disk() local
417 tocopy = VFS_CAP_U32_1; in get_vfs_caps_from_disk()
422 tocopy = VFS_CAP_U32_2; in get_vfs_caps_from_disk()
429 if (i >= tocopy) in get_vfs_caps_from_disk()
/linux-4.4.14/fs/ocfs2/
Dquota_global.c175 size_t toread, tocopy; in ocfs2_quota_read() local
184 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read()
202 memcpy(data, bh->b_data + offset, tocopy); in ocfs2_quota_read()
205 toread -= tocopy; in ocfs2_quota_read()
206 data += tocopy; in ocfs2_quota_read()
/linux-4.4.14/drivers/net/wireless/
Dwl3501_cs.c1756 u8 implemented, restricted, keys[100], len_keys, tocopy; in wl3501_get_encode() local
1781 tocopy = min_t(u16, len_keys, wrqu->encoding.length); in wl3501_get_encode()
1782 tocopy = min_t(u8, tocopy, 100); in wl3501_get_encode()
1783 wrqu->encoding.length = tocopy; in wl3501_get_encode()
1784 memcpy(extra, keys, tocopy); in wl3501_get_encode()
/linux-4.4.14/drivers/atm/
Dnicstar.c2214 int remaining, tocopy; in dequeue_rx() local
2291 tocopy = in dequeue_rx()
2295 (hb), tocopy); in dequeue_rx()
2296 skb_put(hb, tocopy); in dequeue_rx()
2298 remaining -= tocopy; in dequeue_rx()
/linux-4.4.14/fs/ext4/
Dsuper.c5095 int tocopy; in ext4_quota_read() local
5106 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read()
5112 memset(data, 0, tocopy); in ext4_quota_read()
5114 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read()
5117 toread -= tocopy; in ext4_quota_read()
5118 data += tocopy; in ext4_quota_read()