Lines Matching refs:cp
197 char *cp = buffer; in kdb_read() local
218 cp += len; in kdb_read()
220 cp--; in kdb_read()
223 lastchar = cp; in kdb_read()
224 *cp = '\0'; in kdb_read()
232 if (cp > buffer) { in kdb_read()
233 if (cp < lastchar) { in kdb_read()
234 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
235 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
238 --cp; in kdb_read()
239 kdb_printf("\b%s \r", cp); in kdb_read()
240 tmp = *cp; in kdb_read()
241 *cp = '\0'; in kdb_read()
244 *cp = tmp; in kdb_read()
257 if (cp < lastchar) { in kdb_read()
258 memcpy(tmpbuffer, cp+1, lastchar - cp - 1); in kdb_read()
259 memcpy(cp, tmpbuffer, lastchar - cp - 1); in kdb_read()
261 kdb_printf("%s \r", cp); in kdb_read()
262 tmp = *cp; in kdb_read()
263 *cp = '\0'; in kdb_read()
266 *cp = tmp; in kdb_read()
270 if (cp > buffer) { in kdb_read()
273 cp = buffer; in kdb_read()
277 if (cp < lastchar) { in kdb_read()
278 kdb_printf("%s", cp); in kdb_read()
279 cp = lastchar; in kdb_read()
283 if (cp > buffer) { in kdb_read()
285 --cp; in kdb_read()
298 if (cp < lastchar) { in kdb_read()
299 kdb_printf("%c", *cp); in kdb_read()
300 ++cp; in kdb_read()
318 if (p_tmp > cp) in kdb_read()
320 memcpy(tmpbuffer, p_tmp, cp-p_tmp); in kdb_read()
321 *(tmpbuffer + (cp-p_tmp)) = '\0'; in kdb_read()
357 strncpy(p_tmp+len_tmp, cp, lastchar-cp+1); in kdb_read()
359 strncpy(cp, p_tmp+len, len_tmp-len + 1); in kdb_read()
361 kdb_printf("%s", cp); in kdb_read()
362 cp += len; in kdb_read()
369 if (cp < lastchar) { in kdb_read()
370 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
371 memcpy(cp+1, tmpbuffer, lastchar - cp); in kdb_read()
373 *cp = key; in kdb_read()
374 kdb_printf("%s\r", cp); in kdb_read()
375 ++cp; in kdb_read()
376 tmp = *cp; in kdb_read()
377 *cp = '\0'; in kdb_read()
380 *cp = tmp; in kdb_read()
383 *cp++ = key; in kdb_read()
516 char firstchar, *cp; in kdb_search_string() local
534 cp = searched; in kdb_search_string()
535 while ((cp = strchr(cp, firstchar))) { in kdb_search_string()
536 if (!strncmp(cp, searchfor, len2)) in kdb_search_string()
538 cp++; in kdb_search_string()
547 const char *cp; in kdb_msg_write() local
553 cp = msg; in kdb_msg_write()
557 dbg_io_ops->write_char(*cp); in kdb_msg_write()
558 cp++; in kdb_msg_write()
591 char *cp, *cp2, *cphold = NULL, replaced_byte = ' '; in vkdb_printf() local
638 cp = strchr(kdb_buffer, '\n'); in vkdb_printf()
639 if (!cp) { in vkdb_printf()
683 cp++; /* to byte after the newline */ in vkdb_printf()
684 replaced_byte = *cp; /* remember what/where it was */ in vkdb_printf()
685 cphold = cp; in vkdb_printf()
686 *cp = '\0'; /* end the string for our search */ in vkdb_printf()
729 cp = (char *) printk_skip_headers(kdb_buffer); in vkdb_printf()
731 gdbstub_msg_write(cp, retlen - (cp - kdb_buffer)); in vkdb_printf()
733 kdb_msg_write(cp, retlen - (cp - kdb_buffer)); in vkdb_printf()