/linux-master/arch/arm/lib/ |
H A D | uaccess_with_memcpy.c | 106 int tocopy; local 117 tocopy = (~(unsigned long)to & ~PAGE_MASK) + 1; 118 if (tocopy > n) 119 tocopy = n; 122 __memcpy((void *)to, from, tocopy); 124 to += tocopy; 125 from += tocopy; 126 n -= tocopy; 170 int tocopy; local 179 tocopy [all...] |
/linux-master/arch/alpha/boot/tools/ |
H A D | objstrip.c | 55 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; local 238 tocopy = fil_size; 239 while (tocopy > 0) { 240 n = tocopy; 244 tocopy -= n; 263 tocopy = mem_size - fil_size; 264 if (tocopy > 0) { 267 prog_name, pad, (unsigned long) tocopy); 271 n = tocopy; 280 tocopy [all...] |
/linux-master/kernel/ |
H A D | capability.c | 75 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) argument 85 *tocopy = _LINUX_CAPABILITY_U32S_1; 91 *tocopy = _LINUX_CAPABILITY_U32S_3; 145 unsigned tocopy; local 149 ret = cap_validate_magic(header, &tocopy); 173 * Note, in the case, tocopy < _KERNEL_CAPABILITY_U32S, 191 if (copy_to_user(dataptr, kdata, tocopy * sizeof(kdata[0]))) 223 unsigned tocopy, copybytes; local 229 ret = cap_validate_magic(header, &tocopy); 240 copybytes = tocopy * sizeo [all...] |
/linux-master/crypto/ |
H A D | jitterentropy.c | 612 unsigned int tocopy, health_test_result; local 642 tocopy = (DATA_SIZE_BITS / 8); 644 tocopy = len; 645 if (jent_read_random_block(ec->hash_state, p, tocopy)) 648 len -= tocopy; 649 p += tocopy;
|
/linux-master/drivers/misc/genwqe/ |
H A D | card_dev.c | 509 size_t tocopy = 0; local 552 tocopy = min_t(size_t, load->size, FLASH_BLOCK); 554 rc = copy_from_user(xbuf, buf, tocopy); 559 crc = genwqe_crc32(xbuf, tocopy, 0xffffffff); 563 __func__, (unsigned long)dma_addr, crc, tocopy, 579 *(__be64 *)&req->__asiv[8] = cpu_to_be64(tocopy); 591 *(__be32 *)&req->asiv[8] = cpu_to_be32(tocopy); 627 load->size -= tocopy; 628 flash += tocopy; 629 buf += tocopy; 645 size_t tocopy = 0; local [all...] |
/linux-master/kernel/events/ |
H A D | ring_buffer.c | 579 unsigned long tocopy, remainder, len = 0; local 586 tocopy = PAGE_SIZE - offset_in_page(from); 588 tocopy = min(tocopy, to - from); 589 if (!tocopy) 595 remainder = perf_output_copy(handle, addr, tocopy); 599 len += tocopy; 600 from += tocopy;
|
/linux-master/fs/jfs/ |
H A D | super.c | 736 int tocopy; local 748 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); 756 memset(data, 0, tocopy); 761 memcpy(data, bh->b_data+offset, tocopy); 765 toread -= tocopy; 766 data += tocopy; 780 int tocopy; local 787 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); 794 if (offset || tocopy != sb->s_blocksize) 803 memcpy(bh->b_data+offset, data, tocopy); [all...] |
/linux-master/drivers/hwtracing/intel_th/ |
H A D | msu.c | 595 size_t tocopy = data_bytes, copied = 0; local 613 tocopy = DATA_IN_PAGE - data_bytes; 617 if (!tocopy) 620 tocopy -= iter->block_off; 623 if (len < tocopy) { 624 tocopy = len; 628 remaining = fn(data, src, tocopy); 633 copied = tocopy - remaining; 1490 unsigned long start = off, tocopy = 0; local 1495 tocopy [all...] |
/linux-master/sound/pci/asihpi/ |
H A D | hpicmn.c | 473 unsigned int tocopy; local 496 tocopy = pad_string_len - offset; 497 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) 498 tocopy = sizeof(phr->u.cu.chars8. 502 &pad_string[offset], tocopy); 505 pad_string_len - offset - tocopy;
|
/linux-master/sound/usb/bcd2000/ |
H A D | bcd2000.c | 99 unsigned int payload_length, tocopy; local 117 tocopy = min(payload_length, buf_len-1); 120 &buf[1], tocopy); 123 &buf[1], tocopy);
|
/linux-master/fs/ext2/ |
H A D | super.c | 1492 int tocopy; local 1504 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); 1512 memset(data, 0, tocopy); 1517 memcpy(data, bh->b_data+offset, tocopy); 1521 toread -= tocopy; 1522 data += tocopy; 1536 int tocopy; local 1542 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); 1549 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) 1558 memcpy(bh->b_data+offset, data, tocopy); [all...] |
/linux-master/drivers/misc/cxl/ |
H A D | guest.c | 76 int rc = 0, i, tocopy; local 136 tocopy = len; 138 tocopy = SG_BUFFER_SIZE; 139 memcpy(buf, vpd_buf[i], tocopy); 140 buf += tocopy; 141 len -= tocopy;
|
/linux-master/fs/ocfs2/ |
H A D | quota_global.c | 177 size_t toread, tocopy; local 186 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); 204 memcpy(data, bh->b_data + offset, tocopy); 207 toread -= tocopy; 208 data += tocopy;
|
/linux-master/fs/reiserfs/ |
H A D | super.c | 2493 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; local 2504 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); 2516 memset(data, 0, tocopy); 2521 memcpy(data, bh->b_data + offset, tocopy); 2525 toread -= tocopy; 2526 data += tocopy; 2541 int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; local 2552 tocopy = min_t(unsigned long, sb->s_blocksize - offset, towrite); 2559 if (offset || tocopy != sb->s_blocksize) 2568 memcpy(bh->b_data + offset, data, tocopy); [all...] |
/linux-master/fs/f2fs/ |
H A D | super.c | 2607 int tocopy; local 2619 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); 2643 memcpy_from_page(data, page, offset, tocopy); 2647 toread -= tocopy; 2648 data += tocopy; 2666 int tocopy; local 2669 tocopy = min_t(unsigned long, sb->s_blocksize - offset, 2672 err = a_ops->write_begin(NULL, mapping, off, tocopy, 2683 memcpy_to_page(page, offset, data, tocopy); 2685 a_ops->write_end(NULL, mapping, off, tocopy, tocop [all...] |
/linux-master/drivers/atm/ |
H A D | nicstar.c | 2227 int remaining, tocopy; local 2304 tocopy = 2308 (hb), tocopy); 2309 skb_put(hb, tocopy); 2311 remaining -= tocopy;
|
/linux-master/fs/ext4/ |
H A D | super.c | 7175 int tocopy; local 7186 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); 7191 memset(data, 0, tocopy); 7193 memcpy(data, bh->b_data+offset, tocopy); 7196 toread -= tocopy; 7197 data += tocopy;
|