Home | History | Annotate | Download | only in fio

Lines Matching refs:buffer

36 	fifo->buffer = malloc(size);
45 free(fifo->buffer);
49 unsigned int fifo_put(struct fifo *fifo, void *buffer, unsigned int len)
55 /* first put the data starting from fifo->in to buffer end */
57 memcpy(fifo->buffer + (fifo->in & (fifo->size - 1)), buffer, l);
59 /* then put the rest (if any) at the beginning of the buffer */
60 memcpy(fifo->buffer, buffer + l, len - l);
80 * first get the data from fifo->out until the end of the buffer
83 memcpy(buf, fifo->buffer + (fifo->out & (fifo->size - 1)), l);
86 * then get the rest (if any) from the beginning of the buffer
88 memcpy(buf + l, fifo->buffer, len - l);