/fs/gfs2/ |
D | inode.c | 250 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local 254 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in() 256 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in() 257 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in() 262 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in() 263 be32_to_cpu(str->di_minor)); in gfs2_dinode_in() 267 ip->i_inode.i_uid = be32_to_cpu(str->di_uid); in gfs2_dinode_in() 268 ip->i_inode.i_gid = be32_to_cpu(str->di_gid); in gfs2_dinode_in() 274 ip->i_inode.i_nlink = be32_to_cpu(str->di_nlink); in gfs2_dinode_in() 275 ip->i_disksize = be64_to_cpu(str->di_size); in gfs2_dinode_in() [all …]
|
D | ops_dentry.c | 105 static int gfs2_dhash(struct dentry *dentry, struct qstr *str) in gfs2_dhash() argument 107 str->hash = gfs2_disk_hash(str->name, str->len); in gfs2_dhash()
|
D | super.c | 176 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local 178 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in() 179 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in() 180 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in() 185 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local 187 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out() 188 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out() 189 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
|
D | rgrp.c | 516 const struct gfs2_rindex *str = buf; in gfs2_rindex_in() local 518 rgd->rd_addr = be64_to_cpu(str->ri_addr); in gfs2_rindex_in() 519 rgd->rd_length = be32_to_cpu(str->ri_length); in gfs2_rindex_in() 520 rgd->rd_data0 = be64_to_cpu(str->ri_data0); in gfs2_rindex_in() 521 rgd->rd_data = be32_to_cpu(str->ri_data); in gfs2_rindex_in() 522 rgd->rd_bitbytes = be32_to_cpu(str->ri_bitbytes); in gfs2_rindex_in() 692 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_in() local 695 rg_flags = be32_to_cpu(str->rg_flags); in gfs2_rgrp_in() 700 rgd->rd_free = be32_to_cpu(str->rg_free); in gfs2_rgrp_in() 701 rgd->rd_dinodes = be32_to_cpu(str->rg_dinodes); in gfs2_rgrp_in() [all …]
|
D | recovery.c | 122 const struct gfs2_log_header *str = buf; in gfs2_log_header_in() local 124 if (str->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in gfs2_log_header_in() 125 str->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH)) in gfs2_log_header_in() 128 lh->lh_sequence = be64_to_cpu(str->lh_sequence); in gfs2_log_header_in() 129 lh->lh_flags = be32_to_cpu(str->lh_flags); in gfs2_log_header_in() 130 lh->lh_tail = be32_to_cpu(str->lh_tail); in gfs2_log_header_in() 131 lh->lh_blkno = be32_to_cpu(str->lh_blkno); in gfs2_log_header_in() 132 lh->lh_hash = be32_to_cpu(str->lh_hash); in gfs2_log_header_in()
|
D | quota.c | 580 const struct gfs2_quota *str = buf; in gfs2_quota_in() local 582 qu->qu_limit = be64_to_cpu(str->qu_limit); in gfs2_quota_in() 583 qu->qu_warn = be64_to_cpu(str->qu_warn); in gfs2_quota_in() 584 qu->qu_value = be64_to_cpu(str->qu_value); in gfs2_quota_in() 585 qu->qu_ll_next = be32_to_cpu(str->qu_ll_next); in gfs2_quota_in() 590 struct gfs2_quota *str = buf; in gfs2_quota_out() local 592 str->qu_limit = cpu_to_be64(qu->qu_limit); in gfs2_quota_out() 593 str->qu_warn = cpu_to_be64(qu->qu_warn); in gfs2_quota_out() 594 str->qu_value = cpu_to_be64(qu->qu_value); in gfs2_quota_out() 595 str->qu_ll_next = cpu_to_be32(qu->qu_ll_next); in gfs2_quota_out() [all …]
|
D | ops_fstype.c | 225 const struct gfs2_sb *str = buf; in gfs2_sb_in() local 227 sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic); in gfs2_sb_in() 228 sb->sb_type = be32_to_cpu(str->sb_header.mh_type); in gfs2_sb_in() 229 sb->sb_format = be32_to_cpu(str->sb_header.mh_format); in gfs2_sb_in() 230 sb->sb_fs_format = be32_to_cpu(str->sb_fs_format); in gfs2_sb_in() 231 sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format); in gfs2_sb_in() 232 sb->sb_bsize = be32_to_cpu(str->sb_bsize); in gfs2_sb_in() 233 sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift); in gfs2_sb_in() 234 sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr); in gfs2_sb_in() 235 sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino); in gfs2_sb_in() [all …]
|
D | ops_inode.c | 437 struct qstr str; in gfs2_mkdir() local 439 gfs2_str2qstr(&str, "."); in gfs2_mkdir() 441 gfs2_qstr2dirent(&str, GFS2_DIRENT_SIZE(str.len), dent); in gfs2_mkdir() 446 gfs2_str2qstr(&str, ".."); in gfs2_mkdir() 448 gfs2_qstr2dirent(&str, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); in gfs2_mkdir()
|
/fs/cifs/ |
D | smbdes.c | 304 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument 308 key[0] = str[0] >> 1; in str_to_key() 309 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key() 310 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key() 311 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key() 312 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key() 313 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key() 314 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key() 315 key[7] = str[6] & 0x7F; in str_to_key()
|
D | smbencrypt.c | 84 _my_wcslen(__u16 *str) in _my_wcslen() argument 87 while (*str++ != 0) in _my_wcslen()
|
/fs/hfsplus/ |
D | catalog.c | 42 u32 parent, struct qstr *str) in hfsplus_cat_build_key() argument 47 if (str) { in hfsplus_cat_build_key() 48 hfsplus_asc2uni(sb, &key->cat.name, str->name, str->len); in hfsplus_cat_build_key() 143 u32 parentid, struct qstr *str) in hfsplus_fill_cat_thread() argument 148 hfsplus_asc2uni(sb, &entry->thread.nodeName, str->name, str->len); in hfsplus_fill_cat_thread() 181 int hfsplus_create_cat(u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) in hfsplus_create_cat() argument 189 dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); in hfsplus_create_cat() 196 dir->i_ino, str); in hfsplus_create_cat() 207 hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat() 235 int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str) in hfsplus_delete_cat() argument [all …]
|
D | dir.c | 74 struct qstr str; in hfsplus_lookup() local 87 str.len = sprintf(name, "iNode%d", linkid); in hfsplus_lookup() 88 str.name = name; in hfsplus_lookup() 89 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_SB(sb).hidden_dir->i_ino, &str); in hfsplus_lookup() 266 struct qstr str; in hfsplus_link() local 278 str.name = name; in hfsplus_link() 279 str.len = sprintf(name, "iNode%d", id); in hfsplus_link() 282 HFSPLUS_SB(sb).hidden_dir, &str); in hfsplus_link() 317 struct qstr str; in hfsplus_unlink() local 328 str.name = name; in hfsplus_unlink() [all …]
|
D | unicode.c | 323 int hfsplus_hash_dentry(struct dentry *dentry, struct qstr *str) in hfsplus_hash_dentry() argument 336 astr = str->name; in hfsplus_hash_dentry() 337 len = str->len; in hfsplus_hash_dentry() 356 str->hash = end_name_hash(hash); in hfsplus_hash_dentry()
|
D | super.c | 291 struct qstr str; in hfsplus_fill_super() local 401 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1; in hfsplus_fill_super() 402 str.name = HFSP_HIDDENDIR_NAME; in hfsplus_fill_super() 404 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super() 436 &str, HFSPLUS_SB(sb).hidden_dir); in hfsplus_fill_super()
|
/fs/squashfs/ |
D | namei.c | 83 char *str; in get_dir_index_using_name() local 93 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name() 94 strncpy(str, name, len); in get_dir_index_using_name() 95 str[len] = '\0'; in get_dir_index_using_name() 113 if (strcmp(index->name, str) > 0) in get_dir_index_using_name()
|
/fs/ubifs/ |
D | key.h | 64 const signed char *str = (const signed char *)s; in key_r5_hash() local 66 while (*str) { in key_r5_hash() 67 a += *str << 4; in key_r5_hash() 68 a += *str >> 4; in key_r5_hash() 70 str++; in key_r5_hash() 81 static inline uint32_t key_test_hash(const char *str, int len) in key_test_hash() argument 86 memcpy(&a, str, len); in key_test_hash()
|
/fs/hfs/ |
D | catalog.c | 82 int hfs_cat_create(u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) in hfs_cat_create() argument 90 dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); in hfs_cat_create() 100 dir->i_ino, str); in hfs_cat_create() 111 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create() 208 int hfs_cat_delete(u32 cnid, struct inode *dir, struct qstr *str) in hfs_cat_delete() argument 215 dprint(DBG_CAT_MOD, "delete_cat: %s,%u\n", str ? str->name : NULL, cnid); in hfs_cat_delete() 219 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_delete()
|
/fs/nfs/ |
D | unlink.c | 48 char *str; in nfs_copy_dname() local 51 str = kmemdup(dentry->d_name.name, NAME_ALLOC_LEN(len), GFP_KERNEL); in nfs_copy_dname() 52 if (!str) in nfs_copy_dname() 55 data->args.name.name = str; in nfs_copy_dname()
|
D | callback_xdr.c | 64 static __be32 decode_string(struct xdr_stream *xdr, unsigned int *len, const char **str) in decode_string() argument 77 *str = (const char *)p; in decode_string() 79 *str = NULL; in decode_string() 207 static __be32 encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) in encode_string() argument 214 xdr_encode_opaque(p, str, len); in encode_string()
|
/fs/ |
D | dcache.c | 1375 const unsigned char *str = name->name; in __d_lookup() local 1416 if (memcmp(qstr->name, str, len)) in __d_lookup() 1882 static int prepend(char **buffer, int *buflen, const char *str, int namelen) in prepend() argument 1888 memcpy(*buffer, str, namelen); in prepend() 2245 static int __init set_dhash_entries(char *str) in set_dhash_entries() argument 2247 if (!str) in set_dhash_entries() 2249 dhash_entries = simple_strtoul(str, &str, 0); in set_dhash_entries()
|
D | exec.c | 408 char __user *str; in copy_strings() local 412 if (get_user(str, argv+argc) || in copy_strings() 413 !(len = strnlen_user(str, MAX_ARG_STRLEN))) { in copy_strings() 425 str += len; in copy_strings() 441 str -= bytes_to_copy; in copy_strings() 463 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
|
/fs/autofs4/ |
D | root.c | 367 const unsigned char *str = name->name; in autofs4_lookup_active() local 396 if (memcmp(qstr->name, str, len)) in autofs4_lookup_active() 419 const unsigned char *str = name->name; in autofs4_lookup_expiring() local 448 if (memcmp(qstr->name, str, len)) in autofs4_lookup_expiring()
|
D | dev-ioctl.c | 57 static int invalid_str(char *str, void *end) in invalid_str() argument 59 while ((void *) str <= end) in invalid_str() 60 if (!*str++) in invalid_str()
|
/fs/gfs2/locking/dlm/ |
D | lock.c | 374 struct gdlm_strname *str) in make_strname() argument 376 sprintf(str->name, "%8x%16llx", lockname->ln_type, in make_strname() 378 str->namelen = GDLM_STRNAME_BYTES; in make_strname()
|
/fs/ntfs/ |
D | ntfs.h | 98 char *str; member
|