Lines Matching +full:half +full:- +full:length

1 /* taken from arch/powerpc/kernel/ppc-stub.c */
80 * When a packet is received, it is first acknowledged with either '+' or '-'.
81 * '+' indicates a successful transfer. '-' indicates a failed transfer.
121 return ch-'a'+10; in hex()
123 return ch-'0'; in hex()
125 return ch-'A'+10; in hex()
126 return -1; in hex()
139 * We use the upper half of buf as an intermediate buffer for the in mem2hex()
147 while (count-- > 0) { in mem2hex()
167 * We use the upper half of buf as an intermediate buffer for the in hex2mem()
171 tmp_hex = tmp_raw - 1; in hex2mem()
175 tmp_raw--; in hex2mem()
176 hexValue = hex(*tmp_hex--); in hex2mem()
180 hexValue = hex(*tmp_hex--); in hex2mem()
245 xmitcsum = -1; in getpacket()
268 putDebugChar('-'); /* failed checksum */ in getpacket()
278 buffer[i-3] = buffer[i]; in getpacket()
319 int length; in handle_exception() local
363 *ptr++ = hexchars[rp->num >> 4]; in handle_exception()
364 *ptr++ = hexchars[rp->num & 0xf]; in handle_exception()
366 ptr = (char *)mem2hex((char *)&rp->val, ptr, 4); in handle_exception()
411 length = kgdb_getregs(regs, remcomRegBuffer, BUFMAX); in handle_exception()
412 mem2hex(remcomRegBuffer, remcomOutBuffer, length); in handle_exception()
416 length = strlen(ptr); in handle_exception()
417 if ((length & 1) != 0) kgdb_error(KGDBERR_BADPARAMS); in handle_exception()
418 hex2mem(ptr, remcomRegBuffer, length/2); in handle_exception()
419 kgdb_putregs(regs, remcomRegBuffer, length/2); in handle_exception()
428 && hexToInt(&ptr, &length)) { in handle_exception()
429 mem2hex((char *)addr, remcomOutBuffer, length); in handle_exception()
440 && hexToInt(&ptr, &length) in handle_exception()
442 hex2mem(ptr, (char *)addr, length); in handle_exception()
500 && ((length = strlen(ptr)) & 1) == 0) { in handle_exception()
501 hex2mem(ptr, remcomRegBuffer, length/2); in handle_exception()
503 remcomRegBuffer, length/2); in handle_exception()
548 /* Output string in GDB O-packet format if GDB has connected. If nothing
555 count = (count <= (sizeof(buffer) / 2 - 2)) in kgdb_output_string()
556 ? count : (sizeof(buffer) / 2 - 2); in kgdb_output_string()
580 kgdb_breakpoint(argc - 1, argv + 1); in do_kgdb()
589 " - executes a breakpoint so that kgdb mode is\n"
597 " example program in the U-Boot examples directory)."