Home
last modified time | relevance | path

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

1234

/fs/unicode/
Dutf8-selftest.c40 unsigned char str[10]; member
46 .str = "aBba",
54 .str = {0xc2, 0xbc, 0x00},
60 .str = {0xc3, 0xa4, 0x00},
66 .str = {0xC7, 0x89, 0x00},
71 .str = {0xCE, 0x87, 0x00},
78 .str = {0x41, 0xcc, 0x81, 0xcc, 0xa8, 0x0},
85 .str = {0xc3, 0xa4, 0xCC, 0xA8, 0x00},
94 unsigned char str[30]; member
100 .str = {0x41, 0x42, 0x62, 0x61, 0x00},
[all …]
Dutf8-core.c13 int utf8_validate(const struct unicode_map *um, const struct qstr *str) in utf8_validate() argument
17 if (utf8nlen(data, str->name, str->len) < 0) in utf8_validate()
105 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, in utf8_casefold() argument
112 if (utf8ncursor(&cur, data, str->name, str->len) < 0) in utf8_casefold()
129 struct qstr *str) in utf8_casefold_hash() argument
136 if (utf8ncursor(&cur, data, str->name, str->len) < 0) in utf8_casefold_hash()
144 str->hash = end_name_hash(hash); in utf8_casefold_hash()
149 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, in utf8_normalize() argument
156 if (utf8ncursor(&cur, data, str->name, str->len) < 0) in utf8_normalize()
Dutf8-norm.c102 utf8decode3(const char *str) in utf8decode3() argument
106 uc = *str++ & 0x0F; in utf8decode3()
108 uc |= *str++ & 0x3F; in utf8decode3()
110 uc |= *str++ & 0x3F; in utf8decode3()
119 utf8encode3(char *str, unsigned int val) in utf8encode3() argument
121 str[2] = (val & 0x3F) | 0x80; in utf8encode3()
123 str[1] = (val & 0x3F) | 0x80; in utf8encode3()
125 str[0] = val | 0xE0; in utf8encode3()
275 utf8hangul(const char *str, unsigned char *hangul) in utf8hangul() argument
284 si = utf8decode3(str) - SB; in utf8hangul()
Dmkutf8data.c262 static int utf8encode(char *str, unsigned int val) in utf8encode() argument
267 str[0] = val; in utf8encode()
270 str[1] = val & UTF8_V_MASK; in utf8encode()
271 str[1] |= UTF8_N_BITS; in utf8encode()
273 str[0] = val; in utf8encode()
274 str[0] |= UTF8_2_BITS; in utf8encode()
277 str[2] = val & UTF8_V_MASK; in utf8encode()
278 str[2] |= UTF8_N_BITS; in utf8encode()
280 str[1] = val & UTF8_V_MASK; in utf8encode()
281 str[1] |= UTF8_N_BITS; in utf8encode()
[all …]
/fs/cifs/
Dsmbencrypt.c42 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument
46 key[0] = str[0] >> 1; in str_to_key()
47 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key()
48 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key()
49 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key()
50 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key()
51 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key()
52 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key()
53 key[7] = str[6] & 0x7F; in str_to_key()
/fs/gfs2/
Dglops.c409 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
413 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in()
415 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in()
416 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
421 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in()
422 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
426 i_uid_write(&ip->i_inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in()
427 i_gid_write(&ip->i_inode, be32_to_cpu(str->di_gid)); in gfs2_dinode_in()
428 set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in()
429 i_size_write(&ip->i_inode, be64_to_cpu(str->di_size)); in gfs2_dinode_in()
[all …]
Dsuper.c172 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local
174 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
175 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
176 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in()
181 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local
183 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
184 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
185 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
417 struct gfs2_dinode *str = buf; in gfs2_dinode_out() local
419 str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_dinode_out()
[all …]
Ddentry.c80 static int gfs2_dhash(const struct dentry *dentry, struct qstr *str) in gfs2_dhash() argument
82 str->hash = gfs2_disk_hash(str->name, str->len); in gfs2_dhash()
Drgrp.c1044 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_in() local
1047 rg_flags = be32_to_cpu(str->rg_flags); in gfs2_rgrp_in()
1051 rgd->rd_free = be32_to_cpu(str->rg_free); in gfs2_rgrp_in()
1052 rgd->rd_dinodes = be32_to_cpu(str->rg_dinodes); in gfs2_rgrp_in()
1053 rgd->rd_igeneration = be64_to_cpu(str->rg_igeneration); in gfs2_rgrp_in()
1059 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_ondisk2lvb() local
1062 rgl->rl_flags = str->rg_flags; in gfs2_rgrp_ondisk2lvb()
1063 rgl->rl_free = str->rg_free; in gfs2_rgrp_ondisk2lvb()
1064 rgl->rl_dinodes = str->rg_dinodes; in gfs2_rgrp_ondisk2lvb()
1065 rgl->rl_igeneration = str->rg_igeneration; in gfs2_rgrp_ondisk2lvb()
[all …]
Dops_fstype.c207 const struct gfs2_sb *str = buf; in gfs2_sb_in() local
209 sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic); in gfs2_sb_in()
210 sb->sb_type = be32_to_cpu(str->sb_header.mh_type); in gfs2_sb_in()
211 sb->sb_format = be32_to_cpu(str->sb_header.mh_format); in gfs2_sb_in()
212 sb->sb_fs_format = be32_to_cpu(str->sb_fs_format); in gfs2_sb_in()
213 sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format); in gfs2_sb_in()
214 sb->sb_bsize = be32_to_cpu(str->sb_bsize); in gfs2_sb_in()
215 sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift); in gfs2_sb_in()
216 sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr); in gfs2_sb_in()
217 sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino); in gfs2_sb_in()
[all …]
/fs/btrfs/
Drcu-string.h11 char str[]; member
22 if (WARN_ON(strscpy(ret->str, src, len) < 0)) { in rcu_string_strdup()
29 static inline void rcu_string_free(struct rcu_string *str) in rcu_string_free() argument
31 if (str) in rcu_string_free()
32 kfree_rcu(str, rcu); in rcu_string_free()
49 __str->str; \
Dsysfs.c825 const char *str; in btrfs_exclusive_operation_show() local
829 str = "none\n"; in btrfs_exclusive_operation_show()
832 str = "balance\n"; in btrfs_exclusive_operation_show()
835 str = "device add\n"; in btrfs_exclusive_operation_show()
838 str = "device remove\n"; in btrfs_exclusive_operation_show()
841 str = "device replace\n"; in btrfs_exclusive_operation_show()
844 str = "resize\n"; in btrfs_exclusive_operation_show()
847 str = "swap activate\n"; in btrfs_exclusive_operation_show()
850 str = "UNKNOWN\n"; in btrfs_exclusive_operation_show()
853 return scnprintf(buf, PAGE_SIZE, "%s", str); in btrfs_exclusive_operation_show()
[all …]
/fs/romfs/
Dstorage.c67 const char *str, size_t size) in romfs_mtd_strcmp() argument
83 if (memcmp(buf, str, len) != 0) in romfs_mtd_strcmp()
88 str += len; in romfs_mtd_strcmp()
164 const char *str, size_t size) in romfs_blk_strcmp() argument
178 matched = (memcmp(bh->b_data + offset, str, segment) == 0); in romfs_blk_strcmp()
182 str += segment; in romfs_blk_strcmp()
266 const char *str, size_t size) in romfs_dev_strcmp() argument
280 return romfs_mtd_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
284 return romfs_blk_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
/fs/hfsplus/
Dcatalog.c44 hfsplus_btree_key *key, u32 parent, const struct qstr *str) in hfsplus_cat_build_key() argument
50 str->name, str->len); in hfsplus_cat_build_key()
178 u32 parentid, const struct qstr *str) in hfsplus_fill_cat_thread() argument
186 str->name, str->len); in hfsplus_fill_cat_thread()
254 const struct qstr *str, struct inode *inode) in hfsplus_create_cat() argument
263 str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
280 dir->i_ino, str); in hfsplus_create_cat()
296 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfsplus_create_cat()
330 int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str) in hfsplus_delete_cat() argument
339 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()
306 struct qstr str; in hfsplus_link() local
321 str.name = name; in hfsplus_link()
322 str.len = sprintf(name, "iNode%d", id); in hfsplus_link()
325 sbi->hidden_dir, &str); in hfsplus_link()
362 struct qstr str; in hfsplus_unlink() local
374 str.name = name; in hfsplus_unlink()
[all …]
Dunicode.c384 int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str) in hfsplus_hash_dentry() argument
398 astr = str->name; in hfsplus_hash_dentry()
399 len = str->len; in hfsplus_hash_dentry()
426 str->hash = end_name_hash(hash); in hfsplus_hash_dentry()
437 unsigned int len, const char *str, const struct qstr *name) in hfsplus_compare_dentry() argument
450 astr1 = str; in hfsplus_compare_dentry()
Dsuper.c381 struct qstr str; in hfsplus_fill_super() local
517 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1; in hfsplus_fill_super()
518 str.name = HFSP_HIDDENDIR_NAME; in hfsplus_fill_super()
522 err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super()
561 &str, sbi->hidden_dir); in hfsplus_fill_super()
568 root, &str); in hfsplus_fill_super()
577 root, &str); in hfsplus_fill_super()
/fs/squashfs/
Dnamei.c72 char *str; in get_dir_index_using_name() local
82 str = &index->name[SQUASHFS_NAME_LEN + 1]; in get_dir_index_using_name()
83 strncpy(str, name, len); in get_dir_index_using_name()
84 str[len] = '\0'; in get_dir_index_using_name()
104 if (strcmp(index->name, str) > 0) in get_dir_index_using_name()
/fs/hfs/
Dcatalog.c82 int hfs_cat_create(u32 cnid, struct inode *dir, const 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, const 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.c39 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry() argument
44 hpfs_adjust_length(str, &al); in hpfs_compare_dentry()
54 if (hpfs_compare_names(dentry->d_sb, str, al, name->name, bl, 0)) in hpfs_compare_dentry()
/fs/ubifs/
Dkey.h58 const signed char *str = (const signed char *)s; in key_r5_hash() local
61 a += *str << 4; in key_r5_hash()
62 a += *str >> 4; in key_r5_hash()
64 str++; in key_r5_hash()
75 static inline uint32_t key_test_hash(const char *str, int len) in key_test_hash() argument
80 memcpy(&a, str, len); in key_test_hash()
/fs/crypto/
Dfname.c64 static inline bool fscrypt_is_dot_dotdot(const struct qstr *str) in fscrypt_is_dot_dotdot() argument
66 if (str->len == 1 && str->name[0] == '.') in fscrypt_is_dot_dotdot()
69 if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') in fscrypt_is_dot_dotdot()
/fs/isofs/
Dinode.c40 unsigned int len, const char *str, const struct qstr *name);
46 unsigned int len, const char *str, const struct qstr *name);
48 unsigned int len, const char *str, const struct qstr *name);
203 unsigned int len, const char *str, in isofs_dentry_cmp_common() argument
214 while (blen && str[blen-1] == '.') in isofs_dentry_cmp_common()
219 if (strncasecmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common()
222 if (strncmp(name->name, str, alen) == 0) in isofs_dentry_cmp_common()
237 unsigned int len, const char *str, const struct qstr *name) in isofs_dentry_cmpi() argument
239 return isofs_dentry_cmp_common(len, str, name, 0, 1); in isofs_dentry_cmpi()
278 unsigned int len, const char *str, const struct qstr *name) in isofs_dentry_cmp_ms() argument
[all …]
/fs/affs/
Dnamei.c83 const char *str, const struct qstr *name, toupper_t toupper, in __affs_compare_dentry() argument
86 const u8 *aname = str; in __affs_compare_dentry()
117 unsigned int len, const char *str, const struct qstr *name) in affs_compare_dentry() argument
120 return __affs_compare_dentry(len, str, name, affs_toupper, in affs_compare_dentry()
126 unsigned int len, const char *str, const struct qstr *name) in affs_intl_compare_dentry() argument
128 return __affs_compare_dentry(len, str, name, affs_intl_toupper, in affs_intl_compare_dentry()

1234