Lines Matching refs:upcase
38 /* 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. */
1670 * The upcase size must not be above 64k Unicode characters, must not
1677 vol->upcase = (ntfschar*)ntfs_malloc_nofs(i_size);
1678 if (!vol->upcase)
1684 /* Read the upcase table and copy it into the linear buffer. */
1689 memcpy((char*)vol->upcase + (index++ << PAGE_SHIFT),
1713 if (vol->upcase[i] != default_upcase[i])
1716 ntfs_free(vol->upcase);
1717 vol->upcase = default_upcase;
1731 ntfs_free(vol->upcase);
1732 vol->upcase = NULL;
1736 vol->upcase = default_upcase;
1745 ntfs_error(sb, "Failed to initialize upcase table.");
1817 /* Read upcase table and setup @vol->upcase and @vol->upcase_len. */
2230 if (vol->upcase == default_upcase) {
2232 vol->upcase = NULL;
2235 if (vol->upcase) {
2236 ntfs_free(vol->upcase);
2237 vol->upcase = NULL;
2409 * Destroy the global default upcase table if necessary. Also decrease
2410 * the number of upcase users if we are a user.
2413 if (vol->upcase == default_upcase) {
2415 vol->upcase = NULL;
2424 if (vol->upcase) {
2425 ntfs_free(vol->upcase);
2426 vol->upcase = NULL;
2884 * Generate the global default upcase table if necessary. Also
2885 * temporarily increment the number of upcase users to avoid race
2909 /* Release the default upcase if it has no users. */
2984 if (vol->upcase == default_upcase) {
2986 vol->upcase = NULL;
2989 if (vol->upcase) {
2990 ntfs_free(vol->upcase);
2991 vol->upcase = NULL;
3000 * Decrease the number of upcase users and destroy the global default
3001 * upcase table if necessary.