Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 13 of 13) sorted by relevance

/fs/nfs/
Dnfs4session.c371 static s32 nfs41_derivative_target_slotid(s32 s1, s32 s2) in nfs41_derivative_target_slotid() argument
373 s1 -= s2; in nfs41_derivative_target_slotid()
374 if (s1 == 0) in nfs41_derivative_target_slotid()
376 if (s1 < 0) in nfs41_derivative_target_slotid()
377 return (s1 - 1) >> 1; in nfs41_derivative_target_slotid()
378 return (s1 + 1) >> 1; in nfs41_derivative_target_slotid()
381 static int nfs41_sign_s32(s32 s1) in nfs41_sign_s32() argument
383 if (s1 > 0) in nfs41_sign_s32()
385 if (s1 < 0) in nfs41_sign_s32()
390 static bool nfs41_same_sign_or_zero_s32(s32 s1, s32 s2) in nfs41_same_sign_or_zero_s32() argument
[all …]
Dnfs4_fs.h513 static inline bool nfs4_stateid_is_newer(const nfs4_stateid *s1, const nfs4_stateid *s2) in nfs4_stateid_is_newer() argument
515 return (s32)(be32_to_cpu(s1->seqid) - be32_to_cpu(s2->seqid)) > 0; in nfs4_stateid_is_newer()
Dpnfs.c783 static bool pnfs_seqid_is_newer(u32 s1, u32 s2) in pnfs_seqid_is_newer() argument
785 return (s32)(s1 - s2) > 0; in pnfs_seqid_is_newer()
Dnfs4proc.c8626 static bool nfs41_match_stateid(const nfs4_stateid *s1, in nfs41_match_stateid() argument
8629 if (memcmp(s1->other, s2->other, sizeof(s1->other)) != 0) in nfs41_match_stateid()
8632 if (s1->seqid == s2->seqid) in nfs41_match_stateid()
8634 if (s1->seqid == 0 || s2->seqid == 0) in nfs41_match_stateid()
8642 static bool nfs4_match_stateid(const nfs4_stateid *s1, in nfs4_match_stateid() argument
8645 return nfs4_stateid_match(s1, s2); in nfs4_match_stateid()
/fs/ntfs/
Dunistr.c68 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()
Dntfs.h108 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,
Drunlist.c1168 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/
Dunicode.c31 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()
Dhfsplus_fs.h515 int hfsplus_strcasecmp(const struct hfsplus_unistr *s1,
517 int hfsplus_strcmp(const struct hfsplus_unistr *s1,
/fs/ncpfs/
Dncplib_kernel.h139 #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/
Dstring.c76 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/
Dsdcardfs.h635 static inline bool str_case_eq(const char *s1, const char *s2) in str_case_eq() argument
637 return !strcasecmp(s1, s2); in str_case_eq()
640 static inline bool str_n_case_eq(const char *s1, const char *s2, size_t len) in str_n_case_eq() argument
642 return !strncasecmp(s1, s2, len); in str_n_case_eq()
/fs/ceph/
Dsuper.c303 static int strcmp_null(const char *s1, const char *s2) in strcmp_null() argument
305 if (!s1 && !s2) in strcmp_null()
307 if (s1 && !s2) in strcmp_null()
309 if (!s1 && s2) in strcmp_null()
311 return strcmp(s1, s2); in strcmp_null()