Lines Matching refs:in
35 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused()
47 fifo->in = 0; in __kfifo_alloc()
72 fifo->in = 0; in __kfifo_free()
88 fifo->in = 0; in __kfifo_init()
136 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in()
137 fifo->in += len; in __kfifo_in()
171 l = fifo->in - fifo->out; in __kfifo_out_peek()
239 ret = kfifo_copy_from_user(fifo, from, len, fifo->in, copied); in __kfifo_from_user()
245 fifo->in += len; in __kfifo_from_user()
295 l = fifo->in - fifo->out; in __kfifo_to_user()
379 return setup_sgl(fifo, sgl, nents, len, fifo->in); in __kfifo_dma_in_prepare()
388 l = fifo->in - fifo->out; in __kfifo_dma_out_prepare()
426 #define __KFIFO_POKE(data, in, mask, val) \ argument
428 (data)[(in) & (mask)] = (unsigned char)(val) \
440 __KFIFO_POKE(data, fifo->in, mask, n); in __kfifo_poke_n()
443 __KFIFO_POKE(data, fifo->in + 1, mask, n >> 8); in __kfifo_poke_n()
460 kfifo_copy_in(fifo, buf, len, fifo->in + recsize); in __kfifo_in_r()
461 fifo->in += len + recsize; in __kfifo_in_r()
483 if (fifo->in == fifo->out) in __kfifo_out_peek_r()
495 if (fifo->in == fifo->out) in __kfifo_out_r()
527 ret = kfifo_copy_from_user(fifo, from, len, fifo->in + recsize, copied); in __kfifo_from_user_r()
532 fifo->in += len + recsize; in __kfifo_from_user_r()
543 if (fifo->in == fifo->out) { in __kfifo_to_user_r()
572 return setup_sgl(fifo, sgl, nents, len, fifo->in + recsize); in __kfifo_dma_in_prepare_r()
581 fifo->in += len + recsize; in __kfifo_dma_in_finish_r()
592 if (len + recsize > fifo->in - fifo->out) in __kfifo_dma_out_prepare_r()