Lines Matching refs:ch
140 * @param ch
143 static inline int cvmx_debug_uart_hex(char ch)
145 if ((ch >= 'a') && (ch <= 'f'))
146 return(ch - 'a' + 10);
147 if ((ch >= '0') && (ch <= '9'))
148 return(ch - '0');
149 if ((ch >= 'A') && (ch <= 'F'))
150 return(ch - 'A' + 10);
163 char ch;
165 ch = cvmx_uart_read_byte_with_timeout(cvmx_debug_uart, &timedout, __SHRT_MAX__);
171 if (ch != '$')
181 ch = cvmx_uart_read_byte(cvmx_debug_uart);
182 if (ch == '$')
184 if (ch == '#')
186 checksum = checksum + ch;
187 buffer[count] = ch;
192 if (ch == '#')