Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 101) sorted by relevance

12345

/fs/quota/
Dquota.c190 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src) in copy_to_if_dqblk() argument
193 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk()
194 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk()
195 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk()
196 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk()
197 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk()
198 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk()
199 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk()
200 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk()
226 static void copy_from_if_dqblk(struct qc_dqblk *dst, struct if_dqblk *src) in copy_from_if_dqblk() argument
[all …]
/fs/
Dstack.c10 void fsstack_copy_inode_size(struct inode *dst, struct inode *src) in fsstack_copy_inode_size() argument
21 i_size = i_size_read(src); in fsstack_copy_inode_size()
35 spin_lock(&src->i_lock); in fsstack_copy_inode_size()
36 i_blocks = src->i_blocks; in fsstack_copy_inode_size()
38 spin_unlock(&src->i_lock); in fsstack_copy_inode_size()
63 void fsstack_copy_attr_all(struct inode *dest, const struct inode *src) in fsstack_copy_attr_all() argument
65 dest->i_mode = src->i_mode; in fsstack_copy_attr_all()
66 dest->i_uid = src->i_uid; in fsstack_copy_attr_all()
67 dest->i_gid = src->i_gid; in fsstack_copy_attr_all()
68 dest->i_rdev = src->i_rdev; in fsstack_copy_attr_all()
[all …]
/fs/xfs/
Dxfs_icache.h89 struct xfs_fs_eofblocks *src, in xfs_fs_eofblocks_from_user() argument
92 if (src->eof_version != XFS_EOFBLOCKS_VERSION) in xfs_fs_eofblocks_from_user()
95 if (src->eof_flags & ~XFS_EOF_FLAGS_VALID) in xfs_fs_eofblocks_from_user()
98 if (memchr_inv(&src->pad32, 0, sizeof(src->pad32)) || in xfs_fs_eofblocks_from_user()
99 memchr_inv(src->pad64, 0, sizeof(src->pad64))) in xfs_fs_eofblocks_from_user()
102 dst->eof_flags = src->eof_flags; in xfs_fs_eofblocks_from_user()
103 dst->eof_prid = src->eof_prid; in xfs_fs_eofblocks_from_user()
104 dst->eof_min_file_size = src->eof_min_file_size; in xfs_fs_eofblocks_from_user()
108 if (src->eof_flags & XFS_EOF_FLAGS_UID) { in xfs_fs_eofblocks_from_user()
109 dst->eof_uid = make_kuid(current_user_ns(), src->eof_uid); in xfs_fs_eofblocks_from_user()
[all …]
Dxfs_trans_priv.h158 xfs_lsn_t *src) in xfs_trans_ail_copy_lsn() argument
162 *dst = *src; in xfs_trans_ail_copy_lsn()
170 xfs_lsn_t *src) in xfs_trans_ail_copy_lsn() argument
173 *dst = *src; in xfs_trans_ail_copy_lsn()
/fs/hfsplus/
Dbnode.c127 struct hfs_bnode *src_node, int src, int len) in hfs_bnode_copy() argument
133 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy()
137 src += src_node->page_offset; in hfs_bnode_copy()
139 src_page = src_node->page + (src >> PAGE_CACHE_SHIFT); in hfs_bnode_copy()
140 src &= ~PAGE_CACHE_MASK; in hfs_bnode_copy()
144 if (src == dst) { in hfs_bnode_copy()
145 l = min_t(int, len, PAGE_CACHE_SIZE - src); in hfs_bnode_copy()
146 memcpy(kmap(*dst_page) + src, kmap(*src_page) + src, l); in hfs_bnode_copy()
162 src_ptr = kmap(*src_page) + src; in hfs_bnode_copy()
164 if (PAGE_CACHE_SIZE - src < PAGE_CACHE_SIZE - dst) { in hfs_bnode_copy()
[all …]
/fs/hfs/
Dtrans.c37 const char *src; in hfs_mac2asc() local
41 src = in->name; in hfs_mac2asc()
52 size = nls_disk->char2uni(src, srclen, &ch); in hfs_mac2asc()
57 src += size; in hfs_mac2asc()
60 ch = *src++; in hfs_mac2asc()
79 *dst++ = (ch = *src++) == '/' ? ':' : ch; in hfs_mac2asc()
101 const char *src; in hfs_asc2mac() local
105 src = in->name; in hfs_asc2mac()
113 size = nls_io->char2uni(src, srclen, &ch); in hfs_asc2mac()
118 src += size; in hfs_asc2mac()
[all …]
/fs/udf/
Dudftime.c88 udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src) in udf_disk_stamp_to_time() argument
91 u16 typeAndTimezone = le16_to_cpu(src.typeAndTimezone); in udf_disk_stamp_to_time()
92 u16 year = le16_to_cpu(src.year); in udf_disk_stamp_to_time()
112 yday = ((__mon_yday[__isleap(year)][src.month - 1]) + src.day - 1); in udf_disk_stamp_to_time()
113 dest->tv_sec += (((yday * 24) + src.hour) * 60 + src.minute) * 60 + src.second; in udf_disk_stamp_to_time()
114 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
115 src.hundredsOfMicroseconds * 100 + src.microseconds); in udf_disk_stamp_to_time()
/fs/proc/
Dpage.c33 unsigned long src = *ppos; in kpagecount_read() local
38 pfn = src / KPMSIZE; in kpagecount_read()
39 count = min_t(size_t, count, (max_pfn * KPMSIZE) - src); in kpagecount_read()
40 if (src & KPMMASK || count & KPMMASK) in kpagecount_read()
201 unsigned long src = *ppos; in kpageflags_read() local
205 pfn = src / KPMSIZE; in kpageflags_read()
206 count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); in kpageflags_read()
207 if (src & KPMMASK || count & KPMMASK) in kpageflags_read()
245 unsigned long src = *ppos; in kpagecgroup_read() local
250 pfn = src / KPMSIZE; in kpagecgroup_read()
[all …]
/fs/reiserfs/
Dlbalance.c135 struct buffer_head *src, int last_first, in leaf_copy_boundary_item() argument
153 ih = item_head(src, 0); in leaf_copy_boundary_item()
158 || (!op_is_left_mergeable(&ih->ih_key, src->b_size))) in leaf_copy_boundary_item()
168 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST, 0, 0, in leaf_copy_boundary_item()
201 bytes_or_entries, ih_item_body(src, ih), 0); in leaf_copy_boundary_item()
220 src_nr_item = B_NR_ITEMS(src); in leaf_copy_boundary_item()
221 ih = item_head(src, src_nr_item - 1); in leaf_copy_boundary_item()
224 if (!dest_nr_item || !op_is_left_mergeable(&dih->ih_key, src->b_size)) in leaf_copy_boundary_item()
235 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST, in leaf_copy_boundary_item()
258 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item()
[all …]
/fs/ntfs/
Drunlist.c34 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()
48 runlist_element *srcbase, int src, int size) in ntfs_rl_mc() argument
51 memcpy(dstbase + dst, srcbase + src, size * sizeof(*dstbase)); in ntfs_rl_mc()
156 runlist_element *src) in ntfs_are_rl_mergeable() argument
159 BUG_ON(!src); 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/nfsd/
Dnfsfh.h167 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument
169 WARN_ON(src->fh_dentry || src->fh_locked); in fh_copy()
171 *dst = *src; 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/efs/
Dinode.c29 static inline void extent_copy(efs_extent *src, efs_extent *dst) { in extent_copy() argument
36 dst->cooked.ex_magic = (unsigned int) src->raw[0]; in extent_copy()
37 dst->cooked.ex_bn = ((unsigned int) src->raw[1] << 16) | in extent_copy()
38 ((unsigned int) src->raw[2] << 8) | in extent_copy()
39 ((unsigned int) src->raw[3] << 0); in extent_copy()
40 dst->cooked.ex_length = (unsigned int) src->raw[4]; in extent_copy()
41 dst->cooked.ex_offset = ((unsigned int) src->raw[5] << 16) | in extent_copy()
42 ((unsigned int) src->raw[6] << 8) | in extent_copy()
43 ((unsigned int) src->raw[7] << 0); in extent_copy()
/fs/sdcardfs/
Dsdcardfs.h283 static inline void pathcpy(struct path *dst, const struct path *src) in pathcpy() argument
285 dst->dentry = src->dentry; in pathcpy()
286 dst->mnt = src->mnt; in pathcpy()
620 static inline void sdcardfs_copy_and_fix_attrs(struct inode *dest, const struct inode *src) in sdcardfs_copy_and_fix_attrs() argument
622 dest->i_mode = (src->i_mode & S_IFMT) | S_IRWXU | S_IRWXG | in sdcardfs_copy_and_fix_attrs()
626 dest->i_rdev = src->i_rdev; in sdcardfs_copy_and_fix_attrs()
627 dest->i_atime = src->i_atime; in sdcardfs_copy_and_fix_attrs()
628 dest->i_mtime = src->i_mtime; in sdcardfs_copy_and_fix_attrs()
629 dest->i_ctime = src->i_ctime; in sdcardfs_copy_and_fix_attrs()
630 dest->i_blkbits = src->i_blkbits; in sdcardfs_copy_and_fix_attrs()
[all …]
Dinode.c532 void copy_attrs(struct inode *dest, const struct inode *src) in copy_attrs() argument
534 dest->i_mode = src->i_mode; in copy_attrs()
535 dest->i_uid = src->i_uid; in copy_attrs()
536 dest->i_gid = src->i_gid; in copy_attrs()
537 dest->i_rdev = src->i_rdev; in copy_attrs()
538 dest->i_atime = src->i_atime; in copy_attrs()
539 dest->i_mtime = src->i_mtime; in copy_attrs()
540 dest->i_ctime = src->i_ctime; in copy_attrs()
541 dest->i_blkbits = src->i_blkbits; in copy_attrs()
542 dest->i_flags = src->i_flags; in copy_attrs()
[all …]
/fs/fat/
Dfat.h243 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument
247 *dst++ = src[0] | (src[1] << 8); in fat16_towchar()
248 src += 2; in fat16_towchar()
251 memcpy(dst, src, len * 2); in fat16_towchar()
270 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument
274 dst[0] = *src & 0x00FF; in fatwchar_to16()
275 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16()
277 src++; in fatwchar_to16()
280 memcpy(dst, src, len * 2); in fatwchar_to16()
/fs/cifs/
Dsmb2inode.c118 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()
Dcifs_unicode.c357 cifs_strndup_from_utf16(const char *src, const int maxlen, in cifs_strndup_from_utf16() argument
364 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16()
369 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16()
372 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16()
623 cifs_strndup_to_utf16(const char *src, const int maxlen, int *utf16_len, in cifs_strndup_to_utf16() argument
629 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16()
636 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
/fs/btrfs/
Drcu-string.h24 static inline struct rcu_string *rcu_string_strdup(const char *src, gfp_t mask) in rcu_string_strdup() argument
26 size_t len = strlen(src) + 1; in rcu_string_strdup()
31 strncpy(ret->str, src, len); in rcu_string_strdup()
Dqgroup.c511 u64 src, u64 dst) in add_qgroup_relation_item() argument
521 key.objectid = src; in add_qgroup_relation_item()
535 u64 src, u64 dst) in del_qgroup_relation_item() argument
545 key.objectid = src; in del_qgroup_relation_item()
1116 struct ulist *tmp, u64 src, u64 dst, in quick_update_accounting() argument
1123 qgroup = find_qgroup_rb(fs_info, src); in quick_update_accounting()
1142 struct btrfs_fs_info *fs_info, u64 src, u64 dst) in btrfs_add_qgroup_relation() argument
1152 if (btrfs_qgroup_level(src) >= btrfs_qgroup_level(dst)) in btrfs_add_qgroup_relation()
1165 member = find_qgroup_rb(fs_info, src); in btrfs_add_qgroup_relation()
1180 ret = add_qgroup_relation_item(trans, quota_root, src, dst); in btrfs_add_qgroup_relation()
[all …]
/fs/xfs/libxfs/
Dxfs_attr_remote.c257 char *src = bp->b_addr; in xfs_attr_rmtval_copyout() local
271 if (!xfs_attr3_rmt_hdr_ok(src, ino, *offset, in xfs_attr_rmtval_copyout()
281 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout()
285 src += blksize; in xfs_attr_rmtval_copyout()
303 __uint8_t **src) in xfs_attr_rmtval_copyin() argument
320 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin()
340 *src += byte_cnt; in xfs_attr_rmtval_copyin()
423 __uint8_t *src = args->value; in xfs_attr_rmtval_set() local
538 &valuelen, &src); in xfs_attr_rmtval_set()
/fs/cramfs/
Duncompress.c30 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument
34 stream.next_in = src; in cramfs_uncompress_block()
54 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
/fs/nfs/
Dnfsroot.c157 static int __init root_nfs_copy(char *dest, const char *src, in root_nfs_copy() argument
160 if (strlcpy(dest, src, destlen) > destlen) in root_nfs_copy()
165 static int __init root_nfs_cat(char *dest, const char *src, in root_nfs_cat() argument
174 if (strlcat(dest, src, destlen) > destlen) in root_nfs_cat()
Dinternal.h295 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument
297 if (!dst || !src) in nfs4_label_copy()
300 if (src->len > NFS4_MAXLABELLEN) in nfs4_label_copy()
303 dst->lfs = src->lfs; in nfs4_label_copy()
304 dst->pi = src->pi; in nfs4_label_copy()
305 dst->len = src->len; in nfs4_label_copy()
306 memcpy(dst->label, src->label, src->len); in nfs4_label_copy()
331 nfs4_label_copy(struct nfs4_label *dst, struct nfs4_label *src) in nfs4_label_copy() argument
467 int nfs_scan_commit_list(struct list_head *src, struct list_head *dst,
/fs/ecryptfs/
Dcrypto.c50 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
71 tmp[0] = src[x * 2]; in ecryptfs_from_hex()
72 tmp[1] = src[x * 2 + 1]; in ecryptfs_from_hex()
89 char *src, int len) in ecryptfs_calculate_md5() argument
99 sg_init_one(&sg, (u8 *)src, len); in ecryptfs_calculate_md5()
176 char src[ECRYPTFS_MAX_IV_BYTES + 16]; in ecryptfs_derive_iv() local
186 memcpy(src, crypt_stat->root_iv, crypt_stat->iv_bytes); in ecryptfs_derive_iv()
187 memset((src + crypt_stat->iv_bytes), 0, 16); in ecryptfs_derive_iv()
[all …]
/fs/f2fs/
Dnode.h78 struct node_info *src) in copy_node_info() argument
80 dst->nid = src->nid; in copy_node_info()
81 dst->ino = src->ino; in copy_node_info()
82 dst->blk_addr = src->blk_addr; in copy_node_info()
83 dst->version = src->version; in copy_node_info()
284 static inline void copy_node_footer(struct page *dst, struct page *src) in copy_node_footer() argument
286 struct f2fs_node *src_rn = F2FS_NODE(src); in copy_node_footer()

12345