/fs/ntfs3/ |
D | upcase.c | 36 int ntfs_cmp_names(const __le16 *s1, size_t l1, const __le16 *s2, size_t l2, in ntfs_cmp_names() argument 46 for (; len; s1++, s2++, len--) { in ntfs_cmp_names() 47 diff1 = le16_to_cpu(*s1) - le16_to_cpu(*s2); in ntfs_cmp_names() 58 for (; len; s1++, s2++, len--) { in ntfs_cmp_names() 59 diff2 = upcase_unicode_char(upcase, le16_to_cpu(*s1)) - in ntfs_cmp_names() 72 const u16 *s1 = uni1->name; in ntfs_cmp_names_cpu() local 83 for (; len; s1++, s2++, len--) { in ntfs_cmp_names_cpu() 84 diff1 = *s1 - le16_to_cpu(*s2); in ntfs_cmp_names_cpu() 95 for (; len; s1++, s2++, len--) { in ntfs_cmp_names_cpu() 96 diff2 = upcase_unicode_char(upcase, *s1) - in ntfs_cmp_names_cpu()
|
D | ntfs_fs.h | 843 int ntfs_cmp_names(const __le16 *s1, size_t l1, const __le16 *s2, size_t l2,
|
/fs/unicode/ |
D | utf8-core.c | 21 const struct qstr *s1, const struct qstr *s2) in utf8_strncmp() argument 26 if (utf8ncursor(&cur1, um, UTF8_NFDI, s1->name, s1->len) < 0) in utf8_strncmp() 47 const struct qstr *s1, const struct qstr *s2) in utf8_strncasecmp() argument 52 if (utf8ncursor(&cur1, um, UTF8_NFDICF, s1->name, s1->len) < 0) in utf8_strncasecmp() 77 const struct qstr *s1) in utf8_strncasecmp_folded() argument 83 if (utf8ncursor(&cur1, um, UTF8_NFDICF, s1->name, s1->len) < 0) in utf8_strncasecmp_folded()
|
D | utf8-selftest.c | 238 const struct qstr s1 = {.name = nfdi_test_data[i].str, in check_utf8_comparisons() local 243 test_f(!utf8_strncmp(table, &s1, &s2), in check_utf8_comparisons() 244 "%s %s comparison mismatch\n", s1.name, s2.name); in check_utf8_comparisons() 248 const struct qstr s1 = {.name = nfdicf_test_data[i].str, in check_utf8_comparisons() local 253 test_f(!utf8_strncasecmp(table, &s1, &s2), in check_utf8_comparisons() 254 "%s %s comparison mismatch\n", s1.name, s2.name); in check_utf8_comparisons()
|
/fs/nfs/ |
D | nfs4session.c | 460 static s32 nfs41_derivative_target_slotid(s32 s1, s32 s2) in nfs41_derivative_target_slotid() argument 462 s1 -= s2; in nfs41_derivative_target_slotid() 463 if (s1 == 0) in nfs41_derivative_target_slotid() 465 if (s1 < 0) in nfs41_derivative_target_slotid() 466 return (s1 - 1) >> 1; in nfs41_derivative_target_slotid() 467 return (s1 + 1) >> 1; in nfs41_derivative_target_slotid() 470 static int nfs41_sign_s32(s32 s1) in nfs41_sign_s32() argument 472 if (s1 > 0) in nfs41_sign_s32() 474 if (s1 < 0) in nfs41_sign_s32() 479 static bool nfs41_same_sign_or_zero_s32(s32 s1, s32 s2) in nfs41_same_sign_or_zero_s32() argument [all …]
|
D | nfs4_fs.h | 602 static inline bool nfs4_stateid_is_newer(const nfs4_stateid *s1, const nfs4_stateid *s2) in nfs4_stateid_is_newer() argument 604 return (s32)(be32_to_cpu(s1->seqid) - be32_to_cpu(s2->seqid)) > 0; in nfs4_stateid_is_newer() 607 static inline bool nfs4_stateid_is_next(const nfs4_stateid *s1, const nfs4_stateid *s2) in nfs4_stateid_is_next() argument 609 u32 seq1 = be32_to_cpu(s1->seqid); in nfs4_stateid_is_next() 621 static inline void nfs4_stateid_seqid_inc(nfs4_stateid *s1) in nfs4_stateid_seqid_inc() argument 623 u32 seqid = be32_to_cpu(s1->seqid); in nfs4_stateid_seqid_inc() 627 s1->seqid = cpu_to_be32(seqid); in nfs4_stateid_seqid_inc()
|
D | nfs4client.c | 681 nfs4_check_server_scope(struct nfs41_server_scope *s1, in nfs4_check_server_scope() argument 684 if (s1->server_scope_sz != s2->server_scope_sz) in nfs4_check_server_scope() 686 return memcmp(s1->server_scope, s2->server_scope, in nfs4_check_server_scope() 687 s1->server_scope_sz) == 0; in nfs4_check_server_scope()
|
D | nfs4proc.c | 10406 static bool nfs41_match_stateid(const nfs4_stateid *s1, in nfs41_match_stateid() argument 10409 if (s1->type != s2->type) in nfs41_match_stateid() 10412 if (memcmp(s1->other, s2->other, sizeof(s1->other)) != 0) in nfs41_match_stateid() 10415 if (s1->seqid == s2->seqid) in nfs41_match_stateid() 10418 return s1->seqid == 0 || s2->seqid == 0; in nfs41_match_stateid() 10423 static bool nfs4_match_stateid(const nfs4_stateid *s1, in nfs4_match_stateid() argument 10426 return nfs4_stateid_match(s1, s2); in nfs4_match_stateid()
|
D | pnfs.c | 342 static bool pnfs_seqid_is_newer(u32 s1, u32 s2) in pnfs_seqid_is_newer() argument 344 return (s32)(s1 - s2) > 0; in pnfs_seqid_is_newer()
|
/fs/ntfs/ |
D | unistr.c | 54 bool ntfs_are_names_equal(const ntfschar *s1, size_t s1_len, in ntfs_are_names_equal() argument 61 return !ntfs_ucsncmp(s1, s2, s1_len); in ntfs_are_names_equal() 62 return !ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size); in ntfs_are_names_equal() 135 int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n) in ntfs_ucsncmp() argument 141 c1 = le16_to_cpu(s1[i]); in ntfs_ucsncmp() 171 int ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n, in ntfs_ucsncasecmp() argument 178 if ((c1 = le16_to_cpu(s1[i])) < upcase_size) in ntfs_ucsncasecmp()
|
D | ntfs.h | 94 extern bool ntfs_are_names_equal(const ntfschar *s1, size_t s1_len, 102 extern int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n); 103 extern int ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n,
|
D | runlist.c | 1154 s64 s1 = last_vcn + 1; in ntfs_get_size_for_mapping_pairs() local 1155 if (unlikely(rl[1].vcn > s1)) in ntfs_get_size_for_mapping_pairs() 1156 length = s1 - rl->vcn; in ntfs_get_size_for_mapping_pairs() 1190 s64 s1 = last_vcn + 1; in ntfs_get_size_for_mapping_pairs() local 1191 if (unlikely(rl[1].vcn > s1)) in ntfs_get_size_for_mapping_pairs() 1192 length = s1 - rl->vcn; in ntfs_get_size_for_mapping_pairs() 1356 s64 s1 = last_vcn + 1; in ntfs_mapping_pairs_build() local 1357 if (unlikely(rl[1].vcn > s1)) in ntfs_mapping_pairs_build() 1358 length = s1 - rl->vcn; in ntfs_mapping_pairs_build() 1408 s64 s1 = last_vcn + 1; in ntfs_mapping_pairs_build() local [all …]
|
/fs/hfsplus/ |
D | unicode.c | 32 int hfsplus_strcasecmp(const struct hfsplus_unistr *s1, in hfsplus_strcasecmp() argument 38 len1 = be16_to_cpu(s1->length); in hfsplus_strcasecmp() 40 p1 = s1->unicode; in hfsplus_strcasecmp() 65 int hfsplus_strcmp(const struct hfsplus_unistr *s1, in hfsplus_strcmp() argument 72 len1 = be16_to_cpu(s1->length); in hfsplus_strcmp() 74 p1 = s1->unicode; in hfsplus_strcmp()
|
D | hfsplus_fs.h | 516 int hfsplus_strcasecmp(const struct hfsplus_unistr *s1, 518 int hfsplus_strcmp(const struct hfsplus_unistr *s1,
|
/fs/hfs/ |
D | string.c | 76 int hfs_strcmp(const unsigned char *s1, unsigned int len1, in hfs_strcmp() argument 84 tmp = (int)caseorder[*(s1++)] - (int)caseorder[*(s2++)]; in hfs_strcmp()
|
/fs/smb/client/ |
D | dfs_cache.c | 622 static bool dfs_path_equal(const char *s1, int len1, const char *s2, int len2) in dfs_path_equal() argument 631 l1 = cache_cp->char2uni(&s1[i], len1 - i, &c1); in dfs_path_equal() 634 if (s1[i] != s2[i]) in dfs_path_equal() 1316 static bool target_share_equal(struct TCP_Server_Info *server, const char *s1, const char *s2) in target_share_equal() argument 1326 if (strcasecmp(s1, s2)) in target_share_equal() 1334 extract_unc_hostname(s1, &host, &hostlen); in target_share_equal()
|
/fs/ceph/ |
D | super.c | 602 static int strcmp_null(const char *s1, const char *s2) in strcmp_null() argument 604 if (!s1 && !s2) in strcmp_null() 606 if (s1 && !s2) in strcmp_null() 608 if (!s1 && s2) in strcmp_null() 610 return strcmp(s1, s2); in strcmp_null()
|