Home
last modified time | relevance | path

Searched refs:__kfifo (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/include/linux/
Dkfifo.h58 struct __kfifo { struct
68 struct __kfifo kfifo; \ argument
141 struct __kfifo *__kfifo = &__tmp->kfifo; \
142 __kfifo->in = 0; \
143 __kfifo->out = 0; \
144 __kfifo->mask = __is_kfifo_ptr(__tmp) ? 0 : ARRAY_SIZE(__tmp->buf) - 1;\
145 __kfifo->esize = sizeof(*__tmp->buf); \
146 __kfifo->data = __is_kfifo_ptr(__tmp) ? NULL : __tmp->buf; \
297 struct __kfifo *__kfifo = &__tmp->kfifo; \
299 __kfifo_skip_r(__kfifo, __recsize); \
[all …]
/linux-4.19.296/lib/
Dkfifo.c33 static inline unsigned int kfifo_unused(struct __kfifo *fifo) in kfifo_unused()
38 int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, in __kfifo_alloc()
69 void __kfifo_free(struct __kfifo *fifo) in __kfifo_free()
80 int __kfifo_init(struct __kfifo *fifo, void *buffer, in __kfifo_init()
103 static void kfifo_copy_in(struct __kfifo *fifo, const void *src, in kfifo_copy_in()
127 unsigned int __kfifo_in(struct __kfifo *fifo, in __kfifo_in()
142 static void kfifo_copy_out(struct __kfifo *fifo, void *dst, in kfifo_copy_out()
166 unsigned int __kfifo_out_peek(struct __kfifo *fifo, in __kfifo_out_peek()
180 unsigned int __kfifo_out(struct __kfifo *fifo, in __kfifo_out()
189 static unsigned long kfifo_copy_from_user(struct __kfifo *fifo, in kfifo_copy_from_user()
[all …]
/linux-4.19.296/drivers/iio/buffer/
Dkfifo_buf.c37 return __kfifo_alloc((struct __kfifo *)&buf->kf, length, in __iio_allocate_kfifo()