Home
last modified time | relevance | path

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

/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 …]
/linux/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 …]
/linux/fs/jfs/
H A Dsuper.c701 int tocopy; in jfs_quota_read() local
713 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in jfs_quota_read()
721 memset(data, 0, tocopy); in jfs_quota_read()
726 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read()
730 toread -= tocopy; in jfs_quota_read()
731 data += tocopy; in jfs_quota_read()
745 int tocopy; in jfs_quota_write() local
752 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in jfs_quota_write()
759 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
768 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write()
[all …]
/linux/kernel/events/
H A Dring_buffer.c586 unsigned long tocopy, remainder, len = 0; in perf_output_copy_aux() local
593 tocopy = PAGE_SIZE - offset_in_page(from); in perf_output_copy_aux()
595 tocopy = min(tocopy, to - from); in perf_output_copy_aux()
596 if (!tocopy) in perf_output_copy_aux()
602 remainder = perf_output_copy(handle, addr, tocopy); in perf_output_copy_aux()
606 len += tocopy; in perf_output_copy_aux()
607 from += tocopy; in perf_output_copy_aux()
/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()
/linux/fs/ext2/
H A Dsuper.c1527 int tocopy; in ext2_quota_read() local
1539 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in ext2_quota_read()
1547 memset(data, 0, tocopy); in ext2_quota_read()
1552 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read()
1556 toread -= tocopy; in ext2_quota_read()
1557 data += tocopy; in ext2_quota_read()
1571 int tocopy; in ext2_quota_write() local
1577 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in ext2_quota_write()
1584 if (offset || tocopy != EXT2_BLOCK_SIZE(sb)) in ext2_quota_write()
1593 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write()
[all …]
/linux/fs/f2fs/
H A Dsuper.c3069 int tocopy; in f2fs_quota_read() local
3095 tocopy = min(folio_size(folio) - offset, toread); in f2fs_quota_read()
3110 memcpy_from_folio(data, folio, offset, tocopy); in f2fs_quota_read()
3113 toread -= tocopy; in f2fs_quota_read()
3114 data += tocopy; in f2fs_quota_read()
3115 off += tocopy; in f2fs_quota_read()
3132 int tocopy; in f2fs_quota_write() local
3135 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write()
3138 err = a_ops->write_begin(NULL, mapping, off, tocopy, in f2fs_quota_write()
3149 memcpy_to_folio(folio, offset_in_folio(folio, off), data, tocopy); in f2fs_quota_write()
[all …]
/linux/drivers/atm/
H A Dnicstar.c2227 int remaining, tocopy; in dequeue_rx() local
2304 tocopy = in dequeue_rx()
2308 (hb), tocopy); in dequeue_rx()
2309 skb_put(hb, tocopy); in dequeue_rx()
2311 remaining -= tocopy; in dequeue_rx()