/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 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() 249 static void copy_from_if_dqblk(struct qc_dqblk *dst, struct if_dqblk *src) in copy_from_if_dqblk() argument [all …]
|
/fs/ |
D | stack.c | 11 void fsstack_copy_inode_size(struct inode *dst, struct inode *src) in fsstack_copy_inode_size() argument 22 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/hfsplus/ |
D | bnode.c | 128 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() 136 src += src_node->page_offset; in hfs_bnode_copy() 138 src_page = src_node->page + (src >> PAGE_SHIFT); in hfs_bnode_copy() 139 src &= ~PAGE_MASK; in hfs_bnode_copy() 143 if (src == dst) { in hfs_bnode_copy() 144 l = min_t(int, len, PAGE_SIZE - src); in hfs_bnode_copy() 145 memcpy(kmap(*dst_page) + src, kmap(*src_page) + src, l); in hfs_bnode_copy() 161 src_ptr = kmap(*src_page) + src; in hfs_bnode_copy() 163 if (PAGE_SIZE - src < PAGE_SIZE - dst) { in hfs_bnode_copy() [all …]
|
/fs/erofs/ |
D | decompressor.c | 87 u8 *src, unsigned int pageofs_in) in generic_copy_inplace_data() argument 100 if (!src) in generic_copy_inplace_data() 101 src = kmap_atomic(*in); in generic_copy_inplace_data() 102 memcpy(tmpp, src + pageofs_in, count); in generic_copy_inplace_data() 103 kunmap_atomic(src); in generic_copy_inplace_data() 104 src = NULL; in generic_copy_inplace_data() 116 u8 *src; in z_erofs_lz4_decompress() local 123 src = kmap_atomic(*rq->in); in z_erofs_lz4_decompress() 132 while (!src[inputmargin & ~PAGE_MASK]) in z_erofs_lz4_decompress() 137 kunmap_atomic(src); in z_erofs_lz4_decompress() [all …]
|
/fs/xfs/ |
D | xfs_icache.h | 86 struct xfs_fs_eofblocks *src, in xfs_fs_eofblocks_from_user() argument 89 if (src->eof_version != XFS_EOFBLOCKS_VERSION) in xfs_fs_eofblocks_from_user() 92 if (src->eof_flags & ~XFS_EOF_FLAGS_VALID) in xfs_fs_eofblocks_from_user() 95 if (memchr_inv(&src->pad32, 0, sizeof(src->pad32)) || in xfs_fs_eofblocks_from_user() 96 memchr_inv(src->pad64, 0, sizeof(src->pad64))) in xfs_fs_eofblocks_from_user() 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() 104 if (src->eof_flags & XFS_EOF_FLAGS_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() [all …]
|
D | xfs_reflink.c | 864 struct xfs_inode *src, in xfs_reflink_set_inode_flag() argument 867 struct xfs_mount *mp = src->i_mount; in xfs_reflink_set_inode_flag() 871 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest)) in xfs_reflink_set_inode_flag() 879 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag() 880 xfs_ilock(src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 882 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 884 if (!xfs_is_reflink_inode(src)) { in xfs_reflink_set_inode_flag() 885 trace_xfs_reflink_set_inode_flag(src); in xfs_reflink_set_inode_flag() 886 xfs_trans_ijoin(tp, src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag() 887 src->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag() [all …]
|
D | xfs_fsmap.c | 32 struct xfs_fsmap *src) in xfs_fsmap_from_internal() argument 34 dest->fmr_device = src->fmr_device; in xfs_fsmap_from_internal() 35 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_from_internal() 36 dest->fmr_physical = BBTOB(src->fmr_physical); in xfs_fsmap_from_internal() 37 dest->fmr_owner = src->fmr_owner; in xfs_fsmap_from_internal() 38 dest->fmr_offset = BBTOB(src->fmr_offset); in xfs_fsmap_from_internal() 39 dest->fmr_length = BBTOB(src->fmr_length); in xfs_fsmap_from_internal() 49 struct fsmap *src) in xfs_fsmap_to_internal() argument 51 dest->fmr_device = src->fmr_device; in xfs_fsmap_to_internal() 52 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_to_internal() [all …]
|
/fs/udf/ |
D | udftime.c | 44 udf_disk_stamp_to_time(struct timespec64 *dest, struct timestamp src) in udf_disk_stamp_to_time() argument 46 u16 typeAndTimezone = le16_to_cpu(src.typeAndTimezone); in udf_disk_stamp_to_time() 47 u16 year = le16_to_cpu(src.year); in udf_disk_stamp_to_time() 60 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time() 61 src.second); in udf_disk_stamp_to_time() 63 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time() 64 src.hundredsOfMicroseconds * 100 + src.microseconds); in udf_disk_stamp_to_time()
|
/fs/hfs/ |
D | trans.c | 37 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/unicode/ |
D | Makefile | 18 -a $(srctree)/$(src)/DerivedAge.txt \ 19 -c $(srctree)/$(src)/DerivedCombiningClass.txt \ 20 -p $(srctree)/$(src)/DerivedCoreProperties.txt \ 21 -d $(srctree)/$(src)/UnicodeData.txt \ 22 -f $(srctree)/$(src)/CaseFolding.txt \ 23 -n $(srctree)/$(src)/NormalizationCorrections.txt \ 24 -t $(srctree)/$(src)/NormalizationTest.txt \ 32 $(obj)/utf8data.h: $(src)/utf8data.h_shipped FORCE
|
/fs/proc/ |
D | page.c | 34 unsigned long src = *ppos; in kpagecount_read() local 39 pfn = src / KPMSIZE; in kpagecount_read() 40 count = min_t(size_t, count, (max_pfn * KPMSIZE) - src); in kpagecount_read() 41 if (src & KPMMASK || count & KPMMASK) in kpagecount_read() 211 unsigned long src = *ppos; in kpageflags_read() local 215 pfn = src / KPMSIZE; in kpageflags_read() 216 count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); in kpageflags_read() 217 if (src & KPMMASK || count & KPMMASK) in kpageflags_read() 256 unsigned long src = *ppos; in kpagecgroup_read() local 261 pfn = src / KPMSIZE; in kpagecgroup_read() [all …]
|
/fs/reiserfs/ |
D | lbalance.c | 135 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/ |
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() 34 runlist_element *srcbase, int src, int size) in ntfs_rl_mc() argument 37 memcpy(dstbase + dst, srcbase + src, size * sizeof(*dstbase)); in ntfs_rl_mc() 142 runlist_element *src) in ntfs_are_rl_mergeable() argument 145 BUG_ON(!src); 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/nfsd/ |
D | nfsfh.h | 170 fh_copy(struct svc_fh *dst, struct svc_fh *src) in fh_copy() argument 172 WARN_ON(src->fh_dentry || src->fh_locked); in fh_copy() 174 *dst = *src; 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/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() 39 ((unsigned int) src->raw[2] << 8) | in extent_copy() 40 ((unsigned int) src->raw[3] << 0); 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() 43 ((unsigned int) src->raw[6] << 8) | in extent_copy() 44 ((unsigned int) src->raw[7] << 0); in extent_copy()
|
/fs/cifs/ |
D | cifs_unicode.c | 348 cifs_strndup_from_utf16(const char *src, const int maxlen, in cifs_strndup_from_utf16() argument 355 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16() 360 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16() 363 len = strnlen(src, maxlen); in cifs_strndup_from_utf16() 368 strlcpy(dst, src, len); in cifs_strndup_from_utf16() 616 cifs_strndup_to_utf16(const char *src, const int maxlen, int *utf16_len, in cifs_strndup_to_utf16() argument 622 len = cifs_local_to_utf16_bytes(src, maxlen, cp); in cifs_strndup_to_utf16() 629 cifsConvertToUTF16(dst, src, strlen(src), cp, remap); in cifs_strndup_to_utf16()
|
/fs/sdcardfs/ |
D | sdcardfs.h | 296 static inline void pathcpy(struct path *dst, const struct path *src) in pathcpy() argument 298 dst->dentry = src->dentry; in pathcpy() 299 dst->mnt = src->mnt; in pathcpy() 633 static inline void sdcardfs_copy_and_fix_attrs(struct inode *dest, const struct inode *src) in sdcardfs_copy_and_fix_attrs() argument 635 dest->i_mode = (src->i_mode & S_IFMT) | S_IRWXU | S_IRWXG | in sdcardfs_copy_and_fix_attrs() 639 dest->i_rdev = src->i_rdev; in sdcardfs_copy_and_fix_attrs() 640 dest->i_atime = src->i_atime; in sdcardfs_copy_and_fix_attrs() 641 dest->i_mtime = src->i_mtime; in sdcardfs_copy_and_fix_attrs() 642 dest->i_ctime = src->i_ctime; in sdcardfs_copy_and_fix_attrs() 643 dest->i_blkbits = src->i_blkbits; in sdcardfs_copy_and_fix_attrs() [all …]
|
D | inode.c | 540 void copy_attrs(struct inode *dest, const struct inode *src) in copy_attrs() argument 542 dest->i_mode = src->i_mode; in copy_attrs() 543 dest->i_uid = src->i_uid; in copy_attrs() 544 dest->i_gid = src->i_gid; in copy_attrs() 545 dest->i_rdev = src->i_rdev; in copy_attrs() 546 dest->i_atime = src->i_atime; in copy_attrs() 547 dest->i_mtime = src->i_mtime; in copy_attrs() 548 dest->i_ctime = src->i_ctime; in copy_attrs() 549 dest->i_blkbits = src->i_blkbits; in copy_attrs() 550 dest->i_flags = src->i_flags; in copy_attrs() [all …]
|
/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() 277 src += 2; 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() 306 src++; in fatwchar_to16() 309 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/fs/ext4/ |
D | fsmap.c | 17 struct ext4_fsmap *src) in ext4_fsmap_from_internal() argument 19 dest->fmr_device = src->fmr_device; in ext4_fsmap_from_internal() 20 dest->fmr_flags = src->fmr_flags; in ext4_fsmap_from_internal() 21 dest->fmr_physical = src->fmr_physical << sb->s_blocksize_bits; in ext4_fsmap_from_internal() 22 dest->fmr_owner = src->fmr_owner; in ext4_fsmap_from_internal() 24 dest->fmr_length = src->fmr_length << sb->s_blocksize_bits; in ext4_fsmap_from_internal() 32 struct fsmap *src) in ext4_fsmap_to_internal() argument 34 dest->fmr_device = src->fmr_device; in ext4_fsmap_to_internal() 35 dest->fmr_flags = src->fmr_flags; in ext4_fsmap_to_internal() 36 dest->fmr_physical = src->fmr_physical >> sb->s_blocksize_bits; in ext4_fsmap_to_internal() [all …]
|
/fs/btrfs/ |
D | rcu-string.h | 14 static inline struct rcu_string *rcu_string_strdup(const char *src, gfp_t mask) in rcu_string_strdup() argument 16 size_t len = strlen(src) + 1; in rcu_string_strdup() 21 strncpy(ret->str, src, len); in rcu_string_strdup()
|
/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 270 char *src = bp->b_addr; in xfs_attr_rmtval_copyout() local 284 if (xfs_attr3_rmt_hdr_ok(src, ino, *offset, in xfs_attr_rmtval_copyout() 294 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout() 298 src += blksize; in xfs_attr_rmtval_copyout() 316 uint8_t **src) in xfs_attr_rmtval_copyin() argument 333 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin() 353 *src += byte_cnt; in xfs_attr_rmtval_copyin() 439 uint8_t *src = args->value; in xfs_attr_rmtval_set() local 538 &valuelen, &src); in xfs_attr_rmtval_set()
|
/fs/cramfs/ |
D | uncompress.c | 31 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument 35 stream.next_in = src; in cramfs_uncompress_block() 55 pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
|
/fs/nfs/ |
D | nfsroot.c | 158 static int __init root_nfs_copy(char *dest, const char *src, in root_nfs_copy() argument 161 if (strlcpy(dest, src, destlen) > destlen) in root_nfs_copy() 166 static int __init root_nfs_cat(char *dest, const char *src, in root_nfs_cat() argument 175 if (strlcat(dest, src, destlen) > destlen) in root_nfs_cat()
|
/fs/ecryptfs/ |
D | crypto.c | 39 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 45 tmp[0] = src[x * 2]; in ecryptfs_from_hex() 46 tmp[1] = src[x * 2 + 1]; 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() 75 char *src, int len) in ecryptfs_calculate_md5() argument 81 rc = ecryptfs_hash_digest(tfm, src, len, dst); in ecryptfs_calculate_md5() 130 char src[ECRYPTFS_MAX_IV_BYTES + 16]; in ecryptfs_derive_iv() local 140 memcpy(src, crypt_stat->root_iv, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 141 memset((src + crypt_stat->iv_bytes), 0, 16); in ecryptfs_derive_iv() [all …]
|