Home
last modified time | relevance | path

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

/openbmc/linux/arch/arm/lib/
H A Duaccess_with_memcpy.c106 int tocopy; in __copy_to_user_memcpy() local
118 if (tocopy > n) in __copy_to_user_memcpy()
119 tocopy = n; 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
180 if (tocopy > n) in __clear_user_memset()
181 tocopy = n; in __clear_user_memset()
186 addr += tocopy; in __clear_user_memset()
[all …]
/openbmc/linux/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 …]
/openbmc/qemu/chardev/
H A Dtestdev.c91 int tocopy, eaten, orig_len = len; in testdev_chr_write() local
95 tocopy = MIN(len, BUF_SIZE - testdev->in_buf_used); in testdev_chr_write()
97 memcpy(testdev->in_buf + testdev->in_buf_used, buf, tocopy); in testdev_chr_write()
98 testdev->in_buf_used += tocopy; in testdev_chr_write()
99 buf += tocopy; in testdev_chr_write()
100 len -= tocopy; in testdev_chr_write()
H A Dbaum.c494 int tocopy, cur, eaten, orig_len = len; in baum_chr_write() local
505 tocopy = len; in baum_chr_write()
506 if (tocopy > BUF_SIZE - baum->in_buf_used) in baum_chr_write()
507 tocopy = BUF_SIZE - baum->in_buf_used; in baum_chr_write()
509 memcpy(baum->in_buf + baum->in_buf_used, buf, tocopy); in baum_chr_write()
510 baum->in_buf_used += tocopy; in baum_chr_write()
511 buf += tocopy; in baum_chr_write()
512 len -= tocopy; in baum_chr_write()
/openbmc/linux/kernel/
H A Dcapability.c75 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()
/openbmc/linux/drivers/misc/genwqe/
H A Dcard_dev.c509 size_t tocopy = 0; in do_flash_update() local
554 rc = copy_from_user(xbuf, buf, 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()
645 size_t tocopy = 0; in do_flash_read() local
690 __func__, (unsigned long)dma_addr, tocopy, in do_flash_read()
739 rc = copy_to_user(buf, xbuf, tocopy); in do_flash_read()
756 load->size -= tocopy; in do_flash_read()
757 flash += tocopy; in do_flash_read()
[all …]
/openbmc/linux/crypto/
H A Djitterentropy.c540 unsigned int tocopy; in jent_read_entropy() local
564 tocopy = (DATA_SIZE_BITS / 8); in jent_read_entropy()
566 tocopy = len; in jent_read_entropy()
567 if (jent_read_random_block(ec->hash_state, p, tocopy)) in jent_read_entropy()
570 len -= tocopy; in jent_read_entropy()
571 p += tocopy; in jent_read_entropy()
/openbmc/linux/fs/jfs/
H A Dsuper.c736 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
794 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
803 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write()
810 towrite -= tocopy; in jfs_quota_write()
[all …]
/openbmc/linux/kernel/events/
H A Dring_buffer.c579 unsigned long tocopy, remainder, len = 0; in perf_output_copy_aux() local
586 tocopy = PAGE_SIZE - offset_in_page(from); in perf_output_copy_aux()
588 tocopy = min(tocopy, to - from); in perf_output_copy_aux()
589 if (!tocopy) in perf_output_copy_aux()
595 remainder = perf_output_copy(handle, addr, tocopy); in perf_output_copy_aux()
599 len += tocopy; in perf_output_copy_aux()
600 from += tocopy; in perf_output_copy_aux()
/openbmc/openbmc/poky/meta/lib/oe/
H A Dcopy_buildsystem.py218 tocopy = {}
225 tocopy[invalue].append(line)
234 tocopy[invalue] = []
251 write_sigs_file(copy_output, list(tocopy.keys()), tocopy)
/openbmc/linux/drivers/hwtracing/intel_th/
H A Dmsu.c617 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()
1495 tocopy = min(rem, size - start); in msc_single_to_user()
1499 buf += tocopy; in msc_single_to_user()
1500 rem -= tocopy; in msc_single_to_user()
1501 start += tocopy; in msc_single_to_user()
[all …]
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/fs/ext2/
H A Dsuper.c1492 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
1549 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write()
1558 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write()
1565 towrite -= tocopy; in ext2_quota_write()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dsuper.c2494 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_read() local
2505 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); 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
2560 if (offset || tocopy != sb->s_blocksize) in reiserfs_quota_write()
2569 memcpy(bh->b_data + offset, data, tocopy); in reiserfs_quota_write()
2581 towrite -= tocopy; in reiserfs_quota_write()
[all …]
/openbmc/linux/drivers/misc/cxl/
H A Dguest.c76 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()
/openbmc/linux/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()
/openbmc/linux/fs/f2fs/
H A Dsuper.c2590 int tocopy; in f2fs_quota_read() local
2626 memcpy_from_page(data, page, offset, tocopy); in f2fs_quota_read()
2630 toread -= tocopy; in f2fs_quota_read()
2631 data += tocopy; in f2fs_quota_read()
2649 int tocopy; in f2fs_quota_write() local
2655 err = a_ops->write_begin(NULL, mapping, off, tocopy, in f2fs_quota_write()
2666 memcpy_to_page(page, offset, data, tocopy); in f2fs_quota_write()
2668 a_ops->write_end(NULL, mapping, off, tocopy, tocopy, in f2fs_quota_write()
2671 towrite -= tocopy; in f2fs_quota_write()
2672 off += tocopy; in f2fs_quota_write()
[all …]
/openbmc/linux/drivers/net/wireless/legacy/
H A Dwl3501_cs.c1767 u8 implemented, restricted, keys[100], len_keys, tocopy; in wl3501_get_encode() local
1792 tocopy = min_t(u16, len_keys, wrqu->encoding.length); in wl3501_get_encode()
1793 tocopy = min_t(u8, tocopy, 100); in wl3501_get_encode()
1794 wrqu->encoding.length = tocopy; in wl3501_get_encode()
1795 memcpy(extra, keys, tocopy); in wl3501_get_encode()
/openbmc/linux/drivers/atm/
H A Dnicstar.c2226 int remaining, tocopy; in dequeue_rx() local
2303 tocopy = in dequeue_rx()
2307 (hb), tocopy); in dequeue_rx()
2308 skb_put(hb, tocopy); in dequeue_rx()
2310 remaining -= tocopy; in dequeue_rx()
/openbmc/linux/fs/ext4/
H A Dsuper.c7178 int tocopy; in ext4_quota_read() local
7189 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in ext4_quota_read()
7194 memset(data, 0, tocopy); in ext4_quota_read()
7196 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read()
7199 toread -= tocopy; in ext4_quota_read()
7200 data += tocopy; in ext4_quota_read()