Lines Matching defs:cbp
117 console_buf_t *cbp;
119 ret = kmem_alloc(kernel_map, (vm_offset_t *) &cbp,
127 cbp->buf_base = (char *) &cbp->buf;
128 cbp->buf_ptr = cbp->buf_base;
129 cbp->buf_end = cbp->buf_base + CPU_BUFFER_LEN;
131 return (void *) cbp;
178 cpu_buffer_put(console_buf_t *cbp, char ch)
180 if (ch != '\0' && cbp->buf_ptr < cbp->buf_end)
181 *(cbp->buf_ptr++) = ch;
263 console_buf_t *cbp;
272 cbp = (console_buf_t *) current_cpu_datap()->cpu_console_buf;
273 if (cbp == NULL) {
287 cpu_buffer_put(cbp, c);
304 while (cbp->buf_ptr-cbp->buf_base + 1 > console_ring_space()) {
309 for (cp = cbp->buf_base; cp < cbp->buf_ptr; cp++)
312 cbp->buf_ptr = cbp->buf_base;