Lines Matching refs:cksum
108 int c, cksum; in gdb_rx_begin() local
120 cksum = 0; in gdb_rx_begin()
127 cksum += c; in gdb_rx_begin()
130 cksum &= 0xff; in gdb_rx_begin()
146 cksum -= (C2N(c) << 4) & 0xf0; in gdb_rx_begin()
148 cksum -= C2N(c) & 0x0f; in gdb_rx_begin()
149 if (cksum == 0) { in gdb_rx_begin()
156 } while (cksum != 0); in gdb_rx_begin()
279 unsigned char c, cksum; in gdb_tx_end() local
289 cksum = 0; in gdb_tx_end()
295 cksum += c; in gdb_tx_end()
305 cksum += '*'; in gdb_tx_end()
307 cksum += 97+29; in gdb_tx_end()
311 cksum += c; in gdb_tx_end()
320 cksum += c; in gdb_tx_end()
326 cksum += '*'; in gdb_tx_end()
328 cksum += runlen+29; in gdb_tx_end()
332 c = cksum >> 4; in gdb_tx_end()
334 c = cksum & 0x0f; in gdb_tx_end()