Lines Matching +full:ascii +full:- +full:based
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
34 if (n1->len != n2->len) in xfs_dir2_samename()
36 return !memcmp(n1->name, n2->name, n1->len); in xfs_dir2_samename()
157 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db()
175 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
194 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte()
203 return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); in xfs_dir2_db_to_da()
231 return (xfs_dir2_db_t)(da >> (geo->blklog - geo->fsblog)); in xfs_dir2_da_to_db()
244 * Directory tail pointer accessor functions. Based on block geometry.
250 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p()
257 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
270 * point we can change the ->readdir prototype to include the
282 * The "ascii-ci" feature was created to speed up case-insensitive lookups for
283 * a Samba product. Because of the inherent problems with CI and UTF-8
285 * latin1/iso 8859-1 encodings as that covered >90% of the target markets for
286 * the product. Hence the "ascii-ci" casefolding code could be encoded into
296 if (c >= 0x41 && c <= 0x5a) /* A-Z */ in xfs_ascii_ci_need_xfrm()
298 if (c >= 0xc0 && c <= 0xd6) /* latin A-O with accents */ in xfs_ascii_ci_need_xfrm()
300 if (c >= 0xd8 && c <= 0xde) /* latin O-Y with accents */ in xfs_ascii_ci_need_xfrm()
308 c -= 'A' - 'a'; in xfs_ascii_ci_xfrm()