| /lib/crypto/ |
| A D | blake2s-generic.c | 48 u32 v[16]; in blake2s_compress_generic() local 59 v[ 8] = BLAKE2S_IV0; in blake2s_compress_generic() 80 G(r, 0, v[0], v[ 4], v[ 8], v[12]); \ in blake2s_compress_generic() 81 G(r, 1, v[1], v[ 5], v[ 9], v[13]); \ in blake2s_compress_generic() 82 G(r, 2, v[2], v[ 6], v[10], v[14]); \ in blake2s_compress_generic() 83 G(r, 3, v[3], v[ 7], v[11], v[15]); \ in blake2s_compress_generic() 84 G(r, 4, v[0], v[ 5], v[10], v[15]); \ in blake2s_compress_generic() 85 G(r, 5, v[1], v[ 6], v[11], v[12]); \ in blake2s_compress_generic() 86 G(r, 6, v[2], v[ 7], v[ 8], v[13]); \ in blake2s_compress_generic() 87 G(r, 7, v[3], v[ 4], v[ 9], v[14]); \ in blake2s_compress_generic() [all …]
|
| /lib/ |
| A D | atomic64.c | 53 val = v->counter; in generic_atomic64_read() 67 v->counter = i; in generic_atomic64_set() 112 val = v->counter; \ 149 val = v->counter - 1; in generic_atomic64_dec_if_positive() 151 v->counter = val; in generic_atomic64_dec_if_positive() 166 val = v->counter; in generic_atomic64_cmpxchg() 168 v->counter = n; in generic_atomic64_cmpxchg() 183 val = v->counter; in generic_atomic64_xchg() 184 v->counter = new; in generic_atomic64_xchg() 199 val = v->counter; in generic_atomic64_fetch_add_unless() [all …]
|
| A D | atomic64_test.c | 111 atomic_t v; in test_atomic() local 159 BUG_ON(v.counter != r); in test_atomic64() 161 atomic64_set(&v, v1); in test_atomic64() 163 BUG_ON(v.counter != r); in test_atomic64() 191 atomic64_inc(&v); in test_atomic64() 193 BUG_ON(v.counter != r); in test_atomic64() 196 atomic64_dec(&v); in test_atomic64() 198 BUG_ON(v.counter != r); in test_atomic64() 208 BUG_ON(v.counter != r); in test_atomic64() 213 BUG_ON(v.counter != r); in test_atomic64() [all …]
|
| A D | win_minmax.c | 63 return m->s[0].v; in minmax_subwin_update() 69 struct minmax_sample val = { .t = t, .v = meas }; in minmax_running_max() 71 if (unlikely(val.v >= m->s[0].v) || /* found new max? */ in minmax_running_max() 75 if (unlikely(val.v >= m->s[1].v)) in minmax_running_max() 77 else if (unlikely(val.v >= m->s[2].v)) in minmax_running_max() 87 struct minmax_sample val = { .t = t, .v = meas }; in minmax_running_min() 89 if (unlikely(val.v <= m->s[0].v) || /* found new min? */ in minmax_running_min() 93 if (unlikely(val.v <= m->s[1].v)) in minmax_running_min() 95 else if (unlikely(val.v <= m->s[2].v)) in minmax_running_min()
|
| A D | oid_registry.c | 108 const unsigned char *v = data; in parse_OID() local 111 if (datasize < 3 || v[0] != ASN1_OID || v[1] != datasize - 2) in parse_OID() 132 const unsigned char *v = data, *end = v + datasize; in sprint_oid() local 138 if (v >= end) in sprint_oid() 141 n = *v++; in sprint_oid() 148 while (v < end) { in sprint_oid() 149 n = *v++; in sprint_oid() 155 if (v >= end) in sprint_oid() 157 n = *v++; in sprint_oid()
|
| A D | muldi3.c | 16 #define umul_ppmm(w1, w0, u, v) \ argument 23 __vl = __ll_lowpart(v); \ 24 __vh = __ll_highpart(v); \ 42 #define __umulsidi3(u, v) ({ \ argument 44 umul_ppmm(__w.s.high, __w.s.low, u, v); \ 49 long long notrace __muldi3(long long u, long long v) in __muldi3() argument 52 const DWunion vv = {.ll = v}; in __muldi3()
|
| A D | earlycpio.c | 65 unsigned int ch[C_NFIELDS], *chp, v; in find_cpio_data() local 83 v = 0; in find_cpio_data() 85 v <<= 4; in find_cpio_data() 90 v += x; in find_cpio_data() 96 v += x + 10; in find_cpio_data() 102 *chp++ = v; in find_cpio_data()
|
| A D | bootconfig.c | 563 char *p, *v = *__v; in __xbc_parse_value() local 566 v = skip_spaces(v); in __xbc_parse_value() 567 while (*v == '#') { in __xbc_parse_value() 568 v = skip_comment(v); in __xbc_parse_value() 569 v = skip_spaces(v); in __xbc_parse_value() 571 if (*v == '"' || *v == '\'') { in __xbc_parse_value() 572 quotes = *v; in __xbc_parse_value() 573 v++; in __xbc_parse_value() 575 p = v - 1; in __xbc_parse_value() 594 v = strim(v); in __xbc_parse_value() [all …]
|
| A D | inflate.c | 145 } v; member 233 #define NEXTBYTE() ({ int v = get_byte(); if (v < 0) goto underrun; (uch)v; }) 358 unsigned *c, *v, *x; in huft_build() local 369 v = stk->v; in huft_build() 437 v[x[j]++] = i; in huft_build() 499 *(t = &(q->v.t)) = (struct huft *)NULL; in huft_build() 519 if (p >= v + n) in huft_build() 530 r.v.n = d[*p++ - s]; in huft_build() 581 q = (--p)->v.t; in huft_free() 629 slide[w++] = (uch)t->v.n; in inflate_codes() [all …]
|
| A D | error-inject.c | 171 static void ei_seq_stop(struct seq_file *m, void *v) in ei_seq_stop() argument 176 static void *ei_seq_next(struct seq_file *m, void *v, loff_t *pos) in ei_seq_next() argument 178 return seq_list_next(v, &error_injection_list, pos); in ei_seq_next() 197 static int ei_seq_show(struct seq_file *m, void *v) in ei_seq_show() argument 199 struct ei_entry *ent = list_entry(v, struct ei_entry, list); in ei_seq_show()
|
| /lib/crypto/riscv/ |
| A D | sha256-riscv64-zvknha_or_zvknhb-zvkb.S | 116 vle32.v K0, (t0) 118 vle32.v K1, (t0) 120 vle32.v K2, (t0) 122 vle32.v K3, (t0) 124 vle32.v K4, (t0) 169 vmv.v.v PREV_FEBA, FEBA 170 vmv.v.v PREV_HGDC, HGDC 174 vrev8.v W0, W0 177 vrev8.v W1, W1 180 vrev8.v W2, W2 [all …]
|
| A D | sha512-riscv64-zvknhb-zvkb.S | 78 vle64.v VTMP, (K) 103 vmv.v.i MASK, 0x01 122 vmv.v.v PREV_FEBA, FEBA 123 vmv.v.v PREV_HGDC, HGDC 126 vle64.v W0, (DATA) 127 vrev8.v W0, W0 129 vle64.v W1, (DATA) 130 vrev8.v W1, W1 132 vle64.v W2, (DATA) 133 vrev8.v W2, W2 [all …]
|
| A D | chacha-riscv64-zvkb.S | 186 vmv.v.x v0, CONSTS0 190 vmv.v.x v4, KEY0 191 vmv.v.x v5, KEY1 192 vmv.v.x v6, KEY2 193 vmv.v.x v7, KEY3 194 vmv.v.x v8, KEY4 195 vmv.v.x v9, KEY5 196 vmv.v.x v10, KEY6 197 vmv.v.x v11, KEY7 198 vid.v v12 [all …]
|
| /lib/tests/ |
| A D | bitfield_kunit.c | 15 _res = u##tp##_encode_bits(v, field); \ 20 u##tp##_get_bits(_res, field) != v); \ 28 _res = le##tp##_encode_bits(v, field); \ 35 le##tp##_get_bits(_res, field) != v);\ 43 _res = be##tp##_encode_bits(v, field); \ 55 CHECK_ENC_GET_U(tp, v, field, res); \ 56 CHECK_ENC_GET_LE(tp, v, field, res); \ 57 CHECK_ENC_GET_BE(tp, v, field, res); \ 96 u64 v; \ 98 for (v = 0; v < 1 << hweight32(mask); v++) \ [all …]
|
| A D | string_kunit.c | 23 u16 v, *p; in string_test_memset16() local 30 memset(p, 0xa1, 256 * 2 * sizeof(v)); in string_test_memset16() 33 v = p[k]; in string_test_memset16() 35 KUNIT_ASSERT_EQ_MSG(test, v, 0xa1a1, in string_test_memset16() 38 KUNIT_ASSERT_EQ_MSG(test, v, 0xb1b2, in string_test_memset16() 41 KUNIT_ASSERT_EQ_MSG(test, v, 0xa1a1, in string_test_memset16() 52 u32 v, *p; in string_test_memset32() local 59 memset(p, 0xa1, 256 * 2 * sizeof(v)); in string_test_memset32() 62 v = p[k]; in string_test_memset32() 81 u64 v, *p; in string_test_memset64() local [all …]
|
| /lib/raid6/ |
| A D | mktables.c | 23 uint8_t v = 0; in gfmul() local 27 v ^= a; in gfmul() 32 return v; in gfmul() 37 uint8_t v = 1; in gfpow() local 45 v = gfmul(v, a); in gfpow() 50 return v; in gfpow() 56 uint8_t v; in main() local 109 v = 1; in main() 117 v = gfmul(v, 2); in main() 133 v = 255; in main() [all …]
|
| /lib/crypto/mpi/ |
| A D | mpi-cmp.c | 25 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui() argument 27 mpi_limb_t limb = v; in mpi_cmp_ui() 31 if (v == 0) in mpi_cmp_ui() 50 int mpi_cmp(MPI u, MPI v) in mpi_cmp() argument 56 mpi_normalize(v); in mpi_cmp() 58 vsize = v->nlimbs; in mpi_cmp() 59 if (!u->sign && v->sign) in mpi_cmp() 61 if (u->sign && !v->sign) in mpi_cmp() 63 if (usize != vsize && !u->sign && !v->sign) in mpi_cmp() 65 if (usize != vsize && u->sign && v->sign) in mpi_cmp() [all …]
|
| A D | mpi-add.c | 18 int mpi_add(MPI w, MPI u, MPI v) in mpi_add() argument 26 usize = v->nlimbs; in mpi_add() 27 usign = v->sign; in mpi_add() 35 up = v->d; in mpi_add() 40 vsize = v->nlimbs; in mpi_add() 41 vsign = v->sign; in mpi_add() 48 vp = v->d; in mpi_add() 91 int mpi_sub(MPI w, MPI u, MPI v) in mpi_sub() argument 96 vv = mpi_copy(v); in mpi_sub() 110 return mpi_add(w, u, v) ?: in mpi_addm() [all …]
|
| A D | mpi-mul.c | 18 int mpi_mul(MPI w, MPI u, MPI v) in mpi_mul() argument 28 if (u->nlimbs < v->nlimbs) { in mpi_mul() 30 usize = v->nlimbs; in mpi_mul() 31 usign = v->sign; in mpi_mul() 32 up = v->d; in mpi_mul() 40 vsize = v->nlimbs; in mpi_mul() 41 vsign = v->sign; in mpi_mul() 42 vp = v->d; in mpi_mul() 106 int mpi_mulm(MPI w, MPI u, MPI v, MPI m) in mpi_mulm() argument 108 return mpi_mul(w, u, v) ?: in mpi_mulm()
|
| A D | longlong.h | 239 "r" ((USItype)(v))); \ 248 "r" ((SItype)(v))); \ 250 #define __umulsidi3(u, v) \ argument 255 "r" ((USItype)(v))); \ 420 "rm" ((USItype)(v))) 479 #define __umulsidi3(u, v) \ argument 866 "g" ((USItype)(v))); \ 941 "r" ((USItype)(v)) \ 980 "r" ((USItype)(v))) 1005 "r" ((USItype)(v))) [all …]
|
| /lib/crypto/arm64/ |
| A D | sha512-ce-core.S | 76 ld1 {v\rc1\().2d}, [x4], #16 78 add v5.2d, v\rc0\().2d, v\in0\().2d 79 ext v6.16b, v\i2\().16b, v\i3\().16b, #8 81 ext v7.16b, v\i1\().16b, v\i2\().16b, #8 82 add v\i3\().2d, v\i3\().2d, v5.2d 84 ext v5.16b, v\in3\().16b, v\in4\().16b, #8 85 sha512su0 v\in0\().2d, v\in1\().2d 89 sha512su1 v\in0\().2d, v\in2\().2d, v5.2d 91 add v\i4\().2d, v\i1\().2d, v\i3\().2d 92 sha512h2 q\i3, q\i1, v\i0\().2d
|
| A D | sha256-ce.S | 32 add t1.4s, v\s0\().4s, \rc\().4s 37 add t0.4s, v\s0\().4s, \rc\().4s 45 sha256su0 v\s0\().4s, v\s1\().4s 47 sha256su1 v\s0\().4s, v\s2\().4s, v\s3\().4s
|
| A D | sha1-ce-core.S | 36 add t1.4s, v\s0\().4s, \rc\().4s 45 add t0.4s, v\s0\().4s, \rc\().4s 53 sha1su0 v\s0\().4s, v\s1\().4s, v\s2\().4s 55 sha1su1 v\s0\().4s, v\s3\().4s
|
| /lib/crc/tests/ |
| A D | crc_kunit.c | 59 static u64 crc_mask(const struct crc_variant *v) in crc_mask() argument 61 return (u64)-1 >> (64 - v->bits); in crc_mask() 65 static u64 crc_ref(const struct crc_variant *v, in crc_ref() argument 72 if (v->le) { in crc_ref() 77 (v->bits - 1); in crc_ref() 78 if (crc & (1ULL << (v->bits - 1))) in crc_ref() 79 crc = ((crc << 1) ^ v->poly) & in crc_ref() 80 crc_mask(v); in crc_ref() 119 return crc_mask(v); /* All 1 bits */ in generate_random_initial_crc() 121 return rand64() & crc_mask(v); in generate_random_initial_crc() [all …]
|
| /lib/lzo/ |
| A D | lzo1x_compress.c | 185 u64 v; in LZO_SAFE() local 188 if (unlikely(v == 0)) { in LZO_SAFE() 195 } while (v == 0); in LZO_SAFE() 198 m_len += (unsigned) __builtin_ctzll(v) / 8; in LZO_SAFE() 200 m_len += (unsigned) __builtin_clzll(v) / 8; in LZO_SAFE() 205 u32 v; in LZO_SAFE() 208 if (unlikely(v == 0)) { in LZO_SAFE() 213 if (v != 0) in LZO_SAFE() 220 } while (v == 0); in LZO_SAFE() 223 m_len += (unsigned) __builtin_ctz(v) / 8; in LZO_SAFE() [all …]
|