Lines Matching refs:syndrome
122 uint64_t syndrome; /* key */ member
129 static void add_syndrome(uint64_t syndrome, uint64_t error) in add_syndrome() argument
133 s->syndrome = syndrome; in add_syndrome()
136 HASH_ADD(hh, syndrome_map, syndrome, 8, s); in add_syndrome()
139 static syndrome_struct *find_syndrome(uint64_t syndrome) in find_syndrome() argument
143 HASH_FIND(hh, syndrome_map, &syndrome, 8, s); in find_syndrome()
149 uint64_t syndrome = codeword & 0xffffffff; in gen_syndrome() local
151 syndrome ^= sw_check_table4[codeword & 0xff]; in gen_syndrome()
153 syndrome ^= sw_check_table5[codeword & 0xff]; in gen_syndrome()
155 syndrome ^= sw_check_table6[codeword & 0xff]; in gen_syndrome()
157 syndrome ^= sw_check_table7[codeword & 0xff]; in gen_syndrome()
158 return syndrome; in gen_syndrome()
163 uint64_t new_error, syndrome, base; in cycle() local
174 syndrome = gen_syndrome(codeword ^ new_error); in cycle()
175 add_syndrome(syndrome, new_error); in cycle()
370 uint64_t syncword, codeword, syndrome, corrected_barker; in promiscuous_packet_search() local
396 syndrome = gen_syndrome(codeword); in promiscuous_packet_search()
400 if (syndrome) { in promiscuous_packet_search()
401 errors = find_syndrome(syndrome); in promiscuous_packet_search()
405 syndrome = 0; in promiscuous_packet_search()