Lines Matching refs:fifo
19 #define kfifo_reset(fifo) (void)({ \ argument
20 (fifo)->size = 0; \
21 (fifo)->in_offset = 0; \
22 (fifo)->out_offset = 0; \
29 #define kfifo_reset_out(fifo) (void)({ \ argument
30 (fifo)->size = 0; \
31 (fifo)->out_offset = (fifo)->in_offset; \
40 #define kfifo_total_size(fifo) ((fifo)->total_size) argument
47 #define kfifo_size(fifo) ((fifo)->size) argument
55 #define kfifo_empty(fifo) (((fifo)->size == 0) ? 1 : 0) argument
63 #define kfifo_full(fifo) (((fifo)->size == (fifo)->total_size) ? 1 : 0) argument
73 int kfifo_alloc(struct kfifo_t *fifo, uint32_t size, uint64_t reserved);
80 void kfifo_free_alloc(struct kfifo_t *fifo);
89 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size);
99 uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size);
109 uint32_t kfifo_out(struct kfifo_t *fifo, void *to, uint32_t size);
119 uint32_t kfifo_out_peek(struct kfifo_t *fifo, void *to, uint32_t size);
130 uint32_t __always_inline kfifo_in_locked(struct kfifo_t *fifo, const void *from, uint32_t size, spi… in kfifo_in_locked() argument
133 uint32_t retval = kfifo_in(fifo, from, size); in kfifo_in_locked()
147 uint32_t __always_inline kfifo_out_locked(struct kfifo_t *fifo, void *to, uint32_t size, spinlock_t… in kfifo_out_locked() argument
150 uint32_t retval = kfifo_out(fifo, to, size); in kfifo_out_locked()