/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 109 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time() 110 dest->tv_sec -= offset * 60; 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() 116 return dest; in udf_disk_stamp_to_time() 119 timestamp *udf_time_to_disk_stamp(timestamp *dest, struct timespec ts) in udf_time_to_disk_stamp() argument 127 if (!dest) in udf_time_to_disk_stamp() 130 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); in udf_time_to_disk_stamp() 135 dest->hour = rem / SECS_PER_HOUR; in udf_time_to_disk_stamp() [all …]
|
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() 37 memset(dest, 0, sizeof(struct ustr)); in udf_char_to_ustr() 38 memcpy(dest->u_name, src, strlen); in udf_char_to_ustr() 39 dest->u_cmpID = 0x08; in udf_char_to_ustr() 40 dest->u_len = strlen; in udf_char_to_ustr() 48 int udf_build_ustr(struct ustr *dest, dstring *ptr, int size) in udf_build_ustr() argument 52 if (!dest || !ptr || !size) in udf_build_ustr() 56 usesize = min_t(size_t, ptr[size - 1], sizeof(dest->u_name)); in udf_build_ustr() 58 dest->u_cmpID = ptr[0]; in udf_build_ustr() [all …]
|
D | udfdecl.h | 225 extern struct timespec *udf_disk_stamp_to_time(struct timespec *dest, 227 extern timestamp *udf_time_to_disk_stamp(timestamp *dest, struct timespec src);
|
/fs/ |
D | stack.c | 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() 29 dest->i_ctime = src->i_ctime; in fsstack_copy_attr_all() 30 dest->i_blkbits = src->i_blkbits; in fsstack_copy_attr_all() 31 dest->i_flags = src->i_flags; in fsstack_copy_attr_all() [all …]
|
D | pnode.c | 182 static struct vfsmount *get_source(struct vfsmount *dest, in get_source() argument 191 if (IS_MNT_SHARED(dest)) in get_source() 194 while (last_dest != dest->mnt_master) { in get_source() 207 if (dest != p_last_dest) { in get_source()
|
D | ioctl.c | 101 struct fiemap_extent *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent() local 125 dest += fieinfo->fi_extents_mapped; in fiemap_fill_next_extent() 126 if (copy_to_user(dest, &extent, sizeof(extent))) in fiemap_fill_next_extent()
|
/fs/reiserfs/ |
D | lbalance.c | 28 struct buffer_head *dest = dest_bi->bi_bh; in leaf_copy_dir_entries() local 59 LAST_TO_FIRST) ? ((B_NR_ITEMS(dest)) ? 0 : -1) : (B_NR_ITEMS(dest) in leaf_copy_dir_entries() 67 B_N_PKEY(dest, in leaf_copy_dir_entries() 99 LAST_TO_FIRST) ? 0 : B_NR_ITEMS(dest), in leaf_copy_dir_entries() 105 FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - in leaf_copy_dir_entries() 112 (last_first == FIRST_TO_LAST) ? (B_NR_ITEMS(dest) - 1) : 0; in leaf_copy_dir_entries() 116 FIRST_TO_LAST) ? I_ENTRY_COUNT(B_N_PITEM_HEAD(dest, in leaf_copy_dir_entries() 130 struct buffer_head *dest = dest_bi->bi_bh; in leaf_copy_boundary_item() local 135 dest_nr_item = B_NR_ITEMS(dest); in leaf_copy_boundary_item() 142 dih = B_N_PITEM_HEAD(dest, dest_nr_item - 1); in leaf_copy_boundary_item() [all …]
|
D | ibalance.c | 289 struct buffer_head *dest = dest_bi->bi_bh; in internal_copy_pointers_items() local 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() 305 RFALSE(cpy_num - 1 + B_NR_ITEMS(dest) > (int)MAX_NR_KEY(dest), in internal_copy_pointers_items() 307 cpy_num, B_NR_ITEMS(dest), MAX_NR_KEY(dest)); in internal_copy_pointers_items() 313 blkh = B_BLK_HEAD(dest); in internal_copy_pointers_items() 325 dc = B_N_CHILD(dest, dest_order); in internal_copy_pointers_items() 333 key = B_N_PDELIM_KEY(dest, dest_order); in internal_copy_pointers_items() 347 do_balance_mark_internal_dirty(dest_bi->tb, dest, 0); in internal_copy_pointers_items() 350 check_internal(dest); in internal_copy_pointers_items() [all …]
|
D | do_balan.c | 1799 void replace_key(struct tree_balance *tb, struct buffer_head *dest, int n_dest, in replace_key() argument 1803 RFALSE(dest == NULL || src == NULL, in replace_key() 1805 src, dest); in replace_key() 1806 RFALSE(!B_IS_KEYS_LEVEL(dest), in replace_key() 1808 dest); in replace_key() 1811 RFALSE(n_dest >= B_NR_ITEMS(dest) || n_src >= B_NR_ITEMS(src), in replace_key() 1813 n_src, B_NR_ITEMS(src), n_dest, B_NR_ITEMS(dest)); in replace_key() 1817 memcpy(B_N_PDELIM_KEY(dest, n_dest), B_N_PITEM_HEAD(src, n_src), in replace_key() 1820 memcpy(B_N_PDELIM_KEY(dest, n_dest), B_N_PDELIM_KEY(src, n_src), in replace_key() 1823 do_balance_mark_internal_dirty(tb, dest, 0); in replace_key()
|
/fs/ecryptfs/ |
D | keystore.c | 117 int ecryptfs_write_packet_length(char *dest, size_t size, in ecryptfs_write_packet_length() argument 123 dest[0] = size; in ecryptfs_write_packet_length() 126 dest[0] = (((size - 192) / 256) + 192); in ecryptfs_write_packet_length() 127 dest[1] = ((size - 192) % 256); in ecryptfs_write_packet_length() 503 ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes, in ecryptfs_write_tag_70_packet() argument 554 if (dest == NULL) { in ecryptfs_write_tag_70_packet() 575 dest[s->i++] = ECRYPTFS_TAG_70_PACKET_TYPE; in ecryptfs_write_tag_70_packet() 576 rc = ecryptfs_write_packet_length(&dest[s->i], in ecryptfs_write_tag_70_packet() 588 ecryptfs_from_hex(&dest[s->i], in ecryptfs_write_tag_70_packet() 603 dest[s->i++] = s->cipher_code; in ecryptfs_write_tag_70_packet() [all …]
|
D | ecryptfs_kernel.h | 734 int ecryptfs_write_packet_length(char *dest, size_t size, 753 ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes,
|
/fs/xfs/ |
D | xfs_acl.c | 88 xfs_acl_t *dest) in posix_acl_xattr_to_xfs() argument 94 if (!src || !dest) in posix_acl_xattr_to_xfs() 103 memset(dest, 0, sizeof(xfs_acl_t)); in posix_acl_xattr_to_xfs() 104 dest->acl_cnt = posix_acl_xattr_count(size); in posix_acl_xattr_to_xfs() 105 if (dest->acl_cnt < 0 || dest->acl_cnt > XFS_ACL_MAX_ENTRIES) in posix_acl_xattr_to_xfs() 112 if (!dest->acl_cnt) in posix_acl_xattr_to_xfs() 116 dest_entry = &dest->acl_entry[0]; in posix_acl_xattr_to_xfs() 118 for (n = 0; n < dest->acl_cnt; n++, src_entry++, dest_entry++) { in posix_acl_xattr_to_xfs() 138 if (xfs_acl_invalid(dest)) in posix_acl_xattr_to_xfs() 167 posix_acl_xattr_header *dest, in posix_acl_xfs_to_xattr() argument [all …]
|
D | xfs_log_recover.c | 2273 xfs_caddr_t dest; in xlog_recover_do_inode_trans() local 2492 dest = XFS_DFORK_APTR(dip); in xlog_recover_do_inode_trans() 2494 memcpy(dest, src, len); in xlog_recover_do_inode_trans() 2498 dest = XFS_DFORK_APTR(dip); in xlog_recover_do_inode_trans() 2500 len, (xfs_bmdr_block_t*)dest, in xlog_recover_do_inode_trans()
|
/fs/romfs/ |
D | inode.c | 242 romfs_copyfrom(struct inode *i, void *dest, unsigned long offset, unsigned long count) in romfs_copyfrom() argument 257 memcpy(dest, ((char *)bh->b_data) + (offset & ROMBMASK), maxsize); in romfs_copyfrom() 264 dest += maxsize; in romfs_copyfrom() 270 memcpy(dest, bh->b_data, maxsize); in romfs_copyfrom()
|
/fs/ocfs2/ |
D | extent_map.c | 169 static void ocfs2_copy_emi_fields(struct ocfs2_extent_map_item *dest, in ocfs2_copy_emi_fields() argument 172 dest->ei_cpos = src->ei_cpos; in ocfs2_copy_emi_fields() 173 dest->ei_phys = src->ei_phys; in ocfs2_copy_emi_fields() 174 dest->ei_clusters = src->ei_clusters; in ocfs2_copy_emi_fields() 175 dest->ei_flags = src->ei_flags; in ocfs2_copy_emi_fields()
|
D | alloc.c | 470 static void ocfs2_cp_path(struct ocfs2_path *dest, struct ocfs2_path *src) in ocfs2_cp_path() argument 474 BUG_ON(path_root_bh(dest) != path_root_bh(src)); in ocfs2_cp_path() 475 BUG_ON(path_root_el(dest) != path_root_el(src)); in ocfs2_cp_path() 476 BUG_ON(path_root_access(dest) != path_root_access(src)); in ocfs2_cp_path() 478 ocfs2_reinit_path(dest, 1); in ocfs2_cp_path() 481 dest->p_node[i].bh = src->p_node[i].bh; in ocfs2_cp_path() 482 dest->p_node[i].el = src->p_node[i].el; in ocfs2_cp_path() 484 if (dest->p_node[i].bh) in ocfs2_cp_path() 485 get_bh(dest->p_node[i].bh); in ocfs2_cp_path() 493 static void ocfs2_mv_path(struct ocfs2_path *dest, struct ocfs2_path *src) in ocfs2_mv_path() argument [all …]
|
D | xattr.c | 326 static void ocfs2_xattr_bucket_copy_data(struct ocfs2_xattr_bucket *dest, in ocfs2_xattr_bucket_copy_data() argument 332 BUG_ON(dest->bu_blocks != src->bu_blocks); in ocfs2_xattr_bucket_copy_data() 333 BUG_ON(dest->bu_inode != src->bu_inode); in ocfs2_xattr_bucket_copy_data() 336 memcpy(bucket_block(dest, i), bucket_block(src, i), in ocfs2_xattr_bucket_copy_data()
|
/fs/proc/ |
D | generic.c | 599 struct proc_dir_entry *parent, const char *dest) in proc_symlink() argument 607 ent->data = kmalloc((ent->size=strlen(dest))+1, GFP_KERNEL); in proc_symlink() 609 strcpy((char*)ent->data,dest); in proc_symlink()
|
/fs/ncpfs/ |
D | ncplib_kernel.c | 758 __le16 *dest = (__le16 *) ret; in ConvertToNWfromDWORD() local 759 dest[1] = cpu_to_le16(v0); in ConvertToNWfromDWORD() 760 dest[2] = cpu_to_le16(v1); in ConvertToNWfromDWORD() 761 dest[0] = cpu_to_le16(v0 + 1); in ConvertToNWfromDWORD()
|
/fs/partitions/ |
D | ldm.c | 103 static bool ldm_parse_guid (const u8 *src, u8 *dest) in ldm_parse_guid() argument 113 for (i = 0; i < size[j]; i++, src+=2, *dest++ = v) in ldm_parse_guid()
|
/fs/nfsd/ |
D | vfs.c | 1586 struct inode *dirp, *dest; in nfsd_link() local 1614 dest = dold->d_inode; in nfsd_link() 1625 write_inode_now(dest, 1); in nfsd_link()
|