| /linux/tools/testing/selftests/powerpc/copyloops/ |
| H A D | memmove_validate.c | 22 size_t i, src_off, dst_off, len; in testcase_run() local 39 for (dst_off = 0; dst_off < MAX_OFFSET; dst_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()
|
| H A D | validate.c | 22 unsigned long dst_off, unsigned long len, void *redzone, in do_one() argument 30 dstp = dst + MIN_REDZONE + dst_off; in do_one() 70 unsigned long len, src_off, dst_off; local 95 for (dst_off = 0; dst_off < MAX_OFFSET; dst_off++) { 96 do_one(src, dst, src_off, dst_off, len,
|
| /linux/include/linux/ |
| H A D | highmem.h | 487 static inline void memcpy_page(struct page *dst_page, size_t dst_off, in memcpy_page() argument 494 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page() 495 memcpy(dst + dst_off, src + src_off, len); in memcpy_page() 500 static inline void memcpy_folio(struct folio *dst_folio, size_t dst_off, in memcpy_folio() argument 503 VM_BUG_ON(dst_off + len > folio_size(dst_folio)); in memcpy_folio() 507 char *dst = kmap_local_folio(dst_folio, dst_off); in memcpy_folio() 512 chunk > PAGE_SIZE - offset_in_page(dst_off)) in memcpy_folio() 513 chunk = PAGE_SIZE - offset_in_page(dst_off); in memcpy_folio() 521 dst_off += chunk; in memcpy_folio()
|
| /linux/fs/nfs/ |
| H A D | nfs4file.c | 250 struct file *dst_file, loff_t dst_off, loff_t count, in nfs42_remap_file_range() argument 272 if (!IS_ALIGNED(src_off, bs) || !IS_ALIGNED(dst_off, bs)) in nfs42_remap_file_range() 291 ret = nfs42_proc_clone(src_file, dst_file, src_off, dst_off, count); in nfs42_remap_file_range() 296 truncate_inode_pages_range(&dst_inode->i_data, dst_off, dst_off + count - 1); in nfs42_remap_file_range()
|
| /linux/fs/ceph/ |
| H A D | file.c | 2926 loff_t src_off, loff_t dst_off, size_t len) in is_file_size_ok() argument 2945 endoff = dst_off + len; in is_file_size_ok() 3004 struct ceph_inode_info *dst_ci, u64 *dst_off, in ceph_do_objects_copy() argument 3029 ceph_calc_file_object_mapping(&dst_ci->i_layout, *dst_off, in ceph_do_objects_copy() 3069 *dst_off += object_size; in ceph_do_objects_copy() 3079 struct file *dst_file, loff_t dst_off, in __ceph_copy_file_range() argument 3152 ret = file_write_and_wait_range(dst_file, dst_off, (dst_off + len)); in __ceph_copy_file_range() 3164 dst_file, (dst_off + len), &dst_got); in __ceph_copy_file_range() 3171 ret = is_file_size_ok(src_inode, dst_inode, src_off, dst_off, len); in __ceph_copy_file_range() 3178 dst_off >> PAGE_SHIFT, in __ceph_copy_file_range() [all …]
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 1949 loff_t dst_off, size_t len) in ksmbd_vfs_copy_file_range_buffered() argument 1965 if (dst_off > src_off) { in ksmbd_vfs_copy_file_range_buffered() 1967 dst_pos = dst_off + len - copied - chunk_size; in ksmbd_vfs_copy_file_range_buffered() 1970 dst_pos = dst_off + copied; in ksmbd_vfs_copy_file_range_buffered() 2025 loff_t src_off, dst_off, src_file_size; in ksmbd_vfs_copy_file_ranges() local 2047 dst_off = le64_to_cpu(chunks[i].TargetOffset); in ksmbd_vfs_copy_file_ranges() 2051 !ksmbd_vfs_copy_range_valid(dst_off, len)) in ksmbd_vfs_copy_file_ranges() 2057 if (check_lock_range(dst_fp->filp, dst_off, in ksmbd_vfs_copy_file_ranges() 2058 dst_off + len - 1, WRITE)) in ksmbd_vfs_copy_file_ranges() 2142 dst_off = le64_to_cpu(chunks[i].TargetOffset); in ksmbd_vfs_copy_file_ranges() [all …]
|
| H A D | smb2pdu.c | 11306 loff_t src_off, dst_off, length, cloned; in smb2_ioctl() local 11349 dst_off = le64_to_cpu(dup_ext->TargetFileOffset); in smb2_ioctl() 11351 if (src_off < 0 || dst_off < 0 || length < 0 || in smb2_ioctl() 11352 src_off + length < src_off || dst_off + length < dst_off) { in smb2_ioctl() 11360 if (dst_off + length > i_size_read(file_inode(fp_out->filp))) in smb2_ioctl() 11368 dst_off + length > src_off && in smb2_ioctl() 11369 dst_off < src_off + length) { in smb2_ioctl() 11375 fp_out->filp, dst_off, length, 0); in smb2_ioctl() 11378 fp_out->filp, dst_off, in smb2_ioctl()
|
| /linux/sound/drivers/ |
| H A D | aloop.c | 593 unsigned int dst_off = dpcm->buf_pos; in clear_capture_buf() local 602 if (dst_off + size > dpcm->pcm_buffer_size) in clear_capture_buf() 603 size = dpcm->pcm_buffer_size - dst_off; in clear_capture_buf() 604 snd_pcm_format_set_silence(runtime->format, dst + dst_off, in clear_capture_buf() 611 dst_off = 0; in clear_capture_buf() 616 unsigned int size, unsigned int src_off, unsigned int dst_off) in copy_play_buf_part_n() argument 621 unsigned int dst_off_ch = dst_off / channels; in copy_play_buf_part_n() 639 unsigned int dst_off = capt->buf_pos; in copy_play_buf() local 663 if (dst_off + size > capt->pcm_buffer_size) in copy_play_buf() 664 size = capt->pcm_buffer_size - dst_off; in copy_play_buf() [all …]
|
| /linux/mm/kmsan/ |
| H A D | core.c | 83 int i, iter, step, src_off, dst_off, oiter_src, oiter_dst; in kmsan_internal_memmove_metadata() local 113 dst_off = (u64)dst % KMSAN_ORIGIN_SIZE; in kmsan_internal_memmove_metadata() 118 oiter_dst = (iter + dst_off) / KMSAN_ORIGIN_SIZE; in kmsan_internal_memmove_metadata()
|
| /linux/drivers/gpu/drm/ast/ |
| H A D | ast_cursor.c | 258 u64 dst_off = ast_plane->offset; in ast_cursor_plane_helper_atomic_update() local 278 ast_set_cursor_base(ast, dst_off); in ast_cursor_plane_helper_atomic_update()
|
| /linux/tools/lib/bpf/ |
| H A D | linker.c | 38 int dst_off; member 1331 src->dst_off = dst_align_sz; in extend_sec() 2132 dst_sym->st_value = src_sec->dst_off + sym->st_value; in linker_append_elf_sym() 2163 dst_sym->st_value = (src_sec ? src_sec->dst_off : 0) + sym->st_value; in linker_append_elf_sym() 2244 dst_rel = dst_sec->raw_data + src_sec->dst_off; in linker_append_elf_relos() 2254 dst_rel->r_offset += src_linked_sec->dst_off; in linker_append_elf_relos() 2274 insn->imm += sec->dst_off / sizeof(struct bpf_insn); in linker_append_elf_relos() 2276 insn->imm += sec->dst_off; in linker_append_elf_relos() 2603 dst_var->offset = src_sec->dst_off + src_var->offset; in linker_append_btf() 2665 dst_rec->insn_off += src_sec->dst_off; in linker_append_btf_ext() [all …]
|
| /linux/Documentation/driver-api/dmaengine/ |
| H A D | dmatest.rst | 129 …"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/fs/smb/client/ |
| H A D | smb2ops.c | 1882 * @dst_off: destination file byte offset 1895 u64 dst_off) in __smb2_copychunk_range() argument 1916 tcon->ses->Suid, src_off, dst_off, len); in __smb2_copychunk_range() 1937 if (src_file == dst_file && dst_off > src_off) { in __smb2_copychunk_range() 1938 u64 delta = dst_off - src_off; in __smb2_copychunk_range() 1953 dst_off += len; in __smb2_copychunk_range() 1988 dst_off_prev = dst_off; in __smb2_copychunk_range() 2005 dst_off -= chunk_bytes; in __smb2_copychunk_range() 2009 chunk->TargetOffset = cpu_to_le64(dst_off); in __smb2_copychunk_range() 2015 dst_off in __smb2_copychunk_range() 2147 smb2_copychunk_range(const unsigned int xid,struct cifsFileInfo * src_file,struct cifsFileInfo * dst_file,u64 src_off,u64 len,u64 dst_off) smb2_copychunk_range() argument [all...] |
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_flow.c | 2432 u16 src_off = 0, dst_off = 0; in ice_rss_cfg_raw_symm() local 2445 dst_off = ICE_FLOW_FIELD_IPV4_DST_OFFSET; in ice_rss_cfg_raw_symm() 2455 dst_off = ICE_FLOW_FIELD_IPV6_DST_OFFSET; in ice_rss_cfg_raw_symm() 2464 dst_off = ICE_FLOW_FIELD_DST_PORT_OFFSET; in ice_rss_cfg_raw_symm() 2478 prof->fv[i + len].offset == dst_off; in ice_rss_cfg_raw_symm()
|
| /linux/include/uapi/linux/ |
| H A D | io_uring.h | 852 __u32 dst_off; member
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 3247 __bpf_kfunc int bpf_dynptr_copy(const struct bpf_dynptr *dst_ptr, u64 dst_off, in bpf_dynptr_copy() argument 3257 dst_slice = bpf_dynptr_slice_rdwr(dst_ptr, dst_off, NULL, size); in bpf_dynptr_copy() 3265 return __bpf_dynptr_write(dst, dst_off, src_slice, size, 0); in bpf_dynptr_copy() 3270 if (bpf_dynptr_check_off_len(dst, dst_off, size) || in bpf_dynptr_copy() 3282 err = __bpf_dynptr_write(dst, dst_off + off, buf, chunk_sz, 0); in bpf_dynptr_copy()
|
| /linux/include/linux/mtd/ |
| H A D | rawnand.h | 1612 void nand_extract_bits(u8 *dst, unsigned int dst_off, const u8 *src,
|
| /linux/fs/fuse/ |
| H A D | file.c | 3062 struct file *dst_file, loff_t dst_off, in fuse_copy_file_range() argument 3067 ret = __fuse_copy_file_range(src_file, src_off, dst_file, dst_off, in fuse_copy_file_range() 3072 dst_off, len); in fuse_copy_file_range()
|
| /linux/fs/f2fs/ |
| H A D | node.c | 152 pgoff_t dst_off; in get_next_nat_folio() local 157 dst_off = next_nat_addr(sbi, current_nat_addr(sbi, nid)); in get_next_nat_folio() 163 dst_folio = f2fs_grab_meta_folio(sbi, dst_off); in get_next_nat_folio()
|
| H A D | segment.c | 4700 pgoff_t src_off, dst_off; in get_next_sit_folio() local 4703 dst_off = next_sit_addr(sbi, src_off); in get_next_sit_folio() 4705 folio = f2fs_grab_meta_folio(sbi, dst_off); in get_next_sit_folio()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cudbg_lib.c | 2468 __be64 *dst_off; in cudbg_collect_dump_context() local 2472 dst_off = (__be64 *)buff->data; in cudbg_collect_dump_context() 2478 dst_off[k] = cpu_to_be64(src_off[k]); in cudbg_collect_dump_context()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 15821 int i, dst_off; in tg3_read_bc_ver() local 15841 dst_off = strlen(tp->fw_ver); in tg3_read_bc_ver() 15844 if (TG3_VER_SIZE - dst_off < 16 || in tg3_read_bc_ver() 15854 memcpy(tp->fw_ver + dst_off + i, &v, sizeof(v)); in tg3_read_bc_ver() 15865 snprintf(&tp->fw_ver[dst_off], TG3_VER_SIZE - dst_off, in tg3_read_bc_ver()
|