• Home
  • Raw
  • Download

Lines Matching refs:cp

205 	char *cp = buffer;  in kdb_read()  local
226 cp += len; in kdb_read()
228 cp--; in kdb_read()
231 lastchar = cp; in kdb_read()
232 *cp = '\0'; in kdb_read()
245 if (cp > buffer) { in kdb_read()
246 if (cp < lastchar) { in kdb_read()
247 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
248 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
251 --cp; in kdb_read()
252 kdb_printf("\b%s \r", cp); in kdb_read()
253 tmp = *cp; in kdb_read()
254 *cp = '\0'; in kdb_read()
257 *cp = tmp; in kdb_read()
275 if (cp < lastchar) { in kdb_read()
276 memcpy(tmpbuffer, cp+1, lastchar - cp - 1); in kdb_read()
277 memcpy(cp, tmpbuffer, lastchar - cp - 1); in kdb_read()
279 kdb_printf("%s \r", cp); in kdb_read()
280 tmp = *cp; in kdb_read()
281 *cp = '\0'; in kdb_read()
284 *cp = tmp; in kdb_read()
288 if (cp > buffer) { in kdb_read()
291 cp = buffer; in kdb_read()
295 if (cp < lastchar) { in kdb_read()
296 kdb_printf("%s", cp); in kdb_read()
297 cp = lastchar; in kdb_read()
301 if (cp > buffer) { in kdb_read()
303 --cp; in kdb_read()
316 if (cp < lastchar) { in kdb_read()
317 kdb_printf("%c", *cp); in kdb_read()
318 ++cp; in kdb_read()
336 if (p_tmp > cp) in kdb_read()
338 memcpy(tmpbuffer, p_tmp, cp-p_tmp); in kdb_read()
339 *(tmpbuffer + (cp-p_tmp)) = '\0'; in kdb_read()
372 strncpy(p_tmp+len_tmp, cp, lastchar-cp+1); in kdb_read()
374 strncpy(cp, p_tmp+len, len_tmp-len + 1); in kdb_read()
376 kdb_printf("%s", cp); in kdb_read()
377 cp += len; in kdb_read()
384 if (cp < lastchar) { in kdb_read()
385 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
386 memcpy(cp+1, tmpbuffer, lastchar - cp); in kdb_read()
388 *cp = key; in kdb_read()
389 kdb_printf("%s\r", cp); in kdb_read()
390 ++cp; in kdb_read()
391 tmp = *cp; in kdb_read()
392 *cp = '\0'; in kdb_read()
395 *cp = tmp; in kdb_read()
398 *cp++ = key; in kdb_read()
531 char firstchar, *cp; in kdb_search_string() local
549 cp = searched; in kdb_search_string()
550 while ((cp = strchr(cp, firstchar))) { in kdb_search_string()
551 if (!strncmp(cp, searchfor, len2)) in kdb_search_string()
553 cp++; in kdb_search_string()
569 char *cp, *cp2, *cphold = NULL, replaced_byte = ' '; in vkdb_printf() local
621 cp = strchr(kdb_buffer, '\n'); in vkdb_printf()
622 if (!cp) { in vkdb_printf()
666 cp++; /* to byte after the newline */ in vkdb_printf()
667 replaced_byte = *cp; /* remember what/where it was */ in vkdb_printf()
668 cphold = cp; in vkdb_printf()
669 *cp = '\0'; /* end the string for our search */ in vkdb_printf()
708 cp = (char *) printk_skip_level(kdb_buffer); in vkdb_printf()
710 gdbstub_msg_write(cp, retlen - (cp - kdb_buffer)); in vkdb_printf()
713 len = retlen - (cp - kdb_buffer); in vkdb_printf()
714 cp2 = cp; in vkdb_printf()
721 c->write(c, cp, retlen - (cp - kdb_buffer)); in vkdb_printf()
778 cp = moreprompt; in vkdb_printf()
780 dbg_io_ops->write_char(*cp); in vkdb_printf()
781 cp++; in vkdb_printf()