/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | omap_elm.c | 32 static void elm_load_syndromes(u8 *syndrome, enum bch_level bch_type, u8 poly) in elm_load_syndromes() argument 38 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[0]; in elm_load_syndromes() 43 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[1]; in elm_load_syndromes() 50 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[2]; in elm_load_syndromes() 55 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[3]; in elm_load_syndromes() 63 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[4]; in elm_load_syndromes() 69 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[5]; in elm_load_syndromes() 75 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]; in elm_load_syndromes() 96 u8 poly = ELM_DEFAULT_POLY; in elm_check_error() local 100 elm_load_syndromes(syndrome, bch_type, poly); in elm_check_error() [all …]
|
H A D | atmel_nand.c | 750 static inline int deg(unsigned int poly) in deg() argument 753 return fls(poly) - 1; in deg() 756 static int build_gf_tables(int mm, unsigned int poly, in build_gf_tables() argument 760 const unsigned int k = 1 << deg(poly); in build_gf_tables() 775 x ^= poly; in build_gf_tables() 789 unsigned int poly = (sector_size == 512) ? in create_lookup_table() local 797 if (addr && build_gf_tables(degree, poly, addr, addr + table_size)) in create_lookup_table()
|
/openbmc/linux/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() [all …]
|
/openbmc/linux/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->c[0]) in find_poly_deg1_roots() [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 | 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()
|
/openbmc/u-boot/lib/ |
H A D | bch.c | 121 struct gf_poly poly; member 321 static inline int deg(unsigned int poly) in deg() argument 324 return fls(poly)-1; in deg() 388 uint32_t poly; in compute_syndromes() local 401 poly = *ecc++; in compute_syndromes() 403 while (poly) { in compute_syndromes() 404 i = deg(poly); in compute_syndromes() 408 poly ^= (1 << i); in compute_syndromes() 591 static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg1_roots() argument 596 if (poly->c[0]) in find_poly_deg1_roots() [all …]
|
H A D | crc32c.c | 29 const uint32_t poly = pol; /* Bit-reflected CRC32C polynomial */ in crc32c_init() local 34 v = (v >> 1) ^ ((v & 1) ? poly : 0); in crc32c_init()
|
H A D | crc32.c | 66 uLong poly; /* polynomial exclusive-or pattern */ in make_crc_table() local 72 poly = 0L; in make_crc_table() 74 poly |= 1L << (31 - p[n]); in make_crc_table() 80 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
|
/openbmc/u-boot/tools/ |
H A D | pbl_crc32.c | 16 uint32_t poly; /* polynomial exclusive-or pattern */ in make_crc_table() local 25 poly = 0x04c11db7; in make_crc_table() 31 mask = (mask << 1) ^ poly; in make_crc_table()
|
/openbmc/linux/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() 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()
|
/openbmc/linux/lib/xz/ |
H A D | xz_crc32.c | 32 const uint32_t poly = 0xEDB88320; in xz_crc32_init() local 41 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc32_init()
|
/openbmc/linux/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 here (for Karatsuba purposes) [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/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
|
/openbmc/u-boot/drivers/w1-eeprom/ |
H A D | ds2502.c | 39 static const u8 poly = 0x8C; /* (1 + x^4 + x^5) + x^8 */ in ds2502_crc8() local 52 crc ^= poly; in ds2502_crc8()
|
/openbmc/linux/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),
|
H A D | satan.S | 30 | Step 3. Approximate arctan(u) by a polynomial poly. 32 | Step 4. Return arctan(F) + poly, arctan(F) is fetched from a table of values
|
/openbmc/linux/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()
|
H A D | sja1105_static_config.h | 288 u64 poly; /* E/T only */ member
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | n2-drv.c | 485 static u64 advance_polynomial(u64 poly, u64 val, int count) in advance_polynomial() argument 494 val ^= poly; in advance_polynomial()
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | nmclan_cs.c | 1289 static const int poly[]={ in updateCRC() local 1307 CRC[j] ^= poly[j]; in updateCRC()
|