Lines Matching refs:ch
119 hex(unsigned char ch) in hex() argument
121 if (ch >= 'a' && ch <= 'f') in hex()
122 return ch-'a'+10; in hex()
123 if (ch >= '0' && ch <= '9') in hex()
124 return ch-'0'; in hex()
125 if (ch >= 'A' && ch <= 'F') in hex()
126 return ch-'A'+10; in hex()
137 unsigned char ch; in mem2hex() local
149 ch = *tmp++; in mem2hex()
150 *buf++ = hexchars[ch >> 4]; in mem2hex()
151 *buf++ = hexchars[ch & 0xf]; in mem2hex()
232 unsigned char ch; in getpacket() local
237 while ((ch = (getDebugChar() & 0x7f)) != '$') { in getpacket()
240 putc(ch); in getpacket()
252 ch = getDebugChar() & 0x7f; in getpacket()
253 if (ch == '#') in getpacket()
255 checksum = checksum + ch; in getpacket()
256 buffer[count] = ch; in getpacket()
265 if (ch == '#') { in getpacket()
292 unsigned char ch, recv; in putpacket() local
300 while ((ch = buffer[count])) { in putpacket()
301 putDebugChar(ch); in putpacket()
302 checksum += ch; in putpacket()