Lines Matching refs:ch
93 char ch; in get_packet() local
100 while ((ch = (gdbstub_read_wait())) != '$') in get_packet()
113 ch = gdbstub_read_wait(); in get_packet()
114 if (ch == '#') in get_packet()
116 checksum = checksum + ch; in get_packet()
117 buffer[count] = ch; in get_packet()
121 if (ch == '#') { in get_packet()
146 char ch; in put_packet() local
156 while ((ch = buffer[count])) { in put_packet()
157 dbg_io_ops->write_char(ch); in put_packet()
158 checksum += ch; in put_packet()
169 ch = gdbstub_read_wait(); in put_packet()
171 if (ch == 3) in put_packet()
172 ch = gdbstub_read_wait(); in put_packet()
175 if (ch == '+') in put_packet()
184 if (ch == '$') { in put_packet()
1126 unsigned char checksum, ch, buffer[3]; in gdbstub_exit() local
1144 ch = buffer[loop]; in gdbstub_exit()
1145 checksum += ch; in gdbstub_exit()
1146 dbg_io_ops->write_char(ch); in gdbstub_exit()