Home
last modified time | relevance | path

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

1234

/fs/unicode/tests/
A Dutf8_kunit.c15 unsigned char str[10]; member
21 .str = "aBba",
35 .str = {0xc3, 0xa4, 0x00},
41 .str = {0xC7, 0x89, 0x00},
46 .str = {0xCE, 0x87, 0x00},
69 unsigned char str[30]; member
86 .str = {0xc3, 0x9f, 0x00},
92 .str = {0xC3, 0x85, 0x00},
102 .str = {0xea, 0xad, 0xb0, 0x00},
107 .str = {0xe1, 0x8f, 0xb8, 0x00},
[all …]
/fs/unicode/
A Dutf8-core.c12 int utf8_validate(const struct unicode_map *um, const struct qstr *str) in utf8_validate() argument
14 if (utf8nlen(um, UTF8_NFDI, str->name, str->len) < 0) in utf8_validate()
99 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, in utf8_casefold() argument
105 if (utf8ncursor(&cur, um, UTF8_NFDICF, str->name, str->len) < 0) in utf8_casefold()
122 struct qstr *str) in utf8_casefold_hash() argument
128 if (utf8ncursor(&cur, um, UTF8_NFDICF, str->name, str->len) < 0) in utf8_casefold_hash()
136 str->hash = end_name_hash(hash); in utf8_casefold_hash()
141 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, in utf8_normalize() argument
147 if (utf8ncursor(&cur, um, UTF8_NFDI, str->name, str->len) < 0) in utf8_normalize()
A Dutf8-norm.c85 utf8decode3(const char *str) in utf8decode3() argument
89 uc = *str++ & 0x0F; in utf8decode3()
91 uc |= *str++ & 0x3F; in utf8decode3()
93 uc |= *str++ & 0x3F; in utf8decode3()
102 utf8encode3(char *str, unsigned int val) in utf8encode3() argument
104 str[2] = (val & 0x3F) | 0x80; in utf8encode3()
106 str[1] = (val & 0x3F) | 0x80; in utf8encode3()
108 str[0] = val | 0xE0; in utf8encode3()
258 utf8hangul(const char *str, unsigned char *hangul) in utf8hangul() argument
267 si = utf8decode3(str) - SB; in utf8hangul()
A Dmkutf8data.c267 str[0] = val; in utf8encode()
271 str[1] |= UTF8_N_BITS; in utf8encode()
273 str[0] = val; in utf8encode()
274 str[0] |= UTF8_2_BITS; in utf8encode()
278 str[2] |= UTF8_N_BITS; in utf8encode()
281 str[1] |= UTF8_N_BITS; in utf8encode()
283 str[0] = val; in utf8encode()
284 str[0] |= UTF8_3_BITS; in utf8encode()
288 str[3] |= UTF8_N_BITS; in utf8encode()
291 str[2] |= UTF8_N_BITS; in utf8encode()
[all …]
/fs/gfs2/
A Dglops.c392 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
395 umode_t mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
415 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
420 i_uid_write(inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in()
425 atime.tv_sec = be64_to_cpu(str->di_atime); in gfs2_dinode_in()
431 be32_to_cpu(str->di_mtime_nsec)); in gfs2_dinode_in()
433 be32_to_cpu(str->di_ctime_nsec)); in gfs2_dinode_in()
435 ip->i_goal = be64_to_cpu(str->di_goal_meta); in gfs2_dinode_in()
439 ip->i_eattr = be64_to_cpu(str->di_eattr); in gfs2_dinode_in()
442 height = be16_to_cpu(str->di_height); in gfs2_dinode_in()
[all …]
A Dsuper.c159 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local
161 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
162 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
168 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local
170 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
171 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
394 struct gfs2_dinode *str = buf; in gfs2_dinode_out() local
401 str->di_mode = cpu_to_be32(inode->i_mode); in gfs2_dinode_out()
416 str->di_height = cpu_to_be16(ip->i_height); in gfs2_dinode_out()
420 str->di_depth = cpu_to_be16(ip->i_depth); in gfs2_dinode_out()
[all …]
A Ddentry.c75 static int gfs2_dhash(const struct dentry *dentry, struct qstr *str) in gfs2_dhash() argument
77 str->hash = gfs2_disk_hash(str->name, str->len); in gfs2_dhash()
A Drgrp.c1061 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_in() local
1076 const struct gfs2_rgrp *str = buf; in gfs2_rgrp_ondisk2lvb() local
1079 rgl->rl_flags = str->rg_flags; in gfs2_rgrp_ondisk2lvb()
1080 rgl->rl_free = str->rg_free; in gfs2_rgrp_ondisk2lvb()
1081 rgl->rl_dinodes = str->rg_dinodes; in gfs2_rgrp_ondisk2lvb()
1089 struct gfs2_rgrp *str = buf; in gfs2_rgrp_out() local
1096 str->rg_skip = 0; in gfs2_rgrp_out()
1103 str->rg_crc = 0; in gfs2_rgrp_out()
1105 str->rg_crc = cpu_to_be32(crc); in gfs2_rgrp_out()
1107 memset(&str->rg_reserved, 0, sizeof(str->rg_reserved)); in gfs2_rgrp_out()
[all …]
/fs/bcachefs/
A Dtrace.h36 TP_ARGS(c, str),
40 __string(str, str )
45 __assign_str(str);
59 __string(str, str )
66 __assign_str(str);
81 __string(str, str )
424 TP_ARGS(c, str)
429 TP_ARGS(c, str)
795 TP_ARGS(c, str)
800 TP_ARGS(c, str)
[all …]
A Dprintbuf.h237 static inline void prt_str(struct printbuf *out, const char *str) in prt_str() argument
239 prt_bytes(out, str, strlen(str)); in prt_str()
242 static inline void prt_str_indented(struct printbuf *out, const char *str) in prt_str_indented() argument
244 bch2_prt_bytes_indented(out, str, strlen(str)); in prt_str_indented()
A Ddirent.h31 const struct qstr *str, struct qstr *out_cf) in bch2_casefold() argument
39 const struct qstr *str, struct qstr *out_cf) in bch2_maybe_casefold() argument
42 *out_cf = *str; in bch2_maybe_casefold()
45 return bch2_casefold(trans, info, str, out_cf); in bch2_maybe_casefold()
/fs/romfs/
A 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/
A 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()
339 hfs_dbg(CAT_MOD, "delete_cat: %s,%u\n", str ? str->name : NULL, cnid); in hfsplus_delete_cat()
352 if (!str) { in hfsplus_delete_cat()
[all …]
A 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 …]
A Dunicode.c391 int hfsplus_hash_dentry(const struct dentry *dentry, struct qstr *str) in hfsplus_hash_dentry() argument
405 astr = str->name; in hfsplus_hash_dentry()
406 len = str->len; in hfsplus_hash_dentry()
433 str->hash = end_name_hash(hash); in hfsplus_hash_dentry()
444 unsigned int len, const char *str, const struct qstr *name) in hfsplus_compare_dentry() argument
457 astr1 = str; in hfsplus_compare_dentry()
A Dsuper.c384 struct qstr str; in hfsplus_fill_super() local
516 str.len = sizeof(HFSP_HIDDENDIR_NAME) - 1; in hfsplus_fill_super()
517 str.name = HFSP_HIDDENDIR_NAME; in hfsplus_fill_super()
521 err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str); in hfsplus_fill_super()
560 &str, sbi->hidden_dir); in hfsplus_fill_super()
567 root, &str); in hfsplus_fill_super()
576 root, &str); in hfsplus_fill_super()
/fs/hfs/
A 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()
A 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/
A 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/
A 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/smb/server/
A Dmisc.c30 int match_pattern(const char *str, size_t len, const char *pattern) in match_pattern() argument
32 const char *s = str; in match_pattern()
45 str = s; in match_pattern()
58 str++; in match_pattern()
59 s = str; in match_pattern()
/fs/squashfs/
A Dsuper.c72 static int squashfs_parse_param_threads_str(const char *str, struct squashfs_mount_opts *opts) in squashfs_parse_param_threads_str() argument
75 if (strcmp(str, "single") == 0) { in squashfs_parse_param_threads_str()
79 if (strcmp(str, "multi") == 0) { in squashfs_parse_param_threads_str()
83 if (strcmp(str, "percpu") == 0) { in squashfs_parse_param_threads_str()
91 static int squashfs_parse_param_threads_num(const char *str, struct squashfs_mount_opts *opts) in squashfs_parse_param_threads_num() argument
97 ret = kstrtoul(str, 0, &num); in squashfs_parse_param_threads_num()
118 static int squashfs_parse_param_threads(const char *str, struct squashfs_mount_opts *opts) in squashfs_parse_param_threads() argument
120 int ret = squashfs_parse_param_threads_str(str, opts); in squashfs_parse_param_threads()
124 return squashfs_parse_param_threads_num(str, opts); in squashfs_parse_param_threads()
/fs/ceph/
A Dcrypto.c221 char *str __free(kfree) = kmemdup_nul(name, *name_len, GFP_KERNEL); in parse_longname()
222 if (!str) in parse_longname()
225 str++; in parse_longname()
226 name_end = strrchr(str, '_'); in parse_longname()
228 doutc(cl, "failed to parse long snapshot name: %s\n", str); in parse_longname()
231 *name_len = (name_end - str); in parse_longname()
241 doutc(cl, "failed to parse inode number: %s\n", str); in parse_longname()
/fs/isofs/
A Dinode.c41 unsigned int len, const char *str, const struct qstr *name);
47 unsigned int len, const char *str, const struct qstr *name);
49 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()
280 return isofs_dentry_cmp_common(len, str, name, 1, 0); in isofs_dentry_cmp_ms()
[all …]
/fs/btrfs/
A Dsysfs.c1263 const char *str; in btrfs_exclusive_operation_show() local
1267 str = "none\n"; in btrfs_exclusive_operation_show()
1270 str = "balance\n"; in btrfs_exclusive_operation_show()
1285 str = "resize\n"; in btrfs_exclusive_operation_show()
1291 str = "UNKNOWN\n"; in btrfs_exclusive_operation_show()
1344 if (!str || strlen(str) == 0) in btrfs_read_policy_to_enum()
1347 strscpy(param, str); in btrfs_read_policy_to_enum()
1793 char *str; in btrfs_printable_features() local
1796 if (!str) in btrfs_printable_features()
1797 return str; in btrfs_printable_features()
[all …]

Completed in 73 milliseconds

1234