/fs/quota/ |
D | quota.c | 185 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument 187 memset(dst, 0, sizeof(*dst)); in copy_to_if_dqblk() 188 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk() 189 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk() 190 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk() 191 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk() 192 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk() 193 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk() 194 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk() 195 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk() [all …]
|
/fs/ntfs/ |
D | runlist.c | 20 static inline void ntfs_rl_mm(runlist_element *base, int dst, int src, in ntfs_rl_mm() argument 23 if (likely((dst != src) && (size > 0))) in ntfs_rl_mm() 24 memmove(base + dst, base + src, size * sizeof(*base)); in ntfs_rl_mm() 33 static inline void ntfs_rl_mc(runlist_element *dstbase, int dst, in ntfs_rl_mc() argument 37 memcpy(dstbase + dst, srcbase + src, size * sizeof(*dstbase)); in ntfs_rl_mc() 141 static inline bool ntfs_are_rl_mergeable(runlist_element *dst, in ntfs_are_rl_mergeable() argument 144 BUG_ON(!dst); in ntfs_are_rl_mergeable() 148 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable() 151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 154 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable() [all …]
|
/fs/erofs/ |
D | decompressor.c | 192 static void copy_from_pcpubuf(struct page **out, const char *dst, in copy_from_pcpubuf() argument 196 const char *end = dst + outputsize; in copy_from_pcpubuf() 198 const char *cur = dst - pageofs_out; in copy_from_pcpubuf() 206 if (cur >= dst) { in copy_from_pcpubuf() 226 void *dst; in z_erofs_decompress_generic() local 231 dst = kmap_atomic(*rq->out); in z_erofs_decompress_generic() 242 dst = erofs_get_pcpubuf(0); in z_erofs_decompress_generic() 243 if (IS_ERR(dst)) in z_erofs_decompress_generic() 244 return PTR_ERR(dst); in z_erofs_decompress_generic() 247 ret = alg->decompress(rq, dst); in z_erofs_decompress_generic() [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 | 98 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() 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 hfs_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/xfs/ |
D | xfs_qm_syscalls.c | 615 struct qc_dqblk *dst) in xfs_qm_scall_getquota_fill_qc() argument 617 memset(dst, 0, sizeof(*dst)); in xfs_qm_scall_getquota_fill_qc() 618 dst->d_spc_hardlimit = in xfs_qm_scall_getquota_fill_qc() 620 dst->d_spc_softlimit = in xfs_qm_scall_getquota_fill_qc() 622 dst->d_ino_hardlimit = be64_to_cpu(dqp->q_core.d_ino_hardlimit); in xfs_qm_scall_getquota_fill_qc() 623 dst->d_ino_softlimit = be64_to_cpu(dqp->q_core.d_ino_softlimit); in xfs_qm_scall_getquota_fill_qc() 624 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount); in xfs_qm_scall_getquota_fill_qc() 625 dst->d_ino_count = dqp->q_res_icount; in xfs_qm_scall_getquota_fill_qc() 626 dst->d_spc_timer = be32_to_cpu(dqp->q_core.d_btimer); in xfs_qm_scall_getquota_fill_qc() 627 dst->d_ino_timer = be32_to_cpu(dqp->q_core.d_itimer); in xfs_qm_scall_getquota_fill_qc() [all …]
|
D | xfs_icache.h | 87 struct xfs_eofblocks *dst) in xfs_fs_eofblocks_from_user() argument 99 dst->eof_flags = src->eof_flags; in xfs_fs_eofblocks_from_user() 100 dst->eof_prid = src->eof_prid; in xfs_fs_eofblocks_from_user() 101 dst->eof_min_file_size = src->eof_min_file_size; in xfs_fs_eofblocks_from_user() 103 dst->eof_uid = INVALID_UID; in xfs_fs_eofblocks_from_user() 105 dst->eof_uid = make_kuid(current_user_ns(), src->eof_uid); in xfs_fs_eofblocks_from_user() 106 if (!uid_valid(dst->eof_uid)) in xfs_fs_eofblocks_from_user() 110 dst->eof_gid = INVALID_GID; in xfs_fs_eofblocks_from_user() 112 dst->eof_gid = make_kgid(current_user_ns(), src->eof_gid); in xfs_fs_eofblocks_from_user() 113 if (!gid_valid(dst->eof_gid)) in xfs_fs_eofblocks_from_user()
|
D | xfs_trans_priv.h | 133 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 138 *dst = *src; in xfs_trans_ail_copy_lsn() 145 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument 149 *dst = *src; in xfs_trans_ail_copy_lsn()
|
/fs/hfsplus/ |
D | bnode.c | 127 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() 137 dst += dst_node->page_offset; in hfs_bnode_copy() 140 dst_page = dst_node->page + (dst >> PAGE_SHIFT); in hfs_bnode_copy() 141 dst &= ~PAGE_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_SIZE - src < PAGE_SIZE - dst) { in hfs_bnode_copy() 166 dst += l; in hfs_bnode_copy() 168 l = PAGE_SIZE - dst; in hfs_bnode_copy() [all …]
|
/fs/cifs/ |
D | cifs_unicode.c | 352 char *dst; in cifs_strndup_from_utf16() local 357 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 358 if (!dst) in cifs_strndup_from_utf16() 360 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16() 365 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 366 if (!dst) in cifs_strndup_from_utf16() 368 strlcpy(dst, src, len); in cifs_strndup_from_utf16() 371 return dst; in cifs_strndup_from_utf16() 620 __le16 *dst; in cifs_strndup_to_utf16() local 624 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_to_utf16() [all …]
|
D | cache.c | 66 char *delim, *dst; in extract_sharename() local 80 dst = kstrndup(delim, len, GFP_KERNEL); in extract_sharename() 81 if (!dst) in extract_sharename() 84 return dst; in extract_sharename()
|
/fs/nilfs2/ |
D | page.c | 197 static void nilfs_copy_page(struct page *dst, struct page *src, int copy_dirty) in nilfs_copy_page() argument 202 BUG_ON(PageWriteback(dst)); in nilfs_copy_page() 205 if (!page_has_buffers(dst)) in nilfs_copy_page() 206 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page() 211 dbh = dbufs = page_buffers(dst); in nilfs_copy_page() 222 copy_highpage(dst, src); in nilfs_copy_page() 224 if (PageUptodate(src) && !PageUptodate(dst)) in nilfs_copy_page() 225 SetPageUptodate(dst); in nilfs_copy_page() 226 else if (!PageUptodate(src) && PageUptodate(dst)) in nilfs_copy_page() 227 ClearPageUptodate(dst); in nilfs_copy_page() [all …]
|
/fs/ |
D | stack.c | 11 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/nfs/ |
D | nfs42proc.c | 20 static int nfs42_do_offload_cancel_async(struct file *dst, nfs4_stateid *std); 137 struct file *dst, in handle_async_copy() argument 143 struct nfs_open_context *ctx = nfs_file_open_context(dst); in handle_async_copy() 191 nfs42_do_offload_cancel_async(dst, ©->stateid); in handle_async_copy() 196 static int process_copy_commit(struct file *dst, loff_t pos_dst, in process_copy_commit() argument 206 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit() 222 struct file *dst, in _nfs42_proc_copy() argument 232 struct inode *dst_inode = file_inode(dst); in _nfs42_proc_copy() 283 status = handle_async_copy(res, server, src, dst, in _nfs42_proc_copy() 291 status = process_copy_commit(dst, pos_dst, res); in _nfs42_proc_copy() [all …]
|
D | nfs4_fs.h | 494 extern bool nfs4_copy_open_stateid(nfs4_stateid *dst, 511 extern int nfs4_proc_commit(struct file *dst, __u64 offset, __u32 count, struct nfs_commitres *res); 552 static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_copy() argument 554 memcpy(dst->data, src->data, sizeof(dst->data)); in nfs4_stateid_copy() 555 dst->type = src->type; in nfs4_stateid_copy() 558 static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match() argument 560 if (dst->type != src->type) in nfs4_stateid_match() 562 return memcmp(dst->data, src->data, sizeof(dst->data)) == 0; in nfs4_stateid_match() 565 static inline bool nfs4_stateid_match_other(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_other() argument 567 return memcmp(dst->other, src->other, NFS4_STATEID_OTHER_SIZE) == 0; in nfs4_stateid_match_other()
|
D | internal.h | 299 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument 301 if (!dst || !src) in nfs4_label_copy() 307 dst->lfs = src->lfs; in nfs4_label_copy() 308 dst->pi = src->pi; in nfs4_label_copy() 309 dst->len = src->len; in nfs4_label_copy() 310 memcpy(dst->label, src->label, src->len); in nfs4_label_copy() 312 return dst; in nfs4_label_copy() 335 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument 482 int nfs_scan_commit_list(struct list_head *src, struct list_head *dst, 485 int nfs_scan_commit(struct inode *inode, struct list_head *dst, [all …]
|
/fs/ecryptfs/ |
D | crypto.c | 39 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 47 dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16); in ecryptfs_from_hex() 52 char *src, int len, char *dst) in ecryptfs_hash_digest() argument 58 err = crypto_shash_digest(desc, src, len, dst); in ecryptfs_hash_digest() 73 static int ecryptfs_calculate_md5(char *dst, in ecryptfs_calculate_md5() argument 81 rc = ecryptfs_hash_digest(tfm, src, len, dst); in ecryptfs_calculate_md5() 129 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv() local 147 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv() 154 memcpy(iv, dst, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 652 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv() local [all …]
|
/fs/nfsd/ |
D | nfsfh.h | 170 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument 174 *dst = *src; in fh_copy() 175 return dst; in fh_copy() 179 fh_copy_shallow(struct knfsd_fh *dst, struct knfsd_fh *src) in fh_copy_shallow() argument 181 dst->fh_size = src->fh_size; in fh_copy_shallow() 182 memcpy(&dst->fh_base, &src->fh_base, src->fh_size); in fh_copy_shallow()
|
/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 268 uint8_t **dst) in xfs_attr_rmtval_copyout() argument 294 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout() 303 *dst += byte_cnt; in xfs_attr_rmtval_copyout() 318 char *dst = bp->b_addr; in xfs_attr_rmtval_copyin() local 330 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin() 333 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin() 342 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin() 348 dst += blksize; in xfs_attr_rmtval_copyin() 372 uint8_t *dst = args->value; in xfs_attr_rmtval_get() local 412 &dst); in xfs_attr_rmtval_get()
|
/fs/hpfs/ |
D | hpfs_fn.h | 175 static inline void copy_de(struct hpfs_dirent *dst, struct hpfs_dirent *src) in copy_de() argument 179 if (!dst || !src) return; in copy_de() 180 a = dst->down; in copy_de() 181 n = dst->not_8x3; in copy_de() 182 memcpy((char *)dst + 2, (char *)src + 2, 28); in copy_de() 183 dst->down = a; in copy_de() 184 dst->not_8x3 = n; in copy_de()
|
/fs/cramfs/ |
D | uncompress.c | 31 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument 38 stream.next_out = dst; in cramfs_uncompress_block() 55 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
|
/fs/fat/ |
D | fat.h | 272 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument 276 *dst++ = src[0] | (src[1] << 8); in fat16_towchar() 280 memcpy(dst, src, len * 2); in fat16_towchar() 299 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument 303 dst[0] = *src & 0x00FF; in fatwchar_to16() 304 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16() 305 dst += 2; in fatwchar_to16() 309 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/fs/crypto/ |
D | fname.c | 139 static int base64_encode(const u8 *src, int len, char *dst) in base64_encode() argument 142 char *cp = dst; in base64_encode() 155 return cp - dst; in base64_encode() 158 static int base64_decode(const char *src, int len, u8 *dst) in base64_decode() argument 162 u8 *cp = dst; in base64_decode() 178 return cp - dst; in base64_decode()
|
/fs/f2fs/ |
D | node.h | 74 static inline void copy_node_info(struct node_info *dst, in copy_node_info() argument 77 dst->nid = src->nid; in copy_node_info() 78 dst->ino = src->ino; in copy_node_info() 79 dst->blk_addr = src->blk_addr; in copy_node_info() 80 dst->version = src->version; in copy_node_info() 286 static inline void copy_node_footer(struct page *dst, struct page *src) in copy_node_footer() argument 289 struct f2fs_node *dst_rn = F2FS_NODE(dst); in copy_node_footer()
|
/fs/dlm/ |
D | midcomms.c | 32 static void copy_from_cb(void *dst, const void *base, unsigned offset, in copy_from_cb() argument 39 memcpy(dst, base + offset, copy); in copy_from_cb() 42 memcpy(dst + copy, base, len); in copy_from_cb()
|