Lines Matching +full:6 +full:c
4 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)
48 char c, *s; in ax2asc() local
51 for (n = 0, s = buf; n < 6; n++) { in ax2asc()
52 c = (a->ax25_call[n] >> 1) & 0x7F; in ax2asc()
54 if (c != ' ') *s++ = c; in ax2asc()
59 if ((n = ((a->ax25_call[6] >> 1) & 0x0F)) > 9) { in ax2asc()
84 for (s = callsign, n = 0; n < 6; n++) { in asc2ax()
94 addr->ax25_call[6] = 0x00; in asc2ax()
98 addr->ax25_call[6] = *s++ - '0'; in asc2ax()
101 addr->ax25_call[6] *= 10; in asc2ax()
102 addr->ax25_call[6] += *s++ - '0'; in asc2ax()
105 addr->ax25_call[6] <<= 1; in asc2ax()
106 addr->ax25_call[6] &= 0x1E; in asc2ax()
118 while (ct < 6) { in ax25cmp()
167 if (buf[6] & AX25_CBIT) in ax25_addr_parse()
197 if (buf[6] & AX25_HBIT) { in ax25_addr_parse()
222 buf[6] &= ~(AX25_EBIT | AX25_CBIT); in ax25_addr_build()
223 buf[6] |= AX25_SSSID_SPARE; in ax25_addr_build()
225 if (flag == AX25_COMMAND) buf[6] |= AX25_CBIT; in ax25_addr_build()
231 buf[6] &= ~(AX25_EBIT | AX25_CBIT); in ax25_addr_build()
232 buf[6] &= ~AX25_SSSID_SPARE; in ax25_addr_build()
235 buf[6] |= AX25_SSSID_SPARE; in ax25_addr_build()
237 buf[6] |= AX25_ESSID_SPARE; in ax25_addr_build()
239 if (flag == AX25_RESPONSE) buf[6] |= AX25_CBIT; in ax25_addr_build()
245 buf[6] |= AX25_EBIT; in ax25_addr_build()
256 buf[6] |= AX25_HBIT; in ax25_addr_build()
258 buf[6] &= ~AX25_HBIT; in ax25_addr_build()
260 buf[6] &= ~AX25_EBIT; in ax25_addr_build()
261 buf[6] |= AX25_SSSID_SPARE; in ax25_addr_build()
296 out->calls[ct].ax25_call[6] |= AX25_HBIT; in ax25_digi_invert()
299 out->calls[ct].ax25_call[6] &= ~AX25_HBIT; in ax25_digi_invert()