/fs/nfs/ |
D | nfs4session.c | 456 static s32 nfs41_derivative_target_slotid(s32 s1, s32 s2) in nfs41_derivative_target_slotid() argument 458 s1 -= s2; in nfs41_derivative_target_slotid() 459 if (s1 == 0) in nfs41_derivative_target_slotid() 461 if (s1 < 0) in nfs41_derivative_target_slotid() 462 return (s1 - 1) >> 1; in nfs41_derivative_target_slotid() 463 return (s1 + 1) >> 1; in nfs41_derivative_target_slotid() 466 static int nfs41_sign_s32(s32 s1) in nfs41_sign_s32() argument 468 if (s1 > 0) in nfs41_sign_s32() 470 if (s1 < 0) in nfs41_sign_s32() 475 static bool nfs41_same_sign_or_zero_s32(s32 s1, s32 s2) in nfs41_same_sign_or_zero_s32() argument [all …]
|
D | nfs4client.c | 624 nfs4_check_server_scope(struct nfs41_server_scope *s1, in nfs4_check_server_scope() argument 627 if (s1->server_scope_sz != s2->server_scope_sz) in nfs4_check_server_scope() 629 if (memcmp(s1->server_scope, s2->server_scope, in nfs4_check_server_scope() 630 s1->server_scope_sz) != 0) in nfs4_check_server_scope()
|
D | nfs4_fs.h | 535 static inline bool nfs4_stateid_is_newer(const nfs4_stateid *s1, const nfs4_stateid *s2) in nfs4_stateid_is_newer() argument 537 return (s32)(be32_to_cpu(s1->seqid) - be32_to_cpu(s2->seqid)) > 0; in nfs4_stateid_is_newer()
|
D | nfs4proc.c | 9108 static bool nfs41_match_stateid(const nfs4_stateid *s1, in nfs41_match_stateid() argument 9111 if (s1->type != s2->type) in nfs41_match_stateid() 9114 if (memcmp(s1->other, s2->other, sizeof(s1->other)) != 0) in nfs41_match_stateid() 9117 if (s1->seqid == s2->seqid) in nfs41_match_stateid() 9119 if (s1->seqid == 0 || s2->seqid == 0) in nfs41_match_stateid() 9127 static bool nfs4_match_stateid(const nfs4_stateid *s1, in nfs4_match_stateid() argument 9130 return nfs4_stateid_match(s1, s2); in nfs4_match_stateid()
|
D | pnfs.c | 584 static bool pnfs_seqid_is_newer(u32 s1, u32 s2) in pnfs_seqid_is_newer() argument 586 return (s32)(s1 - s2) > 0; in pnfs_seqid_is_newer()
|
/fs/ntfs/ |
D | unistr.c | 68 bool ntfs_are_names_equal(const ntfschar *s1, size_t s1_len, in ntfs_are_names_equal() argument 75 return !ntfs_ucsncmp(s1, s2, s1_len); in ntfs_are_names_equal() 76 return !ntfs_ucsncasecmp(s1, s2, s1_len, upcase, upcase_size); in ntfs_are_names_equal() 149 int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n) in ntfs_ucsncmp() argument 155 c1 = le16_to_cpu(s1[i]); in ntfs_ucsncmp() 185 int ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n, in ntfs_ucsncasecmp() argument 192 if ((c1 = le16_to_cpu(s1[i])) < upcase_size) in ntfs_ucsncasecmp()
|
D | ntfs.h | 108 extern bool ntfs_are_names_equal(const ntfschar *s1, size_t s1_len, 116 extern int ntfs_ucsncmp(const ntfschar *s1, const ntfschar *s2, size_t n); 117 extern int ntfs_ucsncasecmp(const ntfschar *s1, const ntfschar *s2, size_t n,
|
D | runlist.c | 1168 s64 s1 = last_vcn + 1; in ntfs_get_size_for_mapping_pairs() local 1169 if (unlikely(rl[1].vcn > s1)) in ntfs_get_size_for_mapping_pairs() 1170 length = s1 - rl->vcn; in ntfs_get_size_for_mapping_pairs() 1204 s64 s1 = last_vcn + 1; in ntfs_get_size_for_mapping_pairs() local 1205 if (unlikely(rl[1].vcn > s1)) in ntfs_get_size_for_mapping_pairs() 1206 length = s1 - rl->vcn; in ntfs_get_size_for_mapping_pairs() 1370 s64 s1 = last_vcn + 1; in ntfs_mapping_pairs_build() local 1371 if (unlikely(rl[1].vcn > s1)) in ntfs_mapping_pairs_build() 1372 length = s1 - rl->vcn; in ntfs_mapping_pairs_build() 1422 s64 s1 = last_vcn + 1; in ntfs_mapping_pairs_build() local [all …]
|
/fs/hfsplus/ |
D | unicode.c | 31 int hfsplus_strcasecmp(const struct hfsplus_unistr *s1, in hfsplus_strcasecmp() argument 37 len1 = be16_to_cpu(s1->length); in hfsplus_strcasecmp() 39 p1 = s1->unicode; in hfsplus_strcasecmp() 64 int hfsplus_strcmp(const struct hfsplus_unistr *s1, in hfsplus_strcmp() argument 71 len1 = be16_to_cpu(s1->length); in hfsplus_strcmp() 73 p1 = s1->unicode; in hfsplus_strcmp()
|
D | hfsplus_fs.h | 514 int hfsplus_strcasecmp(const struct hfsplus_unistr *s1, 516 int hfsplus_strcmp(const struct hfsplus_unistr *s1,
|
/fs/ncpfs/ |
D | ncplib_kernel.h | 139 #define ncp_strnicmp(t, s1, s2, len) \ argument 140 nls_strnicmp(t, s1, s2, len) 159 const unsigned char *s1, const unsigned char *s2, int len) in ncp_strnicmp() argument 162 if (tolower(*s1++) != tolower(*s2++)) in ncp_strnicmp()
|
/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/sdcardfs/ |
D | sdcardfs.h | 660 static inline bool str_case_eq(const char *s1, const char *s2) in str_case_eq() argument 662 return !strcasecmp(s1, s2); in str_case_eq() 665 static inline bool str_n_case_eq(const char *s1, const char *s2, size_t len) in str_n_case_eq() argument 667 return !strncasecmp(s1, s2, len); in str_n_case_eq()
|
/fs/ceph/ |
D | super.c | 313 static int strcmp_null(const char *s1, const char *s2) in strcmp_null() argument 315 if (!s1 && !s2) in strcmp_null() 317 if (s1 && !s2) in strcmp_null() 319 if (!s1 && s2) in strcmp_null() 321 return strcmp(s1, s2); in strcmp_null()
|