Lines Matching full:fifo
64 struct fifo {
68 int num; /* number of characters in the fifo */
69 int size; /* size of the fifo */
74 struct fifo rxfifo;
141 struct fifo *fifo;
145 fifo = &sc->rxfifo;
146 if (fifo->num > 0) {
149 c = fifo->buf[fifo->rindex];
150 fifo->rindex = (fifo->rindex + 1) % fifo->size;
151 fifo->num--;
172 struct fifo *fifo;
175 fifo = &sc->rxfifo;
177 if (fifo->num < fifo->size) {
178 fifo->buf[fifo->windex] = ch;
179 fifo->windex = (fifo->windex + 1) % fifo->size;
180 fifo->num++;
184 * Disable mevent callback if the FIFO is full.
239 struct fifo *fifo;
243 fifo = &sc->rxfifo;
244 bzero(fifo, sizeof(struct fifo));
245 fifo->size = size;