• Home
  • Raw
  • Download

Lines Matching refs:cp

198 	char *cp = buffer;  in kdb_read()  local
219 cp += len; in kdb_read()
221 cp--; in kdb_read()
224 lastchar = cp; in kdb_read()
225 *cp = '\0'; in kdb_read()
233 if (cp > buffer) { in kdb_read()
234 if (cp < lastchar) { in kdb_read()
235 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
236 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
239 --cp; in kdb_read()
240 kdb_printf("\b%s \r", cp); in kdb_read()
241 tmp = *cp; in kdb_read()
242 *cp = '\0'; in kdb_read()
245 *cp = tmp; in kdb_read()
258 if (cp < lastchar) { in kdb_read()
259 memcpy(tmpbuffer, cp+1, lastchar - cp - 1); in kdb_read()
260 memcpy(cp, tmpbuffer, lastchar - cp - 1); in kdb_read()
262 kdb_printf("%s \r", cp); in kdb_read()
263 tmp = *cp; in kdb_read()
264 *cp = '\0'; in kdb_read()
267 *cp = tmp; in kdb_read()
271 if (cp > buffer) { in kdb_read()
274 cp = buffer; in kdb_read()
278 if (cp < lastchar) { in kdb_read()
279 kdb_printf("%s", cp); in kdb_read()
280 cp = lastchar; in kdb_read()
284 if (cp > buffer) { in kdb_read()
286 --cp; in kdb_read()
299 if (cp < lastchar) { in kdb_read()
300 kdb_printf("%c", *cp); in kdb_read()
301 ++cp; in kdb_read()
319 if (p_tmp > cp) in kdb_read()
321 memcpy(tmpbuffer, p_tmp, cp-p_tmp); in kdb_read()
322 *(tmpbuffer + (cp-p_tmp)) = '\0'; in kdb_read()
358 strncpy(p_tmp+len_tmp, cp, lastchar-cp+1); in kdb_read()
360 strncpy(cp, p_tmp+len, len_tmp-len + 1); in kdb_read()
362 kdb_printf("%s", cp); in kdb_read()
363 cp += len; in kdb_read()
370 if (cp < lastchar) { in kdb_read()
371 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
372 memcpy(cp+1, tmpbuffer, lastchar - cp); in kdb_read()
374 *cp = key; in kdb_read()
375 kdb_printf("%s\r", cp); in kdb_read()
376 ++cp; in kdb_read()
377 tmp = *cp; in kdb_read()
378 *cp = '\0'; in kdb_read()
381 *cp = tmp; in kdb_read()
384 *cp++ = key; in kdb_read()
517 char firstchar, *cp; in kdb_search_string() local
535 cp = searched; in kdb_search_string()
536 while ((cp = strchr(cp, firstchar))) { in kdb_search_string()
537 if (!strncmp(cp, searchfor, len2)) in kdb_search_string()
539 cp++; in kdb_search_string()
548 const char *cp; in kdb_msg_write() local
554 cp = msg; in kdb_msg_write()
558 dbg_io_ops->write_char(*cp); in kdb_msg_write()
559 cp++; in kdb_msg_write()
592 char *cp, *cp2, *cphold = NULL, replaced_byte = ' '; in vkdb_printf() local
639 cp = strchr(kdb_buffer, '\n'); in vkdb_printf()
640 if (!cp) { in vkdb_printf()
684 cp++; /* to byte after the newline */ in vkdb_printf()
685 replaced_byte = *cp; /* remember what/where it was */ in vkdb_printf()
686 cphold = cp; in vkdb_printf()
687 *cp = '\0'; /* end the string for our search */ in vkdb_printf()
730 cp = (char *) printk_skip_headers(kdb_buffer); in vkdb_printf()
732 gdbstub_msg_write(cp, retlen - (cp - kdb_buffer)); in vkdb_printf()
734 kdb_msg_write(cp, retlen - (cp - kdb_buffer)); in vkdb_printf()