Lines Matching refs:buffer
41 char *buffer;
97 ret = kmem_alloc(kernel_map, (vm_offset_t *) &console_ring.buffer,
101 "failed to allocate ring buffer, error %d\n", ret);
103 console_ring.read_ptr = console_ring.buffer;
104 console_ring.write_ptr = console_ring.buffer;
120 "failed to allocate cpu buffer, error=%d\n", ret);
157 if (console_ring.write_ptr - console_ring.buffer
159 console_ring.write_ptr = console_ring.buffer;
174 if (console_ring.read_ptr - console_ring.buffer
176 console_ring.read_ptr = console_ring.buffer;
244 * Try to get the read lock on the ring buffer to empty it.
283 /* XXX - cpu_buffer_put() can fail silently if the buffer
295 /* copy this buffer into the shared ring buffer */
300 * Is there enough space in the shared ring buffer?
302 * Note, we want the entire local buffer to fit to