Searched refs:tocopy (Results 1 - 17 of 17) sorted by relevance

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

Completed in 985 milliseconds