/Linux-v5.4/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 103 int tocopy; in __copy_to_user_memcpy() local 114 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy() 115 if (tocopy > n) in __copy_to_user_memcpy() 116 tocopy = n; in __copy_to_user_memcpy() 119 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy() 121 to += tocopy; in __copy_to_user_memcpy() 122 from += tocopy; in __copy_to_user_memcpy() 123 n -= tocopy; in __copy_to_user_memcpy() 172 int tocopy; in __clear_user_memset() local 181 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset() [all …]
|
/Linux-v5.4/arch/alpha/boot/tools/ |
D | objstrip.c | 55 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; in main() local 238 tocopy = fil_size; in main() 239 while (tocopy > 0) { in main() 240 n = tocopy; in main() 244 tocopy -= n; in main() 263 tocopy = mem_size - fil_size; in main() 264 if (tocopy > 0) { in main() 267 prog_name, pad, (unsigned long) tocopy); in main() 271 n = tocopy; in main() 280 tocopy -= nwritten; in main() [all …]
|
/Linux-v5.4/kernel/ |
D | capability.c | 82 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument 92 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic() 98 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic() 152 unsigned tocopy; in SYSCALL_DEFINE2() local 155 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 170 for (i = 0; i < tocopy; i++) { in SYSCALL_DEFINE2() 195 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2() 225 unsigned i, tocopy, copybytes; in SYSCALL_DEFINE2() local 231 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 242 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2() [all …]
|
/Linux-v5.4/crypto/ |
D | jitterentropy.c | 454 unsigned int tocopy; in jent_read_entropy() local 459 tocopy = (DATA_SIZE_BITS / 8); in jent_read_entropy() 461 tocopy = len; in jent_read_entropy() 462 jent_memcpy(p, &ec->data, tocopy); in jent_read_entropy() 464 len -= tocopy; in jent_read_entropy() 465 p += tocopy; in jent_read_entropy()
|
/Linux-v5.4/drivers/misc/genwqe/ |
D | card_dev.c | 504 size_t tocopy = 0; in do_flash_update() local 547 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_update() 549 rc = copy_from_user(xbuf, buf, tocopy); in do_flash_update() 554 crc = genwqe_crc32(xbuf, tocopy, 0xffffffff); in do_flash_update() 558 __func__, (unsigned long)dma_addr, crc, tocopy, in do_flash_update() 574 *(__be64 *)&req->__asiv[8] = cpu_to_be64(tocopy); in do_flash_update() 586 *(__be32 *)&req->asiv[8] = cpu_to_be32(tocopy); in do_flash_update() 622 load->size -= tocopy; in do_flash_update() 623 flash += tocopy; in do_flash_update() 624 buf += tocopy; in do_flash_update() [all …]
|
/Linux-v5.4/fs/jfs/ |
D | super.c | 742 int tocopy; in jfs_quota_read() local 754 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read() 763 memset(data, 0, tocopy); in jfs_quota_read() 768 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read() 772 toread -= tocopy; in jfs_quota_read() 773 data += tocopy; in jfs_quota_read() 787 int tocopy; in jfs_quota_write() local 794 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write() 802 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write() 811 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write() [all …]
|
/Linux-v5.4/drivers/hwtracing/intel_th/ |
D | msu.c | 591 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local 609 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate() 613 if (!tocopy) in msc_buffer_iterate() 616 tocopy -= iter->block_off; in msc_buffer_iterate() 619 if (len < tocopy) { in msc_buffer_iterate() 620 tocopy = len; in msc_buffer_iterate() 624 remaining = fn(data, src, tocopy); in msc_buffer_iterate() 629 copied = tocopy - remaining; in msc_buffer_iterate() 1461 unsigned long start = off, tocopy = 0; in msc_single_to_user() local 1466 tocopy = min(rem, size - start); in msc_single_to_user() [all …]
|
/Linux-v5.4/sound/usb/bcd2000/ |
D | bcd2000.c | 99 unsigned int payload_length, tocopy; in bcd2000_midi_handle_input() local 117 tocopy = min(payload_length, buf_len-1); in bcd2000_midi_handle_input() 120 &buf[1], tocopy); in bcd2000_midi_handle_input() 123 &buf[1], tocopy); in bcd2000_midi_handle_input()
|
/Linux-v5.4/sound/pci/asihpi/ |
D | hpicmn.c | 471 unsigned int tocopy; in hpi_check_control_cache_single() local 494 tocopy = pad_string_len - offset; in hpi_check_control_cache_single() 495 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single() 496 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single() 500 &pad_string[offset], tocopy); in hpi_check_control_cache_single() 503 pad_string_len - offset - tocopy; in hpi_check_control_cache_single()
|
/Linux-v5.4/fs/ext2/ |
D | super.c | 1499 int tocopy; in ext2_quota_read() local 1511 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read() 1520 memset(data, 0, tocopy); in ext2_quota_read() 1525 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read() 1529 toread -= tocopy; in ext2_quota_read() 1530 data += tocopy; in ext2_quota_read() 1544 int tocopy; in ext2_quota_write() local 1550 tocopy = sb->s_blocksize - offset < towrite ? in ext2_quota_write() 1558 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write() 1567 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write() [all …]
|
/Linux-v5.4/fs/reiserfs/ |
D | super.c | 2492 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_read() local 2503 tocopy = in reiserfs_quota_read() 2517 memset(data, 0, tocopy); in reiserfs_quota_read() 2522 memcpy(data, bh->b_data + offset, tocopy); in reiserfs_quota_read() 2526 toread -= tocopy; in reiserfs_quota_read() 2527 data += tocopy; in reiserfs_quota_read() 2542 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_write() local 2553 tocopy = sb->s_blocksize - offset < towrite ? in reiserfs_quota_write() 2561 if (offset || tocopy != sb->s_blocksize) in reiserfs_quota_write() 2570 memcpy(bh->b_data + offset, data, tocopy); in reiserfs_quota_write() [all …]
|
/Linux-v5.4/security/ |
D | commoncap.c | 575 unsigned tocopy, i; in get_vfs_caps_from_disk() local 607 tocopy = VFS_CAP_U32_1; in get_vfs_caps_from_disk() 612 tocopy = VFS_CAP_U32_2; in get_vfs_caps_from_disk() 617 tocopy = VFS_CAP_U32_3; in get_vfs_caps_from_disk() 631 if (i >= tocopy) in get_vfs_caps_from_disk()
|
/Linux-v5.4/drivers/misc/cxl/ |
D | guest.c | 70 int rc = 0, i, tocopy; in guest_collect_vpd() local 130 tocopy = len; in guest_collect_vpd() 132 tocopy = SG_BUFFER_SIZE; in guest_collect_vpd() 133 memcpy(buf, vpd_buf[i], tocopy); in guest_collect_vpd() 134 buf += tocopy; in guest_collect_vpd() 135 len -= tocopy; in guest_collect_vpd()
|
/Linux-v5.4/fs/ocfs2/ |
D | quota_global.c | 177 size_t toread, tocopy; in ocfs2_quota_read() local 186 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read() 204 memcpy(data, bh->b_data + offset, tocopy); in ocfs2_quota_read() 207 toread -= tocopy; in ocfs2_quota_read() 208 data += tocopy; in ocfs2_quota_read()
|
/Linux-v5.4/fs/f2fs/ |
D | super.c | 1765 int tocopy; in f2fs_quota_read() local 1778 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in f2fs_quota_read() 1803 memcpy(data, kaddr + offset, tocopy); in f2fs_quota_read() 1808 toread -= tocopy; in f2fs_quota_read() 1809 data += tocopy; in f2fs_quota_read() 1827 int tocopy; in f2fs_quota_write() local 1830 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write() 1833 err = a_ops->write_begin(NULL, mapping, off, tocopy, 0, in f2fs_quota_write() 1845 memcpy(kaddr + offset, data, tocopy); in f2fs_quota_write() 1849 a_ops->write_end(NULL, mapping, off, tocopy, tocopy, in f2fs_quota_write() [all …]
|
/Linux-v5.4/drivers/net/wireless/ |
D | wl3501_cs.c | 1765 u8 implemented, restricted, keys[100], len_keys, tocopy; in wl3501_get_encode() local 1790 tocopy = min_t(u16, len_keys, wrqu->encoding.length); in wl3501_get_encode() 1791 tocopy = min_t(u8, tocopy, 100); in wl3501_get_encode() 1792 wrqu->encoding.length = tocopy; in wl3501_get_encode() 1793 memcpy(extra, keys, tocopy); in wl3501_get_encode()
|
/Linux-v5.4/drivers/atm/ |
D | nicstar.c | 2216 int remaining, tocopy; in dequeue_rx() local 2293 tocopy = in dequeue_rx() 2297 (hb), tocopy); in dequeue_rx() 2298 skb_put(hb, tocopy); in dequeue_rx() 2300 remaining -= tocopy; in dequeue_rx()
|
/Linux-v5.4/fs/ext4/ |
D | super.c | 5934 int tocopy; in ext4_quota_read() local 5945 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read() 5951 memset(data, 0, tocopy); in ext4_quota_read() 5953 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read() 5956 toread -= tocopy; in ext4_quota_read() 5957 data += tocopy; in ext4_quota_read()
|