poly               23 crypto/chacha20poly1305.c 	struct crypto_ahash_spawn poly;
poly               29 crypto/chacha20poly1305.c 	struct crypto_ahash *poly;
poly               67 crypto/chacha20poly1305.c 		struct poly_req poly;
poly              176 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              185 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              205 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              215 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              234 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              245 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              264 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              274 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              293 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              298 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              317 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              324 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              343 crypto/chacha20poly1305.c 	struct poly_req *preq = &rctx->u.poly;
poly              348 crypto/chacha20poly1305.c 	ahash_request_set_tfm(&preq->req, ctx->poly);
poly              513 crypto/chacha20poly1305.c 	struct crypto_ahash *poly;
poly              516 crypto/chacha20poly1305.c 	poly = crypto_spawn_ahash(&ictx->poly);
poly              517 crypto/chacha20poly1305.c 	if (IS_ERR(poly))
poly              518 crypto/chacha20poly1305.c 		return PTR_ERR(poly);
poly              522 crypto/chacha20poly1305.c 		crypto_free_ahash(poly);
poly              527 crypto/chacha20poly1305.c 	ctx->poly = poly;
poly              540 crypto/chacha20poly1305.c 		    crypto_ahash_reqsize(poly)));
poly              549 crypto/chacha20poly1305.c 	crypto_free_ahash(ctx->poly);
poly              558 crypto/chacha20poly1305.c 	crypto_drop_ahash(&ctx->poly);
poly              568 crypto/chacha20poly1305.c 	struct crypto_alg *poly;
poly              591 crypto/chacha20poly1305.c 	poly = crypto_find_alg(poly_name, &crypto_ahash_type,
poly              596 crypto/chacha20poly1305.c 	if (IS_ERR(poly))
poly              597 crypto/chacha20poly1305.c 		return PTR_ERR(poly);
poly              598 crypto/chacha20poly1305.c 	poly_hash = __crypto_hash_alg_common(poly);
poly              611 crypto/chacha20poly1305.c 	err = crypto_init_ahash_spawn(&ctx->poly, poly_hash,
poly              636 crypto/chacha20poly1305.c 		     poly->cra_name) >= CRYPTO_MAX_ALG_NAME)
poly              640 crypto/chacha20poly1305.c 		     poly->cra_driver_name) >= CRYPTO_MAX_ALG_NAME)
poly              643 crypto/chacha20poly1305.c 	inst->alg.base.cra_flags = (chacha->base.cra_flags | poly->cra_flags) &
poly              646 crypto/chacha20poly1305.c 				       poly->cra_priority) / 2;
poly              649 crypto/chacha20poly1305.c 				       poly->cra_alignmask;
poly              669 crypto/chacha20poly1305.c 	crypto_mod_put(poly);
poly              675 crypto/chacha20poly1305.c 	crypto_drop_ahash(&ctx->poly);
poly              485 drivers/char/hw_random/n2-drv.c static u64 advance_polynomial(u64 poly, u64 val, int count)
poly              494 drivers/char/hw_random/n2-drv.c 			val ^= poly;
poly               57 drivers/crypto/stm32/stm32-crc32.c 	u32 poly;
poly               70 drivers/crypto/stm32/stm32-crc32.c 	mctx->poly = CRC32_POLY_LE;
poly               79 drivers/crypto/stm32/stm32-crc32.c 	mctx->poly = CRC32C_POLY_LE;
poly              114 drivers/crypto/stm32/stm32-crc32.c 	writel_relaxed(bitrev32(mctx->poly), ctx->crc->regs + CRC_POL);
poly              188 drivers/crypto/stm32/stm32-crc32.c 	put_unaligned_le32(mctx->poly == CRC32C_POLY_LE ?
poly             4397 drivers/dma/ppc4xx/adma.c static DRIVER_ATTR_RW(poly);
poly              186 drivers/mtd/nand/raw/atmel/pmecc.c static inline int deg(unsigned int poly)
poly              189 drivers/mtd/nand/raw/atmel/pmecc.c 	return fls(poly) - 1;
poly              192 drivers/mtd/nand/raw/atmel/pmecc.c static int atmel_pmecc_build_gf_tables(int mm, unsigned int poly,
poly              196 drivers/mtd/nand/raw/atmel/pmecc.c 	const unsigned int k = BIT(deg(poly));
poly              211 drivers/mtd/nand/raw/atmel/pmecc.c 			x ^= poly;
poly              223 drivers/mtd/nand/raw/atmel/pmecc.c 	unsigned int poly, degree, table_size;
poly              228 drivers/mtd/nand/raw/atmel/pmecc.c 		poly = PMECC_GF_13_PRIMITIVE_POLY;
poly              232 drivers/mtd/nand/raw/atmel/pmecc.c 		poly = PMECC_GF_14_PRIMITIVE_POLY;
poly              245 drivers/mtd/nand/raw/atmel/pmecc.c 	ret = atmel_pmecc_build_gf_tables(degree, poly, gf_tables);
poly              456 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 	sja1105_packing(buf, &entry->poly, 7, 0,
poly              787 drivers/net/dsa/sja1105/sja1105_dynamic_config.c static u8 sja1105_crc8_add(u8 crc, u8 byte, u8 poly)
poly              794 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 			crc ^= poly;
poly              813 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 	u64 poly_koopman = l2_lookup_params->poly;
poly              815 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 	u8 poly = (u8)(1 + (poly_koopman << 1));
poly              825 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 		crc = sja1105_crc8_add(crc, byte, poly);
poly              218 drivers/net/dsa/sja1105/sja1105_main.c 		.poly = 0x97,
poly              223 drivers/net/dsa/sja1105/sja1105_static_config.c 	sja1105_packing(buf, &entry->poly,           13,  6, size, op);
poly              206 drivers/net/dsa/sja1105/sja1105_static_config.h 	u64 poly;            /* E/T only */
poly             1291 drivers/net/ethernet/amd/nmclan_cs.c   static const int poly[]={
poly             1309 drivers/net/ethernet/amd/nmclan_cs.c       CRC[j] ^= poly[j];
poly               73 drivers/scsi/libsas/sas_init.c 	const u32 poly = 0x00DB2777;
poly               84 drivers/scsi/libsas/sas_init.c 					r ^= poly;
poly               86 drivers/scsi/libsas/sas_init.c 				r ^= poly;
poly              202 fs/pstore/ram_core.c 	prz->ecc_info.poly = ecc_info->poly ?: 0x11d;
poly              224 fs/pstore/ram_core.c 	prz->rs_decoder = init_rs(prz->ecc_info.symsize, prz->ecc_info.poly,
poly               38 include/linux/pstore_ram.h 	int poly;
poly              113 lib/bch.c      	struct gf_poly poly;
poly              285 lib/bch.c      static inline int deg(unsigned int poly)
poly              288 lib/bch.c      	return fls(poly)-1;
poly              352 lib/bch.c      	uint32_t poly;
poly              365 lib/bch.c      		poly = *ecc++;
poly              367 lib/bch.c      		while (poly) {
poly              368 lib/bch.c      			i = deg(poly);
poly              372 lib/bch.c      			poly ^= (1 << i);
poly              555 lib/bch.c      static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly,
poly              560 lib/bch.c      	if (poly->c[0])
poly              562 lib/bch.c      		roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+
poly              563 lib/bch.c      				   bch->a_log_tab[poly->c[1]]);
poly              570 lib/bch.c      static int find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly,
poly              576 lib/bch.c      	if (poly->c[0] && poly->c[1]) {
poly              578 lib/bch.c      		l0 = bch->a_log_tab[poly->c[0]];
poly              579 lib/bch.c      		l1 = bch->a_log_tab[poly->c[1]];
poly              580 lib/bch.c      		l2 = bch->a_log_tab[poly->c[2]];
poly              612 lib/bch.c      static int find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly,
poly              618 lib/bch.c      	if (poly->c[0]) {
poly              620 lib/bch.c      		e3 = poly->c[3];
poly              621 lib/bch.c      		c2 = gf_div(bch, poly->c[0], e3);
poly              622 lib/bch.c      		b2 = gf_div(bch, poly->c[1], e3);
poly              623 lib/bch.c      		a2 = gf_div(bch, poly->c[2], e3);
poly              645 lib/bch.c      static int find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly,
poly              651 lib/bch.c      	if (poly->c[0] == 0)
poly              655 lib/bch.c      	e4 = poly->c[4];
poly              656 lib/bch.c      	d = gf_div(bch, poly->c[0], e4);
poly              657 lib/bch.c      	c = gf_div(bch, poly->c[1], e4);
poly              658 lib/bch.c      	b = gf_div(bch, poly->c[2], e4);
poly              659 lib/bch.c      	a = gf_div(bch, poly->c[3], e4);
poly              873 lib/bch.c      			*h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly;
poly              885 lib/bch.c      			   struct gf_poly *poly, unsigned int *roots)
poly              890 lib/bch.c      	switch (poly->deg) {
poly              893 lib/bch.c      		cnt = find_poly_deg1_roots(bch, poly, roots);
poly              896 lib/bch.c      		cnt = find_poly_deg2_roots(bch, poly, roots);
poly              899 lib/bch.c      		cnt = find_poly_deg3_roots(bch, poly, roots);
poly              902 lib/bch.c      		cnt = find_poly_deg4_roots(bch, poly, roots);
poly              907 lib/bch.c      		if (poly->deg && (k <= GF_M(bch))) {
poly              908 lib/bch.c      			factor_polynomial(bch, k, poly, &f1, &f2);
poly             1061 lib/bch.c      static int build_gf_tables(struct bch_control *bch, unsigned int poly)
poly             1064 lib/bch.c      	const unsigned int k = 1 << deg(poly);
poly             1078 lib/bch.c      			x ^= poly;
poly               32 lib/xz/xz_crc32.c 	const uint32_t poly = CRC32_POLY_LE;
poly               41 lib/xz/xz_crc32.c 			r = (r >> 1) ^ (poly & ~((r & 1) - 1));