Home
last modified time | relevance | path

Searched refs:src_off (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.6.21/tools/testing/selftests/powerpc/copyloops/
Dmemmove_validate.c22 size_t i, src_off, dst_off, len; in testcase_run() local
38 for (src_off = 0; src_off < MAX_OFFSET; src_off++) { in testcase_run()
40 for (len = 1; len < MAX_OFFSET - max(src_off, dst_off); len++) { in testcase_run()
42 memmove(usermap + dst_off, usermap + src_off, len); in testcase_run()
43 TEST_MEMMOVE(kernelmap + dst_off, kernelmap + src_off, len); in testcase_run()
46 src_off, dst_off, len); in testcase_run()
Dvalidate.c17 static void do_one(char *src, char *dst, unsigned long src_off, in do_one() argument
25 srcp = src + MIN_REDZONE + src_off; in do_one()
66 unsigned long len, src_off, dst_off; in test_copy_loop() local
86 for (src_off = 0; src_off < MAX_OFFSET; src_off++) { in test_copy_loop()
88 do_one(src, dst, src_off, dst_off, len, in test_copy_loop()
/linux-6.6.21/net/smc/
Dsmc_tx.c357 size_t src_off, size_t src_len, in smcr_tx_rdma_writes() argument
367 int sent_count = src_off; in smcr_tx_rdma_writes()
387 (virt_addr + src_off) : (base_addr + src_off); in smcr_tx_rdma_writes()
394 src_off += src_len; in smcr_tx_rdma_writes()
395 if (src_off >= conn->sndbuf_desc->len) in smcr_tx_rdma_writes()
396 src_off -= conn->sndbuf_desc->len; in smcr_tx_rdma_writes()
422 size_t src_off, size_t src_len, in smcd_tx_rdma_writes() argument
431 void *data = conn->sndbuf_desc->cpu_addr + src_off; in smcd_tx_rdma_writes()
438 src_off += src_len; in smcd_tx_rdma_writes()
439 if (src_off >= conn->sndbuf_desc->len) in smcd_tx_rdma_writes()
[all …]
/linux-6.6.21/fs/pstore/
Dftrace.c160 size_t dest_size, src_size, total, dest_off, src_off; in pstore_ftrace_combine_log() local
169 src_off = src_log_size % record_size; in pstore_ftrace_combine_log()
170 src_size = src_log_size - src_off; in pstore_ftrace_combine_log()
178 srec = (struct pstore_ftrace_record *)(src_log + src_off); in pstore_ftrace_combine_log()
/linux-6.6.21/arch/x86/xen/
Dsetup.c678 phys_addr_t dest_off, src_off, dest_len, src_len, len; in xen_phys_memcpy() local
683 src_off = src & ~PAGE_MASK; in xen_phys_memcpy()
688 if (src_len > (NR_FIX_BTMAPS << PAGE_SHIFT) - src_off) in xen_phys_memcpy()
689 src_len = (NR_FIX_BTMAPS << PAGE_SHIFT) - src_off; in xen_phys_memcpy()
692 from = early_memremap(src - src_off, src_len + src_off); in xen_phys_memcpy()
695 early_memunmap(from, src_len + src_off); in xen_phys_memcpy()
/linux-6.6.21/fs/nfs/
Dnfs4file.c239 static loff_t nfs42_remap_file_range(struct file *src_file, loff_t src_off, in nfs42_remap_file_range() argument
263 if (!IS_ALIGNED(src_off, bs) || !IS_ALIGNED(dst_off, bs)) in nfs42_remap_file_range()
265 if (!IS_ALIGNED(count, bs) && i_size_read(src_inode) != (src_off + count)) in nfs42_remap_file_range()
292 ret = nfs42_proc_clone(src_file, dst_file, src_off, dst_off, count); in nfs42_remap_file_range()
/linux-6.6.21/crypto/async_tx/
Dasync_pq.c49 int src_off = 0; in do_async_gen_syndrome() local
79 &unmap->addr[src_off], in do_async_gen_syndrome()
81 &scfs[src_off], unmap->len, in do_async_gen_syndrome()
95 src_off += pq_src_cnt; in do_async_gen_syndrome()
Dasync_xor.c106 int src_off = 0; in do_sync_xor_offs() local
130 xor_blocks(xor_src_cnt, len, dest_buf, &srcs[src_off]); in do_sync_xor_offs()
134 src_off += xor_src_cnt; in do_sync_xor_offs()
/linux-6.6.21/include/linux/
Dhighmem.h389 struct page *src_page, size_t src_off, in memcpy_page() argument
395 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
396 memcpy(dst + dst_off, src + src_off, len); in memcpy_page()
/linux-6.6.21/drivers/dma/
Ddmatest.c454 static void result(const char *err, unsigned int n, unsigned int src_off, in result() argument
459 current->comm, n, err, src_off, dst_off, len, data); in result()
462 current->comm, n, err, src_off, dst_off, len, data); in result()
466 static void dbg_result(const char *err, unsigned int n, unsigned int src_off, in dbg_result() argument
471 current->comm, n, err, src_off, dst_off, len, data); in dbg_result()
474 #define verbose_result(err, n, src_off, dst_off, len, data) ({ \ argument
476 result(err, n, src_off, dst_off, len, data); \
478 dbg_result(err, n, src_off, dst_off, len, data);\
/linux-6.6.21/fs/ceph/
Dfile.c2690 loff_t src_off, loff_t dst_off, size_t len) in is_file_size_ok() argument
2701 if (src_off + len > size) { in is_file_size_ok()
2703 src_off, len, size); in is_file_size_ok()
2766 static ssize_t ceph_do_objects_copy(struct ceph_inode_info *src_ci, u64 *src_off, in ceph_do_objects_copy() argument
2788 ceph_calc_file_object_mapping(&src_ci->i_layout, *src_off, in ceph_do_objects_copy()
2829 *src_off += object_size; in ceph_do_objects_copy()
2839 static ssize_t __ceph_copy_file_range(struct file *src_file, loff_t src_off, in __ceph_copy_file_range() argument
2907 ret = file_write_and_wait_range(src_file, src_off, (src_off + len)); in __ceph_copy_file_range()
2931 ret = is_file_size_ok(src_inode, dst_inode, src_off, dst_off, len); in __ceph_copy_file_range()
2944 ceph_calc_file_object_mapping(&src_ci->i_layout, src_off, in __ceph_copy_file_range()
[all …]
/linux-6.6.21/fs/smb/server/
Dvfs.c1763 loff_t src_off, dst_off, src_file_size; in ksmbd_vfs_copy_file_ranges() local
1787 src_off = le64_to_cpu(chunks[i].SourceOffset); in ksmbd_vfs_copy_file_ranges()
1791 if (check_lock_range(src_fp->filp, src_off, in ksmbd_vfs_copy_file_ranges()
1792 src_off + len - 1, READ)) in ksmbd_vfs_copy_file_ranges()
1803 src_off = le64_to_cpu(chunks[i].SourceOffset); in ksmbd_vfs_copy_file_ranges()
1807 if (src_off + len > src_file_size) in ksmbd_vfs_copy_file_ranges()
1810 ret = vfs_copy_file_range(src_fp->filp, src_off, in ksmbd_vfs_copy_file_ranges()
1813 ret = vfs_copy_file_range(src_fp->filp, src_off, in ksmbd_vfs_copy_file_ranges()
Dsmb2pdu.c7888 loff_t src_off, dst_off, length, cloned; in smb2_ioctl() local
7912 src_off = le64_to_cpu(dup_ext->SourceFileOffset); in smb2_ioctl()
7924 cloned = vfs_clone_file_range(fp_in->filp, src_off, in smb2_ioctl()
7930 cloned = vfs_copy_file_range(fp_in->filp, src_off, in smb2_ioctl()
/linux-6.6.21/sound/drivers/
Daloop.c532 unsigned int src_off = play->buf_pos; in copy_play_buf() local
555 if (src_off + size > play->pcm_buffer_size) in copy_play_buf()
556 size = play->pcm_buffer_size - src_off; in copy_play_buf()
559 memcpy(dst + dst_off, src + src_off, size); in copy_play_buf()
564 src_off = (src_off + size) % play->pcm_buffer_size; in copy_play_buf()
/linux-6.6.21/Documentation/driver-api/dmaengine/
Ddmatest.rst129 …"dmatest: result <channel>: <test id>: '<error msg>' with src_off=<val> dst_off=<val> len=<val> (<…
134 dmatest: result dma0chan0-copy0: #1: No errors with src_off=0x7bf dst_off=0x8ad len=0x3fea (0)
/linux-6.6.21/drivers/mmc/host/
Dtifm_sd.c210 struct page *src, unsigned int src_off, in tifm_sd_copy_page() argument
213 unsigned char *src_buf = kmap_local_page(src) + src_off; in tifm_sd_copy_page()
219 kunmap_local(src_buf - src_off); in tifm_sd_copy_page()
/linux-6.6.21/drivers/mtd/nand/raw/
Dnand_base.c130 unsigned int src_off, unsigned int nbits) in nand_extract_bits() argument
136 src += src_off / 8; in nand_extract_bits()
137 src_off %= 8; in nand_extract_bits()
140 n = min3(8 - dst_off, 8 - src_off, nbits); in nand_extract_bits()
142 tmp = (*src >> src_off) & GENMASK(n - 1, 0); in nand_extract_bits()
152 src_off += n; in nand_extract_bits()
153 if (src_off >= 8) { in nand_extract_bits()
155 src_off -= 8; in nand_extract_bits()
/linux-6.6.21/fs/btrfs/
Draid56.c511 int src_off = 0; in run_xor() local
517 xor_blocks(xor_src_cnt, len, dest, pages + src_off); in run_xor()
520 src_off += xor_src_cnt; in run_xor()
/linux-6.6.21/fs/smb/client/
Dcifsglob.h511 u64 src_off, u64 len, u64 dest_off);
513 struct cifsFileInfo *target_file, u64 src_off, u64 len,
Dsmb2ops.c1710 struct cifsFileInfo *trgtfile, u64 src_off, in smb2_copychunk_range() argument
1744 pcchunk->SourceOffset = cpu_to_le64(src_off); in smb2_copychunk_range()
1785 src_off += bytes_written; in smb2_copychunk_range()
1957 struct cifsFileInfo *trgtfile, u64 src_off, in smb2_duplicate_extents() argument
1973 dup_ext_buf.SourceFileOffset = cpu_to_le64(src_off); in smb2_duplicate_extents()
1977 src_off, dest_off, len); in smb2_duplicate_extents()
/linux-6.6.21/include/linux/mtd/
Drawnand.h1605 unsigned int src_off, unsigned int nbits);
/linux-6.6.21/drivers/video/fbdev/
Dudlfb.c1485 char *src, loff_t src_off, size_t src_size) { in edid_store() argument
1492 if ((src_size != EDID_LENGTH) || (src_off != 0)) in edid_store()
/linux-6.6.21/fs/fuse/
Dfile.c3188 static ssize_t fuse_copy_file_range(struct file *src_file, loff_t src_off, in fuse_copy_file_range() argument
3194 ret = __fuse_copy_file_range(src_file, src_off, dst_file, dst_off, in fuse_copy_file_range()
3198 ret = generic_copy_file_range(src_file, src_off, dst_file, in fuse_copy_file_range()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c2469 u64 *src_off; in cudbg_collect_dump_context() local
2471 src_off = (u64 *)(ctx_buf + j * SGE_CTXT_SIZE); in cudbg_collect_dump_context()
2478 dst_off[k] = cpu_to_be64(src_off[k]); in cudbg_collect_dump_context()
/linux-6.6.21/fs/f2fs/
Dsegment.c4148 pgoff_t src_off, dst_off; in get_next_sit_page() local
4150 src_off = current_sit_addr(sbi, start); in get_next_sit_page()
4151 dst_off = next_sit_addr(sbi, src_off); in get_next_sit_page()

12