Lines Matching refs:i

164 	int i;  in cycle()  local
167 for (i = start; i < 58; i++) in cycle()
169 new_error = (base << i); in cycle()
172 cycle(new_error, i + 1, depth, codeword); in cycle()
182 int i; in gen_syndrome_map() local
183 for(i = 1; i <= bit_errors; i++) in gen_syndrome_map()
184 cycle(0, 0, i, DEFAULT_AC); in gen_syndrome_map()
190 int i; in btbb_gen_syncword() local
194 for (i = 0; i < 24; i++) in btbb_gen_syncword()
195 if (LAP & (0x800000 >> i)) in btbb_gen_syncword()
196 codeword ^= sw_matrix[i]; in btbb_gen_syncword()
213 int i; in air_to_host8() local
215 for (i = 0; i < bits; i++) in air_to_host8()
216 host_order |= ((uint8_t)air_order[i] << i); in air_to_host8()
221 int i; in air_to_host16() local
223 for (i = 0; i < bits; i++) in air_to_host16()
224 host_order |= ((uint16_t)air_order[i] << i); in air_to_host16()
229 int i; in air_to_host32() local
231 for (i = 0; i < bits; i++) in air_to_host32()
232 host_order |= ((uint32_t)air_order[i] << i); in air_to_host32()
237 int i; in air_to_host64() local
239 for (i = 0; i < bits; i++) in air_to_host64()
240 host_order |= ((uint64_t)air_order[i] << i); in air_to_host64()
258 uint8_t i = 0; in count_bits()
259 for (i = 0; n != 0; i++) in count_bits()
261 return i; in count_bits()
470 int i; in btbb_packet_set_data() local
474 for (i = 0; i < length; i++) in btbb_packet_set_data()
475 pkt->symbols[i] = data[i]; in btbb_packet_set_data()
513 int i; in btbb_get_payload_packed() local
514 for(i=0;i<pkt->payload_length;i++) in btbb_get_payload_packed()
515 dst[i] = (char) air_to_host8(&pkt->payload[i*8], 8); in btbb_get_payload_packed()
554 int a, b, c, i; in unfec13() local
557 for (i = 0; i < length; i++) { in unfec13()
558 a = 3 * i; in unfec13()
561 output[i] = ((input[a] & input[b]) | (input[b] & input[c]) | in unfec13()
573 int i; in fec23() local
577 for (i = 0; i < 10; i++) in fec23()
578 if (data & (1 << i)) in fec23()
579 codeword ^= fec23_gen_matrix[i]; in fec23()
695 int i; in uap_from_hec() local
697 for (i = 9; i >= 0; i--) { in uap_from_hec()
702 hec = (hec << 1) | (((hec >> 7) ^ (data >> i)) & 0x01); in uap_from_hec()
1332 int i; in btbb_print_packet() local
1333 for(i=0; i<pkt->payload_length; i++) in btbb_print_packet()
1334 printf(" %02x", air_to_host8(pkt->payload + 8*i, 8)); in btbb_print_packet()
1345 int i; in tun_format() local
1364 for(i=0;i<pkt->payload_length;i++) in tun_format()
1365 tun_format[i+9] = (char) air_to_host8(&pkt->payload[i*8], 8); in tun_format()