| /linux/fs/ntfs3/ |
| H A D | upcase.c | 13 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() argument 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() argument 80 if (!bothcase && upcase) in ntfs_cmp_names_cpu() 86 if (bothcase && upcase) in ntfs_cmp_names_cpu() [all …]
|
| H A D | record.c | 16 const u16 *upcase) in compare_attr() argument 26 upcase, true); in compare_attr() 513 const u16 *upcase = sbi->upcase; in mi_insert_attr() local 525 int diff = compare_attr(attr, type, name, name_len, upcase); in mi_insert_attr()
|
| H A D | super.c | 175 * On-disk ntfs's upcase table is created by ntfs formatter. 176 * 'upcase' table is 128K bytes of memory. 178 * Several ntfs volumes likely use the same 'upcase' table. 179 * It is good idea to share in-memory 'upcase' table between different volumes. 180 * Unfortunately winxp/vista/win7 use different upcase tables. 752 kvfree(ntfs_put_shared(sbi->upcase)); in ntfs_put_super() 1710 err = inode_read_data(inode, sbi->upcase, 0x10000 * sizeof(short)); in ntfs_fill_super() 1718 u16 *dst = sbi->upcase; in ntfs_fill_super() 1725 shared = ntfs_set_shared(sbi->upcase, 0x10000 * sizeof(short)); in ntfs_fill_super() 1726 if (shared && sbi->upcase ! in ntfs_fill_super() [all...] |
| H A D | attrlist.c | 226 name_len, ni->mi.sbi->upcase, in al_find_ex() 279 name_len, ni->mi.sbi->upcase, in al_find_le_to_insert()
|
| H A D | fsntfs.c | 2624 const u16 *upcase = sbi->upcase; in is_reserved_name() 2629 if (!ntfs_cmp_names(name, 3, CON_NAME, 3, upcase, false) || in is_reserved_name() 2630 !ntfs_cmp_names(name, 3, NUL_NAME, 3, upcase, false) || in is_reserved_name() 2631 !ntfs_cmp_names(name, 3, AUX_NAME, 3, upcase, false) || in is_reserved_name() 2632 !ntfs_cmp_names(name, 3, PRN_NAME, 3, upcase, false)) in is_reserved_name() 2640 if (!ntfs_cmp_names(name, 3, COM_NAME, 3, upcase, in is_reserved_name() 2642 !ntfs_cmp_names(name, 3, LPT_NAME, 3, upcase, in is_reserved_name() 2621 const u16 *upcase = sbi->upcase; is_reserved_name() local
|
| H A D | namei.c | 436 * Try slow way with current upcase table in ntfs_d_hash() 454 hash = ntfs_names_hash(uni->name, uni->len, sbi->upcase, in ntfs_d_hash() 496 * Try slow way with current upcase table in ntfs_d_compare() 526 ret = !ntfs_cmp_names_cpu(uni1, uni2, sbi->upcase, false) ? 0 : 1; in ntfs_d_compare()
|
| H A D | ntfs_fs.h | 259 u16 *upcase; 961 /* Globals from upcase.c */ 963 const u16 *upcase, bool bothcase); 965 const u16 *upcase, bool bothcase); 966 unsigned long ntfs_names_hash(const u16 *name, size_t len, const u16 *upcase, 257 u16 *upcase; global() member
|
| H A D | index.c | 59 return ntfs_cmp_names_cpu(key1, s2, sbi->upcase, both_case); in cmp_fnames() 64 sbi->upcase, both_case); in cmp_fnames()
|
| /linux/fs/hpfs/ |
| H A D | name.c | 23 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()
|
| /linux/fs/ntfs/ |
| H A D | ntfs.h | 239 const __le16 *upcase, const u32 upcase_size); 243 const __le16 *upcase, const u32 upcase_len); 246 const __le16 *upcase, const u32 upcase_size); 250 const __le16 *upcase, const u32 upcase_len); 259 const __le16 *upcase, const u32 upcase_size); 267 /* From fs/ntfs/upcase.c */ in ntfs_ffs()
|
| H A D | super.c | 28 /* A global default upcase table and a corresponding reference count. */ 1501 * load_and_init_upcase - load the upcase table for an ntfs volume in load_system_files() 1502 * @vol: ntfs super block describing device whose upcase to load in load_system_files() 1517 /* Read upcase table and setup vol->upcase and vol->upcase_len. */ in load_system_files() 1522 * The upcase size must not be above 64k Unicode characters, must not in load_system_files() 1529 vol->upcase = kvzalloc(i_size, GFP_NOFS); in load_system_files() 1530 if (!vol->upcase) in load_system_files() 1536 /* Read the upcase table and copy it into the linear buffer. */ in load_system_files() 1542 memcpy((char *)vol->upcase in load_system_files() [all...] |
| H A D | dir.c | 156 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name() 206 IGNORE_CASE, vol->upcase, in ntfs_lookup_inode_by_name() 243 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name() 262 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name() 412 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name() 462 IGNORE_CASE, vol->upcase, in ntfs_lookup_inode_by_name() 500 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name() 519 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
|
| H A D | namei.c | 90 __le16 *upcase = vol->upcase; in ntfs_check_bad_windows_name() 93 if (ntfs_are_names_equal(wc, 3, aux_name_le, 3, IGNORE_CASE, upcase, size) || in ntfs_check_bad_windows_name() 94 ntfs_are_names_equal(wc, 3, con_name_le, 3, IGNORE_CASE, upcase, size) || in ntfs_check_bad_windows_name() 95 ntfs_are_names_equal(wc, 3, nul_name_le, 3, IGNORE_CASE, upcase, size) || in ntfs_check_bad_windows_name() 96 ntfs_are_names_equal(wc, 3, prn_name_le, 3, IGNORE_CASE, upcase, size)) in ntfs_check_bad_windows_name() 101 __le16 *upcase = vol->upcase; 104 if (ntfs_are_names_equal(wc, 3, com_name_le, 3, IGNORE_CASE, upcase, size) || 105 ntfs_are_names_equal(wc, 3, lpt_name_le, 3, IGNORE_CASE, upcase, siz 77 __le16 *upcase = vol->upcase; ntfs_check_bad_windows_name() local 88 __le16 *upcase = vol->upcase; ntfs_check_bad_windows_name() local [all...] |
| H A D | volume.h | 54 * @upcase_len: Number of entries in upcase[]. 55 * @upcase: The upcase table. 132 __le16 *upcase; 122 __le16 *upcase; global() member
|
| H A D | attrib.c | 852 * the upcase table. If @ic is CASE_SENSITIVE, the comparison is case in ntfs_attr_find() 882 __le16 *upcase = vol->upcase; in ntfs_attr_find() 947 a->name_length, ic, upcase, upcase_len)) { in ntfs_attr_find() 953 upcase, upcase_len); in ntfs_attr_find() 966 upcase, upcase_len); in ntfs_attr_find() 1352 name_len, ic, vol->upcase, vol->upcase_len)) { in ntfs_external_attr_find() 1357 vol->upcase, vol->upcase_len); in ntfs_external_attr_find() 1370 vol->upcase, vol->upcase_len); in ntfs_external_attr_find() 1394 vol->upcase, vo in ntfs_external_attr_find() 842 __le16 *upcase = vol->upcase; ntfs_attr_find() local [all...] |