Searched refs:out_offset (Results 1 – 3 of 3) sorted by relevance
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()97 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out()99 fifo->out_offset = size - tmp; in kfifo_out()103 memcpy(to, fifo->buffer + fifo->out_offset, size); in kfifo_out()104 fifo->out_offset += size; 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()131 memcpy(to, fifo->buffer + fifo->out_offset, tmp); in kfifo_out_peek()136 memcpy(to, fifo->buffer + fifo->out_offset, size); in kfifo_out_peek()
26 assert(fifo.out_offset == 0); in ktest_kfifo_case0_1()37 assert(fifo.out_offset == 0); in ktest_kfifo_case0_1()49 assert(fifo.out_offset == i * sizeof(uint64_t)); in ktest_kfifo_case0_1()53 assert(fifo.out_offset == 10 * sizeof(uint64_t)); in ktest_kfifo_case0_1()54 assert(fifo.in_offset == fifo.out_offset); in ktest_kfifo_case0_1()60 assert(fifo.out_offset == 0); in ktest_kfifo_case0_1()72 assert(fifo.out_offset == 0); in ktest_kfifo_case0_1()80 assert(fifo.out_offset == 0); in ktest_kfifo_case0_1()90 assert(fifo.out_offset == 0); in ktest_kfifo_case0_1()101 assert(fifo.out_offset == 20 * sizeof(uint64_t)); in ktest_kfifo_case0_1()[all …]
11 uint32_t out_offset; // 出口偏移 member22 (fifo)->out_offset = 0; \31 (fifo)->out_offset = (fifo)->in_offset; \