/kernel/linux/linux-6.6/crypto/ |
H A D | chacha20poly1305.c | 21 struct crypto_ahash_spawn poly; member 27 struct crypto_ahash *poly; member 65 struct poly_req poly; member 174 struct poly_req *preq = &rctx->u.poly; in poly_tail() 183 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_tail() 203 struct poly_req *preq = &rctx->u.poly; in poly_cipherpad() 213 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipherpad() 232 struct poly_req *preq = &rctx->u.poly; in poly_cipher() 243 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipher() 262 struct poly_req *preq = &rctx->u.poly; in poly_adpad() 506 struct crypto_ahash *poly; chachapoly_init() local 562 struct hash_alg_common *poly; chachapoly_create() local [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | chacha20poly1305.c | 21 struct crypto_ahash_spawn poly; member 27 struct crypto_ahash *poly; member 65 struct poly_req poly; member 174 struct poly_req *preq = &rctx->u.poly; in poly_tail() 183 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_tail() 203 struct poly_req *preq = &rctx->u.poly; in poly_cipherpad() 213 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipherpad() 232 struct poly_req *preq = &rctx->u.poly; in poly_cipher() 243 ahash_request_set_tfm(&preq->req, ctx->poly); in poly_cipher() 262 struct poly_req *preq = &rctx->u.poly; in poly_adpad() 506 struct crypto_ahash *poly; chachapoly_init() local 562 struct hash_alg_common *poly; chachapoly_create() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | bch.c | 114 struct gf_poly poly; member 308 static inline int deg(unsigned int poly) in deg() argument 311 return fls(poly)-1; in deg() 375 uint32_t poly; in compute_syndromes() local 388 poly = *ecc++; in compute_syndromes() 390 while (poly) { in compute_syndromes() 391 i = deg(poly); in compute_syndromes() 395 poly ^= (1 << i); in compute_syndromes() 578 static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg1_roots() argument 583 if (poly in find_poly_deg1_roots() 593 find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg2_roots() argument 635 find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg3_roots() argument 668 find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg4_roots() argument 907 find_poly_roots(struct bch_control *bch, unsigned int k, struct gf_poly *poly, unsigned int *roots) find_poly_roots() argument 1086 build_gf_tables(struct bch_control *bch, unsigned int poly) build_gf_tables() argument [all...] |
H A D | gen_crc64table.c | 25 static void generate_reflected_crc64_table(uint64_t table[256], uint64_t poly) in generate_reflected_crc64_table() argument 35 crc = (crc >> 1) ^ poly; in generate_reflected_crc64_table() 43 static void generate_crc64_table(uint64_t table[256], uint64_t poly) in generate_crc64_table() argument 53 crc = (crc << 1) ^ poly; in generate_crc64_table()
|
H A D | polynomial.c | 70 * @poly: pointer to the descriptor of the polynomial 79 long polynomial_calc(const struct polynomial *poly, long data) in polynomial_calc() argument 81 const struct polynomial_term *term = poly->terms; in polynomial_calc() 82 long total_divider = poly->total_divider ?: 1; in polynomial_calc()
|
/kernel/linux/linux-5.10/lib/ |
H A D | bch.c | 113 struct gf_poly poly; member 342 static inline int deg(unsigned int poly) in deg() argument 345 return fls(poly)-1; in deg() 409 uint32_t poly; in compute_syndromes() local 422 poly = *ecc++; in compute_syndromes() 424 while (poly) { in compute_syndromes() 425 i = deg(poly); in compute_syndromes() 429 poly ^= (1 << i); in compute_syndromes() 612 static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg1_roots() argument 617 if (poly in find_poly_deg1_roots() 627 find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg2_roots() argument 669 find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg3_roots() argument 702 find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots) find_poly_deg4_roots() argument 941 find_poly_roots(struct bch_control *bch, unsigned int k, struct gf_poly *poly, unsigned int *roots) find_poly_roots() argument 1120 build_gf_tables(struct bch_control *bch, unsigned int poly) build_gf_tables() argument [all...] |
/kernel/linux/linux-5.10/lib/xz/ |
H A D | xz_crc32.c | 32 const uint32_t poly = CRC32_POLY_LE; in xz_crc32_init() local 41 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc32_init()
|
/kernel/linux/linux-6.6/lib/xz/ |
H A D | xz_crc32.c | 32 const uint32_t poly = CRC32_POLY_LE; in xz_crc32_init() local 41 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc32_init()
|
/kernel/linux/linux-5.10/drivers/crypto/stm32/ |
H A D | stm32-crc32.c | 65 u32 poly; member 77 mctx->poly = CRC32_POLY_LE; in stm32_crc32_cra_init() 86 mctx->poly = CRC32C_POLY_LE; in stm32_crc32c_cra_init() 130 /* Reset, set key, poly and configure in bit reverse mode */ in stm32_crc_init() 132 writel_relaxed(bitrev32(mctx->poly), crc->regs + CRC_POL); in stm32_crc_init() 162 if (mctx->poly == CRC32_POLY_LE) in burst_update() 177 writel_relaxed(bitrev32(mctx->poly), crc->regs + CRC_POL); in burst_update() 248 put_unaligned_le32(mctx->poly == CRC32C_POLY_LE ? in stm32_crc_final()
|
/kernel/linux/linux-6.6/drivers/crypto/stm32/ |
H A D | stm32-crc32.c | 65 u32 poly; member 77 mctx->poly = CRC32_POLY_LE; in stm32_crc32_cra_init() 86 mctx->poly = CRC32C_POLY_LE; in stm32_crc32c_cra_init() 130 /* Reset, set key, poly and configure in bit reverse mode */ in stm32_crc_init() 132 writel_relaxed(bitrev32(mctx->poly), crc->regs + CRC_POL); in stm32_crc_init() 162 if (mctx->poly == CRC32_POLY_LE) in burst_update() 177 writel_relaxed(bitrev32(mctx->poly), crc->regs + CRC_POL); in burst_update() 248 put_unaligned_le32(mctx->poly == CRC32C_POLY_LE ? in stm32_crc_final()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/atmel/ |
H A D | pmecc.c | 186 static inline int deg(unsigned int poly) in deg() argument 189 return fls(poly) - 1; in deg() 192 static int atmel_pmecc_build_gf_tables(int mm, unsigned int poly, in atmel_pmecc_build_gf_tables() argument 196 const unsigned int k = BIT(deg(poly)); in atmel_pmecc_build_gf_tables() 211 x ^= poly; in atmel_pmecc_build_gf_tables() 223 unsigned int poly, degree, table_size; in atmel_pmecc_create_gf_tables() local 228 poly = PMECC_GF_13_PRIMITIVE_POLY; in atmel_pmecc_create_gf_tables() 232 poly = PMECC_GF_14_PRIMITIVE_POLY; in atmel_pmecc_create_gf_tables() 245 ret = atmel_pmecc_build_gf_tables(degree, poly, gf_tables); in atmel_pmecc_create_gf_tables()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/atmel/ |
H A D | pmecc.c | 186 static inline int deg(unsigned int poly) in deg() argument 189 return fls(poly) - 1; in deg() 192 static int atmel_pmecc_build_gf_tables(int mm, unsigned int poly, in atmel_pmecc_build_gf_tables() argument 196 const unsigned int k = BIT(deg(poly)); in atmel_pmecc_build_gf_tables() 211 x ^= poly; in atmel_pmecc_build_gf_tables() 223 unsigned int poly, degree, table_size; in atmel_pmecc_create_gf_tables() local 228 poly = PMECC_GF_13_PRIMITIVE_POLY; in atmel_pmecc_create_gf_tables() 232 poly = PMECC_GF_14_PRIMITIVE_POLY; in atmel_pmecc_create_gf_tables() 245 ret = atmel_pmecc_build_gf_tables(degree, poly, gf_tables); in atmel_pmecc_create_gf_tables()
|
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | aesni-intel_avx-x86_64.S | 117 ## poly = x^128 + x^127 + x^126 + x^121 + 1 192 HashKey = 16*6 # store HashKey <<1 mod poly here 193 HashKey_2 = 16*7 # store HashKey^2 <<1 mod poly here 194 HashKey_3 = 16*8 # store HashKey^3 <<1 mod poly here 195 HashKey_4 = 16*9 # store HashKey^4 <<1 mod poly here 196 HashKey_5 = 16*10 # store HashKey^5 <<1 mod poly here 197 HashKey_6 = 16*11 # store HashKey^6 <<1 mod poly here 198 HashKey_7 = 16*12 # store HashKey^7 <<1 mod poly here 199 HashKey_8 = 16*13 # store HashKey^8 <<1 mod poly here 200 HashKey_k = 16*14 # store XOR of HashKey <<1 mod poly her [all...] |
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A D | aesni-intel_avx-x86_64.S | 117 ## poly = x^128 + x^127 + x^126 + x^121 + 1 168 HashKey = 16*6 # store HashKey <<1 mod poly here 169 HashKey_2 = 16*7 # store HashKey^2 <<1 mod poly here 170 HashKey_3 = 16*8 # store HashKey^3 <<1 mod poly here 171 HashKey_4 = 16*9 # store HashKey^4 <<1 mod poly here 172 HashKey_5 = 16*10 # store HashKey^5 <<1 mod poly here 173 HashKey_6 = 16*11 # store HashKey^6 <<1 mod poly here 174 HashKey_7 = 16*12 # store HashKey^7 <<1 mod poly here 175 HashKey_8 = 16*13 # store HashKey^8 <<1 mod poly here 176 HashKey_k = 16*14 # store XOR of HashKey <<1 mod poly her [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | polynomial.h | 33 long polynomial_calc(const struct polynomial *poly, long data);
|
H A D | pstore_ram.h | 17 int poly; member
|
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
H A D | sja1105_dynamic_config.c | 518 sja1105_packing(buf, &entry->poly, 7, 0, in sja1105et_l2_lookup_params_entry_packing() 993 static u8 sja1105_crc8_add(u8 crc, u8 byte, u8 poly) in sja1105_crc8_add() argument 1000 crc ^= poly; in sja1105_crc8_add() 1019 u64 poly_koopman = l2_lookup_params->poly; in sja1105et_fdb_hash() 1021 u8 poly = (u8)(1 + (poly_koopman << 1)); in sja1105et_fdb_hash() local 1031 crc = sja1105_crc8_add(crc, byte, poly); in sja1105et_fdb_hash()
|
/kernel/linux/linux-5.10/arch/m68k/fpsp040/ |
H A D | slogn.S | 35 | log(1+u) = poly. 38 | by k*log(2) + (log(F) + poly). The values of log(F) are calculated 47 | k*log(2) + log(F) + poly where poly approximates log(1+u),
|
/kernel/linux/linux-6.6/arch/m68k/fpsp040/ |
H A D | slogn.S | 35 | log(1+u) = poly. 38 | by k*log(2) + (log(F) + poly). The values of log(F) are calculated 47 | k*log(2) + log(F) + poly where poly approximates log(1+u),
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | pstore_ram.h | 38 int poly; member
|
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/ |
H A D | sja1105_dynamic_config.c | 660 sja1105_packing(buf, &entry->poly, 7, 0, in sja1105et_l2_lookup_params_entry_packing() 1372 static u8 sja1105_crc8_add(u8 crc, u8 byte, u8 poly) in sja1105_crc8_add() argument 1379 crc ^= poly; in sja1105_crc8_add() 1398 u64 input, poly_koopman = l2_lookup_params->poly; in sja1105et_fdb_hash() 1400 u8 poly = (u8)(1 + (poly_koopman << 1)); in sja1105et_fdb_hash() local 1410 crc = sja1105_crc8_add(crc, byte, poly); in sja1105et_fdb_hash()
|
/kernel/linux/linux-5.10/fs/pstore/ |
H A D | ram_core.c | 202 prz->ecc_info.poly = ecc_info->poly ?: 0x11d; in persistent_ram_init_ecc() 224 prz->rs_decoder = init_rs(prz->ecc_info.symsize, prz->ecc_info.poly, in persistent_ram_init_ecc()
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
H A D | sas_init.c | 73 const u32 poly = 0x00DB2777; in sas_hash_addr() local 84 r ^= poly; in sas_hash_addr() 86 r ^= poly; in sas_hash_addr()
|
/kernel/linux/linux-6.6/fs/pstore/ |
H A D | ram_core.c | 202 prz->ecc_info.poly = ecc_info->poly ?: 0x11d; in persistent_ram_init_ecc() 224 prz->rs_decoder = init_rs(prz->ecc_info.symsize, prz->ecc_info.poly, in persistent_ram_init_ecc()
|
/kernel/linux/linux-6.6/drivers/scsi/libsas/ |
H A D | sas_init.c | 70 const u32 poly = 0x00DB2777; in sas_hash_addr() local 81 r ^= poly; in sas_hash_addr() 83 r ^= poly; in sas_hash_addr()
|