Home
last modified time | relevance | path

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

12

/linux-4.19.296/include/linux/
Dzutil.h57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;}
82 unsigned long s1 = adler & 0xffff; in zlib_adler32() local
97 s1 += *buf++; in zlib_adler32()
98 s2 += s1; in zlib_adler32()
100 s1 %= BASE; in zlib_adler32()
103 return (s2 << 16) | s1; in zlib_adler32()
Dprandom.h45 __u32 s1, s2, s3, s4; member
89 state->s1 = __seed(i, 2U); in prandom_seed_state()
Dnls.h76 static inline int nls_strnicmp(struct nls_table *t, const unsigned char *s1, in nls_strnicmp() argument
80 if (nls_tolower(t, *s1++) != nls_tolower(t, *s2++)) in nls_strnicmp()
Dof.h966 #define of_compat_cmp(s1, s2, l) strcasecmp((s1), (s2)) argument
967 #define of_prop_cmp(s1, s2) strcmp((s1), (s2)) argument
968 #define of_node_cmp(s1, s2) strcasecmp((s1), (s2)) argument
Dstring.h54 extern int strcasecmp(const char *s1, const char *s2);
57 extern int strncasecmp(const char *s1, const char *s2, size_t n);
184 extern bool sysfs_streq(const char *s1, const char *s2);
/linux-4.19.296/lib/
Dstring.c42 int strncasecmp(const char *s1, const char *s2, size_t len) in strncasecmp() argument
51 c1 = *s1++; in strncasecmp()
68 int strcasecmp(const char *s1, const char *s2) in strcasecmp() argument
73 c1 = tolower(*s1++); in strcasecmp()
674 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() argument
676 while (*s1 && *s1 == *s2) { in sysfs_streq()
677 s1++; in sysfs_streq()
681 if (*s1 == *s2) in sysfs_streq()
683 if (!*s1 && *s2 == '\n' && !s2[1]) in sysfs_streq()
685 if (*s1 == '\n' && !s1[1] && !*s2) in sysfs_streq()
[all …]
Dtest-string_helpers.c122 struct test_string_1 s1[TEST_STRING_2_MAX_S1]; member
128 .s1 = {{
142 .s1 = {{
156 .s1 = {{
212 .s1 = {{
223 .s1 = {{
231 .s1 = {{
244 const struct test_string_1 *s1 = s2->s1; in test_string_find_match() local
257 for (i = 0; i < TEST_STRING_2_MAX_S1 && s1->out; i++, s1++) in test_string_find_match()
258 if (s1->flags == flags) in test_string_find_match()
[all …]
Drandom32.c56 state->s1 = TAUSWORTHE(state->s1, 6U, 13U, 4294967294U, 18U); in prandom_u32_state()
61 return (state->s1 ^ state->s2 ^ state->s3 ^ state->s4); in prandom_u32_state()
120 state->s1 = __seed(seeds[0], 2U); in prandom_seed_full_state()
264 state->s1 = __seed(HWSEED() ^ LCG(seed), 2U); in prandom_seed_early()
265 state->s2 = __seed(HWSEED() ^ LCG(state->s1), 8U); in prandom_seed_early()
/linux-4.19.296/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 …]
/linux-4.19.296/fs/nfs/
Dnfs4session.c456 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 …]
Dnfs4client.c643 nfs4_check_server_scope(struct nfs41_server_scope *s1, in nfs4_check_server_scope() argument
646 if (s1->server_scope_sz != s2->server_scope_sz) in nfs4_check_server_scope()
648 return memcmp(s1->server_scope, s2->server_scope, in nfs4_check_server_scope()
649 s1->server_scope_sz) == 0; in nfs4_check_server_scope()
/linux-4.19.296/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()
/linux-4.19.296/fs/hfsplus/
Dunicode.c32 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()
/linux-4.19.296/crypto/
Dcast6_generic.c29 #define s1 cast_s1 macro
35 (((s1[I >> 24] ^ s2[(I>>16)&0xff]) - s3[(I>>8)&0xff]) + s4[I&0xff]))
37 (((s1[I >> 24] - s2[(I>>16)&0xff]) + s3[(I>>8)&0xff]) ^ s4[I&0xff]))
39 (((s1[I >> 24] + s2[(I>>16)&0xff]) ^ s3[(I>>8)&0xff]) - s4[I&0xff]))
Dpoly1305_generic.c99 u32 s1, s2, s3, s4; in poly1305_blocks() local
116 s1 = r1 * 5; in poly1305_blocks()
138 mlt(h3, s2) + mlt(h4, s1); in poly1305_blocks()
Dcast5_generic.c297 #define s1 cast_s1 macro
303 (((s1[I >> 24] ^ s2[(I>>16)&0xff]) - s3[(I>>8)&0xff]) + s4[I&0xff]))
305 (((s1[I >> 24] - s2[(I>>16)&0xff]) + s3[(I>>8)&0xff]) ^ s4[I&0xff]))
307 (((s1[I >> 24] + s2[(I>>16)&0xff]) ^ s3[(I>>8)&0xff]) - s4[I&0xff]))
Dsha512_generic.c91 #define s1(x) (ror64(x,19) ^ ror64(x,61) ^ (x >> 6)) macro
100 W[I & 15] += s1(W[(I-2) & 15]) + W[(I-7) & 15] + s0(W[(I-15) & 15]); in BLEND_OP()
/linux-4.19.296/drivers/fsi/
Dfsi-sbefifo.c209 u32 dh, s0, s1; in sbefifo_parse_status() local
224 s1 = be32_to_cpu(response[resp_len - dh + 1]); in sbefifo_parse_status()
227 cmd >> 8, cmd & 0xff, s0, s1); in sbefifo_parse_status()
230 if (s1 != 0) { in sbefifo_parse_status()
233 cmd >> 8, cmd & 0xff, s1 >> 16, s1 & 0xffff); in sbefifo_parse_status()
245 return s1; in sbefifo_parse_status()
/linux-4.19.296/include/video/
Dnewport.h27 struct { volatile unsigned short s0, s1; } byshort; member
403 return regs->set.dcbdata0.byshort.s1; in newport_vc2_get()
435 regs->set.dcbdata0.byshort.s1 = addr; in newport_cmap_setaddr()
/linux-4.19.296/drivers/media/dvb-frontends/
Dmt352.c420 int s0, s1, s3; in mt352_read_status() local
436 if ((s1 = mt352_read_register(state, STATUS_1)) < 0) in mt352_read_status()
448 if (s1 & (1 << 1)) in mt352_read_status()
/linux-4.19.296/fs/ceph/
Dsuper.c410 static int strcmp_null(const char *s1, const char *s2) in strcmp_null() argument
412 if (!s1 && !s2) in strcmp_null()
414 if (s1 && !s2) in strcmp_null()
416 if (!s1 && s2) in strcmp_null()
418 return strcmp(s1, s2); in strcmp_null()
/linux-4.19.296/include/crypto/
Dalgapi.h228 unsigned long *s1 = (unsigned long *)src1; in crypto_xor_cpy() local
232 *d++ = *s1++ ^ *s2++; in crypto_xor_cpy()
/linux-4.19.296/drivers/char/ipmi/
Dipmi_ssif.c1400 static int strcmp_nospace(char *s1, char *s2) in strcmp_nospace() argument
1402 while (*s1 && *s2) { in strcmp_nospace()
1403 while (isspace(*s1)) in strcmp_nospace()
1404 s1++; in strcmp_nospace()
1407 if (*s1 > *s2) in strcmp_nospace()
1409 if (*s1 < *s2) in strcmp_nospace()
1411 s1++; in strcmp_nospace()

12