Lines Matching refs:buffer
18 fifo->buffer = kmalloc(size, 0); in kfifo_alloc()
19 if (fifo->buffer == NULL) in kfifo_alloc()
35 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size) in kfifo_init() argument
39 fifo->buffer = buffer; in kfifo_init()
63 memcpy(fifo->buffer + fifo->in_offset, from, tmp); in kfifo_in()
64 memcpy(fifo->buffer, from + tmp, size - tmp); in kfifo_in()
69 memcpy(fifo->buffer + fifo->in_offset, from, size); in kfifo_in()
97 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out()
98 memcpy(to + tmp, fifo->buffer, size - tmp); in kfifo_out()
103 memcpy(to, fifo->buffer + fifo->out_offset, size); in kfifo_out()
131 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out_peek()
132 memcpy(to + tmp, fifo->buffer, size - tmp); in kfifo_out_peek()
136 memcpy(to, fifo->buffer + fifo->out_offset, size); in kfifo_out_peek()
149 kfree(fifo->buffer); in kfifo_free_alloc()