Home
last modified time | relevance | path

Searched refs:kfifo_t (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.8/kernel/src/common/
Dkfifo.h6 struct kfifo_t struct
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()
147 uint32_t __always_inline kfifo_out_locked(struct kfifo_t *fifo, void *to, uint32_t size, spinlock_t… in kfifo_out_locked()
/DragonOS-0.1.8/kernel/src/libs/
Dkfifo.c15 int kfifo_alloc(struct kfifo_t *fifo, uint32_t size, uint64_t reserved) in kfifo_alloc()
17 memset(fifo, 0, sizeof(struct kfifo_t)); in kfifo_alloc()
35 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size) in kfifo_init()
37 memset(fifo, 0, sizeof(struct kfifo_t)); in kfifo_init()
51 uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size) in kfifo_in()
86 uint32_t kfifo_out(struct kfifo_t *fifo, void *to, uint32_t size) in kfifo_out()
120 uint32_t kfifo_out_peek(struct kfifo_t *fifo, void *to, uint32_t size) in kfifo_out_peek()
147 void kfifo_free_alloc(struct kfifo_t *fifo) in kfifo_free_alloc()
150 memset(fifo, 0, sizeof(struct kfifo_t)); in kfifo_free_alloc()
Dbitree.c208 struct kfifo_t fifo; in bt_destroy_tree()
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.c12 static struct kfifo_t kb_buf;
27 static void ps2_keyboard_reset_buffer(struct kfifo_t *kbp) in ps2_keyboard_reset_buffer()
148 uint8_t count = kfifo_in((struct kfifo_t *)buf_vaddr, &x, sizeof(unsigned char)); in ps2_keyboard_handler()
/DragonOS-0.1.8/docs/kernel/core_api/
Ddata_structures.md12 `int kfifo_alloc(struct kfifo_t *fifo, uint32_t size, uint64_t reserved)`
38 `void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size)`
60 `void kfifo_free_alloc(struct kfifo_t* fifo)`
74 `uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size)`
100 `uint32_t kfifo_out(struct kfifo_t *fifo, void *to, uint32_t size)`
126 `uint32_t kfifo_out_peek(struct kfifo_t *fifo, void *to, uint32_t size)`
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-kfifo.c11 struct kfifo_t fifo; in ktest_kfifo_case0_1()