Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 96) sorted by relevance

1234

/fs/quota/
Dquota.c184 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument
186 memset(dst, 0, sizeof(*dst)); in copy_to_if_dqblk()
187 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk()
188 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk()
189 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk()
190 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk()
191 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk()
192 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk()
193 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk()
194 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk()
[all …]
/fs/ntfs/
Drunlist.c20 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/proc/
Dbootconfig.c23 #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0) argument
26 static int __init copy_xbc_key_value_list(char *dst, size_t size) in copy_xbc_key_value_list() argument
29 char *key, *end = dst + size; in copy_xbc_key_value_list()
42 ret = snprintf(dst, rest(dst, end), "%s = ", key); in copy_xbc_key_value_list()
45 dst += ret; in copy_xbc_key_value_list()
53 ret = snprintf(dst, rest(dst, end), "%c%s%c%s", in copy_xbc_key_value_list()
57 dst += ret; in copy_xbc_key_value_list()
60 ret = snprintf(dst, rest(dst, end), "\"\"\n"); in copy_xbc_key_value_list()
63 dst += ret; in copy_xbc_key_value_list()
69 return ret < 0 ? ret : dst - (end - size); in copy_xbc_key_value_list()
/fs/hfs/
Dtrans.c38 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 …]
/fs/xfs/
Dxfs_qm_syscalls.c645 struct qc_dqblk *dst) in xfs_qm_scall_getquota_fill_qc() argument
647 memset(dst, 0, sizeof(*dst)); in xfs_qm_scall_getquota_fill_qc()
648 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc()
649 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc()
650 dst->d_ino_hardlimit = dqp->q_ino.hardlimit; in xfs_qm_scall_getquota_fill_qc()
651 dst->d_ino_softlimit = dqp->q_ino.softlimit; in xfs_qm_scall_getquota_fill_qc()
652 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc()
653 dst->d_ino_count = dqp->q_ino.reserved; in xfs_qm_scall_getquota_fill_qc()
654 dst->d_spc_timer = dqp->q_blk.timer; in xfs_qm_scall_getquota_fill_qc()
655 dst->d_ino_timer = dqp->q_ino.timer; in xfs_qm_scall_getquota_fill_qc()
[all …]
Dxfs_trans_priv.h122 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument
127 *dst = *src; in xfs_trans_ail_copy_lsn()
134 xfs_lsn_t *dst, in xfs_trans_ail_copy_lsn() argument
138 *dst = *src; in xfs_trans_ail_copy_lsn()
/fs/hfsplus/
Dbnode.c127 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/erofs/
Ddecompressor.c265 void *dst; in z_erofs_lz4_decompress() local
271 dst = kmap_atomic(*rq->out); in z_erofs_lz4_decompress()
281 dst = page_address(*rq->out); in z_erofs_lz4_decompress()
286 dst = erofs_vm_map_ram(rq->out, nrpages_out); in z_erofs_lz4_decompress()
287 if (!dst) in z_erofs_lz4_decompress()
292 ret = z_erofs_lz4_decompress_mem(rq, dst + rq->pageofs_out); in z_erofs_lz4_decompress()
295 kunmap_atomic(dst); in z_erofs_lz4_decompress()
297 vm_unmap_ram(dst, nrpages_out); in z_erofs_lz4_decompress()
307 unsigned char *src, *dst; in z_erofs_shifted_transform() local
321 dst = kmap_atomic(rq->out[0]); in z_erofs_shifted_transform()
[all …]
/fs/btrfs/
Dreflink.c164 static int clone_copy_inline_extent(struct inode *dst, in clone_copy_inline_extent() argument
174 struct btrfs_fs_info *fs_info = btrfs_sb(dst->i_sb); in clone_copy_inline_extent()
175 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent()
183 ret = copy_inline_to_page(BTRFS_I(dst), new_key->offset, in clone_copy_inline_extent()
188 key.objectid = btrfs_ino(BTRFS_I(dst)); in clone_copy_inline_extent()
203 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent()
212 } else if (i_size_read(dst) <= datal) { in clone_copy_inline_extent()
234 if (i_size_read(dst) > datal) { in clone_copy_inline_extent()
264 ret = btrfs_drop_extents(trans, root, dst, drop_start, aligned_end, 1); in clone_copy_inline_extent()
275 inode_add_bytes(dst, datal); in clone_copy_inline_extent()
[all …]
Dextent_io.h232 void read_extent_buffer(const struct extent_buffer *eb, void *dst,
236 void __user *dst, unsigned long start,
243 void copy_extent_buffer_full(const struct extent_buffer *dst,
245 void copy_extent_buffer(const struct extent_buffer *dst,
249 void memcpy_extent_buffer(const struct extent_buffer *dst,
252 void memmove_extent_buffer(const struct extent_buffer *dst,
/fs/nilfs2/
Dpage.c196 static void nilfs_copy_page(struct page *dst, struct page *src, int copy_dirty) in nilfs_copy_page() argument
201 BUG_ON(PageWriteback(dst)); in nilfs_copy_page()
204 if (!page_has_buffers(dst)) in nilfs_copy_page()
205 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page()
210 dbh = dbufs = page_buffers(dst); in nilfs_copy_page()
221 copy_highpage(dst, src); in nilfs_copy_page()
223 if (PageUptodate(src) && !PageUptodate(dst)) in nilfs_copy_page()
224 SetPageUptodate(dst); in nilfs_copy_page()
225 else if (!PageUptodate(src) && PageUptodate(dst)) in nilfs_copy_page()
226 ClearPageUptodate(dst); in nilfs_copy_page()
[all …]
/fs/cifs/
Dcifs_unicode.c352 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()
363 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16()
366 return dst; in cifs_strndup_from_utf16()
621 __le16 *dst; in cifs_strndup_to_utf16() local
625 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_to_utf16()
626 if (!dst) { in cifs_strndup_to_utf16()
630 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
[all …]
Dcache.c59 char *delim, *dst; in extract_sharename() local
73 dst = kstrndup(delim, len, GFP_KERNEL); in extract_sharename()
74 if (!dst) in extract_sharename()
77 return dst; in extract_sharename()
/fs/
Dstack.c11 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/
Dnfs4_fs.h517 extern bool nfs4_copy_open_stateid(nfs4_stateid *dst,
534 extern int nfs4_proc_commit(struct file *dst, __u64 offset, __u32 count, struct nfs_commitres *res);
583 static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_copy() argument
585 memcpy(dst->data, src->data, sizeof(dst->data)); in nfs4_stateid_copy()
586 dst->type = src->type; in nfs4_stateid_copy()
589 static inline bool nfs4_stateid_match(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match() argument
591 if (dst->type != src->type) in nfs4_stateid_match()
593 return memcmp(dst->data, src->data, sizeof(dst->data)) == 0; in nfs4_stateid_match()
596 static inline bool nfs4_stateid_match_other(const nfs4_stateid *dst, const nfs4_stateid *src) in nfs4_stateid_match_other() argument
598 return memcmp(dst->other, src->other, NFS4_STATEID_OTHER_SIZE) == 0; in nfs4_stateid_match_other()
[all …]
Dnfs42proc.c23 static int nfs42_do_offload_cancel_async(struct file *dst, nfs4_stateid *std);
171 struct file *dst, in handle_async_copy() argument
178 struct nfs_open_context *dst_ctx = nfs_file_open_context(dst); in handle_async_copy()
242 nfs42_do_offload_cancel_async(dst, &copy->stateid); in handle_async_copy()
243 if (!nfs42_files_from_same_server(src, dst)) in handle_async_copy()
248 static int process_copy_commit(struct file *dst, loff_t pos_dst, in process_copy_commit() argument
258 status = nfs4_proc_commit(dst, pos_dst, res->write_res.count, &cres); in process_copy_commit()
274 struct file *dst, in _nfs42_proc_copy() argument
287 struct inode *dst_inode = file_inode(dst); in _nfs42_proc_copy()
353 dst, &args->src_stateid, restart); in _nfs42_proc_copy()
[all …]
Dinternal.h342 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument
344 if (!dst || !src) in nfs4_label_copy()
350 dst->lfs = src->lfs; in nfs4_label_copy()
351 dst->pi = src->pi; in nfs4_label_copy()
352 dst->len = src->len; in nfs4_label_copy()
353 memcpy(dst->label, src->label, src->len); in nfs4_label_copy()
355 return dst; in nfs4_label_copy()
378 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument
508 int nfs_scan_commit_list(struct list_head *src, struct list_head *dst,
511 int nfs_scan_commit(struct inode *inode, struct list_head *dst,
[all …]
/fs/ext4/
Dfast_commit.c578 static void *ext4_fc_memzero(struct super_block *sb, void *dst, int len, in ext4_fc_memzero() argument
583 ret = memset(dst, 0, len); in ext4_fc_memzero()
585 *crc = ext4_chksum(EXT4_SB(sb), *crc, dst, len); in ext4_fc_memzero()
653 static void *ext4_fc_memcpy(struct super_block *sb, void *dst, const void *src, in ext4_fc_memcpy() argument
658 return memcpy(dst, src, len); in ext4_fc_memcpy()
675 u8 *dst; in ext4_fc_write_tail() local
681 dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(tail), &crc); in ext4_fc_write_tail()
682 if (!dst) in ext4_fc_write_tail()
691 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), &crc); in ext4_fc_write_tail()
692 dst += sizeof(tl); in ext4_fc_write_tail()
[all …]
/fs/nfsd/
Dnfsfh.h173 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument
177 *dst = *src; in fh_copy()
178 return dst; in fh_copy()
182 fh_copy_shallow(struct knfsd_fh *dst, struct knfsd_fh *src) in fh_copy_shallow() argument
184 dst->fh_size = src->fh_size; in fh_copy_shallow()
185 memcpy(&dst->fh_base, &src->fh_base, src->fh_size); in fh_copy_shallow()
/fs/ecryptfs/
Dcrypto.c39 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()
61 static int ecryptfs_calculate_md5(char *dst, in ecryptfs_calculate_md5() argument
65 int rc = crypto_shash_tfm_digest(crypt_stat->hash_tfm, src, len, dst); in ecryptfs_calculate_md5()
114 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv() local
132 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv()
139 memcpy(iv, dst, crypt_stat->iv_bytes); in ecryptfs_derive_iv()
637 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv() local
647 rc = ecryptfs_calculate_md5(dst, crypt_stat, crypt_stat->key, in ecryptfs_compute_root_iv()
654 memcpy(crypt_stat->root_iv, dst, crypt_stat->iv_bytes); in ecryptfs_compute_root_iv()
[all …]
/fs/xfs/libxfs/
Dxfs_attr_remote.c284 uint8_t **dst) in xfs_attr_rmtval_copyout() argument
310 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout()
319 *dst += byte_cnt; in xfs_attr_rmtval_copyout()
334 char *dst = bp->b_addr; in xfs_attr_rmtval_copyin() local
346 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin()
349 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin()
358 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin()
364 dst += blksize; in xfs_attr_rmtval_copyin()
388 uint8_t *dst = args->value; in xfs_attr_rmtval_get() local
426 &dst); in xfs_attr_rmtval_get()
/fs/hpfs/
Dhpfs_fn.h175 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/
Duncompress.c31 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/
Dfat.h272 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/f2fs/
Dnode.h83 static inline void copy_node_info(struct node_info *dst, in copy_node_info() argument
86 dst->nid = src->nid; in copy_node_info()
87 dst->ino = src->ino; in copy_node_info()
88 dst->blk_addr = src->blk_addr; in copy_node_info()
89 dst->version = src->version; in copy_node_info()
292 static inline void copy_node_footer(struct page *dst, struct page *src) in copy_node_footer() argument
295 struct f2fs_node *dst_rn = F2FS_NODE(dst); in copy_node_footer()

1234