Searched refs:poly (Results 1 – 7 of 7) sorted by relevance
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()96 u8 poly = ELM_DEFAULT_POLY; in elm_check_error() local100 elm_load_syndromes(syndrome, bch_type, poly); in elm_check_error()105 &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]); in elm_check_error()108 while ((readl(&elm_cfg->irqstatus) & (0x1 << poly)) != 0x1) in elm_check_error()111 writel((readl(&elm_cfg->irqstatus) | (0x1 << poly)), in elm_check_error()146 u8 poly = ELM_DEFAULT_POLY; in elm_config() local157 writel((readl(&elm_cfg->irqenable) | (0x1 << poly)), in elm_config()[all …]
761 static inline int deg(unsigned int poly) in deg() argument764 return fls(poly) - 1; in deg()767 static int build_gf_tables(int mm, unsigned int poly, in build_gf_tables() argument771 const unsigned int k = 1 << deg(poly); in build_gf_tables()786 x ^= poly; in build_gf_tables()800 unsigned int poly = (sector_size == 512) ? in create_lookup_table() local808 if (addr && build_gf_tables(degree, poly, addr, addr + table_size)) in create_lookup_table()
17 uint32_t poly; /* polynomial exclusive-or pattern */ in make_crc_table() local26 poly = 0x04c11db7; in make_crc_table()32 mask = (mask << 1) ^ poly; in make_crc_table()
124 struct gf_poly poly; member391 uint32_t poly; in compute_syndromes() local404 poly = *ecc++; in compute_syndromes()406 while (poly) { in compute_syndromes()407 i = deg(poly); in compute_syndromes()599 if (poly->c[0]) in find_poly_deg1_roots()615 if (poly->c[0] && poly->c[1]) { in find_poly_deg2_roots()657 if (poly->c[0]) { in find_poly_deg3_roots()659 e3 = poly->c[3]; in find_poly_deg3_roots()694 e4 = poly->c[4]; in find_poly_deg4_roots()[all …]
29 const uint32_t poly = pol; /* Bit-reflected CRC32C polynomial */ in crc32c_init() local34 v = (v >> 1) ^ ((v & 1) ? poly : 0); in crc32c_init()
67 uLong poly; /* polynomial exclusive-or pattern */ in make_crc_table() local73 poly = 0L; in make_crc_table()75 poly |= 1L << (31 - p[n]); in make_crc_table()81 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
40 static const u8 poly = 0x8C; /* (1 + x^4 + x^5) + x^8 */ in ds2502_crc8() local53 crc ^= poly; in ds2502_crc8()
Completed in 32 milliseconds