/fs/efivarfs/ |
D | inode.c | 45 bool efivarfs_valid_name(const char *str, int len) in efivarfs_valid_name() argument 50 const char *s = str + len - EFI_VARIABLE_GUID_LEN; in efivarfs_valid_name() 82 static void efivarfs_hex_to_guid(const char *str, efi_guid_t *guid) in efivarfs_hex_to_guid() argument 84 guid->b[0] = hex_to_bin(str[6]) << 4 | hex_to_bin(str[7]); in efivarfs_hex_to_guid() 85 guid->b[1] = hex_to_bin(str[4]) << 4 | hex_to_bin(str[5]); in efivarfs_hex_to_guid() 86 guid->b[2] = hex_to_bin(str[2]) << 4 | hex_to_bin(str[3]); in efivarfs_hex_to_guid() 87 guid->b[3] = hex_to_bin(str[0]) << 4 | hex_to_bin(str[1]); in efivarfs_hex_to_guid() 88 guid->b[4] = hex_to_bin(str[11]) << 4 | hex_to_bin(str[12]); in efivarfs_hex_to_guid() 89 guid->b[5] = hex_to_bin(str[9]) << 4 | hex_to_bin(str[10]); in efivarfs_hex_to_guid() 90 guid->b[6] = hex_to_bin(str[16]) << 4 | hex_to_bin(str[17]); in efivarfs_hex_to_guid() [all …]
|
D | super.c | 50 unsigned int len, const char *str, in efivarfs_d_compare() argument 59 if (memcmp(str, name->name, guid)) in efivarfs_d_compare() 63 return strncasecmp(name->name + guid, str + guid, EFI_VARIABLE_GUID_LEN); in efivarfs_d_compare()
|
/fs/cifs/ |
D | smbencrypt.c | 51 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument 55 key[0] = str[0] >> 1; in str_to_key() 56 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key() 57 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key() 58 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key() 59 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key() 60 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key() 61 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key() 62 key[7] = str[6] & 0x7F; in str_to_key()
|
/fs/gfs2/ |
D | glops.c | 308 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local 312 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in() 314 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in() 315 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in() 320 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in() 321 be32_to_cpu(str->di_minor)); in gfs2_dinode_in() 325 i_uid_write(&ip->i_inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in() 326 i_gid_write(&ip->i_inode, be32_to_cpu(str->di_gid)); in gfs2_dinode_in() 327 gfs2_set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in() 328 i_size_write(&ip->i_inode, be64_to_cpu(str->di_size)); in gfs2_dinode_in() [all …]
|
D | super.c | 426 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local 428 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in() 429 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in() 430 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in() 435 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local 437 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out() 438 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out() 439 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out() 668 struct gfs2_dinode *str = buf; in gfs2_dinode_out() local 670 str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_dinode_out() [all …]
|
D | dentry.c | 113 struct qstr *str) in gfs2_dhash() argument 115 str->hash = gfs2_disk_hash(str->name, str->len); in gfs2_dhash()
|
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 | ops_fstype.c | 173 const struct gfs2_sb *str = buf; in gfs2_sb_in() local 175 sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic); in gfs2_sb_in() 176 sb->sb_type = be32_to_cpu(str->sb_header.mh_type); in gfs2_sb_in() 177 sb->sb_format = be32_to_cpu(str->sb_header.mh_format); in gfs2_sb_in() 178 sb->sb_fs_format = be32_to_cpu(str->sb_fs_format); in gfs2_sb_in() 179 sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format); in gfs2_sb_in() 180 sb->sb_bsize = be32_to_cpu(str->sb_bsize); in gfs2_sb_in() 181 sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift); in gfs2_sb_in() 182 sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr); in gfs2_sb_in() 183 sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino); in gfs2_sb_in() [all …]
|
D | rgrp.c | 972 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_in() local 975 rg_flags = be32_to_cpu(str->rg_flags); in gfs2_rgrp_in() 979 rgd->rd_free = be32_to_cpu(str->rg_free); in gfs2_rgrp_in() 980 rgd->rd_dinodes = be32_to_cpu(str->rg_dinodes); in gfs2_rgrp_in() 981 rgd->rd_igeneration = be64_to_cpu(str->rg_igeneration); in gfs2_rgrp_in() 986 struct gfs2_rgrp *str = buf; in gfs2_rgrp_out() local 988 str->rg_flags = cpu_to_be32(rgd->rd_flags & ~GFS2_RDF_MASK); in gfs2_rgrp_out() 989 str->rg_free = cpu_to_be32(rgd->rd_free); in gfs2_rgrp_out() 990 str->rg_dinodes = cpu_to_be32(rgd->rd_dinodes); in gfs2_rgrp_out() 991 str->__pad = cpu_to_be32(0); in gfs2_rgrp_out() [all …]
|
/fs/btrfs/ |
D | rcu-string.h | 21 char str[0]; member 31 strncpy(ret->str, src, len); in rcu_string_strdup() 35 static inline void rcu_string_free(struct rcu_string *str) in rcu_string_free() argument 37 if (str) in rcu_string_free() 38 kfree_rcu(str, rcu); in rcu_string_free() 55 __str->str; \
|
/fs/romfs/ |
D | storage.c | 71 const char *str, size_t size) in romfs_mtd_strcmp() argument 87 if (memcmp(buf, str, len) != 0) in romfs_mtd_strcmp() 92 str += len; in romfs_mtd_strcmp() 168 const char *str, size_t size) in romfs_blk_strcmp() argument 182 matched = (memcmp(bh->b_data + offset, str, segment) == 0); in romfs_blk_strcmp() 186 str += segment; in romfs_blk_strcmp() 272 const char *str, size_t size) in romfs_dev_strcmp() argument 286 return romfs_mtd_strcmp(sb, pos, str, size); in romfs_dev_strcmp() 290 return romfs_blk_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
|
/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() 49 str->name, str->len); in hfsplus_cat_build_key() 166 u32 parentid, struct qstr *str) in hfsplus_fill_cat_thread() argument 172 str->name, str->len); in hfsplus_fill_cat_thread() 207 struct qstr *str, struct inode *inode) in hfsplus_create_cat() argument 216 str->name, cnid, inode->i_nlink); in hfsplus_create_cat() 225 dir->i_ino, str); in hfsplus_create_cat() 236 hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat() 265 int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str) in hfsplus_delete_cat() argument [all …]
|
D | dir.c | 82 struct qstr str; in hfsplus_lookup() local 96 str.len = sprintf(name, "iNode%d", linkid); in hfsplus_lookup() 97 str.name = name; in hfsplus_lookup() 100 &str); in hfsplus_lookup() 274 struct qstr str; in hfsplus_link() local 289 str.name = name; in hfsplus_link() 290 str.len = sprintf(name, "iNode%d", id); in hfsplus_link() 293 sbi->hidden_dir, &str); in hfsplus_link() 330 struct qstr str; in hfsplus_unlink() local 342 str.name = name; in hfsplus_unlink() [all …]
|
D | unicode.c | 338 struct qstr *str) in hfsplus_hash_dentry() argument 351 astr = str->name; in hfsplus_hash_dentry() 352 len = str->len; in hfsplus_hash_dentry() 379 str->hash = end_name_hash(hash); in hfsplus_hash_dentry() 392 unsigned int len, const char *str, const struct qstr *name) in hfsplus_compare_dentry() argument 404 astr1 = str; in hfsplus_compare_dentry()
|
D | super.c | 376 struct qstr str; in hfsplus_fill_super() local 510 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1; in hfsplus_fill_super() 511 str.name = HFSP_HIDDENDIR_NAME; in hfsplus_fill_super() 515 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super() 550 &str, sbi->hidden_dir); in hfsplus_fill_super() 557 root, &str); in hfsplus_fill_super() 566 root, &str); in hfsplus_fill_super()
|
/fs/squashfs/ |
D | namei.c | 85 char *str; in get_dir_index_using_name() local 95 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name() 96 strncpy(str, name, len); in get_dir_index_using_name() 97 str[len] = '\0'; in get_dir_index_using_name() 117 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 91 str->name, cnid, inode->i_nlink); in hfs_cat_create() 103 dir->i_ino, str); in hfs_cat_create() 114 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create() 211 int hfs_cat_delete(u32 cnid, struct inode *dir, struct qstr *str) in hfs_cat_delete() argument 218 hfs_dbg(CAT_MOD, "delete_cat: %s,%u\n", str ? str->name : NULL, cnid); in hfs_cat_delete() 224 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_delete()
|
D | string.c | 98 unsigned int len, const char *str, const struct qstr *name) in hfs_compare_dentry() argument 109 n1 = str; in hfs_compare_dentry()
|
/fs/hpfs/ |
D | dentry.c | 41 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry() argument 46 hpfs_adjust_length(str, &al); in hpfs_compare_dentry() 56 if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) in hpfs_compare_dentry()
|
/fs/affs/ |
D | namei.c | 21 unsigned int len, const char *str, const struct qstr *name); 28 unsigned int len, const char *str, const struct qstr *name); 102 const char *str, const struct qstr *name, toupper_t toupper) in __affs_compare_dentry() argument 104 const u8 *aname = str; in __affs_compare_dentry() 136 unsigned int len, const char *str, const struct qstr *name) in affs_compare_dentry() argument 138 return __affs_compare_dentry(len, str, name, affs_toupper); in affs_compare_dentry() 143 unsigned int len, const char *str, const struct qstr *name) in affs_intl_compare_dentry() argument 145 return __affs_compare_dentry(len, str, name, affs_intl_toupper); in affs_intl_compare_dentry()
|
/fs/isofs/ |
D | inode.c | 38 unsigned int len, const char *str, const struct qstr *name); 42 unsigned int len, const char *str, const struct qstr *name); 52 unsigned int len, const char *str, const struct qstr *name); 56 unsigned int len, const char *str, const struct qstr *name); 241 unsigned int len, const char *str, in isofs_dentry_cmp_common() argument 252 while (blen && str[blen-1] == '.') in isofs_dentry_cmp_common() 257 if (strnicmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common() 260 if (strncmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common() 284 unsigned int len, const char *str, const struct qstr *name) in isofs_dentry_cmp() argument 286 return isofs_dentry_cmp_common(len, str, name, 0, 0); in isofs_dentry_cmp() [all …]
|
/fs/nfs/objlayout/ |
D | pnfs_osd_xdr_cli.c | 224 __read_u8_opaque(__be32 *p, struct nfs4_string *str) in __read_u8_opaque() argument 226 str->len = be32_to_cpup(p++); in __read_u8_opaque() 227 str->data = (char *)p; in __read_u8_opaque() 229 p += XDR_QUADLEN(str->len); in __read_u8_opaque()
|
/fs/ |
D | coredump.c | 104 static void cn_escape(char *str) in cn_escape() argument 106 for (; *str; str++) in cn_escape() 107 if (*str == '/') in cn_escape() 108 *str = '!'; in cn_escape()
|
/fs/sdcardfs/ |
D | dentry.c | 171 unsigned int len, const char *str, const struct qstr *name) in sdcardfs_cmp_ci() argument 176 if (str_n_case_eq(name->name, str, len)) in sdcardfs_cmp_ci()
|