Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 9 of 9) sorted by relevance

/lib/reed_solomon/
A Dreed_solomon.c76 rs = kzalloc(sizeof(*rs), gfp); in codec_init()
77 if (!rs) in codec_init()
105 rs->alpha_to[rs->nn] = 0; /* alpha**-inf = 0 */ in codec_init()
140 rs->genpoly[j] = rs->genpoly[j -1] ^ in codec_init()
141 rs->alpha_to[rs_modnn(rs, in codec_init()
142 rs->index_of[rs->genpoly[j]] + root)]; in codec_init()
144 rs->genpoly[j] = rs->genpoly[j - 1]; in codec_init()
148 rs->alpha_to[rs_modnn(rs, in codec_init()
149 rs->index_of[rs->genpoly[0]] + root)]; in codec_init()
153 rs->genpoly[i] = rs->index_of[rs->genpoly[i]]; in codec_init()
[all …]
A Dtest_rslib.c110 int nroots = rs->nroots; in alloc_ws()
112 int nn = rs->nn; in alloc_ws()
154 int nroots = rs->codec->nroots; in get_rcw_we()
158 int nn = rs->codec->nn; in get_rcw_we()
235 int nroots = rs->nroots; in compute_syndrome()
236 int prim = rs->prim; in compute_syndrome()
237 int fcr = rs->fcr; in compute_syndrome()
256 syn[i] = rs->index_of[syn[i]]; in compute_syndrome()
323 int nroots = rs->codec->nroots; in ex_rs_helper()
370 int nroots = rs->codec->nroots; in test_bc()
[all …]
A Ddecode_rs.c13 struct rs_codec *rs = rsc->codec; variable
16 int nn = rs->nn;
17 int nroots = rs->nroots;
18 int fcr = rs->fcr;
19 int prim = rs->prim;
20 int iprim = rs->iprim;
21 uint16_t *alpha_to = rs->alpha_to;
22 uint16_t *index_of = rs->index_of;
26 uint16_t msk = (uint16_t) rs->nn;
111 lambda[1] = alpha_to[rs_modnn(rs,
[all …]
A Dencode_rs.c13 struct rs_codec *rs = rsc->codec; variable
15 int nn = rs->nn;
16 int nroots = rs->nroots;
17 uint16_t *alpha_to = rs->alpha_to;
18 uint16_t *index_of = rs->index_of;
19 uint16_t *genpoly = rs->genpoly;
21 uint16_t msk = (uint16_t) rs->nn;
33 par[j] ^= alpha_to[rs_modnn(rs, fb +
40 par[nroots - 1] = alpha_to[rs_modnn(rs,
/lib/
A Dratelimit.c33 int interval = READ_ONCE(rs->interval); in ___ratelimit()
34 int burst = READ_ONCE(rs->burst); in ___ratelimit()
50 rs->flags &= ~RATELIMIT_INITIALIZED; in ___ratelimit()
62 atomic_read(&rs->rs_n_left) > 0 && atomic_dec_return(&rs->rs_n_left) >= 0) in ___ratelimit()
68 rs->begin = jiffies; in ___ratelimit()
69 rs->flags |= RATELIMIT_INITIALIZED; in ___ratelimit()
70 atomic_set(&rs->rs_n_left, rs->burst); in ___ratelimit()
80 atomic_set(&rs->rs_n_left, rs->burst); in ___ratelimit()
81 rs->begin = jiffies; in ___ratelimit()
93 if (atomic_read(&rs->rs_n_left) > 0 && atomic_dec_return(&rs->rs_n_left) >= 0) in ___ratelimit()
[all …]
A Dtest_hexdump.c74 int gs = groupsize, rs = rowsize; in test_hexdump_prepare_test() local
78 if (rs != 16 && rs != 32) in test_hexdump_prepare_test()
79 rs = 16; in test_hexdump_prepare_test()
81 if (l > rs) in test_hexdump_prepare_test()
82 l = rs; in test_hexdump_prepare_test()
114 } while (p < test + rs * 2 + rs / gs + 1); in test_hexdump_prepare_test()
166 int rs = rowsize, gs = groupsize; in test_hexdump_overflow() local
174 r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii); in test_hexdump_overflow()
180 ae = rs * 2 /* hex */ + rs / gs /* spaces */ + 1 /* space */ + len /* ascii */; in test_hexdump_overflow()
211 int rs = get_random_u32_inclusive(1, 2) * 16; in test_hexdump_overflow_set() local
[all …]
A Dtest_bpf.c1426 int rd, rs; in __bpf_fill_alu_reg_pairs() local
1455 for (rs = R0; rs <= R9; rs++) { in __bpf_fill_alu_reg_pairs()
1456 u64 val = rd == rs ? same : res; in __bpf_fill_alu_reg_pairs()
1918 int rd, rs, i = 0; in __bpf_fill_atomic_reg_pairs() local
1947 for (rs = R0; rs <= R9; rs++) { in __bpf_fill_atomic_reg_pairs()
1956 i += __bpf_ld_imm64(&insn[i], rs, upd); in __bpf_fill_atomic_reg_pairs()
1967 else if (R0 == rd || R0 == rs) in __bpf_fill_atomic_reg_pairs()
1984 if (rs == R0 && op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs()
1996 insn[i++] = BPF_JMP32_IMM(BPF_JEQ, rs, in __bpf_fill_atomic_reg_pairs()
2001 insn[i++] = BPF_JMP32_IMM(BPF_JEQ, rs, in __bpf_fill_atomic_reg_pairs()
[all …]
/lib/crypto/
A Ddes.c651 w = (a ^ c) | (b ^ d) | (rs[a] ^ c) | (b ^ rs[d]); in des_ekey()
662 w |= (a ^ c) | (b ^ d) | (rs[a] ^ c) | (b ^ rs[d]); in des_ekey()
725 pe[ 1 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey()
726 pe[ 2 * 2] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in dkey()
727 pe[ 3 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey()
728 pe[ 4 * 2] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in dkey()
729 pe[ 5 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey()
730 pe[ 6 * 2] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in dkey()
732 pe[ 8 * 2] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in dkey()
733 pe[ 9 * 2] = DES_PC2(a, b, c, d); d = rs[d]; c = rs[c]; in dkey()
[all …]
/lib/crc/mips/
A Dcrc32.h17 _ASM_MACRO_3R(OP, rt, rs, rt2, \

Completed in 27 milliseconds