/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 506 struct crypto_ahash *poly; in chachapoly_init() local 509 poly = crypto_spawn_ahash(&ictx->poly); in chachapoly_init() 510 if (IS_ERR(poly)) in chachapoly_init() 511 return PTR_ERR(poly); in chachapoly_init() 515 crypto_free_ahash(poly); in chachapoly_init() 520 ctx->poly = poly; in chachapoly_init() 542 crypto_free_ahash(ctx->poly); in chachapoly_exit() [all …]
|
/linux/arch/riscv/lib/ |
H A D | crc32.c | 66 static inline u32 crc32_le_zbc(unsigned long s, u32 poly, unsigned long poly_qt) in crc32_le_zbc() argument 82 "r" ((u64)poly << 32) in crc32_le_zbc() 104 static inline u32 crc32_le_zbc(unsigned long s, u32 poly, unsigned long poly_qt) in crc32_le_zbc() argument 119 "r" (poly) in crc32_le_zbc() 157 size_t len, u32 poly, in crc32_le_unaligned() argument 171 crc = crc32_le_zbc(s, poly, poly_qt); in crc32_le_unaligned() 178 size_t len, u32 poly, in crc32_le_generic() argument 194 crc = crc32_le_unaligned(crc, p, head_len, poly, poly_qt); in crc32_le_generic() 205 crc = crc32_le_zbc(s, poly, poly_qt); in crc32_le_generic() 212 crc = crc32_le_unaligned(crc, p, tail_len, poly, poly_qt); in crc32_le_generic()
|
/linux/lib/ |
H A D | bch.c | 114 struct gf_poly poly; member 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() 580 if (poly->c[0]) in find_poly_deg1_roots() 596 if (poly->c[0] && poly->c[1]) { in find_poly_deg2_roots() 638 if (poly->c[0]) { in find_poly_deg3_roots() 640 e3 = poly->c[3]; in find_poly_deg3_roots() 675 e4 = poly->c[4]; in find_poly_deg4_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()
|
/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()
|
/linux/lib/xz/ |
H A D | xz_crc32.c | 31 const uint32_t poly = 0xEDB88320; in xz_crc32_init() local 40 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc32_init()
|
/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()
|
/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
|
/linux/drivers/gpu/drm/ |
H A D | drm_panic_qr.rs | 248 fn poly(&self) -> &'static [u8] { in poly() method 475 poly: &'static [u8], field 489 let poly = version.poly(); in new() localVariable 501 poly, in new() 567 for (u, &v) in tmp[i + 1..].iter_mut().zip(self.poly.iter()) { in error_code_for_blocks()
|
/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
|
/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()
|
/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
|
H A D | sja1105_static_config.c | 295 sja1105_packing(buf, &entry->poly, 13, 6, size, op); in sja1105et_l2_lookup_params_entry_packing()
|
H A D | sja1105_main.c | 396 .poly = 0x97, in sja1105_init_l2_lookup_params()
|
/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()
|
/linux/drivers/char/hw_random/ |
H A D | n2-drv.c | 486 static u64 advance_polynomial(u64 poly, u64 val, int count) in advance_polynomial() argument 495 val ^= poly; in advance_polynomial()
|
/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()
|
/linux/Documentation/hwmon/ |
H A D | ltc2978.rst | 214 - LTC3880, LTC3882, LTC3886, and LTC3887 are dual output poly-phase step-down
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 506 "Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe",
|
/linux/tools/perf/scripts/python/ |
H A D | exported-sql-viewer.py | 1849 poly = view.mapFromScene(scene_rectf) 1850 self.rubber_band.setGeometry(poly.boundingRect())
|
/linux/drivers/dma/ppc4xx/ |
H A D | adma.c | 4396 static DRIVER_ATTR_RW(poly);
|