Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dkfifo.c22 fifo->total_size = size; in kfifo_alloc()
40 fifo->total_size = size; in kfifo_init()
54 if (unlikely(fifo->size + size > fifo->total_size)) in kfifo_in()
60 if (fifo->in_offset + size > fifo->total_size) // 发生回环 in kfifo_in()
62 uint32_t tmp = fifo->total_size - fifo->in_offset; in kfifo_in()
94 if (fifo->out_offset + size > fifo->total_size) // 发生回环 in kfifo_out()
96 uint32_t tmp = fifo->total_size - fifo->out_offset; in kfifo_out()
128 if (fifo->out_offset + size > fifo->total_size) // 发生回环 in kfifo_out_peek()
130 uint32_t tmp = fifo->total_size - fifo->out_offset; in kfifo_out_peek()
Delf.rs171 total_size: usize, in load_elf_segment()
218 if total_size != 0 { in load_elf_segment()
219 let total_size = self.elf_page_align_up(VirtAddr::new(total_size)).data(); in load_elf_segment() localVariable
224 .map_anonymous(addr_to_map, total_size, tmp_prot, *map_flags, false) in load_elf_segment()
230 let to_unmap_size = total_size - map_size; in load_elf_segment()
/DragonOS-0.1.8/kernel/src/common/
Dkfifo.h8 uint32_t total_size; // 缓冲区总空间 member
40 #define kfifo_total_size(fifo) ((fifo)->total_size)
63 #define kfifo_full(fifo) (((fifo)->size == (fifo)->total_size) ? 1 : 0)
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-kfifo.c21 assert(fifo.total_size == fifo_size); in ktest_kfifo_case0_1()
39 assert(fifo.total_size == fifo_size); in ktest_kfifo_case0_1()
88 assert(fifo.size == fifo.total_size); in ktest_kfifo_case0_1()
99 assert(fifo.size == (fifo.total_size - 20 * sizeof(uint64_t))); in ktest_kfifo_case0_1()
139 assert(fifo.total_size == fifo_size); in ktest_kfifo_case0_1()