/fs/quota/ |
D | quota.c | 128 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument 130 memset(dst, 0, sizeof(*dst)); in copy_to_if_dqblk() 131 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk() 132 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk() 133 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk() 134 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk() 135 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk() 136 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk() 137 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk() 138 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk() [all …]
|
/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 …]
|
/fs/hfs/ |
D | trans.c | 38 char *dst; in hfs_mac2asc() local 45 dst = out; in hfs_mac2asc() 65 size = nls_io->uni2char(ch, dst, dstlen); in hfs_mac2asc() 69 *dst = '?'; in hfs_mac2asc() 72 dst += size; in hfs_mac2asc() 79 *dst++ = (ch = *src++) == '/' ? ':' : ch; in hfs_mac2asc() 82 return dst - out; in hfs_mac2asc() 102 char *dst; in hfs_asc2mac() local 107 dst = out->name; in hfs_asc2mac() 123 size = nls_disk->uni2char(ch, dst, dstlen); in hfs_asc2mac() [all …]
|
D | bnode.c | 97 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, in hfs_bnode_copy() argument 103 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 108 dst += dst_node->page_offset; in hfs_bnode_copy() 112 memcpy(kmap(dst_page) + dst, kmap(src_page) + src, len); in hfs_bnode_copy() 118 void hfs_bnode_move(struct hfs_bnode *node, int dst, int src, int len) in hfs_bnode_move() argument 123 hfs_dbg(BNODE_MOD, "movebytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_move() 127 dst += node->page_offset; in hfs_bnode_move() 130 memmove(ptr + dst, ptr + src, len); in hfs_bnode_move()
|
/fs/xfs/ |
D | xfs_icache.h | 74 struct xfs_eofblocks *dst) in xfs_fs_eofblocks_from_user() argument 86 dst->eof_flags = src->eof_flags; in xfs_fs_eofblocks_from_user() 87 dst->eof_prid = src->eof_prid; in xfs_fs_eofblocks_from_user() 88 dst->eof_min_file_size = src->eof_min_file_size; in xfs_fs_eofblocks_from_user() 89 dst->eof_scan_owner = NULLFSINO; in xfs_fs_eofblocks_from_user() 91 dst->eof_uid = INVALID_UID; in xfs_fs_eofblocks_from_user() 93 dst->eof_uid = make_kuid(current_user_ns(), src->eof_uid); in xfs_fs_eofblocks_from_user() 94 if (!uid_valid(dst->eof_uid)) in xfs_fs_eofblocks_from_user() 98 dst->eof_gid = INVALID_GID; in xfs_fs_eofblocks_from_user() 100 dst->eof_gid = make_kgid(current_user_ns(), src->eof_gid); in xfs_fs_eofblocks_from_user() [all …]
|
D | xfs_qm_syscalls.c | 833 struct qc_dqblk *dst) in xfs_qm_scall_getquota() argument 856 memset(dst, 0, sizeof(*dst)); in xfs_qm_scall_getquota() 857 dst->d_spc_hardlimit = in xfs_qm_scall_getquota() 859 dst->d_spc_softlimit = in xfs_qm_scall_getquota() 861 dst->d_ino_hardlimit = be64_to_cpu(dqp->q_core.d_ino_hardlimit); in xfs_qm_scall_getquota() 862 dst->d_ino_softlimit = be64_to_cpu(dqp->q_core.d_ino_softlimit); in xfs_qm_scall_getquota() 863 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount); in xfs_qm_scall_getquota() 864 dst->d_ino_count = dqp->q_res_icount; in xfs_qm_scall_getquota() 865 dst->d_spc_timer = be32_to_cpu(dqp->q_core.d_btimer); in xfs_qm_scall_getquota() 866 dst->d_ino_timer = be32_to_cpu(dqp->q_core.d_itimer); in xfs_qm_scall_getquota() [all …]
|
D | xfs_trans_priv.h | 142 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 147 *dst = *src; in xfs_trans_ail_copy_lsn() 154 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 158 *dst = *src; in xfs_trans_ail_copy_lsn()
|
D | uuid.h | 30 uuid_copy(uuid_t *dst, uuid_t *src) in uuid_copy() argument 32 memcpy(dst, src, sizeof(uuid_t)); in uuid_copy()
|
/fs/hfsplus/ |
D | bnode.c | 126 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, in hfs_bnode_copy() argument 133 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 138 dst += dst_node->page_offset; in hfs_bnode_copy() 141 dst_page = dst_node->page + (dst >> PAGE_CACHE_SHIFT); in hfs_bnode_copy() 142 dst &= ~PAGE_CACHE_MASK; in hfs_bnode_copy() 144 if (src == dst) { in hfs_bnode_copy() 163 dst_ptr = kmap(*dst_page) + dst; in hfs_bnode_copy() 164 if (PAGE_CACHE_SIZE - src < PAGE_CACHE_SIZE - dst) { in hfs_bnode_copy() 167 dst += l; in hfs_bnode_copy() 169 l = PAGE_CACHE_SIZE - dst; in hfs_bnode_copy() [all …]
|
/fs/cifs/ |
D | cifs_unicode.c | 324 char *dst; in cifs_strndup_from_utf16() local 329 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 330 if (!dst) in cifs_strndup_from_utf16() 332 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16() 337 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 338 if (!dst) in cifs_strndup_from_utf16() 340 strlcpy(dst, src, len); in cifs_strndup_from_utf16() 343 return dst; in cifs_strndup_from_utf16() 539 __le16 *dst; in cifs_strndup_to_utf16() local 543 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_to_utf16() [all …]
|
D | smb2inode.c | 118 move_smb2_info_to_cifs(FILE_ALL_INFO *dst, struct smb2_file_all_info *src) in move_smb2_info_to_cifs() argument 120 memcpy(dst, src, (size_t)(&src->CurrentByteOffset) - (size_t)src); in move_smb2_info_to_cifs() 121 dst->CurrentByteOffset = src->CurrentByteOffset; in move_smb2_info_to_cifs() 122 dst->Mode = src->Mode; in move_smb2_info_to_cifs() 123 dst->AlignmentRequirement = src->AlignmentRequirement; in move_smb2_info_to_cifs() 124 dst->IndexNumber1 = 0; /* we don't use it */ in move_smb2_info_to_cifs()
|
/fs/ |
D | stack.c | 10 void fsstack_copy_inode_size(struct inode *dst, struct inode *src) in fsstack_copy_inode_size() argument 54 spin_lock(&dst->i_lock); in fsstack_copy_inode_size() 55 i_size_write(dst, i_size); in fsstack_copy_inode_size() 56 dst->i_blocks = i_blocks; in fsstack_copy_inode_size() 58 spin_unlock(&dst->i_lock); in fsstack_copy_inode_size()
|
/fs/nilfs2/ |
D | page.c | 213 static void nilfs_copy_page(struct page *dst, struct page *src, int copy_dirty) in nilfs_copy_page() argument 218 BUG_ON(PageWriteback(dst)); in nilfs_copy_page() 221 if (!page_has_buffers(dst)) in nilfs_copy_page() 222 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page() 227 dbh = dbufs = page_buffers(dst); in nilfs_copy_page() 238 copy_highpage(dst, src); in nilfs_copy_page() 240 if (PageUptodate(src) && !PageUptodate(dst)) in nilfs_copy_page() 241 SetPageUptodate(dst); in nilfs_copy_page() 242 else if (!PageUptodate(src) && PageUptodate(dst)) in nilfs_copy_page() 243 ClearPageUptodate(dst); in nilfs_copy_page() [all …]
|
/fs/nfsd/ |
D | nfsfh.h | 167 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument 171 *dst = *src; in fh_copy() 172 return dst; in fh_copy() 176 fh_copy_shallow(struct knfsd_fh *dst, struct knfsd_fh *src) in fh_copy_shallow() argument 178 dst->fh_size = src->fh_size; in fh_copy_shallow() 179 memcpy(&dst->fh_base, &src->fh_base, src->fh_size); in fh_copy_shallow()
|
/fs/ecryptfs/ |
D | crypto.c | 50 void ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex() argument 55 sprintf(&dst[x * 2], "%.2x", (unsigned char)src[x]); in ecryptfs_to_hex() 65 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 73 dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16); in ecryptfs_from_hex() 87 static int ecryptfs_calculate_md5(char *dst, in ecryptfs_calculate_md5() argument 126 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() 175 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv() local 193 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv() 200 memcpy(iv, dst, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 687 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv() local [all …]
|
/fs/pstore/ |
D | platform.c | 294 char *dst; in pstore_dump() local 303 dst = big_oops_buf; in pstore_dump() 304 hsize = sprintf(dst, "%s#%d Part%d\n", why, in pstore_dump() 308 if (!kmsg_dump_get_buffer(dumper, true, dst + hsize, in pstore_dump() 312 zipped_len = pstore_compress(dst, psinfo->buf, in pstore_dump() 323 dst = psinfo->buf; in pstore_dump() 324 hsize = sprintf(dst, "%s#%d Part%d\n", why, oopscount, in pstore_dump() 327 dst += hsize; in pstore_dump() 329 if (!kmsg_dump_get_buffer(dumper, true, dst, in pstore_dump()
|
/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 240 __uint8_t **dst) in xfs_attr_rmtval_copyout() argument 266 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout() 275 *dst += byte_cnt; in xfs_attr_rmtval_copyout() 290 char *dst = bp->b_addr; in xfs_attr_rmtval_copyin() local 302 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin() 305 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin() 314 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin() 320 dst += blksize; in xfs_attr_rmtval_copyin() 342 __uint8_t *dst = args->value; in xfs_attr_rmtval_get() local 381 &dst); in xfs_attr_rmtval_get()
|
/fs/hpfs/ |
D | hpfs_fn.h | 169 static inline void copy_de(struct hpfs_dirent *dst, struct hpfs_dirent *src) in copy_de() argument 173 if (!dst || !src) return; in copy_de() 174 a = dst->down; in copy_de() 175 n = dst->not_8x3; in copy_de() 176 memcpy((char *)dst + 2, (char *)src + 2, 28); in copy_de() 177 dst->down = a; in copy_de() 178 dst->not_8x3 = n; in copy_de()
|
/fs/cramfs/ |
D | uncompress.c | 30 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument 37 stream.next_out = dst; in cramfs_uncompress_block() 54 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
|
/fs/fat/ |
D | fat.h | 246 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument 250 *dst++ = src[0] | (src[1] << 8); in fat16_towchar() 254 memcpy(dst, src, len * 2); in fat16_towchar() 273 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument 277 dst[0] = *src & 0x00FF; in fatwchar_to16() 278 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16() 279 dst += 2; in fatwchar_to16() 283 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/fs/nfs/ |
D | nfs4_fs.h | 486 static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_copy() argument 488 memcpy(dst, src, sizeof(*dst)); in nfs4_stateid_copy() 491 static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match() argument 493 return memcmp(dst, src, sizeof(*dst)) == 0; in nfs4_stateid_match() 496 static inline bool nfs4_stateid_match_other(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_other() argument 498 return memcmp(dst->other, src->other, NFS4_STATEID_OTHER_SIZE) == 0; in nfs4_stateid_match_other()
|
/fs/f2fs/ |
D | file.c | 1010 pgoff_t src, pgoff_t dst, pgoff_t len, bool full) in __clone_blkaddrs() argument 1029 ret = get_dnode_of_data(&dn, dst + i, ALLOC_NODE); in __clone_blkaddrs() 1054 new_size = (dst + i) << PAGE_SHIFT; in __clone_blkaddrs() 1066 pdst = get_new_data_page(dst_inode, NULL, dst + i, in __clone_blkaddrs() 1087 struct inode *dst_inode, pgoff_t src, pgoff_t dst, in __exchange_data_block() argument 1114 do_replace, src, dst, olen, full); in __exchange_data_block() 1119 dst += olen; in __exchange_data_block() 2255 struct inode *dst = file_inode(file_out); in f2fs_move_file_range() local 2262 src->i_sb != dst->i_sb) in f2fs_move_file_range() 2268 if (!S_ISREG(src->i_mode) || !S_ISREG(dst->i_mode)) in f2fs_move_file_range() [all …]
|
D | node.h | 76 static inline void copy_node_info(struct node_info *dst, in copy_node_info() argument 79 dst->nid = src->nid; in copy_node_info() 80 dst->ino = src->ino; in copy_node_info() 81 dst->blk_addr = src->blk_addr; in copy_node_info() 82 dst->version = src->version; in copy_node_info() 283 static inline void copy_node_footer(struct page *dst, struct page *src) in copy_node_footer() argument 286 struct f2fs_node *dst_rn = F2FS_NODE(dst); in copy_node_footer()
|
/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/crypto/ |
D | fname.c | 146 static int digest_encode(const char *src, int len, char *dst) in digest_encode() argument 149 char *cp = dst; in digest_encode() 163 return cp - dst; in digest_encode() 166 static int digest_decode(const char *src, int len, char *dst) in digest_decode() argument 170 char *cp = dst; in digest_decode() 187 return cp - dst; in digest_decode()
|