/fs/ |
D | stack.c | 10 void fsstack_copy_inode_size(struct inode *dst, const struct inode *src) in fsstack_copy_inode_size() argument 12 i_size_write(dst, i_size_read((struct inode *)src)); in fsstack_copy_inode_size() 13 dst->i_blocks = src->i_blocks; in fsstack_copy_inode_size() 20 void fsstack_copy_attr_all(struct inode *dest, const struct inode *src, in fsstack_copy_attr_all() argument 23 dest->i_mode = src->i_mode; in fsstack_copy_attr_all() 24 dest->i_uid = src->i_uid; in fsstack_copy_attr_all() 25 dest->i_gid = src->i_gid; in fsstack_copy_attr_all() 26 dest->i_rdev = src->i_rdev; in fsstack_copy_attr_all() 27 dest->i_atime = src->i_atime; in fsstack_copy_attr_all() 28 dest->i_mtime = src->i_mtime; in fsstack_copy_attr_all() [all …]
|
D | splice.c | 589 char *src = buf->ops->map(pipe, buf, 1); in pipe_to_file() local 592 memcpy(dst + offset, src + buf->offset, this_len); in pipe_to_file() 595 buf->ops->unmap(pipe, buf, src); in pipe_to_file() 1271 char *src; in pipe_to_user() local 1283 src = buf->ops->map(pipe, buf, 1); in pipe_to_user() 1284 ret = __copy_to_user_inatomic(sd->u.userptr, src + buf->offset, in pipe_to_user() 1286 buf->ops->unmap(pipe, buf, src); in pipe_to_user() 1296 src = buf->ops->map(pipe, buf, 0); in pipe_to_user() 1299 if (copy_to_user(sd->u.userptr, src + buf->offset, sd->len)) in pipe_to_user() 1302 buf->ops->unmap(pipe, buf, src); in pipe_to_user()
|
/fs/hfsplus/ |
D | bnode.c | 126 struct hfs_bnode *src_node, int src, int len) in hfs_bnode_copy() argument 132 dprint(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_CACHE_SHIFT); in hfs_bnode_copy() 139 src &= ~PAGE_CACHE_MASK; in hfs_bnode_copy() 143 if (src == dst) { in hfs_bnode_copy() 144 l = min(len, (int)PAGE_CACHE_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_CACHE_SIZE - src < PAGE_CACHE_SIZE - dst) { in hfs_bnode_copy() [all …]
|
/fs/hfs/ |
D | trans.c | 37 const char *src; in hfs_mac2asc() local 41 src = in->name; in hfs_mac2asc() 50 size = nls_disk->char2uni(src, srclen, &ch); in hfs_mac2asc() 55 src += size; in hfs_mac2asc() 58 ch = *src++; in hfs_mac2asc() 77 *dst++ = (ch = *src++) == '/' ? ':' : ch; in hfs_mac2asc() 99 const char *src; in hfs_asc2mac() local 103 src = in->name; in hfs_asc2mac() 111 size = nls_io->char2uni(src, srclen, &ch); in hfs_asc2mac() 116 src += size; in hfs_asc2mac() [all …]
|
D | bnode.c | 97 struct hfs_bnode *src_node, int src, int len) in hfs_bnode_copy() argument 102 dprint(DBG_BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_copy() 106 src += src_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 dprint(DBG_BNODE_MOD, "movebytes: %u,%u,%u\n", dst, src, len); in hfs_bnode_move() 125 src += node->page_offset; in hfs_bnode_move() 129 memmove(ptr + dst, ptr + src, len); in hfs_bnode_move()
|
/fs/udf/ |
D | udftime.c | 88 struct timespec *udf_disk_stamp_to_time(struct timespec *dest, 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()
|
D | unicode.c | 32 static int udf_char_to_ustr(struct ustr *dest, const uint8_t *src, int strlen) in udf_char_to_ustr() argument 34 if ((!dest) || (!src) || (!strlen) || (strlen > UDF_NAME_LEN - 2)) in udf_char_to_ustr() 38 memcpy(dest->u_name, src, strlen); in udf_char_to_ustr()
|
/fs/proc/ |
D | page.c | 24 unsigned long src = *ppos; in kpagecount_read() local 29 pfn = src / KPMSIZE; in kpagecount_read() 30 count = min_t(size_t, count, (max_pfn * KPMSIZE) - src); in kpagecount_read() 31 if (src & KPMMASK || count & KPMMASK) in kpagecount_read() 90 unsigned long src = *ppos; in kpageflags_read() local 95 pfn = src / KPMSIZE; in kpageflags_read() 96 count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); in kpageflags_read() 97 if (src & KPMMASK || count & KPMMASK) in kpageflags_read()
|
/fs/reiserfs/ |
D | lbalance.c | 127 struct buffer_head *src, int last_first, in leaf_copy_boundary_item() argument 141 ih = B_N_PITEM_HEAD(src, 0); in leaf_copy_boundary_item() 144 || (!op_is_left_mergeable(&(ih->ih_key), src->b_size))) in leaf_copy_boundary_item() 155 leaf_copy_dir_entries(dest_bi, src, FIRST_TO_LAST, 0, 0, in leaf_copy_boundary_item() 182 bytes_or_entries, B_I_PITEM(src, ih), 0); in leaf_copy_boundary_item() 200 src_nr_item = B_NR_ITEMS(src); in leaf_copy_boundary_item() 201 ih = B_N_PITEM_HEAD(src, src_nr_item - 1); in leaf_copy_boundary_item() 204 if (!dest_nr_item || !op_is_left_mergeable(&(dih->ih_key), src->b_size)) in leaf_copy_boundary_item() 212 leaf_copy_dir_entries(dest_bi, src, LAST_TO_FIRST, in leaf_copy_boundary_item() 233 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item() [all …]
|
D | ibalance.c | 284 struct buffer_head *src, in internal_copy_pointers_items() argument 296 nr_src = B_NR_ITEMS(src); in internal_copy_pointers_items() 298 RFALSE(dest == NULL || src == NULL, in internal_copy_pointers_items() 299 "src (%p) or dest (%p) buffer is 0", src, dest); in internal_copy_pointers_items() 330 memcpy(dc, B_N_CHILD(src, src_order), DC_SIZE * cpy_num); in internal_copy_pointers_items() 339 memcpy(key, B_N_PDELIM_KEY(src, src_order), KEY_SIZE * (cpy_num - 1)); in internal_copy_pointers_items() 408 struct buffer_head *src, int src_position) in internal_insert_key() argument 415 RFALSE(dest == NULL || src == NULL, in internal_insert_key() 416 "source(%p) or dest(%p) buffer is 0", src, dest); in internal_insert_key() 421 src_position >= B_NR_ITEMS(src), in internal_insert_key() [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() 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/fat/ |
D | fat.h | 202 static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) in fat16_towchar() argument 206 *dst++ = src[0] | (src[1] << 8); in fat16_towchar() 207 src += 2; in fat16_towchar() 210 memcpy(dst, src, len * 2); in fat16_towchar() 214 static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len) in fatwchar_to16() argument 218 dst[0] = *src & 0x00FF; in fatwchar_to16() 219 dst[1] = (*src & 0xFF00) >> 8; in fatwchar_to16() 221 src++; in fatwchar_to16() 224 memcpy(dst, src, len * 2); in fatwchar_to16()
|
/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/btrfs/ |
D | ioctl.c | 729 struct inode *src; in btrfs_ioctl_clone() local 765 src = src_file->f_dentry->d_inode; in btrfs_ioctl_clone() 768 if (src == inode) in btrfs_ioctl_clone() 772 if (S_ISDIR(src->i_mode) || S_ISDIR(inode->i_mode)) in btrfs_ioctl_clone() 776 if (src->i_sb != inode->i_sb || BTRFS_I(src)->root != root) in btrfs_ioctl_clone() 791 if (inode < src) { in btrfs_ioctl_clone() 793 mutex_lock(&src->i_mutex); in btrfs_ioctl_clone() 795 mutex_lock(&src->i_mutex); in btrfs_ioctl_clone() 801 if (off >= src->i_size || off + len > src->i_size) in btrfs_ioctl_clone() 804 olen = len = src->i_size - off; in btrfs_ioctl_clone() [all …]
|
D | tree-log.c | 2213 struct extent_buffer *src; in log_dir_items() local 2293 src = path->nodes[0]; in log_dir_items() 2294 nritems = btrfs_header_nritems(src); in log_dir_items() 2296 btrfs_item_key_to_cpu(src, &min_key, i); in log_dir_items() 2301 ret = overwrite_item(trans, log, dst_path, src, i, in log_dir_items() 2431 struct extent_buffer *src, in copy_items() argument 2453 ins_sizes[i] = btrfs_item_size_nr(src, i + start_slot); in copy_items() 2454 btrfs_item_key_to_cpu(src, ins_keys + i, i + start_slot); in copy_items() 2464 src_offset = btrfs_item_ptr_offset(src, start_slot + i); in copy_items() 2466 copy_extent_buffer(dst_path->nodes[0], src, dst_offset, in copy_items() [all …]
|
/fs/xfs/ |
D | xfs_trans_priv.h | 118 xfs_lsn_t *src) in xfs_trans_ail_copy_lsn() argument 122 *dst = *src; in xfs_trans_ail_copy_lsn() 130 xfs_lsn_t *src) in xfs_trans_ail_copy_lsn() argument 133 *dst = *src; in xfs_trans_ail_copy_lsn()
|
D | xfs_acl.c | 86 posix_acl_xattr_header *src, in posix_acl_xattr_to_xfs() argument 94 if (!src || !dest) in posix_acl_xattr_to_xfs() 100 if (src->a_version != cpu_to_le32(POSIX_ACL_XATTR_VERSION)) in posix_acl_xattr_to_xfs() 115 src_entry = (posix_acl_xattr_entry *)((char *)src + sizeof(*src)); in posix_acl_xattr_to_xfs() 166 xfs_acl_t *src, in posix_acl_xfs_to_xattr() argument 171 size_t new_size = posix_acl_xattr_size(src->acl_cnt); in posix_acl_xfs_to_xattr() 179 xfs_sort(src->acl_entry, src->acl_cnt, sizeof(src->acl_entry[0]), in posix_acl_xfs_to_xattr() 184 src_entry = &src->acl_entry[0]; in posix_acl_xfs_to_xattr() 185 for (n = 0; n < src->acl_cnt; n++, dest_entry++, src_entry++) { in posix_acl_xfs_to_xattr()
|
D | Makefile | 19 EXTRA_CFLAGS += -I$(src) -I$(src)/linux-2.6 -funsigned-char
|
/fs/cramfs/ |
D | uncompress.c | 28 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) in cramfs_uncompress_block() argument 32 stream.next_in = src; in cramfs_uncompress_block() 52 printk("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); in cramfs_uncompress_block()
|
/fs/xfs/quota/ |
D | xfs_qm_syscalls.c | 880 xfs_disk_dquot_t *src, in xfs_qm_export_dquot() argument 885 dst->d_flags = xfs_qm_export_qtype_flags(src->d_flags); in xfs_qm_export_dquot() 886 dst->d_id = be32_to_cpu(src->d_id); in xfs_qm_export_dquot() 888 XFS_FSB_TO_BB(mp, be64_to_cpu(src->d_blk_hardlimit)); in xfs_qm_export_dquot() 890 XFS_FSB_TO_BB(mp, be64_to_cpu(src->d_blk_softlimit)); in xfs_qm_export_dquot() 891 dst->d_ino_hardlimit = be64_to_cpu(src->d_ino_hardlimit); in xfs_qm_export_dquot() 892 dst->d_ino_softlimit = be64_to_cpu(src->d_ino_softlimit); in xfs_qm_export_dquot() 893 dst->d_bcount = XFS_FSB_TO_BB(mp, be64_to_cpu(src->d_bcount)); in xfs_qm_export_dquot() 894 dst->d_icount = be64_to_cpu(src->d_icount); in xfs_qm_export_dquot() 895 dst->d_btimer = be32_to_cpu(src->d_btimer); in xfs_qm_export_dquot() [all …]
|
/fs/ecryptfs/ |
D | crypto.c | 57 void ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex() argument 62 sprintf(&dst[x * 2], "%.2x", (unsigned char)src[x]); in ecryptfs_to_hex() 72 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument 78 tmp[0] = src[x * 2]; in ecryptfs_from_hex() 79 tmp[1] = src[x * 2 + 1]; in ecryptfs_from_hex() 96 char *src, int len) in ecryptfs_calculate_md5() argument 106 sg_init_one(&sg, (u8 *)src, len); in ecryptfs_calculate_md5() 183 char src[ECRYPTFS_MAX_IV_BYTES + 16]; in ecryptfs_derive_iv() local 193 memcpy(src, crypt_stat->root_iv, crypt_stat->iv_bytes); in ecryptfs_derive_iv() 194 memset((src + crypt_stat->iv_bytes), 0, 16); in ecryptfs_derive_iv() [all …]
|
/fs/partitions/ |
D | ldm.c | 74 static int ldm_parse_hexbyte (const u8 *src) in ldm_parse_hexbyte() argument 80 if ((x = src[0] - '0') <= '9'-'0') h = x; in ldm_parse_hexbyte() 81 else if ((x = src[0] - 'a') <= 'f'-'a') h = x+10; in ldm_parse_hexbyte() 82 else if ((x = src[0] - 'A') <= 'F'-'A') h = x+10; in ldm_parse_hexbyte() 87 if ((x = src[1] - '0') <= '9'-'0') return h | x; in ldm_parse_hexbyte() 88 if ((x = src[1] - 'a') <= 'f'-'a') return h | (x+10); in ldm_parse_hexbyte() 89 if ((x = src[1] - 'A') <= 'F'-'A') return h | (x+10); in ldm_parse_hexbyte() 103 static bool ldm_parse_guid (const u8 *src, u8 *dest) in ldm_parse_guid() argument 108 if (src[8] != '-' || src[13] != '-' || in ldm_parse_guid() 109 src[18] != '-' || src[23] != '-') in ldm_parse_guid() [all …]
|
/fs/cifs/ |
D | smbencrypt.c | 100 _my_mbstowcs(__u16 *dst, const unsigned char *src, int len) in _my_mbstowcs() argument 106 val = *src; in _my_mbstowcs() 109 src++; in _my_mbstowcs()
|
/fs/hpfs/ |
D | hpfs_fn.h | 178 static inline void copy_de(struct hpfs_dirent *dst, struct hpfs_dirent *src) in copy_de() argument 182 if (!dst || !src) return; in copy_de() 185 memcpy((char *)dst + 2, (char *)src + 2, 28); in copy_de()
|
/fs/autofs4/ |
D | autofs_i.h | 173 static inline void autofs4_copy_atime(struct file *src, struct file *dst) in autofs4_copy_atime() argument 176 src->f_path.dentry->d_inode->i_atime; in autofs4_copy_atime()
|