| /linux/arch/alpha/boot/tools/ |
| H A 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/kernel/ |
| H A D | capability.c | 71 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument 81 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic() 87 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic() 141 unsigned tocopy; in SYSCALL_DEFINE2() local 145 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 187 if (copy_to_user(dataptr, kdata, tocopy * sizeof(kdata[0]))) in SYSCALL_DEFINE2() 219 unsigned tocopy, copybytes; in SYSCALL_DEFINE2() local 225 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 236 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2()
|
| /linux/drivers/misc/genwqe/ |
| H A 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/kernel/events/ |
| H A D | ring_buffer.c | 592 unsigned long tocopy, remainder, len = 0; in perf_output_copy_aux() 599 tocopy = PAGE_SIZE - offset_in_page(from); in perf_output_copy_aux() 601 tocopy = min(tocopy, to - from); in perf_output_copy_aux() 602 if (!tocopy) in perf_output_copy_aux() 608 remainder = perf_output_copy(handle, addr, tocopy); in perf_output_copy_aux() 612 len += tocopy; in perf_output_copy_aux() 613 from += tocopy; in perf_output_copy_aux() 593 unsigned long tocopy, remainder, len = 0; perf_output_copy_aux() local
|
| /linux/drivers/hwtracing/intel_th/ |
| H A D | msu.c | 604 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local 622 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate() 626 if (!tocopy) in msc_buffer_iterate() 629 tocopy -= iter->block_off; in msc_buffer_iterate() 632 if (len < tocopy) { in msc_buffer_iterate() 633 tocopy = len; in msc_buffer_iterate() 637 remaining = fn(data, src, tocopy); in msc_buffer_iterate() 642 copied = tocopy - remaining; in msc_buffer_iterate() 1505 unsigned long start = off, tocopy = 0; in msc_single_to_user() local 1510 tocopy = min(rem, size - start); in msc_single_to_user() [all …]
|
| /linux/sound/usb/bcd2000/ |
| H A D | bcd2000.c | 102 unsigned int payload_length, tocopy; in bcd2000_midi_handle_input() local 120 tocopy = min(payload_length, buf_len-1); in bcd2000_midi_handle_input() 123 &buf[1], tocopy); in bcd2000_midi_handle_input() 126 &buf[1], tocopy); in bcd2000_midi_handle_input()
|
| /linux/sound/pci/asihpi/ |
| H A D | hpicmn.c | 479 unsigned int tocopy; in hpi_check_control_cache_single() 502 tocopy = pad_string_len - offset; in hpi_check_control_cache_single() 503 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single() 504 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single() 508 &pad_string[offset], tocopy); in hpi_check_control_cache_single() 511 pad_string_len - offset - tocopy; in hpi_check_control_cache_single() 473 unsigned int tocopy; hpi_check_control_cache_single() local
|
| /linux/fs/f2fs/ |
| H A D | super.c | 3192 int tocopy; in f2fs_quota_read() local 3218 tocopy = min(folio_size(folio) - offset, toread); in f2fs_quota_read() 3233 memcpy_from_folio(data, folio, offset, tocopy); in f2fs_quota_read() 3236 toread -= tocopy; in f2fs_quota_read() 3237 data += tocopy; in f2fs_quota_read() 3238 off += tocopy; in f2fs_quota_read() 3255 int tocopy; in f2fs_quota_write() local 3258 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write() 3261 err = a_ops->write_begin(NULL, mapping, off, tocopy, in f2fs_quota_write() 3272 memcpy_to_folio(folio, offset_in_folio(folio, off), data, tocopy); in f2fs_quota_write() [all …]
|
| /linux/fs/ext4/ |
| H A D | super.c | 7376 int tocopy; in ext4_quota_read() 7387 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in ext4_quota_read() 7392 memset(data, 0, tocopy); in ext4_quota_read() 7394 memcpy(data, bh->b_data+offset, tocopy); in ext4_quota_read() 7397 toread -= tocopy; in ext4_quota_read() 7398 data += tocopy; in ext4_quota_read() 7375 int tocopy; ext4_quota_read() local
|