Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 73) sorted by relevance

123

/fs/efivarfs/
Dinode.c48 bool efivarfs_valid_name(const char *str, int len) in efivarfs_valid_name() argument
53 const char *s = str + len - EFI_VARIABLE_GUID_LEN; in efivarfs_valid_name()
85 static void efivarfs_hex_to_guid(const char *str, efi_guid_t *guid) in efivarfs_hex_to_guid() argument
87 guid->b[0] = hex_to_bin(str[6]) << 4 | hex_to_bin(str[7]); in efivarfs_hex_to_guid()
88 guid->b[1] = hex_to_bin(str[4]) << 4 | hex_to_bin(str[5]); in efivarfs_hex_to_guid()
89 guid->b[2] = hex_to_bin(str[2]) << 4 | hex_to_bin(str[3]); in efivarfs_hex_to_guid()
90 guid->b[3] = hex_to_bin(str[0]) << 4 | hex_to_bin(str[1]); in efivarfs_hex_to_guid()
91 guid->b[4] = hex_to_bin(str[11]) << 4 | hex_to_bin(str[12]); in efivarfs_hex_to_guid()
92 guid->b[5] = hex_to_bin(str[9]) << 4 | hex_to_bin(str[10]); in efivarfs_hex_to_guid()
93 guid->b[6] = hex_to_bin(str[16]) << 4 | hex_to_bin(str[17]); in efivarfs_hex_to_guid()
[all …]
Dsuper.c50 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/
Dsmbencrypt.c52 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument
56 key[0] = str[0] >> 1; in str_to_key()
57 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key()
58 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key()
59 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key()
60 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key()
61 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key()
62 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key()
63 key[7] = str[6] & 0x7F; in str_to_key()
/fs/gfs2/
Dglops.c329 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
333 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in()
335 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in()
336 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
341 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in()
342 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
346 i_uid_write(&ip->i_inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in()
347 i_gid_write(&ip->i_inode, be32_to_cpu(str->di_gid)); in gfs2_dinode_in()
348 gfs2_set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in()
349 i_size_write(&ip->i_inode, be64_to_cpu(str->di_size)); in gfs2_dinode_in()
[all …]
Dsuper.c453 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local
455 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
456 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
457 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in()
462 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local
464 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
465 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
466 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
698 struct gfs2_dinode *str = buf; in gfs2_dinode_out() local
700 str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_dinode_out()
[all …]
Ddentry.c106 static int gfs2_dhash(const struct dentry *dentry, struct qstr *str) in gfs2_dhash() argument
108 str->hash = gfs2_disk_hash(str->name, str->len); in gfs2_dhash()
Drecovery.c122 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()
Dops_fstype.c193 const struct gfs2_sb *str = buf; in gfs2_sb_in() local
195 sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic); in gfs2_sb_in()
196 sb->sb_type = be32_to_cpu(str->sb_header.mh_type); in gfs2_sb_in()
197 sb->sb_format = be32_to_cpu(str->sb_header.mh_format); in gfs2_sb_in()
198 sb->sb_fs_format = be32_to_cpu(str->sb_fs_format); in gfs2_sb_in()
199 sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format); in gfs2_sb_in()
200 sb->sb_bsize = be32_to_cpu(str->sb_bsize); in gfs2_sb_in()
201 sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift); in gfs2_sb_in()
202 sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr); in gfs2_sb_in()
203 sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino); in gfs2_sb_in()
[all …]
Drgrp.c1074 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_in() local
1077 rg_flags = be32_to_cpu(str->rg_flags); in gfs2_rgrp_in()
1081 rgd->rd_free = be32_to_cpu(str->rg_free); in gfs2_rgrp_in()
1082 rgd->rd_dinodes = be32_to_cpu(str->rg_dinodes); in gfs2_rgrp_in()
1083 rgd->rd_igeneration = be64_to_cpu(str->rg_igeneration); in gfs2_rgrp_in()
1088 struct gfs2_rgrp *str = buf; in gfs2_rgrp_out() local
1090 str->rg_flags = cpu_to_be32(rgd->rd_flags & ~GFS2_RDF_MASK); in gfs2_rgrp_out()
1091 str->rg_free = cpu_to_be32(rgd->rd_free); in gfs2_rgrp_out()
1092 str->rg_dinodes = cpu_to_be32(rgd->rd_dinodes); in gfs2_rgrp_out()
1093 str->__pad = cpu_to_be32(0); in gfs2_rgrp_out()
[all …]
/fs/btrfs/
Drcu-string.h21 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/
Dstorage.c71 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()
270 const char *str, size_t size) in romfs_dev_strcmp() argument
284 return romfs_mtd_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
288 return romfs_blk_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
/fs/xfs/libxfs/
Dxfs_dquot_buf.c57 const char *str) in xfs_dqcheck() argument
81 str, id, be16_to_cpu(ddq->d_magic), XFS_DQUOT_MAGIC); in xfs_dqcheck()
88 str, id, ddq->d_version, XFS_DQUOT_VERSION); in xfs_dqcheck()
98 str, id, ddq->d_flags); in xfs_dqcheck()
107 str, ddq, id, be32_to_cpu(ddq->d_id)); in xfs_dqcheck()
119 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
130 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
141 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
/fs/hfsplus/
Dcatalog.c43 hfsplus_btree_key *key, u32 parent, struct qstr *str) in hfsplus_cat_build_key() argument
49 str->name, str->len); in hfsplus_cat_build_key()
177 u32 parentid, struct qstr *str) in hfsplus_fill_cat_thread() argument
185 str->name, str->len); in hfsplus_fill_cat_thread()
253 struct qstr *str, struct inode *inode) in hfsplus_create_cat() argument
262 str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
279 dir->i_ino, str); in hfsplus_create_cat()
295 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat()
329 int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str) in hfsplus_delete_cat() argument
338 hfs_dbg(CAT_MOD, "delete_cat: %s,%u\n", str ? str->name : NULL, cnid); in hfsplus_delete_cat()
[all …]
Ddir.c87 struct qstr str; in hfsplus_lookup() local
101 str.len = sprintf(name, "iNode%d", linkid); in hfsplus_lookup()
102 str.name = name; in hfsplus_lookup()
105 &str); in hfsplus_lookup()
301 struct qstr str; in hfsplus_link() local
316 str.name = name; in hfsplus_link()
317 str.len = sprintf(name, "iNode%d", id); in hfsplus_link()
320 sbi->hidden_dir, &str); in hfsplus_link()
357 struct qstr str; in hfsplus_unlink() local
369 str.name = name; in hfsplus_unlink()
[all …]
Dunicode.c337 int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str) in hfsplus_hash_dentry() argument
350 astr = str->name; in hfsplus_hash_dentry()
351 len = str->len; in hfsplus_hash_dentry()
378 str->hash = end_name_hash(hash); in hfsplus_hash_dentry()
389 unsigned int len, const char *str, const struct qstr *name) in hfsplus_compare_dentry() argument
401 astr1 = str; in hfsplus_compare_dentry()
Dsuper.c378 struct qstr str; in hfsplus_fill_super() local
514 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1; in hfsplus_fill_super()
515 str.name = HFSP_HIDDENDIR_NAME; in hfsplus_fill_super()
519 err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super()
558 &str, sbi->hidden_dir); in hfsplus_fill_super()
565 root, &str); in hfsplus_fill_super()
574 root, &str); in hfsplus_fill_super()
/fs/squashfs/
Dnamei.c85 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/
Dkey.h64 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/affs/
Dnamei.c18 unsigned int len, const char *str, const struct qstr *name);
22 unsigned int len, const char *str, const struct qstr *name);
101 const char *str, const struct qstr *name, toupper_t toupper, in __affs_compare_dentry() argument
104 const u8 *aname = str; in __affs_compare_dentry()
135 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()
144 unsigned int len, const char *str, const struct qstr *name) in affs_intl_compare_dentry() argument
146 return __affs_compare_dentry(len, str, name, affs_intl_toupper, in affs_intl_compare_dentry()
/fs/hfs/
Dcatalog.c82 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()
111 dir->i_ino, str); in hfs_cat_create()
122 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create()
221 int hfs_cat_delete(u32 cnid, struct inode *dir, struct qstr *str) in hfs_cat_delete() argument
228 hfs_dbg(CAT_MOD, "delete_cat: %s,%u\n", str ? str->name : NULL, cnid); in hfs_cat_delete()
234 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_delete()
Dstring.c96 unsigned int len, const char *str, const struct qstr *name) in hfs_compare_dentry() argument
107 n1 = str; in hfs_compare_dentry()
/fs/hpfs/
Ddentry.c38 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry() argument
43 hpfs_adjust_length(str, &al); in hpfs_compare_dentry()
53 if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) in hpfs_compare_dentry()
/fs/crypto/
Dfname.c18 static inline bool fscrypt_is_dot_dotdot(const struct qstr *str) in fscrypt_is_dot_dotdot() argument
20 if (str->len == 1 && str->name[0] == '.') in fscrypt_is_dot_dotdot()
23 if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') in fscrypt_is_dot_dotdot()
/fs/isofs/
Dinode.c34 unsigned int len, const char *str, const struct qstr *name);
41 unsigned int len, const char *str, const struct qstr *name);
44 unsigned int len, const char *str, const struct qstr *name);
205 unsigned int len, const char *str, in isofs_dentry_cmp_common() argument
216 while (blen && str[blen-1] == '.') in isofs_dentry_cmp_common()
221 if (strncasecmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common()
224 if (strncmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common()
239 unsigned int len, const char *str, const struct qstr *name) in isofs_dentry_cmpi() argument
241 return isofs_dentry_cmp_common(len, str, name, 0, 1); in isofs_dentry_cmpi()
280 unsigned int len, const char *str, const struct qstr *name) in isofs_dentry_cmp_ms() argument
[all …]
/fs/nfs/objlayout/
Dpnfs_osd_xdr_cli.c224 __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()

123