Lines Matching refs:upcase

38 /* 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. */
1662 * The upcase size must not be above 64k Unicode characters, must not
1669 vol->upcase = (ntfschar*)ntfs_malloc_nofs(i_size);
1670 if (!vol->upcase)
1676 /* Read the upcase table and copy it into the linear buffer. */
1681 memcpy((char*)vol->upcase + (index++ << PAGE_SHIFT),
1705 if (vol->upcase[i] != default_upcase[i])
1708 ntfs_free(vol->upcase);
1709 vol->upcase = default_upcase;
1723 ntfs_free(vol->upcase);
1724 vol->upcase = NULL;
1728 vol->upcase = default_upcase;
1737 ntfs_error(sb, "Failed to initialize upcase table.");
1809 /* Read upcase table and setup @vol->upcase and @vol->upcase_len. */
2222 if (vol->upcase == default_upcase) {
2224 vol->upcase = NULL;
2227 if (vol->upcase) {
2228 ntfs_free(vol->upcase);
2229 vol->upcase = NULL;
2401 * Destroy the global default upcase table if necessary. Also decrease
2402 * the number of upcase users if we are a user.
2405 if (vol->upcase == default_upcase) {
2407 vol->upcase = NULL;
2416 if (vol->upcase) {
2417 ntfs_free(vol->upcase);
2418 vol->upcase = NULL;
2878 * Generate the global default upcase table if necessary. Also
2879 * temporarily increment the number of upcase users to avoid race
2903 /* Release the default upcase if it has no users. */
2978 if (vol->upcase == default_upcase) {
2980 vol->upcase = NULL;
2983 if (vol->upcase) {
2984 ntfs_free(vol->upcase);
2985 vol->upcase = NULL;
2994 * Decrease the number of upcase users and destroy the global default
2995 * upcase table if necessary.