/linux-2.6.39/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 76 int tocopy; in __copy_to_user_memcpy() local 87 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; in __copy_to_user_memcpy() 88 if (tocopy > n) in __copy_to_user_memcpy() 89 tocopy = n; in __copy_to_user_memcpy() 91 memcpy((void *)to, from, tocopy); in __copy_to_user_memcpy() 92 to += tocopy; in __copy_to_user_memcpy() 93 from += tocopy; in __copy_to_user_memcpy() 94 n -= tocopy; in __copy_to_user_memcpy() 132 int tocopy; in __clear_user_memset() local 141 tocopy = (~(unsigned long)addr & ~PAGE_MASK) + 1; in __clear_user_memset() [all …]
|
/linux-2.6.39/kernel/ |
D | capability.c | 94 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument 104 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic() 112 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic() 166 unsigned tocopy; in SYSCALL_DEFINE2() local 169 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 184 for (i = 0; i < tocopy; i++) { in SYSCALL_DEFINE2() 209 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2() 239 unsigned i, tocopy, copybytes; in SYSCALL_DEFINE2() local 245 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 256 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2() [all …]
|
/linux-2.6.39/arch/alpha/boot/tools/ |
D | objstrip.c | 51 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; in main() local 234 tocopy = fil_size; in main() 235 while (tocopy > 0) { in main() 236 n = tocopy; in main() 240 tocopy -= n; in main() 259 tocopy = mem_size - fil_size; in main() 260 if (tocopy > 0) { in main() 263 prog_name, pad, (unsigned long) tocopy); in main() 267 n = tocopy; in main() 276 tocopy -= nwritten; in main() [all …]
|
/linux-2.6.39/fs/jfs/ |
D | super.c | 656 int tocopy; in jfs_quota_read() local 668 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read() 677 memset(data, 0, tocopy); in jfs_quota_read() 682 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read() 686 toread -= tocopy; in jfs_quota_read() 687 data += tocopy; in jfs_quota_read() 701 int tocopy; in jfs_quota_write() local 708 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write() 716 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write() 725 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write() [all …]
|
/linux-2.6.39/fs/ext2/ |
D | super.c | 1394 int tocopy; in ext2_quota_read() local 1406 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read() 1415 memset(data, 0, tocopy); in ext2_quota_read() 1420 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read() 1424 toread -= tocopy; in ext2_quota_read() 1425 data += tocopy; in ext2_quota_read() 1439 int tocopy; in ext2_quota_write() local 1446 tocopy = sb->s_blocksize - offset < towrite ? in ext2_quota_write() 1453 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write() 1462 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write() [all …]
|
/linux-2.6.39/sound/pci/asihpi/ |
D | hpicmn.c | 485 unsigned int tocopy; in hpi_check_control_cache() local 508 tocopy = pad_string_len - offset; in hpi_check_control_cache() 509 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache() 510 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache() 514 &pad_string[offset], tocopy); in hpi_check_control_cache() 517 pad_string_len - offset - tocopy; in hpi_check_control_cache()
|
/linux-2.6.39/security/ |
D | commoncap.c | 375 unsigned tocopy, i; in get_vfs_caps_from_disk() local 401 tocopy = VFS_CAP_U32_1; in get_vfs_caps_from_disk() 406 tocopy = VFS_CAP_U32_2; in get_vfs_caps_from_disk() 413 if (i >= tocopy) in get_vfs_caps_from_disk()
|
/linux-2.6.39/fs/reiserfs/ |
D | super.c | 2114 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_read() local 2125 tocopy = in reiserfs_quota_read() 2136 memset(data, 0, tocopy); in reiserfs_quota_read() 2141 memcpy(data, bh->b_data + offset, tocopy); in reiserfs_quota_read() 2145 toread -= tocopy; in reiserfs_quota_read() 2146 data += tocopy; in reiserfs_quota_read() 2159 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; in reiserfs_quota_write() local 2172 tocopy = sb->s_blocksize - offset < towrite ? in reiserfs_quota_write() 2178 if (offset || tocopy != sb->s_blocksize) in reiserfs_quota_write() 2187 memcpy(bh->b_data + offset, data, tocopy); in reiserfs_quota_write() [all …]
|
/linux-2.6.39/fs/ocfs2/ |
D | quota_global.c | 171 size_t toread, tocopy; in ocfs2_quota_read() local 180 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read() 198 memcpy(data, bh->b_data + offset, tocopy); in ocfs2_quota_read() 201 toread -= tocopy; in ocfs2_quota_read() 202 data += tocopy; in ocfs2_quota_read()
|
/linux-2.6.39/drivers/net/wireless/ |
D | wl3501_cs.c | 1759 u8 implemented, restricted, keys[100], len_keys, tocopy; in wl3501_get_encode() local 1784 tocopy = min_t(u8, len_keys, wrqu->encoding.length); in wl3501_get_encode() 1785 tocopy = min_t(u8, tocopy, 100); in wl3501_get_encode() 1786 wrqu->encoding.length = tocopy; in wl3501_get_encode() 1787 memcpy(extra, keys, tocopy); in wl3501_get_encode()
|
/linux-2.6.39/fs/ext3/ |
D | super.c | 2937 int tocopy; in ext3_quota_read() local 2948 tocopy = sb->s_blocksize - offset < toread ? in ext3_quota_read() 2954 memset(data, 0, tocopy); in ext3_quota_read() 2956 memcpy(data, bh->b_data+offset, tocopy); in ext3_quota_read() 2959 toread -= tocopy; in ext3_quota_read() 2960 data += tocopy; in ext3_quota_read()
|
/linux-2.6.39/drivers/atm/ |
D | nicstar.c | 2245 int remaining, tocopy; in dequeue_rx() local 2322 tocopy = in dequeue_rx() 2326 (hb), tocopy); in dequeue_rx() 2327 skb_put(hb, tocopy); in dequeue_rx() 2329 remaining -= tocopy; in dequeue_rx()
|
/linux-2.6.39/fs/ext4/ |
D | super.c | 4679 int tocopy; in ext4_quota_read() local 4690 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read() 4696 memset(data, 0, tocopy); in ext4_quota_read() 4698 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read() 4701 toread -= tocopy; in ext4_quota_read() 4702 data += tocopy; in ext4_quota_read()
|