/fs/ntfs/ |
D | runlist.c | 34 static inline void ntfs_rl_mm(runlist_element *base, int dst, int src, in ntfs_rl_mm() argument 37 if (likely((dst != src) && (size > 0))) in ntfs_rl_mm() 38 memmove(base + dst, base + src, size * sizeof(*base)); in ntfs_rl_mm() 47 static inline void ntfs_rl_mc(runlist_element *dstbase, int dst, in ntfs_rl_mc() argument 51 memcpy(dstbase + dst, srcbase + src, size * sizeof(*dstbase)); in ntfs_rl_mc() 155 static inline bool ntfs_are_rl_mergeable(runlist_element *dst, in ntfs_are_rl_mergeable() argument 158 BUG_ON(!dst); in ntfs_are_rl_mergeable() 162 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable() 165 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 168 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable() [all …]
|
D | runlist.h | 90 extern int ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst,
|
/fs/hfs/ |
D | trans.c | 38 char *dst; in hfs_mac2asc() local 43 dst = out; in hfs_mac2asc() 63 size = nls_io->uni2char(ch, dst, dstlen); in hfs_mac2asc() 67 *dst = '?'; in hfs_mac2asc() 70 dst += size; in hfs_mac2asc() 77 *dst++ = (ch = *src++) == '/' ? ':' : ch; in hfs_mac2asc() 80 return dst - out; in hfs_mac2asc() 100 char *dst; in hfs_asc2mac() local 105 dst = out->name; in hfs_asc2mac() 121 size = nls_disk->uni2char(ch, dst, dstlen); in hfs_asc2mac() [all …]
|
D | bnode.c | 96 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, in hfs_bnode_copy() argument 102 dprint(DBG_BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 107 dst += dst_node->page_offset; in hfs_bnode_copy() 111 memcpy(kmap(dst_page) + dst, kmap(src_page) + src, len); in hfs_bnode_copy() 117 void hfs_bnode_move(struct hfs_bnode *node, int dst, int src, int len) in hfs_bnode_move() argument 122 dprint(DBG_BNODE_MOD, "movebytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_move() 126 dst += node->page_offset; in hfs_bnode_move() 129 memmove(ptr + dst, ptr + src, len); in hfs_bnode_move()
|
/fs/hfsplus/ |
D | bnode.c | 125 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, in hfs_bnode_copy() argument 132 dprint(DBG_BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 137 dst += dst_node->page_offset; in hfs_bnode_copy() 140 dst_page = dst_node->page + (dst >> PAGE_CACHE_SHIFT); in hfs_bnode_copy() 141 dst &= ~PAGE_CACHE_MASK; in hfs_bnode_copy() 143 if (src == dst) { in hfs_bnode_copy() 162 dst_ptr = kmap(*dst_page) + dst; in hfs_bnode_copy() 163 if (PAGE_CACHE_SIZE - src < PAGE_CACHE_SIZE - dst) { in hfs_bnode_copy() 166 dst += l; in hfs_bnode_copy() 168 l = PAGE_CACHE_SIZE - dst; in hfs_bnode_copy() [all …]
|
/fs/xfs/quota/ |
D | xfs_qm_syscalls.c | 881 struct fs_disk_quota *dst) in xfs_qm_export_dquot() argument 883 memset(dst, 0, sizeof(*dst)); in xfs_qm_export_dquot() 884 dst->d_version = FS_DQUOT_VERSION; /* different from src->d_version */ in xfs_qm_export_dquot() 885 dst->d_flags = xfs_qm_export_qtype_flags(src->d_flags); in xfs_qm_export_dquot() 886 dst->d_id = be32_to_cpu(src->d_id); in xfs_qm_export_dquot() 887 dst->d_blk_hardlimit = in xfs_qm_export_dquot() 889 dst->d_blk_softlimit = in xfs_qm_export_dquot() 891 dst->d_ino_hardlimit = be64_to_cpu(src->d_ino_hardlimit); in xfs_qm_export_dquot() 892 dst->d_ino_softlimit = be64_to_cpu(src->d_ino_softlimit); in xfs_qm_export_dquot() 893 dst->d_bcount = XFS_FSB_TO_BB(mp, be64_to_cpu(src->d_bcount)); in xfs_qm_export_dquot() [all …]
|
/fs/fat/ |
D | fat.h | 202 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument 206 *dst++ = src[0] | (src[1] << 8); in fat16_towchar() 210 memcpy(dst, src, len * 2); in fat16_towchar() 214 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument 218 dst[0] = *src & 0x00FF; in fatwchar_to16() 219 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16() 220 dst += 2; in fatwchar_to16() 224 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/fs/xfs/ |
D | xfs_trans_priv.h | 117 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 122 *dst = *src; in xfs_trans_ail_copy_lsn() 129 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 133 *dst = *src; in xfs_trans_ail_copy_lsn()
|
D | xfs_bmap_btree.c | 509 struct xfs_btree_cur *dst) in xfs_bmbt_update_cursor() argument 511 ASSERT((dst->bc_private.b.firstblock != NULLFSBLOCK) || in xfs_bmbt_update_cursor() 512 (dst->bc_private.b.ip->i_d.di_flags & XFS_DIFLAG_REALTIME)); in xfs_bmbt_update_cursor() 513 ASSERT(dst->bc_private.b.flist == src->bc_private.b.flist); in xfs_bmbt_update_cursor() 515 dst->bc_private.b.allocated += src->bc_private.b.allocated; in xfs_bmbt_update_cursor() 516 dst->bc_private.b.firstblock = src->bc_private.b.firstblock; in xfs_bmbt_update_cursor()
|
/fs/ecryptfs/ |
D | crypto.c | 57 void ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex() argument 62 sprintf(&dst[x * 2], "%.2x", (unsigned char)src[x]); in ecryptfs_to_hex() 72 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 80 dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16); in ecryptfs_from_hex() 94 static int ecryptfs_calculate_md5(char *dst, in ecryptfs_calculate_md5() argument 133 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() 182 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv() local 200 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv() 207 memcpy(iv, dst, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 873 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv() local [all …]
|
/fs/hpfs/ |
D | hpfs_fn.h | 178 static inline void copy_de(struct hpfs_dirent *dst, struct hpfs_dirent *src) in copy_de() argument 182 if (!dst || !src) return; in copy_de() 183 a = dst->down; in copy_de() 184 n = dst->not_8x3; in copy_de() 185 memcpy((char *)dst + 2, (char *)src + 2, 28); in copy_de() 186 dst->down = a; in copy_de() 187 dst->not_8x3 = n; in copy_de()
|
/fs/ |
D | stack.c | 10 void fsstack_copy_inode_size(struct inode *dst, const struct inode *src) in fsstack_copy_inode_size() argument 12 i_size_write(dst, i_size_read((struct inode *)src)); in fsstack_copy_inode_size() 13 dst->i_blocks = src->i_blocks; in fsstack_copy_inode_size()
|
D | binfmt_flat.c | 171 char *dst, in decompress_exec() argument 180 DBG_FLT("decompress_exec(offset=%x,buf=%x,len=%x)\n",(int)offset, (int)dst, (int)len); in decompress_exec() 257 strm.next_out = dst; in decompress_exec()
|
/fs/cramfs/ |
D | uncompress.c | 28 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument 35 stream.next_out = dst; in cramfs_uncompress_block() 52 printk("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
|
/fs/dlm/ |
D | midcomms.c | 34 static void copy_from_cb(void *dst, const void *base, unsigned offset, in copy_from_cb() argument 41 memcpy(dst, base + offset, copy); in copy_from_cb() 44 memcpy(dst + copy, base, len); in copy_from_cb()
|
/fs/efs/ |
D | inode.c | 30 static inline void extent_copy(efs_extent *src, efs_extent *dst) { in extent_copy() argument 37 dst->cooked.ex_magic = (unsigned int) src->raw[0]; in extent_copy() 38 dst->cooked.ex_bn = ((unsigned int) src->raw[1] << 16) | in extent_copy() 41 dst->cooked.ex_length = (unsigned int) src->raw[4]; in extent_copy() 42 dst->cooked.ex_offset = ((unsigned int) src->raw[5] << 16) | in extent_copy()
|
/fs/cifs/ |
D | smbencrypt.c | 100 _my_mbstowcs(__u16 *dst, const unsigned char *src, int len) in _my_mbstowcs() argument 107 SSVAL(dst, 0, val); in _my_mbstowcs() 108 dst++; in _my_mbstowcs()
|
/fs/btrfs/ |
D | extent_io.h | 235 void read_extent_buffer(struct extent_buffer *eb, void *dst, 240 void copy_extent_buffer(struct extent_buffer *dst, struct extent_buffer *src, 243 void memcpy_extent_buffer(struct extent_buffer *dst, unsigned long dst_offset, 245 void memmove_extent_buffer(struct extent_buffer *dst, unsigned long dst_offset,
|
D | extent_io.c | 3419 char *dst = (char *)dstv; in read_extent_buffer() local 3433 memcpy(dst, kaddr + offset, cur); in read_extent_buffer() 3436 dst += cur; in read_extent_buffer() 3610 void copy_extent_buffer(struct extent_buffer *dst, struct extent_buffer *src, in copy_extent_buffer() argument 3614 u64 dst_len = dst->len; in copy_extent_buffer() 3619 size_t start_offset = dst->start & ((u64)PAGE_CACHE_SIZE - 1); in copy_extent_buffer() 3628 page = extent_buffer_page(dst, i); in copy_extent_buffer() 3682 void memcpy_extent_buffer(struct extent_buffer *dst, unsigned long dst_offset, in memcpy_extent_buffer() argument 3688 size_t start_offset = dst->start & ((u64)PAGE_CACHE_SIZE - 1); in memcpy_extent_buffer() 3692 if (src_offset + len > dst->len) { in memcpy_extent_buffer() [all …]
|
D | ctree.c | 32 struct btrfs_root *root, struct extent_buffer *dst, 1960 struct btrfs_root *root, struct extent_buffer *dst, in push_node_left() argument 1969 dst_nritems = btrfs_header_nritems(dst); in push_node_left() 1972 WARN_ON(btrfs_header_generation(dst) != trans->transid); in push_node_left() 1995 copy_extent_buffer(dst, src, in push_node_left() 2007 btrfs_set_header_nritems(dst, dst_nritems + push_items); in push_node_left() 2009 btrfs_mark_buffer_dirty(dst); in push_node_left() 2011 ret = btrfs_update_ref(trans, root, src, dst, dst_nritems, push_items); in push_node_left() 2028 struct extent_buffer *dst, in balance_node_right() argument 2038 WARN_ON(btrfs_header_generation(dst) != trans->transid); in balance_node_right() [all …]
|
/fs/autofs4/ |
D | autofs_i.h | 173 static inline void autofs4_copy_atime(struct file *src, struct file *dst) in autofs4_copy_atime() argument 175 dst->f_path.dentry->d_inode->i_atime = in autofs4_copy_atime()
|
/fs/nfs/ |
D | nfs4state.c | 618 static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in nfs4_fl_copy_lock() argument 622 dst->fl_u.nfs4_fl.owner = lsp; in nfs4_fl_copy_lock() 654 void nfs4_copy_stateid(nfs4_stateid *dst, struct nfs4_state *state, fl_owner_t fl_owner) in nfs4_copy_stateid() argument 661 memcpy(dst, &state->stateid, sizeof(*dst)); in nfs4_copy_stateid() 669 memcpy(dst, &lsp->ls_stateid, sizeof(*dst)); in nfs4_copy_stateid()
|
D | pagelist.c | 390 struct list_head *dst, pgoff_t idx_start, in nfs_scan_list() argument 421 nfs_list_add_request(req, dst); in nfs_scan_list()
|
D | delegation.c | 509 int nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode) in nfs4_copy_delegation_stateid() argument 518 memcpy(dst->data, delegation->stateid.data, sizeof(dst->data)); in nfs4_copy_delegation_stateid()
|
D | delegation.h | 54 int nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode);
|