Home
last modified time | relevance | path

Searched refs:upcase (Results 1 - 25 of 29) sorted by relevance

12

/kernel/linux/linux-6.6/fs/ntfs3/
H A Dupcase.c13 static inline u16 upcase_unicode_char(const u16 *upcase, u16 chr) in upcase_unicode_char() argument
21 return upcase[chr]; in upcase_unicode_char()
37 const u16 *upcase, bool bothcase) in ntfs_cmp_names()
43 if (!bothcase && upcase) in ntfs_cmp_names()
49 if (bothcase && upcase) in ntfs_cmp_names()
59 diff2 = upcase_unicode_char(upcase, le16_to_cpu(*s1)) - in ntfs_cmp_names()
60 upcase_unicode_char(upcase, le16_to_cpu(*s2)); in ntfs_cmp_names()
70 const u16 *upcase, bool bothcase) in ntfs_cmp_names_cpu()
80 if (!bothcase && upcase) in ntfs_cmp_names_cpu()
86 if (bothcase && upcase) in ntfs_cmp_names_cpu()
36 ntfs_cmp_names(const __le16 *s1, size_t l1, const __le16 *s2, size_t l2, const u16 *upcase, bool bothcase) ntfs_cmp_names() argument
69 ntfs_cmp_names_cpu(const struct cpu_str *uni1, const struct le_str *uni2, const u16 *upcase, bool bothcase) ntfs_cmp_names_cpu() argument
107 ntfs_names_hash(const u16 *name, size_t len, const u16 *upcase, unsigned long hash) ntfs_names_hash() argument
[all...]
H A Drecord.c16 const u16 *upcase) in compare_attr()
26 upcase, true); in compare_attr()
471 const u16 *upcase = sbi->upcase; in mi_insert_attr() local
483 int diff = compare_attr(attr, type, name, name_len, upcase); in mi_insert_attr()
14 compare_attr(const struct ATTRIB *left, enum ATTR_TYPE type, const __le16 *name, u8 name_len, const u16 *upcase) compare_attr() argument
H A DMakefile29 upcase.o \
H A Dattrlist.c213 name_len, ni->mi.sbi->upcase, in al_find_ex()
265 name_len, ni->mi.sbi->upcase, in al_find_le_to_insert()
411 ni->mi.sbi->upcase, true)) in al_delete_le()
H A Dsuper.c158 * On-disk ntfs's upcase table is created by ntfs formatter.
159 * 'upcase' table is 128K bytes of memory.
161 * Several ntfs volumes likely use the same 'upcase' table.
162 * It is good idea to share in-memory 'upcase' table between different volumes.
163 * Unfortunately winxp/vista/win7 use different upcase tables.
627 kvfree(ntfs_put_shared(sbi->upcase)); in ntfs3_free_sbi()
1494 u16 *dst = Add2Ptr(sbi->upcase, idx << PAGE_SHIFT); in ntfs_fill_super()
1514 shared = ntfs_set_shared(sbi->upcase, 0x10000 * sizeof(short)); in ntfs_fill_super()
1515 if (shared && sbi->upcase != shared) { in ntfs_fill_super()
1516 kvfree(sbi->upcase); in ntfs_fill_super()
[all...]
H A Dnamei.c502 * Try slow way with current upcase table in ntfs_d_hash()
520 hash = ntfs_names_hash(uni->name, uni->len, sbi->upcase, in ntfs_d_hash()
562 * Try slow way with current upcase table in ntfs_d_compare()
592 ret = !ntfs_cmp_names_cpu(uni1, uni2, sbi->upcase, false) ? 0 : 1; in ntfs_d_compare()
H A Dfsntfs.c2611 const u16 *upcase = sbi->upcase; in is_reserved_name() local
2616 if (!ntfs_cmp_names(name, 3, CON_NAME, 3, upcase, false) || in is_reserved_name()
2617 !ntfs_cmp_names(name, 3, NUL_NAME, 3, upcase, false) || in is_reserved_name()
2618 !ntfs_cmp_names(name, 3, AUX_NAME, 3, upcase, false) || in is_reserved_name()
2619 !ntfs_cmp_names(name, 3, PRN_NAME, 3, upcase, false)) in is_reserved_name()
2627 if (!ntfs_cmp_names(name, 3, COM_NAME, 3, upcase, in is_reserved_name()
2629 !ntfs_cmp_names(name, 3, LPT_NAME, 3, upcase, in is_reserved_name()
/kernel/linux/linux-5.10/fs/ntfs/
H A Dunistr.c47 * @upcase: upcase table (only if @ic == IGNORE_CASE)
48 * @upcase_size: length in Unicode characters of @upcase (if present)
52 * the @upcase table is used to performa a case insensitive comparison.
56 const ntfschar *upcase, const u32 upcase_size) in ntfs_are_names_equal()
62 return !ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size); in ntfs_are_names_equal()
71 * @upcase: upcase table (ignored if @ic is CASE_SENSITIVE)
72 * @upcase_len: upcase table size (ignored if @ic is CASE_SENSITIVE)
86 const ntfschar *upcase, cons in ntfs_collate_names()
54 ntfs_are_names_equal(const ntfschar *s1, size_t s1_len, const ntfschar *s2, size_t s2_len, const IGNORE_CASE_BOOL ic, const ntfschar *upcase, const u32 upcase_size) ntfs_are_names_equal() argument
83 ntfs_collate_names(const ntfschar *name1, const u32 name1_len, const ntfschar *name2, const u32 name2_len, const int err_val, const IGNORE_CASE_BOOL ic, const ntfschar *upcase, const u32 upcase_len) ntfs_collate_names() argument
171 ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n, const ntfschar *upcase, const u32 upcase_size) ntfs_ucsncasecmp() argument
192 ntfs_upcase_name(ntfschar *name, u32 name_len, const ntfschar *upcase, const u32 upcase_len) ntfs_upcase_name() argument
203 ntfs_file_upcase_value(FILE_NAME_ATTR *file_name_attr, const ntfschar *upcase, const u32 upcase_len) ntfs_file_upcase_value() argument
210 ntfs_file_compare_values(FILE_NAME_ATTR *file_name_attr1, FILE_NAME_ATTR *file_name_attr2, const int err_val, const IGNORE_CASE_BOOL ic, const ntfschar *upcase, const u32 upcase_len) ntfs_file_compare_values() argument
[all...]
H A Dntfs.h97 const ntfschar *upcase, const u32 upcase_size);
101 const ntfschar *upcase, const u32 upcase_len);
104 const ntfschar *upcase, const u32 upcase_size);
106 const ntfschar *upcase, const u32 upcase_len);
108 const ntfschar *upcase, const u32 upcase_len);
112 const ntfschar *upcase, const u32 upcase_len);
118 /* From fs/ntfs/upcase.c */
H A Ddir.c146 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
196 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
237 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
256 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
406 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
456 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
499 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
518 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
708 vol->upcase, vol->upcase_len)) {
722 IGNORE_CASE, vol->upcase, vo
[all...]
H A Dsuper.c38 /* A global default upcase table and a corresponding reference count. */
1638 * load_and_init_upcase - load the upcase table for an ntfs volume
1639 * @vol: ntfs super block describing device whose upcase to load
1654 /* Read upcase table and setup vol->upcase and vol->upcase_len. */ in load_and_init_upcase()
1662 * The upcase size must not be above 64k Unicode characters, must not in load_and_init_upcase()
1669 vol->upcase = (ntfschar*)ntfs_malloc_nofs(i_size); in load_and_init_upcase()
1670 if (!vol->upcase) in load_and_init_upcase()
1676 /* Read the upcase table and copy it into the linear buffer. */ in load_and_init_upcase()
1681 memcpy((char*)vol->upcase in load_and_init_upcase()
[all...]
H A DMakefile8 unistr.o upcase.o
H A Dattrib.c551 * the upcase table. If @ic is CASE_SENSITIVE, the comparison is case
581 ntfschar *upcase = vol->upcase; in ntfs_attr_find() local
640 a->name_length, ic, upcase, upcase_len)) { in ntfs_attr_find()
647 upcase, upcase_len); in ntfs_attr_find()
661 upcase, upcase_len); in ntfs_attr_find()
939 name_len, ic, vol->upcase, vol->upcase_len)) { in ntfs_external_attr_find()
944 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
964 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
989 vol->upcase, vo in ntfs_external_attr_find()
[all...]
H A Dvolume.h61 u32 upcase_len; /* Number of entries in upcase[]. */
62 ntfschar *upcase; /* The upcase table. */ member
/kernel/linux/linux-6.6/fs/ntfs/
H A Dunistr.c47 * @upcase: upcase table (only if @ic == IGNORE_CASE)
48 * @upcase_size: length in Unicode characters of @upcase (if present)
52 * the @upcase table is used to performa a case insensitive comparison.
56 const ntfschar *upcase, const u32 upcase_size) in ntfs_are_names_equal()
62 return !ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size); in ntfs_are_names_equal()
71 * @upcase: upcase table (ignored if @ic is CASE_SENSITIVE)
72 * @upcase_len: upcase table size (ignored if @ic is CASE_SENSITIVE)
86 const ntfschar *upcase, cons in ntfs_collate_names()
54 ntfs_are_names_equal(const ntfschar *s1, size_t s1_len, const ntfschar *s2, size_t s2_len, const IGNORE_CASE_BOOL ic, const ntfschar *upcase, const u32 upcase_size) ntfs_are_names_equal() argument
83 ntfs_collate_names(const ntfschar *name1, const u32 name1_len, const ntfschar *name2, const u32 name2_len, const int err_val, const IGNORE_CASE_BOOL ic, const ntfschar *upcase, const u32 upcase_len) ntfs_collate_names() argument
171 ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n, const ntfschar *upcase, const u32 upcase_size) ntfs_ucsncasecmp() argument
192 ntfs_upcase_name(ntfschar *name, u32 name_len, const ntfschar *upcase, const u32 upcase_len) ntfs_upcase_name() argument
203 ntfs_file_upcase_value(FILE_NAME_ATTR *file_name_attr, const ntfschar *upcase, const u32 upcase_len) ntfs_file_upcase_value() argument
210 ntfs_file_compare_values(FILE_NAME_ATTR *file_name_attr1, FILE_NAME_ATTR *file_name_attr2, const int err_val, const IGNORE_CASE_BOOL ic, const ntfschar *upcase, const u32 upcase_len) ntfs_file_compare_values() argument
[all...]
H A Dntfs.h97 const ntfschar *upcase, const u32 upcase_size);
101 const ntfschar *upcase, const u32 upcase_len);
104 const ntfschar *upcase, const u32 upcase_size);
106 const ntfschar *upcase, const u32 upcase_len);
108 const ntfschar *upcase, const u32 upcase_len);
112 const ntfschar *upcase, const u32 upcase_len);
118 /* From fs/ntfs/upcase.c */
H A Ddir.c146 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
196 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
237 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
256 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
406 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
456 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
499 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
518 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
708 vol->upcase, vol->upcase_len)) {
722 IGNORE_CASE, vol->upcase, vo
[all...]
H A Dsuper.c38 /* A global default upcase table and a corresponding reference count. */
1646 * load_and_init_upcase - load the upcase table for an ntfs volume
1647 * @vol: ntfs super block describing device whose upcase to load
1662 /* Read upcase table and setup vol->upcase and vol->upcase_len. */ in load_and_init_upcase()
1670 * The upcase size must not be above 64k Unicode characters, must not in load_and_init_upcase()
1677 vol->upcase = (ntfschar*)ntfs_malloc_nofs(i_size); in load_and_init_upcase()
1678 if (!vol->upcase) in load_and_init_upcase()
1684 /* Read the upcase table and copy it into the linear buffer. */ in load_and_init_upcase()
1689 memcpy((char*)vol->upcase in load_and_init_upcase()
[all...]
H A DMakefile8 unistr.o upcase.o
H A Dattrib.c551 * the upcase table. If @ic is CASE_SENSITIVE, the comparison is case
581 ntfschar *upcase = vol->upcase; in ntfs_attr_find() local
640 a->name_length, ic, upcase, upcase_len)) { in ntfs_attr_find()
647 upcase, upcase_len); in ntfs_attr_find()
661 upcase, upcase_len); in ntfs_attr_find()
939 name_len, ic, vol->upcase, vol->upcase_len)) { in ntfs_external_attr_find()
944 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
964 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
989 vol->upcase, vo in ntfs_external_attr_find()
[all...]
H A Dvolume.h61 u32 upcase_len; /* Number of entries in upcase[]. */
62 ntfschar *upcase; /* The upcase table. */ member
/kernel/linux/linux-5.10/fs/hpfs/
H A Dname.c23 static inline unsigned char upcase(unsigned char *dir, unsigned char a) in upcase() function
32 return upcase(dir, a); in hpfs_upcase()
83 unsigned char c1 = upcase(hpfs_sb(s)->sb_cp_table,n1[i]); in hpfs_compare_names()
84 unsigned char c2 = upcase(hpfs_sb(s)->sb_cp_table,n2[i]); in hpfs_compare_names()
/kernel/linux/linux-6.6/fs/hpfs/
H A Dname.c23 static inline unsigned char upcase(unsigned char *dir, unsigned char a) in upcase() function
32 return upcase(dir, a); in hpfs_upcase()
83 unsigned char c1 = upcase(hpfs_sb(s)->sb_cp_table,n1[i]); in hpfs_compare_names()
84 unsigned char c2 = upcase(hpfs_sb(s)->sb_cp_table,n2[i]); in hpfs_compare_names()
/kernel/linux/linux-5.10/fs/exfat/
H A Dexfat_raw.h44 #define EXFAT_UPCASE 0x82 /* upcase table */
157 } __packed upcase; /* up-case table directory entry */ member
/kernel/linux/linux-6.6/fs/exfat/
H A Dexfat_raw.h45 #define EXFAT_UPCASE 0x82 /* upcase table */
160 } __packed upcase; /* up-case table directory entry */ member

Completed in 26 milliseconds

12