/linux-6.12.1/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 106 int tocopy; in __copy_to_user_memcpy() local 117 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy() 118 if (tocopy > n) in __copy_to_user_memcpy() 119 tocopy = n; in __copy_to_user_memcpy() 122 __memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy() 124 to += tocopy; in __copy_to_user_memcpy() 125 from += tocopy; in __copy_to_user_memcpy() 126 n -= tocopy; in __copy_to_user_memcpy() 170 int tocopy; in __clear_user_memset() local 179 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset() [all …]
|
/linux-6.12.1/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-6.12.1/kernel/ |
D | capability.c | 75 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument 85 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic() 91 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic() 145 unsigned tocopy; in SYSCALL_DEFINE2() local 149 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 191 if (copy_to_user(dataptr, kdata, tocopy * sizeof(kdata[0]))) in SYSCALL_DEFINE2() 223 unsigned tocopy, copybytes; in SYSCALL_DEFINE2() local 229 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 240 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2()
|
/linux-6.12.1/drivers/misc/genwqe/ |
D | card_dev.c | 509 size_t tocopy = 0; in do_flash_update() local 552 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_update() 554 rc = copy_from_user(xbuf, buf, tocopy); in do_flash_update() 559 crc = genwqe_crc32(xbuf, tocopy, 0xffffffff); in do_flash_update() 563 __func__, (unsigned long)dma_addr, crc, tocopy, in do_flash_update() 579 *(__be64 *)&req->__asiv[8] = cpu_to_be64(tocopy); in do_flash_update() 591 *(__be32 *)&req->asiv[8] = cpu_to_be32(tocopy); in do_flash_update() 627 load->size -= tocopy; in do_flash_update() 628 flash += tocopy; in do_flash_update() 629 buf += tocopy; in do_flash_update() [all …]
|
/linux-6.12.1/fs/jfs/ |
D | super.c | 736 int tocopy; in jfs_quota_read() local 748 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in jfs_quota_read() 756 memset(data, 0, tocopy); in jfs_quota_read() 761 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read() 765 toread -= tocopy; in jfs_quota_read() 766 data += tocopy; in jfs_quota_read() 780 int tocopy; in jfs_quota_write() local 787 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in jfs_quota_write() 794 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write() 803 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write() [all …]
|
/linux-6.12.1/crypto/ |
D | jitterentropy.c | 613 unsigned int tocopy, health_test_result; in jent_read_entropy() local 642 tocopy = min(DATA_SIZE_BITS / 8, len); in jent_read_entropy() 643 if (jent_read_random_block(ec->hash_state, p, tocopy)) in jent_read_entropy() 646 len -= tocopy; in jent_read_entropy() 647 p += tocopy; in jent_read_entropy()
|
/linux-6.12.1/kernel/events/ |
D | ring_buffer.c | 585 unsigned long tocopy, remainder, len = 0; in perf_output_copy_aux() local 592 tocopy = PAGE_SIZE - offset_in_page(from); in perf_output_copy_aux() 594 tocopy = min(tocopy, to - from); in perf_output_copy_aux() 595 if (!tocopy) in perf_output_copy_aux() 601 remainder = perf_output_copy(handle, addr, tocopy); in perf_output_copy_aux() 605 len += tocopy; in perf_output_copy_aux() 606 from += tocopy; in perf_output_copy_aux()
|
/linux-6.12.1/drivers/hwtracing/intel_th/ |
D | msu.c | 595 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local 613 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate() 617 if (!tocopy) in msc_buffer_iterate() 620 tocopy -= iter->block_off; in msc_buffer_iterate() 623 if (len < tocopy) { in msc_buffer_iterate() 624 tocopy = len; in msc_buffer_iterate() 628 remaining = fn(data, src, tocopy); in msc_buffer_iterate() 633 copied = tocopy - remaining; in msc_buffer_iterate() 1498 unsigned long start = off, tocopy = 0; in msc_single_to_user() local 1503 tocopy = min(rem, size - start); in msc_single_to_user() [all …]
|
/linux-6.12.1/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-6.12.1/fs/ext2/ |
D | super.c | 1492 int tocopy; in ext2_quota_read() local 1504 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in ext2_quota_read() 1512 memset(data, 0, tocopy); in ext2_quota_read() 1517 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read() 1521 toread -= tocopy; in ext2_quota_read() 1522 data += tocopy; in ext2_quota_read() 1536 int tocopy; in ext2_quota_write() local 1542 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in ext2_quota_write() 1549 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write() 1558 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write() [all …]
|
/linux-6.12.1/sound/pci/asihpi/ |
D | hpicmn.c | 473 unsigned int tocopy; in hpi_check_control_cache_single() local 496 tocopy = pad_string_len - offset; in hpi_check_control_cache_single() 497 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single() 498 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single() 502 &pad_string[offset], tocopy); in hpi_check_control_cache_single() 505 pad_string_len - offset - tocopy; in hpi_check_control_cache_single()
|
/linux-6.12.1/fs/reiserfs/ |
D | super.c | 2493 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_read() local 2504 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in reiserfs_quota_read() 2516 memset(data, 0, tocopy); in reiserfs_quota_read() 2521 memcpy(data, bh->b_data + offset, tocopy); in reiserfs_quota_read() 2525 toread -= tocopy; in reiserfs_quota_read() 2526 data += tocopy; in reiserfs_quota_read() 2541 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_write() local 2552 tocopy = min_t(unsigned long, sb->s_blocksize - offset, towrite); in reiserfs_quota_write() 2559 if (offset || tocopy != sb->s_blocksize) in reiserfs_quota_write() 2568 memcpy(bh->b_data + offset, data, tocopy); in reiserfs_quota_write() [all …]
|
/linux-6.12.1/drivers/misc/cxl/ |
D | guest.c | 76 int rc = 0, i, tocopy; in guest_collect_vpd() local 136 tocopy = len; in guest_collect_vpd() 138 tocopy = SG_BUFFER_SIZE; in guest_collect_vpd() 139 memcpy(buf, vpd_buf[i], tocopy); in guest_collect_vpd() 140 buf += tocopy; in guest_collect_vpd() 141 len -= tocopy; in guest_collect_vpd()
|
/linux-6.12.1/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-6.12.1/fs/f2fs/ |
D | super.c | 2628 int tocopy; in f2fs_quota_read() local 2640 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in f2fs_quota_read() 2664 memcpy_from_page(data, page, offset, tocopy); in f2fs_quota_read() 2668 toread -= tocopy; in f2fs_quota_read() 2669 data += tocopy; in f2fs_quota_read() 2687 int tocopy; in f2fs_quota_write() local 2690 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write() 2693 err = a_ops->write_begin(NULL, mapping, off, tocopy, in f2fs_quota_write() 2704 memcpy_to_folio(folio, offset_in_folio(folio, off), data, tocopy); in f2fs_quota_write() 2706 a_ops->write_end(NULL, mapping, off, tocopy, tocopy, in f2fs_quota_write() [all …]
|
/linux-6.12.1/drivers/atm/ |
D | nicstar.c | 2227 int remaining, tocopy; in dequeue_rx() local 2304 tocopy = in dequeue_rx() 2308 (hb), tocopy); in dequeue_rx() 2309 skb_put(hb, tocopy); in dequeue_rx() 2311 remaining -= tocopy; in dequeue_rx()
|
/linux-6.12.1/fs/ext4/ |
D | super.c | 7168 int tocopy; in ext4_quota_read() local 7179 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in ext4_quota_read() 7184 memset(data, 0, tocopy); in ext4_quota_read() 7186 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read() 7189 toread -= tocopy; in ext4_quota_read() 7190 data += tocopy; in ext4_quota_read()
|