Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 53) sorted by relevance

123

/lib/crypto/
Ddes.c609 #define DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) argument
626 unsigned long a, b, c, d, w; in des_ekey() local
630 c = k[5]; c &= 0x0e; c <<= 4; c |= k[1] & 0x1e; c = pc1[c]; in des_ekey()
634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey()
635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
639 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
640 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
[all …]
Dsha256.c48 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local
61 a = state[0]; b = state[1]; c = state[2]; d = state[3]; in sha256_transform()
66 t2 = e0(a) + Maj(a, b, c); d += t1; h = t1 + t2; in sha256_transform()
68 t2 = e0(h) + Maj(h, a, b); c += t1; g = t1 + t2; in sha256_transform()
69 t1 = f + e1(c) + Ch(c, d, e) + 0xb5c0fbcf + W[2]; in sha256_transform()
71 t1 = e + e1(b) + Ch(b, c, d) + 0xe9b5dba5 + W[3]; in sha256_transform()
73 t1 = d + e1(a) + Ch(a, b, c) + 0x3956c25b + W[4]; in sha256_transform()
75 t1 = c + e1(h) + Ch(h, a, b) + 0x59f111f1 + W[5]; in sha256_transform()
76 t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; in sha256_transform()
78 t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; in sha256_transform()
[all …]
/lib/raid6/
DMakefile53 targets += int1.c int2.c int4.c int8.c int16.c int32.c
54 $(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE
61 targets += altivec1.c altivec2.c altivec4.c altivec8.c
62 $(obj)/altivec%.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
69 targets += vpermxor1.c vpermxor2.c vpermxor4.c vpermxor8.c
70 $(obj)/vpermxor%.c: $(src)/vpermxor.uc $(src)/unroll.awk FORCE
77 targets += neon1.c neon2.c neon4.c neon8.c
78 $(obj)/neon%.c: $(src)/neon.uc $(src)/unroll.awk FORCE
81 targets += s390vx8.c
82 $(obj)/s390vx%.c: $(src)/s390vx.uc $(src)/unroll.awk FORCE
[all …]
D.gitignore2 altivec*.c
3 int*.c
4 tables.c
5 neon?.c
6 s390vx?.c
7 vpermxor*.c
/lib/raid6/test/
DMakefile51 gcc -c -x c - >/dev/null && rm ./-.o && echo yes)
60 .c.o:
63 %.c: ../%.c
76 raid6test: test.c raid6.a
79 neon1.c: neon.uc ../unroll.awk
82 neon2.c: neon.uc ../unroll.awk
85 neon4.c: neon.uc ../unroll.awk
88 neon8.c: neon.uc ../unroll.awk
91 altivec1.c: altivec.uc ../unroll.awk
94 altivec2.c: altivec.uc ../unroll.awk
[all …]
/lib/
Dstring_helpers.c303 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument
308 *out = c; in escape_passthrough()
313 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument
318 switch (c) { in escape_space()
349 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument
354 switch (c) { in escape_special()
379 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument
383 if (c) in escape_null()
397 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument
405 *out = ((c >> 6) & 0x07) + '0'; in escape_octal()
[all …]
Ducs2_string.c61 u16 c = src[i]; in ucs2_utf8size() local
63 if (c >= 0x800) in ucs2_utf8size()
65 else if (c >= 0x80) in ucs2_utf8size()
90 u16 c = src[i]; in ucs2_as_utf8() local
92 if (c >= 0x800) { in ucs2_as_utf8()
96 dest[j++] = 0xe0 | (c & 0xf000) >> 12; in ucs2_as_utf8()
97 dest[j++] = 0x80 | (c & 0x0fc0) >> 6; in ucs2_as_utf8()
98 dest[j++] = 0x80 | (c & 0x003f); in ucs2_as_utf8()
99 } else if (c >= 0x80) { in ucs2_as_utf8()
103 dest[j++] = 0xc0 | (c & 0x7c0) >> 6; in ucs2_as_utf8()
[all …]
Dstrncpy_from_user.c37 unsigned long c, data; in do_strncpy_from_user() local
40 unsafe_get_user(c, (unsigned long __user *)(src+res), byte_at_a_time); in do_strncpy_from_user()
42 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user()
43 if (has_zero(c, &data, &constants)) { in do_strncpy_from_user()
44 data = prep_zero_mask(c, data, &constants); in do_strncpy_from_user()
54 char c; in do_strncpy_from_user() local
56 unsafe_get_user(c,src+res, efault); in do_strncpy_from_user()
57 dst[res] = c; in do_strncpy_from_user()
58 if (!c) in do_strncpy_from_user()
Dbch.c105 unsigned int c[0]; /* polynomial terms */ member
114 unsigned int c[2]; member
401 pelp->c[0] = 1; in compute_error_locator_polynomial()
403 elp->c[0] = 1; in compute_error_locator_polynomial()
413 if (pelp->c[j]) { in compute_error_locator_polynomial()
414 l = a_log(bch, pelp->c[j]); in compute_error_locator_polynomial()
415 elp->c[j+k] ^= a_pow(bch, tmp+l); in compute_error_locator_polynomial()
431 d ^= gf_mul(bch, elp->c[j], syn[2*i+2-j]); in compute_error_locator_polynomial()
447 int rem, c, r, p, k, param[BCH_MAX_M]; in solve_linear_system() local
453 for (c = 0; c < m; c++) { in solve_linear_system()
[all …]
Dglob.c56 unsigned char c = *str++; in glob_match() local
61 if (c == '\0') in glob_match()
95 match |= (a <= c && c <= b); in glob_match()
108 if (c == d) { in glob_match()
114 if (c == '\0' || !back_pat) in glob_match()
Dtest_meminit.c196 struct kmem_cache *c; in do_kmem_cache_size() local
202 c = kmem_cache_create("test_cache", size, 1, in do_kmem_cache_size()
206 buf = kmem_cache_alloc(c, alloc_mask); in do_kmem_cache_size()
212 kmem_cache_free(c, buf); in do_kmem_cache_size()
229 kmem_cache_free(c, buf); in do_kmem_cache_size()
243 kmem_cache_destroy(c); in do_kmem_cache_size()
255 struct kmem_cache *c; in do_kmem_cache_rcu_persistent() local
261 c = kmem_cache_create("test_cache", size, size, SLAB_TYPESAFE_BY_RCU, in do_kmem_cache_rcu_persistent()
263 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
275 kmem_cache_free(c, buf); in do_kmem_cache_rcu_persistent()
[all …]
Dstring.c206 unsigned long c, data; in strscpy() local
208 c = read_word_at_a_time(src+res); in strscpy()
209 if (has_zero(c, &data, &constants)) { in strscpy()
210 data = prep_zero_mask(c, data, &constants); in strscpy()
212 *(unsigned long *)(dest+res) = c & zero_bytemask(data); in strscpy()
215 *(unsigned long *)(dest+res) = c; in strscpy()
222 char c; in strscpy() local
224 c = src[res]; in strscpy()
225 dest[res] = c; in strscpy()
226 if (!c) in strscpy()
[all …]
Dstrnlen_user.c27 unsigned long c; in do_strnlen_user() local
37 unsafe_get_user(c, (unsigned long __user *)src, efault); in do_strnlen_user()
38 c |= aligned_byte_mask(align); in do_strnlen_user()
42 if (has_zero(c, &data, &constants)) { in do_strnlen_user()
43 data = prep_zero_mask(c, data, &constants); in do_strnlen_user()
52 unsafe_get_user(c, (unsigned long __user *)(src+res), efault); in do_strnlen_user()
Dbuild_OID_registry58 my $c = $components[$loop];
61 my $tmp = ($c == 0) ? 0 : int(log($c)/log(2));
98 my $c = $components[$loop];
101 my $tmp = ($c == 0) ? 0 : int(log($c)/log(2));
105 push @octets, (($c >> $tmp * 7) & 0x7f) | 0x80;
107 push @octets, $c & 0x7f;
Dcrc4.c25 uint8_t crc4(uint8_t c, uint64_t x, int bits) in crc4() argument
37 c = crc4_tab[c ^ ((x >> i) & 0xf)]; in crc4()
39 return c; in crc4()
Dgen_crc64table.c25 uint64_t i, j, c, crc; in generate_crc64_table() local
29 c = i << 56; in generate_crc64_table()
32 if ((crc ^ c) & 0x8000000000000000ULL) in generate_crc64_table()
36 c <<= 1; in generate_crc64_table()
Dsort.c233 size_t b, c, d; in sort_r() local
254 for (b = a; c = 2*b + size, (d = c + size) < n;) in sort_r()
255 b = do_cmp(base + c, base + d, cmp_func, priv) >= 0 ? c : d; in sort_r()
257 b = c; in sort_r()
262 c = b; /* Where "a" belongs */ in sort_r()
265 do_swap(base + b, base + c, size, swap_func); in sort_r()
Dinflate.c353 unsigned c[BMAX+1]; /* bit length count table */ in huft_build() member
358 unsigned *c, *v, *x; in huft_build() local
368 c = stk->c; in huft_build()
374 memzero(stk->c, sizeof(stk->c)); in huft_build()
379 c[*p]++; /* assume all entries <= BMAX */ in huft_build()
382 if (c[0] == n) /* null input--all zero length codes */ in huft_build()
395 if (c[j]) in huft_build()
401 if (c[i]) in huft_build()
412 if ((y -= c[j]) < 0) { in huft_build()
416 if ((y -= c[i]) < 0) { in huft_build()
[all …]
Dbitmap.c380 int c, old_c, totaldigits, ndigits, nchunks, nbits; in __bitmap_parse() local
386 nchunks = nbits = totaldigits = c = 0; in __bitmap_parse()
393 old_c = c; in __bitmap_parse()
395 if (__get_user(c, ubuf++)) in __bitmap_parse()
399 c = *buf++; in __bitmap_parse()
401 if (isspace(c)) in __bitmap_parse()
409 if (totaldigits && c && isspace(old_c)) in __bitmap_parse()
413 if (c == '\0' || c == ',') in __bitmap_parse()
416 if (!isxdigit(c)) in __bitmap_parse()
427 chunk = (chunk << 4) | hex_to_bin(c); in __bitmap_parse()
[all …]
Dearlycpio.c66 unsigned char c, x; in find_cpio_data() local
86 c = *p++; in find_cpio_data()
88 x = c - '0'; in find_cpio_data()
94 x = (c | 0x20) - 'a'; in find_cpio_data()
/lib/fonts/
Dfonts.c109 int i, c, cc, res; in get_default_font() local
116 c = f->pref; in get_default_font()
120 c = 100; in get_default_font()
124 c = 100; in get_default_font()
128 c += 1000; in get_default_font()
133 c += 20 - res; in get_default_font()
137 c += 1000; in get_default_font()
139 if (c > cc) { in get_default_font()
140 cc = c; in get_default_font()
/lib/reed_solomon/
Dtest_rslib.c77 uint16_t *c; /* sent codeword */ member
104 kfree(ws->c); in free_ws()
118 ws->c = kmalloc_array(2 * (nn + nroots), in alloc_ws()
120 if (!ws->c) in alloc_ws()
123 ws->r = ws->c + nn; in alloc_ws()
159 uint16_t *c = ws->c; in get_rcw_we() local
167 c[i] = prandom_u32() & nn; in get_rcw_we()
169 memset(c + dlen, 0, nroots * sizeof(*c)); in get_rcw_we()
170 encode_rs16(rs, c, dlen, c + dlen, 0); in get_rcw_we()
173 memcpy(r, c, len * sizeof(*r)); in get_rcw_we()
[all …]
/lib/zstd/
Dfse_compress.c58 #define FSE_STATIC_ASSERT(c) \ argument
60 enum { FSE_static_assert = 1 / (int)(!!(c)) }; \
385 U32 c = cached; in FSE_count_parallel_wksp() local
388 Counting1[(BYTE)c]++; in FSE_count_parallel_wksp()
389 Counting2[(BYTE)(c >> 8)]++; in FSE_count_parallel_wksp()
390 Counting3[(BYTE)(c >> 16)]++; in FSE_count_parallel_wksp()
391 Counting4[c >> 24]++; in FSE_count_parallel_wksp()
392 c = cached; in FSE_count_parallel_wksp()
395 Counting1[(BYTE)c]++; in FSE_count_parallel_wksp()
396 Counting2[(BYTE)(c >> 8)]++; in FSE_count_parallel_wksp()
[all …]
/lib/mpi/
Dmpi-pow.c151 int c; in mpi_powm() local
163 c = count_leading_zeros(e); in mpi_powm()
164 e = (e << c) << 1; /* shift the exp bits to the left, lose msb */ in mpi_powm()
165 c = BITS_PER_MPI_LIMB - 1 - c; in mpi_powm()
178 while (c) { in mpi_powm()
244 c--; in mpi_powm()
252 c = BITS_PER_MPI_LIMB; in mpi_powm()
/lib/vdso/
DMakefile6 c-gettimeofday-$(CONFIG_GENERIC_GETTIMEOFDAY) := $(addprefix $(GENERIC_VDSO_DIR), gettimeofday.c)

123