Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/arch/arm/lib/
H A Duaccess_with_memcpy.c108 int tocopy; in __copy_to_user_memcpy() local
119 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy()
120 if (tocopy > n) in __copy_to_user_memcpy()
121 tocopy = n; in __copy_to_user_memcpy()
124 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy()
126 to += tocopy; in __copy_to_user_memcpy()
127 from += tocopy; in __copy_to_user_memcpy()
128 n -= tocopy; in __copy_to_user_memcpy()
177 int tocopy; in __clear_user_memset() local
186 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset()
[all …]
/OK3568_Linux_fs/kernel/arch/alpha/boot/tools/
H A Dobjstrip.c55 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 …]
/OK3568_Linux_fs/kernel/kernel/
H A Dcapability.c82 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 …]
/OK3568_Linux_fs/kernel/drivers/misc/genwqe/
H A Dcard_dev.c509 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 …]
/OK3568_Linux_fs/kernel/crypto/
H A Djitterentropy.c619 unsigned int tocopy; in jent_read_entropy() local
659 tocopy = (DATA_SIZE_BITS / 8); in jent_read_entropy()
661 tocopy = len; in jent_read_entropy()
662 jent_memcpy(p, &ec->data, tocopy); in jent_read_entropy()
664 len -= tocopy; in jent_read_entropy()
665 p += tocopy; in jent_read_entropy()
/OK3568_Linux_fs/kernel/fs/jfs/
H A Dsuper.c743 int tocopy; in jfs_quota_read() local
755 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
764 memset(data, 0, tocopy); in jfs_quota_read()
769 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read()
773 toread -= tocopy; in jfs_quota_read()
774 data += tocopy; in jfs_quota_read()
788 int tocopy; in jfs_quota_write() local
795 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write()
803 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
812 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write()
[all …]
/OK3568_Linux_fs/kernel/kernel/events/
H A Dring_buffer.c575 unsigned long tocopy, remainder, len = 0; in perf_output_copy_aux() local
582 tocopy = PAGE_SIZE - offset_in_page(from); in perf_output_copy_aux()
584 tocopy = min(tocopy, to - from); in perf_output_copy_aux()
585 if (!tocopy) in perf_output_copy_aux()
591 remainder = perf_output_copy(handle, addr, tocopy); in perf_output_copy_aux()
595 len += tocopy; in perf_output_copy_aux()
596 from += tocopy; in perf_output_copy_aux()
/OK3568_Linux_fs/kernel/drivers/hwtracing/intel_th/
H A Dmsu.c595 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()
1476 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1481 tocopy = min(rem, size - start); in msc_single_to_user()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/oe/
H A Dcopy_buildsystem.py216 tocopy = {}
223 tocopy[invalue].append(line)
232 tocopy[invalue] = []
249 write_sigs_file(copy_output, list(tocopy.keys()), tocopy)
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dstretch.c217 size_t tocopy = min(*isamp-iindex, in flow() local
220 memcpy(p->ibuf + p->index, ibuf + iindex, tocopy * sizeof(sox_sample_t)); in flow()
222 iindex += tocopy; in flow()
223 p->index += tocopy; in flow()
/OK3568_Linux_fs/kernel/sound/usb/bcd2000/
H A Dbcd2000.c99 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()
/OK3568_Linux_fs/kernel/fs/ext2/
H A Dsuper.c1494 int tocopy; in ext2_quota_read() local
1506 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1515 memset(data, 0, tocopy); in ext2_quota_read()
1520 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read()
1524 toread -= tocopy; in ext2_quota_read()
1525 data += tocopy; in ext2_quota_read()
1539 int tocopy; in ext2_quota_write() local
1545 tocopy = sb->s_blocksize - offset < towrite ? in ext2_quota_write()
1553 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write()
1562 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write()
[all …]
/OK3568_Linux_fs/kernel/sound/pci/asihpi/
H A Dhpicmn.c473 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()
/OK3568_Linux_fs/kernel/fs/reiserfs/
H A Dsuper.c2504 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_read() local
2515 tocopy = in reiserfs_quota_read()
2529 memset(data, 0, tocopy); in reiserfs_quota_read()
2534 memcpy(data, bh->b_data + offset, tocopy); in reiserfs_quota_read()
2538 toread -= tocopy; in reiserfs_quota_read()
2539 data += tocopy; in reiserfs_quota_read()
2554 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_write() local
2565 tocopy = sb->s_blocksize - offset < towrite ? in reiserfs_quota_write()
2573 if (offset || tocopy != sb->s_blocksize) in reiserfs_quota_write()
2582 memcpy(bh->b_data + offset, data, tocopy); in reiserfs_quota_write()
[all …]
/OK3568_Linux_fs/kernel/security/
H A Dcommoncap.c597 unsigned tocopy, i; in get_vfs_caps_from_disk() local
630 tocopy = VFS_CAP_U32_1; in get_vfs_caps_from_disk()
635 tocopy = VFS_CAP_U32_2; in get_vfs_caps_from_disk()
640 tocopy = VFS_CAP_U32_3; in get_vfs_caps_from_disk()
654 if (i >= tocopy) in get_vfs_caps_from_disk()
/OK3568_Linux_fs/kernel/drivers/misc/cxl/
H A Dguest.c70 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()
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Dquota_global.c177 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()
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Dsuper.c2332 int tocopy; in f2fs_quota_read() local
2345 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in f2fs_quota_read()
2371 memcpy(data, kaddr + offset, tocopy); in f2fs_quota_read()
2376 toread -= tocopy; in f2fs_quota_read()
2377 data += tocopy; in f2fs_quota_read()
2396 int tocopy; in f2fs_quota_write() local
2399 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write()
2402 err = a_ops->write_begin(NULL, mapping, off, tocopy, 0, in f2fs_quota_write()
2415 memcpy(kaddr + offset, data, tocopy); in f2fs_quota_write()
2419 a_ops->write_end(NULL, mapping, off, tocopy, tocopy, in f2fs_quota_write()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/
H A Dwl3501_cs.c1769 u8 implemented, restricted, keys[100], len_keys, tocopy; in wl3501_get_encode() local
1794 tocopy = min_t(u16, len_keys, wrqu->encoding.length); in wl3501_get_encode()
1795 tocopy = min_t(u8, tocopy, 100); in wl3501_get_encode()
1796 wrqu->encoding.length = tocopy; in wl3501_get_encode()
1797 memcpy(extra, keys, tocopy); in wl3501_get_encode()
/OK3568_Linux_fs/kernel/drivers/atm/
H A Dnicstar.c2220 int remaining, tocopy; in dequeue_rx() local
2297 tocopy = in dequeue_rx()
2301 (hb), tocopy); in dequeue_rx()
2302 skb_put(hb, tocopy); in dequeue_rx()
2304 remaining -= tocopy; in dequeue_rx()
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dsuper.c6511 int tocopy; in ext4_quota_read() local
6522 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read()
6528 memset(data, 0, tocopy); in ext4_quota_read()
6530 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read()
6533 toread -= tocopy; in ext4_quota_read()
6534 data += tocopy; in ext4_quota_read()